Loading upper_tester/__main__.py +7 −2 Changes for upper_tester/__main__.py: 7 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -44,8 +44,14 @@ def main() -> None: modem = AtModem(args.device, args.baud) modem.open() log = logging.getLogger("ut") ok, text = modem.execute("ATE0") logging.getLogger("ut").info("ATE0 -> %s %r", ok, text) log.info("ATE0 -> %s %r", ok, text) # Verbose numeric+text error reporting (3GPP TS 27.007 §9.1): without this, every failing AT # command comes back as a bare "ERROR" with no cause, making the actual TTCN-side failures # (e.g. an unsupported/misapplied command) indistinguishable from a real, temporary error. ok, text = modem.execute("AT+CMEE=2") log.info("AT+CMEE=2 -> %s %r", ok, text) async def run() -> None: """! @brief Start the TCP server and serve until cancelled. """ Loading @@ -56,7 +62,6 @@ def main() -> None: try: asyncio.run(run()) except KeyboardInterrupt: log = logging.getLogger("ut") log.info("Ctrl-C received: resetting the modem before exit") try: ok, text = modem.execute("AT+CFUN=1,1") Loading upper_tester/dummy_modem.py +1 −0 Changes for upper_tester/dummy_modem.py: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ log = logging.getLogger("ut.dummy_modem") DEFAULT_SCRIPT = { "ATI": ["Quectel", "RM520N-GL", "Revision: RM520NGLAAR01A06M4G", "OK"], "ATE0": ["OK"], "AT+CMEE=2": ["OK"], "AT+CFUN=0": ["OK"], "AT+CFUN=1": ["OK"], "AT+CFUN=1,1": ["OK"], Loading Loading
upper_tester/__main__.py +7 −2 Changes for upper_tester/__main__.py: 7 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -44,8 +44,14 @@ def main() -> None: modem = AtModem(args.device, args.baud) modem.open() log = logging.getLogger("ut") ok, text = modem.execute("ATE0") logging.getLogger("ut").info("ATE0 -> %s %r", ok, text) log.info("ATE0 -> %s %r", ok, text) # Verbose numeric+text error reporting (3GPP TS 27.007 §9.1): without this, every failing AT # command comes back as a bare "ERROR" with no cause, making the actual TTCN-side failures # (e.g. an unsupported/misapplied command) indistinguishable from a real, temporary error. ok, text = modem.execute("AT+CMEE=2") log.info("AT+CMEE=2 -> %s %r", ok, text) async def run() -> None: """! @brief Start the TCP server and serve until cancelled. """ Loading @@ -56,7 +62,6 @@ def main() -> None: try: asyncio.run(run()) except KeyboardInterrupt: log = logging.getLogger("ut") log.info("Ctrl-C received: resetting the modem before exit") try: ok, text = modem.execute("AT+CFUN=1,1") Loading
upper_tester/dummy_modem.py +1 −0 Changes for upper_tester/dummy_modem.py: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ log = logging.getLogger("ut.dummy_modem") DEFAULT_SCRIPT = { "ATI": ["Quectel", "RM520N-GL", "Revision: RM520NGLAAR01A06M4G", "OK"], "ATE0": ["OK"], "AT+CMEE=2": ["OK"], "AT+CFUN=0": ["OK"], "AT+CFUN=1": ["OK"], "AT+CFUN=1,1": ["OK"], Loading