<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div class="im"><span style="color:rgb(34,34,34)">See some comments below.</span><br></div>
<br>
But I'm mostly interested in what the exact issues are. What does<br>
NDISSTATQRY reply that the parser doesn't like? Which is the exact<br>
response string? Shouldn't we just improve the parser to handle those cases?<br>
<div class="im"><br></div></blockquote><div><br></div>We observe an issue on MU736 that ^NDISSTATQRY? sometimes reports +CME ERROR: 100 (Unknown error). The modem recovers if we retry the command, which is what this patch tries to accomplish.<div>

<br></div><div>BTW, should we use the "^NDISSTAT" unsolicited message to determine the connection status, instead of polling via "^NDISSTATQRY?" ?</div><div><div class="gmail_extra"><br></div><div class="gmail_extra">

[1377279766.574627] [mm-at-serial-port.c:436] debug_log(): (ttyUSB0): --> 'AT^NDISSTATQRY?<CR>'<br>[1377279766.595906] [mm-at-serial-port.c:436] debug_log(): (ttyUSB0): <-- '<CR><LF>^NDISSTATQRY: 0,,,"IPV4"<CR><LF><CR><LF>OK<CR><LF>'<br>

[1377279767.575531] [mm-at-serial-port.c:436] debug_log(): (ttyUSB0): --> 'AT^NDISSTATQRY?<CR>'<br>[1377279767.593466] [mm-at-serial-port.c:436] debug_log(): (ttyUSB0): <-- '<CR><LF>^NDISSTAT: 1,,,"IPV4"<CR><LF>'<br>

[1377279767.598553] [mm-at-serial-port.c:436] debug_log(): (ttyUSB0): <-- '<CR><LF>^MODE: 5,9<CR><LF>'<br>[1377279767.598796] [huawei/mm-broadband-modem-huawei.c:1488] huawei_mode_changed(): Access Technology: 'hspa-plus'<br>

[1377279767.599057] [mm-iface-modem.c:726] mm_iface_modem_update_access_technologies(): Modem /org/freedesktop/ModemManager1/Modem/0: access technology changed (umts -> hspa-plus)<br>[1377279767.605640] [mm-at-serial-port.c:436] debug_log(): (ttyUSB0): <-- '<CR><LF>+CME ERROR: 100<CR><LF>'<br>

[1377279767.605939] [mm-serial-parsers.c:364] mm_serial_parser_v1_parse(): Got failure code 100: Unknown error<br>[1377279767.606101] [huawei/mm-broadband-bearer-huawei.c:138] connect_ndisstatqry_check_ready(): Ignoring NDISSTATQRY error: NO RESPONSE<br>

[1377279767.606236] [mm-serial-port.c:1018] mm_serial_port_close(): (ttyUSB0) device open count is 1 (close)<br>[1377279768.574534] [mm-serial-port.c:972] mm_serial_port_open(): (ttyUSB0) device open count is 2 (open)<br>

[1377279768.574931] [mm-at-serial-port.c:436] debug_log(): (ttyUSB0): --> 'AT^NDISSTATQRY?<CR>'<br></div></div><div>[1377279768.594524] [mm-at-serial-port.c:436] debug_log(): (ttyUSB0): <-- '<CR><LF>^NDISSTATQRY: 1,,,"IPV4"<CR><LF><CR><LF>OK<CR><LF>' </div>

</div></div></div>