Leveraging GPS in MC7700

Adam Sherman adam at sherman.ca
Mon Feb 6 15:54:09 UTC 2017


On 2017-02-06 09:40 AM, Adam Sherman wrote:
>> Output of mmcli shows ports: 'ttyUSB0 (qcdm), ttyUSB2 (at), cdc-wdm0
>> (qmi), wwp0s20u4i8 (net)'.
> After adding the udev rules, mmcli shows ports: 'ttyUSB0 (unknown),
> ttyUSB1 (unknown), ttyUSB2 (unknown), cdc-wdm0 (qmi), wwp0s20u4i8
> (net)'. Notable is the addition of ttyUSB1.
> 

There is definitely something going on with probing for the QMI port.
>From a fresh boot, ModemManager can't find the modem. Suspend/resume and
it finds it. Syslog showing this is attached.

Looks like it can't find the "primary usb port". After the resume, it
find the QMI port.

A.

-- 
Adam Sherman <adam at sherman.ca>
-------------- next part --------------
Feb  6 09:50:04 sheet systemd[1]: Started Modem Manager.
Feb  6 09:50:04 sheet NetworkManager[1121]: <info>  [1486392604.4708] ModemManager available in the bus
Feb  6 09:50:05 sheet ModemManager[1022]: [/dev/cdc-wdm0] Opening device with flags 'version-info, proxy'...
Feb  6 09:50:05 sheet ModemManager[1022]: cannot connect to proxy: Could not connect: Connection refused
Feb  6 09:50:05 sheet ModemManager[1022]: spawning new qmi-proxy (try 1)...
Feb  6 09:50:05 sheet ModemManager[1022]: [/dev/cdc-wdm0] Checking version info (10 retries)...
Feb  6 09:50:06 sheet ModemManager[1022]: <info>  Couldn't check support for device at '/sys/devices/pci0000:00/0000:00:19.0': not supported by any plugin
Feb  6 09:50:06 sheet ModemManager[1022]: <info>  Couldn't check support for device at '/sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0': not supported by any plugin
Feb  6 09:50:16 sheet ModemManager[1022]: <info>  Creating modem with plugin 'Generic' and '5' ports
Feb  6 09:50:16 sheet ModemManager[1022]: <warn>  Could not grab port (usbmisc/cdc-wdm0): 'Cannot add port 'usbmisc/cdc-wdm0', unsupported'
Feb  6 09:50:16 sheet ModemManager[1022]: <warn>  Couldn't create modem for device at '/sys/devices/pci0000:00/0000:00:14.0/usb3/3-4': Failed to find primary AT port
Feb  6 09:50:21 sheet ModemManager[1022]: <info>  Creating modem with plugin 'Generic' and '1' ports
Feb  6 09:50:21 sheet ModemManager[1022]: <warn>  Could not grab port (tty/ttyS4): 'Cannot add port 'tty/ttyS4', unhandled serial type'
Feb  6 09:50:21 sheet ModemManager[1022]: <warn>  Couldn't create modem for device at '/sys/devices/pci0000:00/0000:00:16.3': Failed to find primary AT port
Feb  6 10:15:11 sheet systemd[1]: Starting Suspend...
Feb  6 10:15:11 sheet systemd-sleep[2306]: Suspending system...
Feb  6 10:29:56 sheet kernel: [ 1900.866063] PM: Suspending system (mem)
Feb  6 10:29:56 sheet kernel: [ 1900.866076] Suspending console(s) (use no_console_suspend to debug)
Feb  6 10:29:56 sheet kernel: [ 1901.451487] PM: suspend of devices complete after 585.254 msecs
Feb  6 10:29:56 sheet kernel: [ 1901.467209] PM: late suspend of devices complete after 15.714 msecs
Feb  6 10:29:56 sheet kernel: [ 1901.483426] PM: noirq suspend of devices complete after 16.212 msecs
Feb  6 10:29:56 sheet kernel: [ 1903.066801] qcserial ttyUSB0: Qualcomm USB modem converter now disconnected from ttyUSB0
Feb  6 10:29:56 sheet kernel: [ 1903.072652] qcserial ttyUSB1: Qualcomm USB modem converter now disconnected from ttyUSB1
Feb  6 10:29:56 sheet kernel: [ 1903.072962] qcserial ttyUSB2: Qualcomm USB modem converter now disconnected from ttyUSB2
Feb  6 10:29:56 sheet systemd[1]: Started Suspend.
Feb  6 10:29:56 sheet systemd[1]: Reached target Suspend.
Feb  6 10:29:56 sheet systemd[1]: suspend.target: Unit is bound to inactive unit systemd-suspend.service. Stopping, too.
Feb  6 10:29:56 sheet systemd[1]: Stopped target Suspend.
Feb  6 10:29:58 sheet kernel: [ 1905.285668] qcserial 3-4:1.0: Qualcomm USB modem converter detected
Feb  6 10:29:58 sheet kernel: [ 1905.285934] usb 3-4: Qualcomm USB modem converter now attached to ttyUSB0
Feb  6 10:29:58 sheet kernel: [ 1905.286582] qcserial 3-4:1.2: Qualcomm USB modem converter detected
Feb  6 10:29:58 sheet kernel: [ 1905.286765] usb 3-4: Qualcomm USB modem converter now attached to ttyUSB1
Feb  6 10:29:58 sheet kernel: [ 1905.287561] qcserial 3-4:1.3: Qualcomm USB modem converter detected
Feb  6 10:29:58 sheet kernel: [ 1905.287736] usb 3-4: Qualcomm USB modem converter now attached to ttyUSB2
Feb  6 10:29:58 sheet ModemManager[1022]: <info>  Couldn't check support for device at '/sys/devices/pci0000:00/0000:00:19.0': not supported by any plugin
Feb  6 10:29:58 sheet ModemManager[1022]: <info>  Couldn't check support for device at '/sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0': not supported by any plugin
Feb  6 10:30:00 sheet ModemManager[1022]: [/dev/cdc-wdm0] Opening device with flags 'version-info, proxy'...
Feb  6 10:30:00 sheet ModemManager[1022]: cannot connect to proxy: Could not connect: Connection refused
Feb  6 10:30:00 sheet ModemManager[1022]: spawning new qmi-proxy (try 1)...
Feb  6 10:30:00 sheet ModemManager[1022]: [/dev/cdc-wdm0] Checking version info (10 retries)...
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0] QMI Device supports 10 services:
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0]    ctl (1.5)
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0]    wds (1.10)
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0]    dms (1.4)
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0]    nas (1.4)
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0]    qos (1.3)
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0]    wms (1.3)
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0]    pds (1.6)
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0]    uim (1.4)
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0]    pbm (1.1)
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0]    sar (1.0)
Feb  6 10:30:03 sheet ModemManager[1022]: <info>  Creating modem with plugin 'Generic' and '5' ports
Feb  6 10:30:03 sheet ModemManager[1022]: <info>  Modem for device at '/sys/devices/pci0000:00/0000:00:14.0/usb3/3-4' successfully created
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0] Opening device with flags 'version-info, proxy'...
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0] Checking version info (10 retries)...
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0] QMI Device supports 10 services:
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0]    ctl (1.5)
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0]    wds (1.10)
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0]    dms (1.4)
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0]    nas (1.4)
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0]    qos (1.3)
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0]    wms (1.3)
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0]    pds (1.6)
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0]    uim (1.4)
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0]    pbm (1.1)
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0]    sar (1.0)
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0] Reading expected data format from: /sys/class/net/wwp0s20u4i8/qmi/raw_ip
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0] Opening device with flags 'version-info, net-802-3, net-no-qos-header, proxy'...
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0] Checking version info (10 retries)...
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0] QMI Device supports 10 services:
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0]    ctl (1.5)
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0]    wds (1.10)
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0]    dms (1.4)
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0]    nas (1.4)
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0]    qos (1.3)
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0]    wms (1.3)
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0]    pds (1.6)
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0]    uim (1.4)
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0]    pbm (1.1)
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0]    sar (1.0)
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0] Setting network port data format...
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0] Network port data format operation finished
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0] Allocating new client ID...
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0] Registered 'dms' (version 1.4) client with ID '1'
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0] Allocating new client ID...
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0] Registered 'nas' (version 1.4) client with ID '1'
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0] Allocating new client ID...
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0] Registered 'wms' (version 1.3) client with ID '1'
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0] Allocating new client ID...
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0] Registered 'pds' (version 1.6) client with ID '1'
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0] Allocating new client ID...
Feb  6 10:30:03 sheet ModemManager[1022]: [/dev/cdc-wdm0] Registered 'uim' (version 1.4) client with ID '1'
Feb  6 10:30:06 sheet ModemManager[1022]: <warn>  couldn't load list of Own Numbers: 'Couldn't get MSISDN: QMI protocol error (16): 'NotProvisioned''
Feb  6 10:30:07 sheet ModemManager[1022]: <info>  Modem: state changed (unknown -> disabled)
Feb  6 10:30:07 sheet NetworkManager[1121]: <info>  [1486395007.4209] device (cdc-wdm0): modem state 'enabling'
Feb  6 10:30:07 sheet ModemManager[1022]: <info>  Modem /org/freedesktop/ModemManager1/Modem/0: state changed (disabled -> enabling)
Feb  6 10:30:07 sheet ModemManager[1022]: <info>  Modem /org/freedesktop/ModemManager1/Modem/0: 3GPP Registration state changed (unknown -> idle)
Feb  6 10:30:07 sheet ModemManager[1022]: <info>  Modem /org/freedesktop/ModemManager1/Modem/0: state changed (enabling -> enabled)
Feb  6 10:30:13 sheet ModemManager[1022]: <info>  Creating modem with plugin 'Generic' and '1' ports
Feb  6 10:30:13 sheet ModemManager[1022]: <warn>  Could not grab port (tty/ttyS4): 'Cannot add port 'tty/ttyS4', unhandled serial type'
Feb  6 10:30:13 sheet ModemManager[1022]: <warn>  Couldn't create modem for device at '/sys/devices/pci0000:00/0000:00:16.3': Failed to find primary AT port
Feb  6 10:30:32 sheet ModemManager[1022]: <info>  Modem /org/freedesktop/ModemManager1/Modem/0: 3GPP Registration state changed (idle -> registering)
Feb  6 10:30:32 sheet ModemManager[1022]: <info>  Modem /org/freedesktop/ModemManager1/Modem/0: 3GPP Registration state changed (registering -> home)
Feb  6 10:30:32 sheet ModemManager[1022]: <info>  Modem /org/freedesktop/ModemManager1/Modem/0: state changed (enabled -> registered)
Feb  6 10:30:32 sheet NetworkManager[1121]: <info>  [1486395032.7744] device (cdc-wdm0): state change: unavailable -> disconnected (reason 'modem-available') [20 30 58]
Feb  6 10:30:32 sheet ModemManager[1022]: <info>  Simple connect started...
Feb  6 10:30:32 sheet ModemManager[1022]: <info>  Simple connect state (4/8): Wait to get fully enabled
Feb  6 10:30:32 sheet ModemManager[1022]: <info>  Simple connect state (5/8): Register
Feb  6 10:30:32 sheet ModemManager[1022]: <info>  Simple connect state (6/8): Bearer
Feb  6 10:30:32 sheet ModemManager[1022]: <info>  Simple connect state (7/8): Connect
Feb  6 10:30:32 sheet ModemManager[1022]: <info>  Modem /org/freedesktop/ModemManager1/Modem/0: state changed (registered -> connecting)
Feb  6 10:30:32 sheet ModemManager[1022]: [/dev/cdc-wdm0] Allocating new client ID...
Feb  6 10:30:32 sheet ModemManager[1022]: [/dev/cdc-wdm0] Registered 'wds' (version 1.10) client with ID '1'
Feb  6 10:30:40 sheet ModemManager[1022]: <info>  QMI IPv4 Settings:
Feb  6 10:30:40 sheet ModemManager[1022]: <info>      Address: 25.133.215.178/30
Feb  6 10:30:40 sheet ModemManager[1022]: <info>      Gateway: 25.133.215.177
Feb  6 10:30:40 sheet ModemManager[1022]: <info>      DNS #1: 64.71.255.254
Feb  6 10:30:40 sheet ModemManager[1022]: <info>      DNS #2: 64.71.255.253
Feb  6 10:30:40 sheet ModemManager[1022]: <info>         MTU: 1500
Feb  6 10:30:40 sheet ModemManager[1022]: [/dev/cdc-wdm0] Allocating new client ID...
Feb  6 10:30:40 sheet ModemManager[1022]: [/dev/cdc-wdm0] Registered 'wds' (version 1.10) client with ID '2'
Feb  6 10:30:40 sheet ModemManager[1022]: <info>  error: couldn't start network: QMI protocol error (14): 'CallFailed'
Feb  6 10:30:40 sheet ModemManager[1022]: <info>  call end reason (1): 'generic-unspecified'
Feb  6 10:30:40 sheet ModemManager[1022]: <info>  verbose call end reason (2,204): [internal] unknown-cause
Feb  6 10:30:40 sheet ModemManager[1022]: <info>  Modem /org/freedesktop/ModemManager1/Modem/0: state changed (connecting -> connected)
Feb  6 10:30:40 sheet ModemManager[1022]: <info>  Simple connect state (8/8): All done


More information about the ModemManager-devel mailing list