<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Hi Tim,<br><br>> I think that the commands which mm issue causes it to close and reopen<br>> the SIM and this takes longer than mm is giving it. How should I work<br>> around this?<br><br>This modem has an unsolicited signal (QSS) that shows the presence and status of the SIM.<br>According to this signal, it seems that your SIM is detaching/attaching frequently (an unsolicited<br>QSS 0 means SIM removed, while 1 means SIM inserted)<br><br> ModemManager[27568]: <debug> (ttyUSB0): <-- '<CR>'<br> ModemManager[27568]: <debug> (ttyUSB0): <-- '<LF>'<br> ModemManager[27568]: <debug> (ttyUSB0): <-- '#'<br> ModemManager[27568]: <debug> (ttyUSB0): <-- 'Q'<br> ModemManager[27568]: <debug> (ttyUSB0): <-- 'S'<br> ModemManager[27568]: <debug> (ttyUSB0): <-- 'S'<br> ModemManager[27568]: <debug> (ttyUSB0): <-- ':'<br> ModemManager[27568]: <debug> (ttyUSB0): <-- ' '<br> ModemManager[27568]: <debug> (ttyUSB0): <-- '1'<br> ModemManager[27568]: <debug> (ttyUSB0): <-- '<CR>'<br> ModemManager[27568]: <debug> (ttyUSB0): <-- '<LF>'<br> ModemManager[27568]: <debug> QSS: status changed 'sim-removed -> sim-inserted<br> ModemManager[27568]: <info> QSS: SIM swap detected<br><br>then again<br><br> ModemManager[27568]: <debug> (ttyUSB0): <-- '<CR><LF>#QSS: 0<CR><LF>'<br><br>After this last status change, even other commands return with "SIM missing"<br><br> ModemManager[27568]: <debug> (ttyUSB0): --> 'AT+CPIN?<CR>'<br> ModemManager[27568]: <debug> (ttyUSB0): <-- '<CR>'<br> ModemManager[27568]: <debug> (ttyUSB0): <-- '<LF>+C'<br> ModemManager[27568]: <debug> (ttyUSB0): <-- 'M'<br> ModemManager[27568]: <debug> (ttyUSB0): <-- 'E'<br> ModemManager[27568]: <debug> (ttyUSB0): <-- ' '<br> ModemManager[27568]: <debug> (ttyUSB0): <-- 'E'<br> ModemManager[27568]: <debug> (ttyUSB0): <-- 'R'<br> ModemManager[27568]: <debug> (ttyUSB0): <-- 'R'<br> ModemManager[27568]: <debug> (ttyUSB0): <-- 'O'<br> ModemManager[27568]: <debug> (ttyUSB0): <-- 'R'<br> ModemManager[27568]: <debug> (ttyUSB0): <-- ':'<br> ModemManager[27568]: <debug> (ttyUSB0): <-- ' '<br> ModemManager[27568]: <debug> (ttyUSB0): <-- '1'<br> ModemManager[27568]: <debug> (ttyUSB0): <-- '0'<br> ModemManager[27568]: <debug> (ttyUSB0): <-- '<CR>'<br> ModemManager[27568]: <debug> (ttyUSB0): <-- '<LF>'<br> ModemManager[27568]: <debug> Got failure code 10: SIM not inserted<br><br><br>according to this, ModemManager behavior is correct.<br>It should be investigated why those notifications come. Could you check the status of your SIM or SIM holder?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 19 July 2017 at 18:25, Tim Small <span dir="ltr"><<a href="mailto:tim@seoss.co.uk" target="_blank">tim@seoss.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
When probing a Telit GE910-QUAD (with a SIM inserted) mm always gives me<br>
something like this in the debug logs:<br>
<br>
ModemManager[26945]: <debug> (ttyUSB0) device open count is 2 (close)<br>
ModemManager[26945]: <debug> (ttyUSB0): --> 'AT#QSS?<CR>'<br>
ModemManager[26945]: <debug> (ttyUSB0): <-- '<CR>'<br>
ModemManager[26945]: <debug> (ttyUSB0): <-- '<LF>#'<br>
ModemManager[26945]: <debug> (ttyUSB0): <-- 'Q'<br>
ModemManager[26945]: <debug> (ttyUSB0): <-- 'S'<br>
ModemManager[26945]: <debug> (ttyUSB0): <-- 'S'<br>
ModemManager[26945]: <debug> (ttyUSB0): <-- ':'<br>
ModemManager[26945]: <debug> (ttyUSB0): <-- ' '<br>
ModemManager[26945]: <debug> (ttyUSB0): <-- '1'<br>
ModemManager[26945]: <debug> (ttyUSB0): <-- ','<br>
ModemManager[26945]: <debug> (ttyUSB0): <-- '0'<br>
ModemManager[26945]: <debug> (ttyUSB0): <-- '<CR>'<br>
ModemManager[26945]: <debug> (ttyUSB0): <-- '<LF>'<br>
ModemManager[26945]: <debug> (ttyUSB0): <-- '<CR>'<br>
ModemManager[26945]: <debug> (ttyUSB0): <-- '<LF>'<br>
ModemManager[26945]: <debug> (ttyUSB0): <-- 'OK'<br>
ModemManager[26945]: <debug> (ttyUSB0): <-- '<CR>'<br>
ModemManager[26945]: <debug> (ttyUSB0): <-- '<LF>'<br>
ModemManager[26945]: <info> QSS: current status is 'sim-removed'<br>
ModemManager[26945]: <debug> (ttyUSB0) device open count is 3 (open)<br>
ModemManager[26945]: <debug> (ttyUSB0) device open count is 2 (close)<br>
ModemManager[26945]: <debug> (ttyUSB0): --> 'AT#QSS=1<CR>'<br>
ModemManager[26945]: <debug> (ttyUSB0): <-- '<CR>'<br>
ModemManager[26945]: <debug> (ttyUSB0): <-- '<LF>OK'<br>
ModemManager[26945]: <debug> (ttyUSB0): <-- '<CR>'<br>
ModemManager[26945]: <debug> (ttyUSB0): <-- '<LF>'<br>
ModemManager[26945]: <debug> Iface modem: SIM hot swap setup succeded<br>
ModemManager[26945]: <debug> checking if unlock required...<br>
ModemManager[26945]: <debug> (ttyUSB0) device open count is 3 (open)<br>
ModemManager[26945]: <debug> (ttyUSB0) device open count is 2 (close)<br>
ModemManager[26945]: <debug> (ttyUSB0): --> 'AT+CPIN?<CR>'<br>
ModemManager[26945]: <debug> (ttyUSB0): <-- '<CR>'<br>
ModemManager[26945]: <debug> (ttyUSB0): <-- '<LF>+'<br>
ModemManager[26945]: <debug> (ttyUSB0): <-- 'C'<br>
ModemManager[26945]: <debug> (ttyUSB0): <-- 'M'<br>
ModemManager[26945]: <debug> (ttyUSB0): <-- 'E'<br>
ModemManager[26945]: <debug> (ttyUSB0): <-- ' '<br>
ModemManager[26945]: <debug> (ttyUSB0): <-- 'E'<br>
ModemManager[26945]: <debug> (ttyUSB0): <-- 'R'<br>
ModemManager[26945]: <debug> (ttyUSB0): <-- 'R'<br>
ModemManager[26945]: <debug> (ttyUSB0): <-- 'O'<br>
ModemManager[26945]: <debug> (ttyUSB0): <-- 'R'<br>
ModemManager[26945]: <debug> (ttyUSB0): <-- ':'<br>
ModemManager[26945]: <debug> (ttyUSB0): <-- ' '<br>
ModemManager[26945]: <debug> (ttyUSB0): <-- '1'<br>
ModemManager[26945]: <debug> (ttyUSB0): <-- '0'<br>
ModemManager[26945]: <debug> (ttyUSB0): <-- '<CR>'<br>
ModemManager[26945]: <debug> (ttyUSB0): <-- '<LF>'<br>
ModemManager[26945]: <debug> Got failure code 10: SIM not inserted<br>
ModemManager[26945]: <debug> Couldn't check if unlock required: 'SIM not<br>
inserted'<br>
ModemManager[26945]: <info> Modem: state changed (unknown -> failed)<br>
ModemManager[26945]: <warn> Modem couldn't be initialized: Couldn't<br>
check unlock status: SIM not inserted<br>
ModemManager[26945]: <debug> (ttyUSB0) device open count is 1 (close)<br>
ModemManager[26945]: <debug> Couldn't initialize interface: 'Firmware<br>
interface not available'<br>
ModemManager[26945]: <debug> Creating ports context for SIM hot swap<br>
ModemManager[26945]: <debug> (ttyUSB0) device open count is 2 (open)<br>
ModemManager[26945]: <info> SIM is missing, but the modem supports SIM<br>
hot swap. Waiting for SIM...<br>
ModemManager[26945]: <debug> Couldn't finish initialization in the<br>
current state: 'Modem is unusable due to SIM missing, cannot fully<br>
initialize, waiting for SIM insertion.'<br>
ModemManager[26945]: <debug> [device<br>
/sys/devices/pci0000:00/0000:<wbr>00:14.0/usb1/1-9] exported modem at path<br>
'/org/freedesktop/<wbr>ModemManager1/Modem/0'<br>
ModemManager[26945]: <debug> [device<br>
/sys/devices/pci0000:00/0000:<wbr>00:14.0/usb1/1-9] plugin: Telit<br>
ModemManager[26945]: <debug> [device<br>
/sys/devices/pci0000:00/0000:<wbr>00:14.0/usb1/1-9] vid:pid: 0x067B:0x2303<br>
ModemManager[26945]: <debug> (ttyUSB0) device open count is 1 (close)<br>
<br>
<br>
... If I then Ctrl-C ModemManager, and open up a terminal program, and<br>
issue "AT+CPIN?" I get:<br>
<br>
+CPIN: READY<br>
<br>
OK<br>
<br>
I think that the commands which mm issue causes it to close and reopen<br>
the SIM and this takes longer than mm is giving it. How should I work<br>
around this?<br>
<br>
See also:<br>
<br>
<a href="https://gist.github.com/tim-seoss/577082a6aa9041a9e79e07e9d7f9adf0" rel="noreferrer" target="_blank">https://gist.github.com/tim-<wbr>seoss/<wbr>577082a6aa9041a9e79e07e9d7f9ad<wbr>f0</a><br>
<br>
Cheers,<br>
<br>
Tim.<br>
<br>
<br>
______________________________<wbr>_________________<br>
ModemManager-devel mailing list<br>
<a href="mailto:ModemManager-devel@lists.freedesktop.org">ModemManager-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/modemmanager-<wbr>devel</a><br>
</blockquote></div><br></div>