sim hot swap problem with Telit GE910-QUAD

Carlo Lobrano c.lobrano at gmail.com
Thu Jul 20 08:09:03 UTC 2017


Hi Tim,

> I think that the commands which mm issue causes it to close and reopen
> the SIM and this takes longer than mm is giving it.  How should I work
> around this?

This modem has an unsolicited signal (QSS) that shows the presence and
status of the SIM.
According to this signal, it seems that your SIM is detaching/attaching
frequently (an unsolicited
QSS 0 means SIM removed, while 1 means SIM inserted)

    ModemManager[27568]: <debug> (ttyUSB0): <-- '<CR>'
    ModemManager[27568]: <debug> (ttyUSB0): <-- '<LF>'
    ModemManager[27568]: <debug> (ttyUSB0): <-- '#'
    ModemManager[27568]: <debug> (ttyUSB0): <-- 'Q'
    ModemManager[27568]: <debug> (ttyUSB0): <-- 'S'
    ModemManager[27568]: <debug> (ttyUSB0): <-- 'S'
    ModemManager[27568]: <debug> (ttyUSB0): <-- ':'
    ModemManager[27568]: <debug> (ttyUSB0): <-- ' '
    ModemManager[27568]: <debug> (ttyUSB0): <-- '1'
    ModemManager[27568]: <debug> (ttyUSB0): <-- '<CR>'
    ModemManager[27568]: <debug> (ttyUSB0): <-- '<LF>'
    ModemManager[27568]: <debug> QSS: status changed 'sim-removed ->
sim-inserted
    ModemManager[27568]: <info> QSS: SIM swap detected

then again

    ModemManager[27568]: <debug> (ttyUSB0): <-- '<CR><LF>#QSS: 0<CR><LF>'

After this last status change, even other commands return with "SIM missing"

    ModemManager[27568]: <debug> (ttyUSB0): --> 'AT+CPIN?<CR>'
    ModemManager[27568]: <debug> (ttyUSB0): <-- '<CR>'
    ModemManager[27568]: <debug> (ttyUSB0): <-- '<LF>+C'
    ModemManager[27568]: <debug> (ttyUSB0): <-- 'M'
    ModemManager[27568]: <debug> (ttyUSB0): <-- 'E'
    ModemManager[27568]: <debug> (ttyUSB0): <-- ' '
    ModemManager[27568]: <debug> (ttyUSB0): <-- 'E'
    ModemManager[27568]: <debug> (ttyUSB0): <-- 'R'
    ModemManager[27568]: <debug> (ttyUSB0): <-- 'R'
    ModemManager[27568]: <debug> (ttyUSB0): <-- 'O'
    ModemManager[27568]: <debug> (ttyUSB0): <-- 'R'
    ModemManager[27568]: <debug> (ttyUSB0): <-- ':'
    ModemManager[27568]: <debug> (ttyUSB0): <-- ' '
    ModemManager[27568]: <debug> (ttyUSB0): <-- '1'
    ModemManager[27568]: <debug> (ttyUSB0): <-- '0'
    ModemManager[27568]: <debug> (ttyUSB0): <-- '<CR>'
    ModemManager[27568]: <debug> (ttyUSB0): <-- '<LF>'
    ModemManager[27568]: <debug> Got failure code 10: SIM not inserted


according to this, ModemManager behavior is correct.
It should be investigated why those notifications come. Could you check the
status of your SIM or SIM holder?

On 19 July 2017 at 18:25, Tim Small <tim at seoss.co.uk> wrote:

