Ver código fonte

Increases the serial response waiting time.

master
Lukas Prause 3 anos atrás
pai
commit
ba023f3573
2 arquivos alterados com 2 adições e 2 exclusões
  1. +0
    -0
      format_serial_txt_to_csv.py
  2. +2
    -2
      measurement_main.py

+ 0
- 0
format_serial_txt_to_csv.py Ver arquivo


+ 2
- 2
measurement_main.py Ver arquivo

@@ -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", ";")

Carregando…
Cancelar
Salvar