[OpenWrt-Devel] [ModemManager] How can I make ModemManager work right?

Jeonghum Joh oosaprogrammer at gmail.com
Fri May 8 07:12:45 EDT 2020

Hello Aleksander,

Thank you very much for your answers and kind reactions.
I also wish to let you connect to our device so that you can look at it
directly but I think to let you do this level of favor I think I at least
need to check and make sure as much as possible myself first.

With your answers I learned that our modem might not work with ModemManager
well because it uses not-yet open usbnet driver from the linux kernel

Hucom provided us usebnet adapter driver code and usb serial driver code.
They are GPL but they didn't apply it to linux mainline kernel.

So I think hucom modem is now not a trustworthy thing.

We have Sierra modem. HL7528
So I tested my linux box with this modem and I received first prints below:

root at LEDE:/lib/udev/rules.d# mmcli -L
    /org/freedesktop/ModemManager1/Modem/0 [Sierra Wireless] HL7528
root at LEDE:/lib/udev/rules.d# mmcli -m 0
  General  |         dbus path: /org/freedesktop/ModemManager1/Modem/0
           |         device id: a643b0bb58dac30a2cd4ff6b486e826b483d298b
  Hardware |      manufacturer: Sierra Wireless
           |             model: HL7528
           | firmware revision:
           |         supported: gsm-umts, lte
           |           current: gsm-umts, lte
           |      equipment id: 356170062941712
  System   |            device: /sys/devices/platform/1a0c0000.usb/usb1/1-2
           |           drivers: cdc_acm, cdc_ncm
           |            plugin: Generic
           |      primary port: ttyACM0
           |             ports: wwan3 (net), ttyACM0 (at), wwan0 (net),
wwan1 (net),
           |                    wwan2 (net), ttyACM2 (at)
  Status   |             state: failed
           |     failed reason: sim-missing
           |       power state: on
           |    signal quality: 0% (cached)
  Modes    |         supported: allowed: 2g, 3g, 4g; preferred: none
           |           current: allowed: any; preferred: none

I did this test to verify if my applying ModemManager have any issue. With
this print result, can I judge that ModemManager is ported well?

I from now on will test with this modem. I think I need rule file for this
modem and I found one:

The content of this rule file:

# do not edit this file, it will be overwritten on update
ACTION!="add|change|move|bind", GOTO="mm_sierra_end"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1199", GOTO="mm_sierra"

SUBSYSTEMS=="usb", ATTRS{bInterfaceNumber}=="?*",

# Netgear AC341U: enable connection status polling explicitly
ATTRS{idVendor}=="1199", ATTRS{idProduct}=="9057",

# MC74XX: Add port hints
#  if 03: primary port
#  if 02: raw NMEA port
#  if 00: diag/qcdm port
ATTRS{idVendor}=="1199", ATTRS{idProduct}=="9071", ENV{.MM_USBIFNUM}=="03",
ATTRS{idVendor}=="1199", ATTRS{idProduct}=="9071", ENV{.MM_USBIFNUM}=="02",
ATTRS{idVendor}=="1199", ATTRS{idProduct}=="9071", ENV{.MM_USBIFNUM}=="00",

# EM7565: Add port hints
#  if 03: primary port
#  if 02: raw NMEA port
#  if 00: diag/qcdm port
ATTRS{idVendor}=="1199", ATTRS{idProduct}=="9091", ENV{.MM_USBIFNUM}=="03",
ATTRS{idVendor}=="1199", ATTRS{idProduct}=="9091", ENV{.MM_USBIFNUM}=="02",
ATTRS{idVendor}=="1199", ATTRS{idProduct}=="9091", ENV{.MM_USBIFNUM}=="00",


Is this rule file fit to my modem?
Or do I need new rule file for this modem?

And do I need special settings in /etc/config/network ? I know basic
settings for this:
config interface 'broadband'
        option device '/sys/devices/platform/1a0c0000.usb/usb1/1-2'
        option proto 'modemmanager'
        option apn 'w <http://5g-internet.sktelecom.com/>hatever corect apn
        option username ''
        option password ''
        option pincode ''
        option lowpower '1'

Thank you very much!
I am writing this late we had holidays.

Thank you very much!


2020년 5월 7일 (목) 오전 3:56, Aleksander Morgado <aleksander at aleksander.es>님이 작성:

> Hey,
> > I guess I could try other LTE/5G modem.
> > I'd like to know what is best supported by ModemManager or OpenWRT/LEDE.
> >
> Puff, lots of different devices. If you try anything from e.g. Sierra
> Wireless, Quectel, Telit... they will probably work. BUT, the issues
> seen in your setup may not be directly related to the modem in use.
> > Could you please name them. Let me know some please.
> >
> > Thank you very much.
> >
> > Hucom wireless told me they don't support ModemManager.
> >
> They probably don't even know what ModemManager is; but that is not a
> reason not to support this device ourselves without the vendor's help.
> Could you set up a public ssh connection to your system so that I can
> take a look at it myself? If so, send details privately.
> --
> Aleksander
> https://aleksander.es
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20200508/fa096f32/attachment.htm>
-------------- next part --------------
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list