Debugging modem detection in ModemManager

Kelvin kiboshed at gmail.com
Mon Jan 15 16:40:44 UTC 2018


Hi,

Is there a way to debug ModemManager's detection of a modem?

I have built a kernel with support for the Telit LE910, enabling
CONFIG_USB_SERIAL_OPTION and CONFIG_USB_NET_QMI_WWAN. The expected five
/dev/ttyUSBx and one /dev/cdc-wdm0 devices are present. But when I run
"mmcli -L" it says "No modems were found".

qmicli can talk to the modem:
qmicli -d /dev/cdc-wdm0 --dms-get-model
[/dev/cdc-wdm0] Device model retrieved:
Model: 'LE910-EUG'

I get some 'OK' responses if I send 'AT\r' to the modem ports (/dev/ttyUSB2
and /dev/ttyUSB3).

But ModemManager itself doesn't find any modem. Is there a way to debug
ModemManager's detection process, or is there a common reason for MM
ignoring a QMI device?

Here is some debug from startup:

   - systemctl stop ModemManager
   - ModemManager --debug

ModemManager[1185]: <info> [1516028939.541822] [main.c:158] main():
ModemManager (version 1.6.4) starting in system bus...
ModemManager[1185]: <debug> [1516028939.544058] [mm-sleep-monitor.c:245]
mm_sleep_monitor_get(): create MMSleepMonitor singleton (0x5581b4c090)
ModemManager[1185]: <debug> [1516028939.549882] [main.c:83]
bus_acquired_cb(): Bus acquired, creating manager...
ModemManager[1185]: <debug> [1516028939.560090] [mm-plugin-manager.c:1559]
load_plugins(): [plugin manager] looking for plugins in
'/usr/lib/aarch64-linux-gnu/ModemManager'
ModemManager[1185]: <debug> [1516028939.561938] [mm-plugin-manager.c:1584]
load_plugins(): [plugin manager] loaded plugin 'Altair LTE'
ModemManager[1185]: <debug> [1516028939.562617] [mm-plugin-manager.c:1584]
load_plugins(): [plugin manager] loaded plugin 'AnyDATA'
ModemManager[1185]: <debug> [1516028939.563342] [mm-plugin-manager.c:1584]
load_plugins(): [plugin manager] loaded plugin 'Cinterion'
ModemManager[1185]: <debug> [1516028939.564068] [mm-plugin-manager.c:1584]
load_plugins(): [plugin manager] loaded plugin 'Dell'
ModemManager[1185]: <debug> [1516028939.564791] [mm-plugin-manager.c:1584]
load_plugins(): [plugin manager] loaded plugin 'Ericsson MBM'
ModemManager[1185]: <debug> [1516028939.565393] [mm-plugin-manager.c:1584]
load_plugins(): [plugin manager] loaded plugin 'Generic'
ModemManager[1185]: <debug> [1516028939.565949] [mm-plugin-manager.c:1584]
load_plugins(): [plugin manager] loaded plugin 'Haier'
ModemManager[1185]: <debug> [1516028939.567707] [mm-plugin-manager.c:1584]
load_plugins(): [plugin manager] loaded plugin 'Huawei'
ModemManager[1185]: <debug> [1516028939.568443] [mm-plugin-manager.c:1584]
load_plugins(): [plugin manager] loaded plugin 'Iridium'
ModemManager[1185]: <debug> [1516028939.569484] [mm-plugin-manager.c:1584]
load_plugins(): [plugin manager] loaded plugin 'Linktop'
ModemManager[1185]: <debug> [1516028939.570380] [mm-plugin-manager.c:1584]
load_plugins(): [plugin manager] loaded plugin 'Longcheer'
ModemManager[1185]: <debug> [1516028939.571210] [mm-plugin-manager.c:1584]
load_plugins(): [plugin manager] loaded plugin 'Motorola'
ModemManager[1185]: <debug> [1516028939.572093] [mm-plugin-manager.c:1584]
load_plugins(): [plugin manager] loaded plugin 'MTK'
ModemManager[1185]: <debug> [1516028939.573238] [mm-plugin-manager.c:1584]
load_plugins(): [plugin manager] loaded plugin 'Nokia (Icera)'
ModemManager[1185]: <debug> [1516028939.573974] [mm-plugin-manager.c:1584]
load_plugins(): [plugin manager] loaded plugin 'Nokia'
ModemManager[1185]: <debug> [1516028939.575158] [mm-plugin-manager.c:1584]
load_plugins(): [plugin manager] loaded plugin 'Novatel'
ModemManager[1185]: <debug> [1516028939.576484] [mm-plugin-manager.c:1584]
load_plugins(): [plugin manager] loaded plugin 'Novatel LTE'
ModemManager[1185]: <debug> [1516028939.577341] [mm-plugin-manager.c:1584]
load_plugins(): [plugin manager] loaded plugin 'Option High-Speed'
ModemManager[1185]: <debug> [1516028939.577875] [mm-plugin-manager.c:1584]
load_plugins(): [plugin manager] loaded plugin 'Option'
ModemManager[1185]: <debug> [1516028939.578295] [mm-plugin-manager.c:1584]
load_plugins(): [plugin manager] loaded plugin 'Pantech'
ModemManager[1185]: <debug> [1516028939.578800] [mm-plugin-manager.c:1584]
load_plugins(): [plugin manager] loaded plugin 'Samsung'
ModemManager[1185]: <debug> [1516028939.579329] [mm-plugin-manager.c:1584]
load_plugins(): [plugin manager] loaded plugin 'Sierra (legacy)'
ModemManager[1185]: <debug> [1516028939.579787] [mm-plugin-manager.c:1584]
load_plugins(): [plugin manager] loaded plugin 'Sierra'
ModemManager[1185]: <debug> [1516028939.580234] [mm-plugin-manager.c:1584]
load_plugins(): [plugin manager] loaded plugin 'SimTech'
ModemManager[1185]: <debug> [1516028939.580776] [mm-plugin-manager.c:1584]
load_plugins(): [plugin manager] loaded plugin 'Telit'
ModemManager[1185]: <debug> [1516028939.581260] [mm-plugin-manager.c:1584]
load_plugins(): [plugin manager] loaded plugin 'Thuraya'
ModemManager[1185]: <debug> [1516028939.581694] [mm-plugin-manager.c:1584]
load_plugins(): [plugin manager] loaded plugin 'Via CBP7'
ModemManager[1185]: <debug> [1516028939.582138] [mm-plugin-manager.c:1584]
load_plugins(): [plugin manager] loaded plugin 'Wavecom'
ModemManager[1185]: <debug> [1516028939.582630] [mm-plugin-manager.c:1584]
load_plugins(): [plugin manager] loaded plugin 'X22X'
ModemManager[1185]: <debug> [1516028939.583142] [mm-plugin-manager.c:1584]
load_plugins(): [plugin manager] loaded plugin 'ZTE'
ModemManager[1185]: <debug> [1516028939.583298] [mm-plugin-manager.c:1609]
load_plugins(): [plugin manager] successfully loaded 30 plugins
ModemManager[1185]: <debug> [1516028939.585506] [main.c:105]
name_acquired_cb(): Service name 'org.freedesktop.ModemManager1' was
acquired
ModemManager[1185]: <debug> [1516028939.585722] [mm-base-manager.c:498]
mm_base_manager_start(): Starting automatic device scan...
ModemManager[1185]: <debug> [1516028939.661558] [mm-base-manager.c:537]
mm_base_manager_start(): Finished device scan...
ModemManager[1185]: <debug> [1516028939.661860] [mm-sleep-monitor.c:108]
take_inhibitor(): [sleep-monitor] taking systemd sleep inhibitor
ModemManager[1185]: <debug> [1516028939.679752] [mm-sleep-monitor.c:97]
inhibit_done(): [sleep-monitor] inhibitor fd is 10


