Dual SIM on Telit LE910C1-EU

Ulrich Mohr u.mohr at semex-engcon.com
Tue Jul 12 18:42:06 UTC 2022


Hey,

I use a telit LE910C1-EU with mbim interface. This modem has support for 
two sim slots and we want to use this feature with ModemManager (I am 
using Version 1.19.0)

What I want to do is

  * find out which slot is currently active
  * switch active slot if possible

I am able to switch the slot using AT commands directly. Using qmicli 
works as well. But I am not able to use mmcli to do so.
 From looking at the code, it seems that using AT commands is not 
implemented in the telit plugin and using qmi-over-mbim is not 
implemented for the uim service. It seems to me that there is some code 
for that in the mbim broadband modem, but I don't understand how that 
can work, since the service QMI_SERVICE_UIM is not included in the list 
of QMI service in the mbim implementation. I tried to include the 
service in the list, but that caused modem manager to crash since the 
modem is not a QMI modem (invalid cast)

So the question is how to implement that dual SIM support? To me, the 
most promising seems to support the UIM service via qmi-over-mbim, but 
it is not clear to me what the best way is to do so? Do you have some 
guidance how to proceed?

I attach parts of the starting log ....

-----------------------------

ModemManager[17594]: <info>  ModemManager (version 1.19.0) starting in 
system bus...
ModemManager[17594]: opening device...
ModemManager[17594]: cannot connect to proxy: Could not connect: 
Connection refused
ModemManager[17594]: spawning new mbim-proxy (try 1)...
ModemManager[17594]: [/dev/cdc-wdm0] Read max control message size from 
descriptors file: 4096
ModemManager[17594]: <info>  [cdc-wdm0/mbim] MBIM device is not QMI capable
ModemManager[17594]: [/dev/cdc-wdm0] closing device...
ModemManager[17594]: [/dev/cdc-wdm0] channel destroyed
ModemManager[17594]: <info>  [base-manager] couldn't check support for 
device 
'/sys/devices/platform/ahb/ahb:apb/f8004000.mmc/mmc_host/mmc1/mmc1:0001/mmc1:0001:1': 
not supported by any plugin
ModemManager[17594]: <info>  [base-manager] couldn't check support for 
device '/sys/devices/platform/ahb/ahb:apb/f802c000.ethernet': not 
supported by any plugin
ModemManager[17594]: <info>  [device 
/sys/devices/platform/ahb/700000.ehci/usb1/1-2] creating modem with 
plugin 'telit' and '5' ports
ModemManager[17594]: <warn>  [plugin/telit] could not grab port ttyUSB3: 
Cannot add port 'tty/ttyUSB3', unhandled port type
ModemManager[17594]: <warn>  [plugin/telit] could not grab port ttyUSB0: 
Cannot add port 'tty/ttyUSB0', unhandled port type
ModemManager[17594]: <info>  [base-manager] modem for device 
'/sys/devices/platform/ahb/700000.ehci/usb1/1-2' successfully created
ModemManager[17594]: opening device...
ModemManager[17594]: [/dev/cdc-wdm0] Read max control message size from 
descriptors file: 4096
ModemManager[17594]: [/dev/cdc-wdm0] Opening device with flags 
'version-info, proxy, mbim, expect-indications'...
ModemManager[17594]: [/dev/cdc-wdm0] created endpoint
ModemManager[17594]: [/dev/cdc-wdm0] creating MBIM device...
ModemManager[17594]: [/dev/cdc-wdm0] MBIM device created
ModemManager[17594]: [/dev/cdc-wdm0] opening MBIM device...
ModemManager[17594]: opening device...
ModemManager[17594]: [/dev/cdc-wdm0] Read max control message size from 
descriptors file: 4096
ModemManager[17594]: [/dev/cdc-wdm0] MBIM device open
ModemManager[17594]: [/dev/cdc-wdm0] Checking version info (15 retries)...
ModemManager[17594]: [/dev/cdc-wdm0] QMI Device supports 33 services:
ModemManager[17594]: [/dev/cdc-wdm0]    ctl (1.5)
ModemManager[17594]: [/dev/cdc-wdm0]    wds (1.67)
ModemManager[17594]: [/dev/cdc-wdm0]    dms (1.0)
ModemManager[17594]: [/dev/cdc-wdm0]    nas (1.25)
ModemManager[17594]: [/dev/cdc-wdm0]    qos (1.12)
ModemManager[17594]: [/dev/cdc-wdm0]    wms (1.10)
ModemManager[17594]: [/dev/cdc-wdm0]    auth (1.3)
ModemManager[17594]: [/dev/cdc-wdm0]    at (1.2)
ModemManager[17594]: [/dev/cdc-wdm0]    voice (2.1)
ModemManager[17594]: [/dev/cdc-wdm0]    cat2 (2.24)
*ModemManager[17594]: [/dev/cdc-wdm0]    uim (1.46)*
ModemManager[17594]: [/dev/cdc-wdm0]    pbm (1.4)
ModemManager[17594]: [/dev/cdc-wdm0]    test (1.0)
ModemManager[17594]: [/dev/cdc-wdm0]    loc (2.0)
ModemManager[17594]: [/dev/cdc-wdm0]    sar (1.0)
ModemManager[17594]: [/dev/cdc-wdm0]    ims (1.0)
ModemManager[17594]: [/dev/cdc-wdm0]    ts (1.0)
ModemManager[17594]: [/dev/cdc-wdm0]    tmd (1.0)
ModemManager[17594]: [/dev/cdc-wdm0]    wda (1.16)
ModemManager[17594]: [/dev/cdc-wdm0]    csvt (1.1)
ModemManager[17594]: [/dev/cdc-wdm0]    imsa (1.0)
ModemManager[17594]: [/dev/cdc-wdm0]    coex (1.0)
ModemManager[17594]: [/dev/cdc-wdm0]    pdc (1.0)
ModemManager[17594]: [/dev/cdc-wdm0]    rfrpe (1.0)
ModemManager[17594]: [/dev/cdc-wdm0]    dsd (1.0)
ModemManager[17594]: [/dev/cdc-wdm0]    unknown [0x2d] (1.0)
ModemManager[17594]: [/dev/cdc-wdm0]    unknown [0x30] (1.0)
ModemManager[17594]: [/dev/cdc-wdm0]    unknown [0x32] (1.0)
ModemManager[17594]: [/dev/cdc-wdm0]    unknown [0x36] (1.0)
ModemManager[17594]: [/dev/cdc-wdm0]    fota (1.0)
ModemManager[17594]: [/dev/cdc-wdm0]    gms (1.0)
ModemManager[17594]: [/dev/cdc-wdm0]    unknown [0xeb] (1.0)
ModemManager[17594]: [/dev/cdc-wdm0]    unknown [0xed] (1.0)
ModemManager[17594]: [/dev/cdc-wdm0] Enabling QMI indications via MBIM...
ModemManager[17594]: [/dev/cdc-wdm0] enabled QMI indications via MBIM
ModemManager[17594]: <info>  [modem0/cdc-wdm0/mbim] MBIM device is QMI 
capable
ModemManager[17594]: [/dev/cdc-wdm0] Allocating new client ID...
ModemManager[17594]: [/dev/cdc-wdm0] Registered 'dms' (version 1.0) 
client with ID '1'
ModemManager[17594]: [/dev/cdc-wdm0] Allocating new client ID...
ModemManager[17594]: [/dev/cdc-wdm0] Registered 'nas' (version 1.25) 
client with ID '3'
ModemManager[17594]: [/dev/cdc-wdm0] Allocating new client ID...
ModemManager[17594]: [/dev/cdc-wdm0] Registered 'loc' (version 2.0) 
client with ID '1'
ModemManager[17594]: [/dev/cdc-wdm0] Allocating new client ID...
ModemManager[17594]: [/dev/cdc-wdm0] Registered 'pdc' (version 1.0) 
client with ID '1'
ModemManager[17594]: <info>  [modem0] QMI-based capability and mode 
switching support enabled
*ModemManager[17594]: <warn>  [modem0] couldn't query SIM slots: 
NoDeviceSupport*
ModemManager[17594]: <warn>  [modem0/sim0] couldn't load EID: Failure
ModemManager[17594]: <warn>  [modem0/sim0] couldn't load list of 
emergency numbers: uninitialized emergency numbers list
ModemManager[17594]: <warn>  [modem0] couldn't load initial EPS bearer 
settings: LTE attach status info is unsupported
ModemManager[17594]: <info>  [modem0] state changed (unknown -> disabled)
ModemManager[17594]: <info>  [modem0] state changed (disabled -> enabling)
ModemManager[17594]: <info>  [modem0] power state updated: on
ModemManager[17594]: <info>  [modem0] 3GPP registration state changed 
(unknown -> idle)
ModemManager[17594]: <info>  [modem0] state changed (enabling -> enabled)

--------------------------------

Thank you and best regards,

-- 
Best regards / Mit freundlichen Grüßen / Salutations distinguées

Ulrich Mohr

SEMEX-EngCon GmbH
Carl-Merz-Strass 26
76275 Ettlingen
Phone: +49 (0) 7243 5143596
email:u.mohr at semex-engcon.com
___________________________________________
Executive board: A. Stiegler, H.-J. Nitzpon
Commercial register: Mannheim, HRB 718881
Company domicile: Ettlingen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20220712/15733a08/attachment.htm>


More information about the ModemManager-devel mailing list