Minor fixes

This commit is contained in:
M madrigal 2025-10-21 13:30:12 -04:00
parent 9248549744
commit 8ced75b911
3 changed files with 5 additions and 4 deletions

View File

@ -13,10 +13,10 @@ def set_configs(port="/dev/ttyUSB2", baudrate=115200):
ser.write(b'AT+QNWPREFCFG="nr5g_band",78\r') ser.write(b'AT+QNWPREFCFG="nr5g_band",78\r')
response = ser.readlines() response = ser.readlines()
print(response) print(response)
ser.write(b'AT+QNWPREFCFG="mode_pref",NR5G\r') ser.write(b'AT+QNWPREFCFG="mode_pref",NR5G\r') # reset: AT+QNWPREFCFG="mode_pref",AUTO
response = ser.readlines() response = ser.readlines()
print(response) print(response)
ser.write(b'AT+QNWPREFCFG="roam_pref",1\r') ser.write(b'AT+QNWPREFCFG="roam_pref",1\r') # reset: AT+QNWPREFCFG="roam_pref",255
response = ser.readlines() response = ser.readlines()
print(response) print(response)
ser.close() ser.close()

View File

@ -21,7 +21,7 @@ cu_cp:
cell_cfg: cell_cfg:
# 627000 - 3405, 627334 - 10, 628334 - 3425, 629668 - 3445, 651668 - 3775 # 627000 - 3405, 627334 - 3410, 628334 - 3425, 629668 - 3445, 651668 - 3775
dl_arfcn: 627334 # ARFCN of the downlink carrier (center frequency). dl_arfcn: 627334 # ARFCN of the downlink carrier (center frequency).
band: 78 # The NR band. band: 78 # The NR band.
channel_bandwidth_MHz: 20 # Bandwith in MHz. Number of PRBs will be automatically derived. channel_bandwidth_MHz: 20 # Bandwith in MHz. Number of PRBs will be automatically derived.

View File

@ -25,6 +25,7 @@ def send_0mq(args):
leftover = None leftover = None
start_time = time.perf_counter() start_time = time.perf_counter()
print(f"Starting at {start_time}...")
while True: while True:
received = 0 received = 0
@ -79,7 +80,7 @@ def send_0mq(args):
zmq_socket.send(complex_values.tobytes(), copy=False) # Zero-copy send zmq_socket.send(complex_values.tobytes(), copy=False) # Zero-copy send
end_time = time.perf_counter() end_time = time.perf_counter()
print(f"Publish time: {end_time-start_time:.4f}s") # print(f"Publish time: {end_time-start_time:.4f}s")
start_time = end_time start_time = end_time