I've included some detailed USB info below.

I also briefly tried a Sierra MC7403 which also created some /dev/ttyUSBx
devices and a pair of /dev/cdc-wdm devices, but MM didn't make use of that
modem either. It's a bit like QMI mode is not enabled in MM?

Any hints much appreciated.

Many thanks,
Kelvin.



cat /sys/kernel/debug/usb/devices

<snip>

T: Bus=01 Lev=03 Prnt=04 Port=00 Cnt=01 Dev#= 5 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1bc7 ProdID=1201 Rev= 2.32
S: Manufacturer=Android
S: Product=Android
S: SerialNumber=0123456789ABCDEF
C:* #Ifs= 7 Cfg#= 1 Atr=80 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42 Prot=01 Driver=(none)
E: Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qmi_wwan
E: Ad=84(I) Atr=03(Int.) MxPS= 8 Ivl=32ms
E: Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
E: Ad=86(I) Atr=03(Int.) MxPS= 10 Ivl=32ms
E: Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
E: Ad=88(I) Atr=03(Int.) MxPS= 10 Ivl=32ms
E: Ad=87(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 5 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
E: Ad=8a(I) Atr=03(Int.) MxPS= 10 Ivl=32ms
E: Ad=89(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=06(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 6 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
E: Ad=8c(I) Atr=03(Int.) MxPS= 10 Ivl=32ms
E: Ad=8b(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=07(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20180115/5f0985e1/attachment.html>


More information about the ModemManager-devel mailing list