Skip to content

Commit

Permalink
debug with UHD
Browse files Browse the repository at this point in the history
  • Loading branch information
cueltschey committed Oct 2, 2024
1 parent a480378 commit f97f2af
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions configs/basic_ue_uhd.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
gnb:
config: "../../configs/uhd/gnb_uhd.yaml"
port: ""
ip: ""
port: 5050
ip: "192.168.1.11"

namespaces:
- name: "ue1"
Expand Down
6 changes: 3 additions & 3 deletions configs/uhd/ue_uhd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ apn = srsapn
apn_protocol = ipv4

[gw]
#netns = ue1
#ip_devname = tun_srsue
#ip_netmask = 255.255.255.0
netns = ue1
ip_devname = tun_srsue
ip_netmask = 255.255.255.0

[gui]
enable = false
Expand Down
1 change: 1 addition & 0 deletions controller/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def send_command(ip, port, cmd_json):
try:
cmd_string = json.dumps(cmd_json)
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
print(type(ip), type(port), type(cmd_string))
sock.connect((ip, port))
sock.sendall(cmd_string.encode('utf-8'))
print("SENDING:", cmd_string)
Expand Down
2 changes: 1 addition & 1 deletion controller/ue/MetricsClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def __init__(self, plot_map):
try:
self.query_api: QueryApi = InfluxDBClient(
**{
"url": "http://localhost:8086",
"url": "http://192.168.1.11:8086",
"org": self.org,
"token": self.token
}
Expand Down
4 changes: 2 additions & 2 deletions controller/ue/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ def main():
options = yaml.safe_load(file)
if options.get("gnb", False):
args.ip = options.get("gnb")["ip"]
args.port = options.get("gnb")["port"]
args.gnb_config = options.get("gnb")["gnb_config"]
args.port = int(options.get("gnb")["port"])
args.gnb_config = options.get("gnb")["config"]

SharedState.cli_args = args
SharedState.ue_index = 1
Expand Down

0 comments on commit f97f2af

Please sign in to comment.