Sim added / extracted not detected

Aleksander Morgado aleksander at aleksander.es
Wed Oct 16 15:46:55 UTC 2019


Hey,
>>
>> >> I am developing an application which makes use of the libmm-glib high level API and I have been making some tests and I have not been able to detect when a SIM is added or removed (I know its not very common to >>add/extract it on runtime but I want to be aware of this in my app).
>> >>
>>
>> >What modem are you using? We don't support SIM hotplug events on every
>> > device out there. If I'm not mistaken, it's only available/enabled for
>> > Telit and all MBIM based devices for now.
>
>
>   At the moment I am trying to achieve this with a EM7455 Sierra Wireless modem.
>
>

Is the modem being managed in MBIM or QMI mode? If you switch the
modem to MBIM mode, you may get SIM hotswap supported.

E.g. in my case my MC7455 is in AT+QMI mode:

$ sudo qmicli -d /dev/cdc-wdm1 -p --dms-swi-get-usb-composition
[/dev/cdc-wdm1] Successfully retrieved USB compositions:
    [*] USB composition 6: DM, NMEA, AT, QMI
        USB composition 8: DM, NMEA, AT, MBIM
        USB composition 9: MBIM

And I can switch it to AT+MBIM like this:
$ sudo qmicli -d /dev/cdc-wdm1 -p --dms-swi-set-usb-composition=8
$ sudo qmicli -d /dev/cdc-wdm1 -p --dms-set-operating-mode=offline
$ sudo qmicli -d /dev/cdc-wdm1 -p --dms-set-operating-mode=reset

-- 
Aleksander
https://aleksander.es


More information about the ModemManager-devel mailing list