Using MM with Lede

Nathaniel Haggard natester at gmail.com
Wed Aug 30 19:15:48 UTC 2017


The log is ~600K, so I'll send it to Aleksander directly, but here is one
highlight at least:

Wed Aug 30 15:41:46 2017 daemon.debug [4134]: [/dev/cdc-wdm0] received
generic response (translated)...
<<<<<< QMUX:
<<<<<<   length  = 19
<<<<<<   flags   = 0x80
<<<<<<   service = "nas"
<<<<<<   client  = 3
<<<<<< QMI:
<<<<<<   flags       = "response"
<<<<<<   transaction = 3
<<<<<<   tlv_length  = 7
<<<<<<   message     = "Get Home Network" (0x0025)
<<<<<< TLV:
<<<<<<   type       = "Result" (0x02)
<<<<<<   length     = 4
<<<<<<   value      = 01:00:10:00
<<<<<<   translated = FAILURE: NotProvisioned
Wed Aug 30 15:41:46 2017 daemon.warn [4134]: <warn>  [1504107706.271269]
[mm-base-sim.c:1424] load_operator_identifier_ready(): couldn't load
Operator identifier: 'Couldn't get home network: QMI protocol error (16):
'NotProvisioned''
Wed Aug 30 15:41:46 2017 daemon.info [4134]: <debug> [1504107706.271343]
[mm-sim-qmi.c:374] load_operator_name(): loading SIM operator name...
Wed Aug 30 15:41:46 2017 daemon.debug [4134]: [/dev/cdc-wdm0] sent
message...
<<<<<< RAW:
<<<<<<   length = 13
<<<<<<   data   = 01:0C:00:00:03:03:00:04:00:25:00:00:00
Wed Aug 30 15:41:46 2017 daemon.debug [4134]: [/dev/cdc-wdm0] sent generic
request (translated)...
<<<<<< QMUX:
<<<<<<   length  = 12
<<<<<<   flags   = 0x00
<<<<<<   service = "nas"
<<<<<<   client  = 3
<<<<<< QMI:
<<<<<<   flags       = "none"
<<<<<<   transaction = 4
<<<<<<   tlv_length  = 0
<<<<<<   message     = "Get Home Network" (0x0025)
Wed Aug 30 15:41:46 2017 daemon.debug [4134]: [/dev/cdc-wdm0] received
message...
<<<<<< RAW:
<<<<<<   length = 20
<<<<<<   data   =
01:13:00:80:03:03:02:04:00:25:00:07:00:02:04:00:01:00:10:00
Wed Aug 30 15:41:46 2017 daemon.debug [4134]: [/dev/cdc-wdm0] received
generic response (translated)...
<<<<<< QMUX:
<<<<<<   length  = 19
<<<<<<   flags   = 0x80
<<<<<<   service = "nas"
<<<<<<   client  = 3
<<<<<< QMI:
<<<<<<   flags       = "response"
<<<<<<   transaction = 4
<<<<<<   tlv_length  = 7
<<<<<<   message     = "Get Home Network" (0x0025)
<<<<<< TLV:
<<<<<<   type       = "Result" (0x02)
<<<<<<   length     = 4
<<<<<<   value      = 01:00:10:00
<<<<<<   translated = FAILURE: NotProvisioned
Wed Aug 30 15:41:46 2017 daemon.warn [4134]: <warn>  [1504107706.335377]
[mm-base-sim.c:1425] load_operator_name_ready(): couldn't load Operator
name: 'Couldn't get home network: QMI protocol error (16): 'NotProvisioned''


Also I am able to connect manually with mmcli, but the IP listed is not
associated with any interface:

mmcli -m 0 --simple-connect="pin=1234,apn=fast.t-mobile.com"

Tue Aug 29 17:52:49 2017 daemon.debug [4037]: [/dev/cdc-wdm1] Allocating
new client ID...
Tue Aug 29 17:52:49 2017 daemon.debug [4037]: [/dev/cdc-wdm1] Registered
'wds' (version 1.67) client with ID '35'
Tue Aug 29 17:52:54 2017 daemon.info [4037]: <info>  QMI IPv4 Settings:
Tue Aug 29 17:52:54 2017 daemon.info [4037]: <info>      Address:
22.159.249.232/28
Tue Aug 29 17:52:54 2017 daemon.info [4037]: <info>      Gateway:
22.159.249.233
Tue Aug 29 17:52:54 2017 daemon.info [4037]: <info>      DNS #1: 10.177.0.34
Tue Aug 29 17:52:54 2017 daemon.info [4037]: <info>      DNS #2:
10.177.0.210
Tue Aug 29 17:52:54 2017 daemon.info [4037]: <info>         MTU: 1500
Tue Aug 29 17:52:54 2017 daemon.info [4037]: <info>  Modem
/org/freedesktop/ModemManager1/Modem/0: state changed (connecting ->
connected)
Tue Aug 29 17:52:54 2017 daemon.info [4037]: <info>  Simple connect state
(8/8): All done

On Wed, Aug 30, 2017 at 10:23 AM, Nathaniel Haggard <natester at gmail.com>
wrote:

