From ba023f35734ce4e8cf5d0741895b3abfda38f349 Mon Sep 17 00:00:00 2001 From: Lukas Prause Date: Mon, 14 Nov 2022 16:47:08 +0100 Subject: [PATCH] Increases the serial response waiting time. --- format_serial_txt_to_csv.py | 0 measurement_main.py | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 format_serial_txt_to_csv.py diff --git a/format_serial_txt_to_csv.py b/format_serial_txt_to_csv.py new file mode 100644 index 0000000..e69de29 diff --git a/measurement_main.py b/measurement_main.py index bd54624..ce63775 100755 --- a/measurement_main.py +++ b/measurement_main.py @@ -23,7 +23,7 @@ GET_IPV4_SHELL_COMMAND = "ip a | grep {} | grep inet | cut -d' ' -f6 | cut -d'/' NR_CQI_COMMAND = b'AT+QNWCFG="nr5g_csi"\r\n' NR_SERVINGCELL_COMMAND = b'AT+QENG="servingcell"\r\n' NR_EN_DC_STATUS_COMMAND = b"AT+QENDC\r\n" -NR_SERIAL_RESPOND_TIME = 0.3 # s +NR_SERIAL_RESPOND_TIME = 0.5 # s CMD_TIME_EPOCH = "date +%s" TIMEOUT_OFFSET = 10.0 WAIT_AFTER_IPERF = 5.0 @@ -224,7 +224,7 @@ def monitor_serial(ser, output_file): ) for cmd in run_cmds: ser.write(cmd) - sleep(0.3) + sleep(NR_SERIAL_RESPOND_TIME) response += ser.read(ser.inWaiting()).decode("utf-8") response = ( response.replace("\n", ";")