Adds monitoring for carrier aggregation.

This commit is contained in:
Lukas Prause
2023-03-13 12:30:10 +01:00
parent 861c764d75
commit 178862a0e3

View File

@@ -23,6 +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_CQI_COMMAND = b'AT+QNWCFG="nr5g_csi"\r\n'
NR_SERVINGCELL_COMMAND = b'AT+QENG="servingcell"\r\n' NR_SERVINGCELL_COMMAND = b'AT+QENG="servingcell"\r\n'
NR_EN_DC_STATUS_COMMAND = b"AT+QENDC\r\n" NR_EN_DC_STATUS_COMMAND = b"AT+QENDC\r\n"
NE_CA_COMMAND = b'AT+QCAINFO\r\n'
NR_SERIAL_RESPOND_TIME = 0.5 # s NR_SERIAL_RESPOND_TIME = 0.5 # s
CMD_TIME_EPOCH = "date +%s" CMD_TIME_EPOCH = "date +%s"
TIMEOUT_OFFSET = 10.0 TIMEOUT_OFFSET = 10.0
@@ -219,7 +220,7 @@ def raise_receive_window():
def monitor_serial(ser, output_file): def monitor_serial(ser, output_file):
run_cmds = [NR_CQI_COMMAND, NR_SERVINGCELL_COMMAND, NR_EN_DC_STATUS_COMMAND] run_cmds = [NR_CQI_COMMAND, NR_SERVINGCELL_COMMAND, NR_EN_DC_STATUS_COMMAND, NE_CA_COMMAND]
try: try:
while ser.is_open: while ser.is_open:
response = subprocess.check_output(CMD_TIME_EPOCH, shell=True).decode( response = subprocess.check_output(CMD_TIME_EPOCH, shell=True).decode(