> The log is ~600K, so I attached it, but here is one highlight at least:
>
> Wed Aug 30 15:41:46 2017 daemon.debug [4134]: [/dev/cdc-wdm0] received
> generic response (translated)...
> <<<<<< QMUX:
> <<<<<<   length  = 19
> <<<<<<   flags   = 0x80
> <<<<<<   service = "nas"
> <<<<<<   client  = 3
> <<<<<< QMI:
> <<<<<<   flags       = "response"
> <<<<<<   transaction = 3
> <<<<<<   tlv_length  = 7
> <<<<<<   message     = "Get Home Network" (0x0025)
> <<<<<< TLV:
> <<<<<<   type       = "Result" (0x02)
> <<<<<<   length     = 4
> <<<<<<   value      = 01:00:10:00
> <<<<<<   translated = FAILURE: NotProvisioned
> Wed Aug 30 15:41:46 2017 daemon.warn [4134]: <warn>  [1504107706.271269]
> [mm-base-sim.c:1424] load_operator_identifier_ready(): couldn't load
> Operator identifier: 'Couldn't get home network: QMI protocol error (16):
> 'NotProvisioned''
> Wed Aug 30 15:41:46 2017 daemon.info [4134]: <debug> [1504107706.271343]
> [mm-sim-qmi.c:374] load_operator_name(): loading SIM operator name...
> Wed Aug 30 15:41:46 2017 daemon.debug [4134]: [/dev/cdc-wdm0] sent
> message...
> <<<<<< RAW:
> <<<<<<   length = 13
> <<<<<<   data   = 01:0C:00:00:03:03:00:04:00:25:00:00:00
> Wed Aug 30 15:41:46 2017 daemon.debug [4134]: [/dev/cdc-wdm0] sent generic
> request (translated)...
> <<<<<< QMUX:
> <<<<<<   length  = 12
> <<<<<<   flags   = 0x00
> <<<<<<   service = "nas"
> <<<<<<   client  = 3
> <<<<<< QMI:
> <<<<<<   flags       = "none"
> <<<<<<   transaction = 4
> <<<<<<   tlv_length  = 0
> <<<<<<   message     = "Get Home Network" (0x0025)
> Wed Aug 30 15:41:46 2017 daemon.debug [4134]: [/dev/cdc-wdm0] received
> message...
> <<<<<< RAW:
> <<<<<<   length = 20
> <<<<<<   data   = 01:13:00:80:03:03:02:04:00:25:
> 00:07:00:02:04:00:01:00:10:00
> Wed Aug 30 15:41:46 2017 daemon.debug [4134]: [/dev/cdc-wdm0] received
> generic response (translated)...
> <<<<<< QMUX:
> <<<<<<   length  = 19
> <<<<<<   flags   = 0x80
> <<<<<<   service = "nas"
> <<<<<<   client  = 3
> <<<<<< QMI:
> <<<<<<   flags       = "response"
> <<<<<<   transaction = 4
> <<<<<<   tlv_length  = 7
> <<<<<<   message     = "Get Home Network" (0x0025)
> <<<<<< TLV:
> <<<<<<   type       = "Result" (0x02)
> <<<<<<   length     = 4
> <<<<<<   value      = 01:00:10:00
> <<<<<<   translated = FAILURE: NotProvisioned
> Wed Aug 30 15:41:46 2017 daemon.warn [4134]: <warn>  [1504107706.335377]
> [mm-base-sim.c:1425] load_operator_name_ready(): couldn't load Operator
> name: 'Couldn't get home network: QMI protocol error (16): 'NotProvisioned''
>
>
> Also I am able to connect manually with mmcli, but the IP listed is not
> associated with any interface:
>
> mmcli -m 0 --simple-connect="pin=1234,apn=fast.t-mobile.com"
>
> Tue Aug 29 17:52:49 2017 daemon.debug [4037]: [/dev/cdc-wdm1] Allocating
> new client ID...
> Tue Aug 29 17:52:49 2017 daemon.debug [4037]: [/dev/cdc-wdm1] Registered
> 'wds' (version 1.67) client with ID '35'
> Tue Aug 29 17:52:54 2017 daemon.info [4037]: <info>  QMI IPv4 Settings:
> Tue Aug 29 17:52:54 2017 daemon.info [4037]: <info>      Address:
> 22.159.249.232/28
> Tue Aug 29 17:52:54 2017 daemon.info [4037]: <info>      Gateway:
> 22.159.249.233
> Tue Aug 29 17:52:54 2017 daemon.info [4037]: <info>      DNS #1:
> 10.177.0.34
> Tue Aug 29 17:52:54 2017 daemon.info [4037]: <info>      DNS #2:
> 10.177.0.210
> Tue Aug 29 17:52:54 2017 daemon.info [4037]: <info>         MTU: 1500
> Tue Aug 29 17:52:54 2017 daemon.info [4037]: <info>  Modem
> /org/freedesktop/ModemManager1/Modem/0: state changed (connecting ->
> connected)
> Tue Aug 29 17:52:54 2017 daemon.info [4037]: <info>  Simple connect state
> (8/8): All done
>
>
>
>
>
>
> On Tue, Aug 29, 2017 at 11:28 PM, Aleksander Morgado <
> aleksander at aleksander.es> wrote:
>
>> >
>> > I've got ModemManager working on the latest version of lede with few
>> > problems. Can you provide some debug logs (run ModemManager --debug).
>> >
>> > Make sure to run the following after starting ModemManager so that
>> device
>> > events are reported properly
>> >
>> > . /etc/modemmanager/modemmanager.common
>> > mm_cleanup_interfaces
>> > ( mm_report_events_from_cache ) >/dev/null 2>&1 &
>> >
>>
>> To clarify, these extra 3 steps are only needed if manually running
>> ModemManager, as it would need to get reported the kernel events that
>> happened until then.
>>
>> You can also just edit the /etc/init.d/ModemManager file to add the
>> extra --debug, and restart using the init file, and the extra steps
>> wouldn't be necessary, as they are done by the init file.
>>
>> --
>> Aleksander
>> https://aleksander.es
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20170830/ca8aebf1/attachment-0001.html>


More information about the ModemManager-devel mailing list