SierraWireless MC7430

Marc Murphy marcmltd at marcm.co.uk
Sun Dec 6 15:04:57 UTC 2020


Hey Alex

> -----Original Message-----
> From: Aleksander Morgado <aleksander at aleksander.es>
> Sent: 06 December 2020 07:42
> To: Marc Murphy <marcmltd at marcm.co.uk>
> Cc: modemmanager-devel at lists.freedesktop.org
> Subject: Re: SierraWireless MC7430
> 
> Hey Marc,
> 
> > I am trying a new modem on my system and some weird things are
> happening.  Trying to get the gps to come up but its not being shown as
> available but the mm debug shows there is a port there.  Wondering how I
> can debug this to get it enabled ?
> >
> > ModemManager[248]: <debug> [000000040.585164] [plugin manager) task
> > 0,ttyUSB1: started
> > ModemManager[248]: <debug> [000000040.586050] [plugin manager] task
> 0,ttyUSB1: checking with plugin 'Sierra'
> > ModemManager[248]: <debug> [000000040.587130] (Sierra) [ttyUSB1]
> probe required: 'at, qcdm'
> > ModemManager[248]: <debug> [000000040.588107] (tty/ttyUSB1) GPS port
> > detected
> > ModemManager[248]: <debug> [000000040.588928] (tty/ttyUSB1) port is
> > not AT-capable
> > ModemManager[248]: <debug> [000000040.589703] (tty/ttyUSB1) port is
> > not QCDM-capable
> > ModemManager[248]: <debug> [000000040.590784] (tty/ttyUSB1) port
> > probing finished: no more probings needed
> >
> > ModemManager[248]: <debug> [000000042.746064] AT port 'tty/ttyUSB2'
> > flagged as primary
> > ModemManager[248]: <debug> [000000042.746492] (ttyUSB2) type 'at'
> > claimed by
> > /sys/devices/platform/ocp/47400000.usb/47401c00.usb/musb-
> hdrc.1/usb1/1
> > -1/1-1.2
> > ModemManager[248]: <debug> [000000042.747188] (ttyUSB1) type 'gps'
> > claimed by
> > /sys/devices/platform/ocp/47400000.usb/47401c00.usb/musb-
> hdrc.1/usb1/1
> > -1/1-1.2
> > ModemManager[248]: <debug> [000000042.747802] (ttyUSB0) type 'qcdm'
> > claimed by
> > /sys/devices/platform/ocp/47400000.usb/47401c00.usb/musb-
> hdrc.1/usb1/1
> > -1/1-1.2
> > ModemManager[248]: <debug> [000000042.748239]
> > (/sys/devices/platform/ocp/47400000.usb/47401c00.usb/musb-
> hdrc.1/usb1/
> > 1-1/1-1.2) tty/ttyUSB2 at (primary)
> > ModemManager[248]: <debug> [000000042.748544]
> > (/sys/devices/platform/ocp/47400000.usb/47401c00.usb/musb-
> hdrc.1/usb1/
> > 1-1/1-1.2) tty/ttyUSB2 data (primary)
> > ModemManager[248]: <debug> [000000042.748879]
> > (/sys/devices/platform/ocp/47400000.usb/47401c00.usb/musb-
> hdrc.1/usb1/
> > 1-1/1-1.2) tty/ttyUSB0 qcdm
> > ModemManager[248]: <debug> [000000042.749150]
> > (/sys/devices/platform/ocp/47400000.usb/47401c00.usb/musb-
> hdrc.1/usb1/
> > 1-1/1-1.2) tty/ttyUSB1 gps (nmea)
> >
> >
> > # mmcli -m 0
> >   --------------------------------
> >   General  |            dbus path:
> /org/freedesktop/ModemManager1/Modem/0
> >            |            device id: 386fa1053746e4f1364aeecc41fa83d11a968985
> >   --------------------------------
> >   Hardware |         manufacturer: Sierra Wireless, Incorporated
> >            |                model: MC7430
> >            |    firmware revision: SWI9X30C_02.24.05.06 r7040 CARMD-EV-
> FRMWR2 2017/05/19 06:23:09
> >            |            supported: gsm-umts, lte
> >            |              current: gsm-umts, lte
> >            |         equipment id: XXXXXXXXX
> >   --------------------------------
> >   System   |               device:
> /sys/devices/platform/ocp/47400000.usb/47401c00.usb/musb-
> hdrc.1/usb1/1-1/1-1.2
> >            |              drivers: qcserial, qmi_wwan
> >            |               plugin: Sierra
> >            |         primary port: ttyUSB2
> >            |                ports: wwan1 (unknown), ttyUSB0 (qcdm), ttyUSB2 (at),
> >            |                       wwan0 (unknown), ttyUSB1 (gps)
> 
> I assume this is your own custom system build? If so, I think there's some
> kernel driver missing because we're not seeing the cdc-wdm ports associated
> to the wwan net ports. Do you have both the qmi-wwan and the cdc-wdm
> kernel drivers enabled?

