<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hey, <br>
</p>
<p>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)</p>
<p>What I want to do is</p>
<ul>
<li> find out which slot is currently active <br>
</li>
<li>switch active slot if possible</li>
</ul>
<p>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. <br>
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)<br>
</p>
<p>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?</p>
<p>I attach parts of the starting log ....</p>
<p>-----------------------------<br>
</p>
<p>ModemManager[17594]: <info> ModemManager (version 1.19.0)
starting in system bus...<br>
ModemManager[17594]: opening device...<br>
ModemManager[17594]: cannot connect to proxy: Could not connect:
Connection refused<br>
ModemManager[17594]: spawning new mbim-proxy (try 1)...<br>
ModemManager[17594]: [/dev/cdc-wdm0] Read max control message size
from descriptors file: 4096<br>
ModemManager[17594]: <info> [cdc-wdm0/mbim] MBIM device is
not QMI capable<br>
ModemManager[17594]: [/dev/cdc-wdm0] closing device...<br>
ModemManager[17594]: [/dev/cdc-wdm0] channel destroyed<br>
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<br>
ModemManager[17594]: <info> [base-manager] couldn't check
support for device
'/sys/devices/platform/ahb/ahb:apb/f802c000.ethernet': not
supported by any plugin<br>
ModemManager[17594]: <info> [device
/sys/devices/platform/ahb/700000.ehci/usb1/1-2] creating modem
with plugin 'telit' and '5' ports<br>
ModemManager[17594]: <warn> [plugin/telit] could not grab
port ttyUSB3: Cannot add port 'tty/ttyUSB3', unhandled port type<br>
ModemManager[17594]: <warn> [plugin/telit] could not grab
port ttyUSB0: Cannot add port 'tty/ttyUSB0', unhandled port type<br>
ModemManager[17594]: <info> [base-manager] modem for device
'/sys/devices/platform/ahb/700000.ehci/usb1/1-2' successfully
created<br>
ModemManager[17594]: opening device...<br>
ModemManager[17594]: [/dev/cdc-wdm0] Read max control message size
from descriptors file: 4096<br>
ModemManager[17594]: [/dev/cdc-wdm0] Opening device with flags
'version-info, proxy, mbim, expect-indications'...<br>
ModemManager[17594]: [/dev/cdc-wdm0] created endpoint<br>
ModemManager[17594]: [/dev/cdc-wdm0] creating MBIM device...<br>
ModemManager[17594]: [/dev/cdc-wdm0] MBIM device created<br>
ModemManager[17594]: [/dev/cdc-wdm0] opening MBIM device...<br>
ModemManager[17594]: opening device...<br>
ModemManager[17594]: [/dev/cdc-wdm0] Read max control message size
from descriptors file: 4096<br>
ModemManager[17594]: [/dev/cdc-wdm0] MBIM device open<br>
ModemManager[17594]: [/dev/cdc-wdm0] Checking version info (15
retries)...<br>
ModemManager[17594]: [/dev/cdc-wdm0] QMI Device supports 33
services:<br>
ModemManager[17594]: [/dev/cdc-wdm0] ctl (1.5)<br>
ModemManager[17594]: [/dev/cdc-wdm0] wds (1.67)<br>
ModemManager[17594]: [/dev/cdc-wdm0] dms (1.0)<br>
ModemManager[17594]: [/dev/cdc-wdm0] nas (1.25)<br>
ModemManager[17594]: [/dev/cdc-wdm0] qos (1.12)<br>
ModemManager[17594]: [/dev/cdc-wdm0] wms (1.10)<br>
ModemManager[17594]: [/dev/cdc-wdm0] auth (1.3)<br>
ModemManager[17594]: [/dev/cdc-wdm0] at (1.2)<br>
ModemManager[17594]: [/dev/cdc-wdm0] voice (2.1)<br>
ModemManager[17594]: [/dev/cdc-wdm0] cat2 (2.24)<br>
<b>ModemManager[17594]: [/dev/cdc-wdm0] uim (1.46)</b><br>
ModemManager[17594]: [/dev/cdc-wdm0] pbm (1.4)<br>
ModemManager[17594]: [/dev/cdc-wdm0] test (1.0)<br>
ModemManager[17594]: [/dev/cdc-wdm0] loc (2.0)<br>
ModemManager[17594]: [/dev/cdc-wdm0] sar (1.0)<br>
ModemManager[17594]: [/dev/cdc-wdm0] ims (1.0)<br>
ModemManager[17594]: [/dev/cdc-wdm0] ts (1.0)<br>
ModemManager[17594]: [/dev/cdc-wdm0] tmd (1.0)<br>
ModemManager[17594]: [/dev/cdc-wdm0] wda (1.16)<br>
ModemManager[17594]: [/dev/cdc-wdm0] csvt (1.1)<br>
ModemManager[17594]: [/dev/cdc-wdm0] imsa (1.0)<br>
ModemManager[17594]: [/dev/cdc-wdm0] coex (1.0)<br>
ModemManager[17594]: [/dev/cdc-wdm0] pdc (1.0)<br>
ModemManager[17594]: [/dev/cdc-wdm0] rfrpe (1.0)<br>
ModemManager[17594]: [/dev/cdc-wdm0] dsd (1.0)<br>
ModemManager[17594]: [/dev/cdc-wdm0] unknown [0x2d] (1.0)<br>
ModemManager[17594]: [/dev/cdc-wdm0] unknown [0x30] (1.0)<br>
ModemManager[17594]: [/dev/cdc-wdm0] unknown [0x32] (1.0)<br>
ModemManager[17594]: [/dev/cdc-wdm0] unknown [0x36] (1.0)<br>
ModemManager[17594]: [/dev/cdc-wdm0] fota (1.0)<br>
ModemManager[17594]: [/dev/cdc-wdm0] gms (1.0)<br>
ModemManager[17594]: [/dev/cdc-wdm0] unknown [0xeb] (1.0)<br>
ModemManager[17594]: [/dev/cdc-wdm0] unknown [0xed] (1.0)<br>
ModemManager[17594]: [/dev/cdc-wdm0] Enabling QMI indications via
MBIM...<br>
ModemManager[17594]: [/dev/cdc-wdm0] enabled QMI indications via
MBIM<br>
ModemManager[17594]: <info> [modem0/cdc-wdm0/mbim] MBIM
device is QMI capable<br>
ModemManager[17594]: [/dev/cdc-wdm0] Allocating new client ID...<br>
ModemManager[17594]: [/dev/cdc-wdm0] Registered 'dms' (version
1.0) client with ID '1'<br>
ModemManager[17594]: [/dev/cdc-wdm0] Allocating new client ID...<br>
ModemManager[17594]: [/dev/cdc-wdm0] Registered 'nas' (version
1.25) client with ID '3'<br>
ModemManager[17594]: [/dev/cdc-wdm0] Allocating new client ID...<br>
ModemManager[17594]: [/dev/cdc-wdm0] Registered 'loc' (version
2.0) client with ID '1'<br>
ModemManager[17594]: [/dev/cdc-wdm0] Allocating new client ID...<br>
ModemManager[17594]: [/dev/cdc-wdm0] Registered 'pdc' (version
1.0) client with ID '1'<br>
ModemManager[17594]: <info> [modem0] QMI-based capability
and mode switching support enabled<br>
<b>ModemManager[17594]: <warn> [modem0] couldn't query SIM
slots: NoDeviceSupport</b><br>
ModemManager[17594]: <warn> [modem0/sim0] couldn't load
EID: Failure<br>
ModemManager[17594]: <warn> [modem0/sim0] couldn't load
list of emergency numbers: uninitialized emergency numbers list<br>
ModemManager[17594]: <warn> [modem0] couldn't load initial
EPS bearer settings: LTE attach status info is unsupported<br>
ModemManager[17594]: <info> [modem0] state changed (unknown
-> disabled)<br>
ModemManager[17594]: <info> [modem0] state changed
(disabled -> enabling)<br>
ModemManager[17594]: <info> [modem0] power state updated:
on<br>
ModemManager[17594]: <info> [modem0] 3GPP registration
state changed (unknown -> idle)<br>
ModemManager[17594]: <info> [modem0] state changed
(enabling -> enabled)<br>
</p>
<p>--------------------------------<br>
</p>
<p>Thank you and best regards, <br>
</p>
<pre class="moz-signature" cols="72">--
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: <a class="moz-txt-link-abbreviated" href="mailto:u.mohr@semex-engcon.com">u.mohr@semex-engcon.com</a>
___________________________________________
Executive board: A. Stiegler, H.-J. Nitzpon
Commercial register: Mannheim, HRB 718881
Company domicile: Ettlingen</pre>
</body>
</html>