> Hello,
>
> When probing a Telit GE910-QUAD (with a SIM inserted) mm always gives me
> something like this in the debug logs:
>
> ModemManager[26945]: <debug> (ttyUSB0) device open count is 2 (close)
> ModemManager[26945]: <debug> (ttyUSB0): --> 'AT#QSS?<CR>'
> ModemManager[26945]: <debug> (ttyUSB0): <-- '<CR>'
> ModemManager[26945]: <debug> (ttyUSB0): <-- '<LF>#'
> ModemManager[26945]: <debug> (ttyUSB0): <-- 'Q'
> ModemManager[26945]: <debug> (ttyUSB0): <-- 'S'
> ModemManager[26945]: <debug> (ttyUSB0): <-- 'S'
> ModemManager[26945]: <debug> (ttyUSB0): <-- ':'
> ModemManager[26945]: <debug> (ttyUSB0): <-- ' '
> ModemManager[26945]: <debug> (ttyUSB0): <-- '1'
> ModemManager[26945]: <debug> (ttyUSB0): <-- ','
> ModemManager[26945]: <debug> (ttyUSB0): <-- '0'
> ModemManager[26945]: <debug> (ttyUSB0): <-- '<CR>'
> ModemManager[26945]: <debug> (ttyUSB0): <-- '<LF>'
> ModemManager[26945]: <debug> (ttyUSB0): <-- '<CR>'
> ModemManager[26945]: <debug> (ttyUSB0): <-- '<LF>'
> ModemManager[26945]: <debug> (ttyUSB0): <-- 'OK'
> ModemManager[26945]: <debug> (ttyUSB0): <-- '<CR>'
> ModemManager[26945]: <debug> (ttyUSB0): <-- '<LF>'
> ModemManager[26945]: <info>  QSS: current status is 'sim-removed'
> ModemManager[26945]: <debug> (ttyUSB0) device open count is 3 (open)
> ModemManager[26945]: <debug> (ttyUSB0) device open count is 2 (close)
> ModemManager[26945]: <debug> (ttyUSB0): --> 'AT#QSS=1<CR>'
> ModemManager[26945]: <debug> (ttyUSB0): <-- '<CR>'
> ModemManager[26945]: <debug> (ttyUSB0): <-- '<LF>OK'
> ModemManager[26945]: <debug> (ttyUSB0): <-- '<CR>'
> ModemManager[26945]: <debug> (ttyUSB0): <-- '<LF>'
> ModemManager[26945]: <debug> Iface modem: SIM hot swap setup succeded
> ModemManager[26945]: <debug> checking if unlock required...
> ModemManager[26945]: <debug> (ttyUSB0) device open count is 3 (open)
> ModemManager[26945]: <debug> (ttyUSB0) device open count is 2 (close)
> ModemManager[26945]: <debug> (ttyUSB0): --> 'AT+CPIN?<CR>'
> ModemManager[26945]: <debug> (ttyUSB0): <-- '<CR>'
> ModemManager[26945]: <debug> (ttyUSB0): <-- '<LF>+'
> ModemManager[26945]: <debug> (ttyUSB0): <-- 'C'
> ModemManager[26945]: <debug> (ttyUSB0): <-- 'M'
> ModemManager[26945]: <debug> (ttyUSB0): <-- 'E'
> ModemManager[26945]: <debug> (ttyUSB0): <-- ' '
> ModemManager[26945]: <debug> (ttyUSB0): <-- 'E'
> ModemManager[26945]: <debug> (ttyUSB0): <-- 'R'
> ModemManager[26945]: <debug> (ttyUSB0): <-- 'R'
> ModemManager[26945]: <debug> (ttyUSB0): <-- 'O'
> ModemManager[26945]: <debug> (ttyUSB0): <-- 'R'
> ModemManager[26945]: <debug> (ttyUSB0): <-- ':'
> ModemManager[26945]: <debug> (ttyUSB0): <-- ' '
> ModemManager[26945]: <debug> (ttyUSB0): <-- '1'
> ModemManager[26945]: <debug> (ttyUSB0): <-- '0'
> ModemManager[26945]: <debug> (ttyUSB0): <-- '<CR>'
> ModemManager[26945]: <debug> (ttyUSB0): <-- '<LF>'
> ModemManager[26945]: <debug> Got failure code 10: SIM not inserted
> ModemManager[26945]: <debug> Couldn't check if unlock required: 'SIM not
> inserted'
> ModemManager[26945]: <info>  Modem: state changed (unknown -> failed)
> ModemManager[26945]: <warn>  Modem couldn't be initialized: Couldn't
> check unlock status: SIM not inserted
> ModemManager[26945]: <debug> (ttyUSB0) device open count is 1 (close)
> ModemManager[26945]: <debug> Couldn't initialize interface: 'Firmware
> interface not available'
> ModemManager[26945]: <debug> Creating ports context for SIM hot swap
> ModemManager[26945]: <debug> (ttyUSB0) device open count is 2 (open)
> ModemManager[26945]: <info>  SIM is missing, but the modem supports SIM
> hot swap. Waiting for SIM...
> ModemManager[26945]: <debug> Couldn't finish initialization in the
> current state: 'Modem is unusable due to SIM missing, cannot fully
> initialize, waiting for SIM insertion.'
> ModemManager[26945]: <debug> [device
> /sys/devices/pci0000:00/0000:00:14.0/usb1/1-9] exported modem at path
> '/org/freedesktop/ModemManager1/Modem/0'
> ModemManager[26945]: <debug> [device
> /sys/devices/pci0000:00/0000:00:14.0/usb1/1-9]    plugin:  Telit
> ModemManager[26945]: <debug> [device
> /sys/devices/pci0000:00/0000:00:14.0/usb1/1-9]    vid:pid: 0x067B:0x2303
> ModemManager[26945]: <debug> (ttyUSB0) device open count is 1 (close)
>
>
> ... If I then Ctrl-C ModemManager, and open up a terminal program, and
> issue "AT+CPIN?" I get:
>
> +CPIN: READY
>
> OK
>
> I think that the commands which mm issue causes it to close and reopen
> the SIM and this takes longer than mm is giving it.  How should I work
> around this?
>
> See also:
>
> https://gist.github.com/tim-seoss/577082a6aa9041a9e79e07e9d7f9adf0
>
> Cheers,
>
> Tim.
>
>
> _______________________________________________
> ModemManager-devel mailing list
> ModemManager-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20170720/3b093431/attachment.html>


More information about the ModemManager-devel mailing list