Yes both are enabled and loaded
# lsmod
Module                  Size  Used by    Not tainted
qmi_wwan               28672  0
cdc_wdm                20480  1 qmi_wwan
qcserial               16384  2
usb_wwan               20480  1 qcserial
usbnet                 36864  1 qmi_wwan
mii                    16384  1 usbnet
usbserial              36864  6 qcserial,usb_wwan

[    8.689533] usb 1-1: new high-speed USB device number 2 using musb-hdrc
[    8.871950] usb 1-1: New USB device found, idVendor=0424, idProduct=2514, bcdDevice= b.b3
[    8.881159] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    8.905997] hub 1-1:1.0: USB hub found
[    8.911199] hub 1-1:1.0: 4 ports detected
[    9.239539] usb 1-1.2: new high-speed USB device number 3 using musb-hdrc
[    9.371276] usb 1-1.2: config 1 has an invalid interface number: 8 but max is 4
[    9.378681] usb 1-1.2: config 1 has an invalid interface number: 10 but max is 4
[    9.386366] usb 1-1.2: config 1 has no interface number 1
[    9.391927] usb 1-1.2: config 1 has no interface number 4
[    9.402681] usb 1-1.2: New USB device found, idVendor=1199, idProduct=9071, bcdDevice= 0.06
[    9.411289] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    9.418665] usb 1-1.2: Product: Sierra Wireless MC7430 Qualcomm® Snapdragon™ X7 LTE-A
[    9.426961] usb 1-1.2: Manufacturer: Sierra Wireless, Incorporated
[    9.433299] usb 1-1.2: SerialNumber: LU95130179041024
[   10.138349] usbcore: registered new interface driver usbserial_generic
[   10.146423] usbserial: USB Serial support registered for generic
[   10.212234] usbcore: registered new interface driver qcserial
[   10.218308] usbserial: USB Serial support registered for Qualcomm USB modem
[   10.232214] usbcore: registered new interface driver cdc_wdm
[   10.257791] qcserial 1-1.2:1.0: Qualcomm USB modem converter detected
[   10.268589] usb 1-1.2: Qualcomm USB modem converter now attached to ttyUSB0
[   10.280953] qcserial 1-1.2:1.2: Qualcomm USB modem converter detected
[   10.291259] usb 1-1.2: Qualcomm USB modem converter now attached to ttyUSB1
[   10.301081] qcserial 1-1.2:1.3: Qualcomm USB modem converter detected
[   10.311695] usb 1-1.2: Qualcomm USB modem converter now attached to ttyUSB2
[   10.464026] qmi_wwan 1-1.2:1.8: cdc-wdm0: USB WDM device
[   10.475160] qmi_wwan 1-1.2:1.8 wwan0: register 'qmi_wwan' at usb-musb-hdrc.1-1.2, WWAN/QMI device, 16:6b:77:d4:06:45
[   10.490347] qmi_wwan 1-1.2:1.10: cdc-wdm1: USB WDM device
[   10.497872] qmi_wwan 1-1.2:1.10 wwan1: register 'qmi_wwan' at usb-musb-hdrc.1-1.2, WWAN/QMI device, 16:6b:77:d4:06:45
[   10.509349] usbcore: registered new interface driver qmi_wwan



