<div dir="ltr">You're good at what you do mate, thanks! You want a patch? I think just might be our slow antique hardware though to be honest.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 18, 2018 at 2:57 PM, Aleksander Morgado <span dir="ltr"><<a href="mailto:aleksander@aleksander.es" target="_blank">aleksander@aleksander.es</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">2018-04-25T07:35:16.132117 ModemManager[1797]: <debug> (ttyACM1)<br>
device open count is 2 (open)<br>
2018-04-25T07:35:16.143804 ModemManager[1797]: <debug> (ttyACM1): --><br>
'AT+CIND?<CR>'<br>
2018-04-25T07:35:16.876211 ModemManager[1797]: <debug> (ttyACM1): <--<br>
'<CR><LF>+CIEV: 1,2<CR><LF>'<br>
2018-04-25T07:35:16.955301 ModemManager[1797]: <debug> (ttyACM0): <--<br>
'<CR><LF>+CIEV: 1,2<CR><LF>'<br>
2018-04-25T07:35:19.121047 ModemManager[1797]: <debug> (ttyACM1)<br>
device open count is 3 (open)<br>
2018-04-25T07:35:19.134009 ModemManager[1797]: <debug> (ttyACM1)<br>
device open count is 4 (open)<br>
2018-04-25T07:35:19.146082 ModemManager[1797]: <debug> (ttyACM1)<br>
device open count is 3 (close)<br>
2018-04-25T07:35:19.155738 ModemManager[1797]: <debug> (ttyACM1): --><br>
'AT^SWWAN?<CR>'<br>
2018-04-25T07:35:20.317705 ModemManager[1797]: <debug> (ttyACM0): <--<br>
'<CR><LF>+CIEV: 1,3<CR><LF>'<br>
2018-04-25T07:35:20.398151 ModemManager[1797]: <debug> (ttyACM1): <--<br>
'<CR><LF>+CIND:<br>
0,2,1,1,1,0,1,0<CR><LF><CR><<wbr>LF>OK<CR><LF><CR><LF>+CIEV:<br>
1,3<CR><LF><CR><LF>+CIEV: psinfo,6<CR><LF><CR><LF>+CREG:<br>
5,"1611","0217BCC",2<CR><LF><<wbr>CR><LF>+CGREG:<br>
5,"1611","0217BCC",2<CR><LF><<wbr>CR><LF>+CIEV: psinfo,10<CR><LF>'<br>
2018-04-25T07:35:20.413390 ModemManager[1797]: <debug> Modem<br>
/org/freedesktop/<wbr>ModemManager1/Modem/0: access technology changed<br>
(hsdpa, hsupa -> umts)<br>
2018-04-25T07:35:20.427281 ModemManager[1797]: <debug> Modem<br>
/org/freedesktop/<wbr>ModemManager1/Modem/0: access technology changed<br>
(umts -> hsdpa, hsupa)<br>
2018-04-25T07:35:20.438959 ModemManager[1797]: <warn> checking if<br>
connected failed: Couldn't parse ^SWWAN response: '+CIND:<br>
0,2,1,1,1,0,1,0'<br>
<br>
</div></div>Look at the AT+CIND? we send at 07:35:16. There's no reply to that one<br>
in 3s, so we just keep on with our logic, and the response to the<br>
+CIND? comes when we're waiting for the AT^SWWAN response.<br>
We should make the AT+CIND? command timeout longer than 3s; in this<br>
case something like 4s or 5s would have been enough.<br>
<span class="HOEnZb"><font color="#888888"><br>
-- <br>
Aleksander<br>
<a href="https://aleksander.es" rel="noreferrer" target="_blank">https://aleksander.es</a><br>
</font></span></blockquote></div><br></div>