From abede5b9e330f74ce5a2da2440d0630d551edc13 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Sun, 15 Sep 2019 15:16:11 +0200 Subject: [PATCH] simtech: increase +CNSMOD command timeout From 5s to 20s, as it seems it could take much more to complete and get a response, as seen in the logs below. [1568553228.546862] (ttyUSB3): --> 'AT+CNSMOD=1' [1568553233.799470] (ttyUSB3): --> 'AT+AUTOCSQ=1,1' [1568553238.798866] (ttyUSB3) setting up 3GPP unsolicited registration messages handlers [1568553238.798932] (ttyUSB2) setting up 3GPP unsolicited registration messages handlers [1568553238.798990] (ttyUSB3) device open count is 1 (close) [1568553238.799029] (tty/ttyUSB3) at port timed out 2 consecutive times [1568553238.799094] (ttyUSB3) device open count is 2 (open) [1568553238.799148] (ttyUSB3): --> 'AT+CREG=2' [1568553241.798727] (tty/ttyUSB3) at port timed out 3 consecutive times [1568553241.798799] (ttyUSB3): --> 'AT+CREG=1' [1568553244.795389] Enabling unsolicited registration events in primary port failed: 'AT sequence failed' [1568553244.795462] (ttyUSB2) device open count is 2 (open) [1568553244.795507] (ttyUSB3) device open count is 1 (close) [1568553244.795545] (tty/ttyUSB3) at port timed out 4 consecutive times [1568553244.795588] (ttyUSB2): --> 'AT+CREG=2' [1568553244.800815] (ttyUSB3): <-- 'OKOK' [1568553244.801624] (ttyUSB3): <-- 'OKOK' [1568553244.808710] (ttyUSB2): <-- 'OK' --- plugins/simtech/mm-broadband-modem-simtech.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/simtech/mm-broadband-modem-simtech.c b/plugins/simtech/mm-broadband-modem-simtech.c index c511629e..b2001146 100644 --- a/plugins/simtech/mm-broadband-modem-simtech.c +++ b/plugins/simtech/mm-broadband-modem-simtech.c @@ -209,7 +209,7 @@ own_enable_unsolicited_events_ready (MMBaseModem *self, static const MMBaseModemAtCommand unsolicited_enable_sequence[] = { /* Autoreport access technology changes */ - { "+CNSMOD=1", 5, FALSE, NULL }, + { "+CNSMOD=1", 20, FALSE, NULL }, /* Autoreport CSQ (first arg), and only report when it changes (second arg) */ { "+AUTOCSQ=1,1", 5, FALSE, NULL }, { NULL }