> 
> >   --------------------------------
> >   Numbers  |                  own: +XXXXXX
> >   --------------------------------
> >   Status   |       unlock retries: sim-pin (3), sim-puk (10)
> >            |                state: enabled
> >            |          power state: on
> >            |       signal quality: 0% (cached)
> >   --------------------------------
> >   Modes    |            supported: allowed: 2g, 3g, 4g; preferred: none
> >            |              current: allowed: 2g, 3g, 4g; preferred: none
> >   --------------------------------
> >   IP       |            supported: ipv4, ipv6, ipv4v6
> >   --------------------------------
> >   3GPP     |                 imei: XXXXXXXX
> >            |         registration: idle
> >   --------------------------------
> >   3GPP EPS | ue mode of operation: csps-2
> >   --------------------------------
> >   SIM      |            dbus path: /org/freedesktop/ModemManager1/SIM/0
> >
> >
> >
> > # mmcli -m 0 --location-status
> >   ------------------------
> >   Location | capabilities: 3gpp-lac-ci
> >            |      enabled: 3gpp-lac-ci
> >            |      signals: no
> >
> >
> > Any pointers on how to change the gps port to be used correctly ?
> >
> 
> The GPS support for these modules is not implemented in ModemManager
> using the TTY port (even if the port is flagged as GPS);  it would be possible to
> do so, it's just not implemented.
> 
> But we do allow QMI-based GPS management in the MC7455 in QMI mode,
> using the QMI LOC service. We just need to detect the modem in QMI mode,
> and for that we need the QMI control ports (cdc-wdm) to be exposed by the
> system.

If it works for the MC7455 and EM7455 should work for the MC7430 it’s the same qualcomm family .
[    9.578394] usb 1-1.2: Product: Sierra Wireless MC7455 Qualcomm® Snapdragon™ X7 LTE-A
[    9.418665] usb 1-1.2: Product: Sierra Wireless MC7430 Qualcomm® Snapdragon™ X7 LTE-A

So they should be registered:
[   10.464026] qmi_wwan 1-1.2:1.8: cdc-wdm0: USB WDM device
[   10.475160] qmi_wwan 1-1.2:1.8 wwan0: register 'qmi_wwan' at usb-musb-hdrc.1-1.2, WWAN/QMI device, 16:6b:77:d4:06:45
[   10.490347] qmi_wwan 1-1.2:1.10: cdc-wdm1: USB WDM device
[   10.497872] qmi_wwan 1-1.2:1.10 wwan1: register 'qmi_wwan' at usb-musb-hdrc.1-1.2, WWAN/QMI device, 16:6b:77:d4:06:45
[   10.509349] usbcore: registered new interface driver qmi_wwan

# ls -l /dev/cdc*
crw-------    1 root     root      180, 176 Jan  1 00:00 /dev/cdc-wdm0
crw-------    1 root     root      180, 177 Jan  1 00:00 /dev/cdc-wdm1

But not shown as being detected with mmcli
--------------------------------
  System   |               device: /sys/devices/platform/ocp/47400000.usb/47401c00.usb/musb-hdrc.1/usb1/1-1/1-1.2
           |              drivers: qcserial, qmi_wwan
           |               plugin: Sierra
           |         primary port: ttyUSB2
           |                ports: wwan1 (unknown), ttyUSB0 (qcdm), ttyUSB2 (at),
           |                       wwan0 (unknown), ttyUSB1 (gps)
  --------------------------------

I have also checked and MM and NM have been built with qmi and mbim support.

Anything else I can do ?

Thanks
Marc

> 
> --
> Aleksander
> https://aleksander.es




More information about the ModemManager-devel mailing list