mbimcli / Telit LN932
Dan Williams
dcbw at redhat.com
Thu Mar 24 14:42:28 UTC 2016
On Thu, 2016-03-24 at 10:39 +0100, Sebastian Sjoholm wrote:
> Hi,
>
> I have received an Telit LN932 module, and it seems that the MBIM is
> the
> way to go with this. I have checked out master branch of mbimcli and
> trying
> to get connected with the module.
>
> The connect (--connect) seems to go through, I receive connection
> info like
> IP, DNS and etc, but when I check the connection (--query-connection-
> state)
> it is not active anymore.
>
> Using kernel 4.5.0
>
> Something that I am missing here?
Probably the --no-close and --no-open options, which preserve the
connection across runs because they don't close the connection when
mbimcli exits. Look at the utils/mbim-network script for how those
work and where to get the transaction ID for --no-open.
Dan
> Regards,
> Sebastian
>
> root at SBC05:~# mbimcli --version
>
> mbimcli 1.13.0
> Copyright (2013-2014) Aleksander Morgado
> License GPLv2+: GNU GPL version 2 or later <
> http://gnu.org/licenses/gpl-2.0.html>;
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
>
> root at SBC05:~# mbimcli -d /dev/cdc-wdm0 --
> connect="apn=lte1.dynamic.com" -v
> [24 Mar 2016, 10:37:12] [Debug] opening device...
> [24 Mar 2016, 10:37:12] [Debug] [/dev/cdc-wdm0] Queried max control
> message
> size: 512
> [24 Mar 2016, 10:37:12] [Debug] [/dev/cdc-wdm0] Sent message...
> <<<<<< RAW:
> <<<<<< length = 16
> <<<<<< data = 01:00:00:00:10:00:00:00:01:00:00:00:00:02:00:00
>
> [24 Mar 2016, 10:37:12] [Debug] [/dev/cdc-wdm0] Sent message
> (translated)...
> <<<<<< Header:
> <<<<<< length = 16
> <<<<<< type = open (0x00000001)
> <<<<<< transaction = 1
> <<<<<< Contents:
> <<<<<< max_control_transfer = 512
>
> [24 Mar 2016, 10:37:12] [Debug] [/dev/cdc-wdm0] Received message...
> >
> > >
> > > >
> > > > >
> > > > > >
> > > > > > >
> > > > > > > RAW:
> > > > > > > length = 16
> > > > > > > data =
> > > > > > > 01:00:00:80:10:00:00:00:01:00:00:00:00:00:00:00
> [24 Mar 2016, 10:37:12] [Debug] MBIM Device at '/dev/cdc-wdm0' ready
> [24 Mar 2016, 10:37:12] [Debug] [/dev/cdc-wdm0] Sent message...
> <<<<<< RAW:
> <<<<<< length = 140
> <<<<<< data =
> 03:00:00:00:8C:00:00:00:02:00:00:00:01:00:00:00:00:00:00:00:A2:89:CC:
> 33:BC:BB:8B:4F:B6:B0:13:3E:C2:AA:E6:DF:0C:00:00:00:01:00:00:00:5C:00:
> 00:00:00:00:00:00:01:00:00:00:3C:00:00:00:20:00:00:00:00:00:00:00:00:
> 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:
> 7E:5E:2A:7E:4E:6F:72:72:73:6B:65:6E:7E:5E:2A:7E:6C:00:74:00:65:00:31:
> 00:2E:00:64:00:79:00:6E:00:61:00:6D:00:69:00:63:00:2E:00:63:00:6F:00:
> 6D:00
>
> [24 Mar 2016, 10:37:12] [Debug] [/dev/cdc-wdm0] Sent message
> (translated)...
> <<<<<< Header:
> <<<<<< length = 140
> <<<<<< type = command (0x00000003)
> <<<<<< transaction = 2
> <<<<<< Fragment header:
> <<<<<< total = 1
> <<<<<< current = 0
> <<<<<< Contents:
> <<<<<< service = 'basic-connect' (a289cc33-bcbb-8b4f-b6b0-
> 133ec2aae6df)
> <<<<<< cid = 'connect' (0x0000000c)
> <<<<<< type = 'set' (0x00000001)
>
> [24 Mar 2016, 10:37:14] [Debug] [/dev/cdc-wdm0] Received message...
> >
> > >
> > > >
> > > > >
> > > > > >
> > > > > > >
> > > > > > > RAW:
> > > > > > > length = 72
> > > > > > > data =
> 07:00:00:80:48:00:00:00:00:00:00:00:01:00:00:00:00:00:00:00:A2:89:CC:
> 33:BC:BB:8B:4F:B6:B0:13:3E:C2:AA:E6:DF:0A:00:00:00:1C:00:00:00:00:00:
> 00:00:02:00:00:00:00:00:00:80:80:B1:4F:01:00:00:00:00:00:7A:03:0A:00:
> 00:00:00
>
> [24 Mar 2016, 10:37:14] [Debug] [/dev/cdc-wdm0] Received message
> (translated)...
> >
> > >
> > > >
> > > > >
> > > > > >
> > > > > > >
> > > > > > > Header:
> > > > > > > length = 72
> > > > > > > type = indicate-status (0x80000007)
> > > > > > > transaction = 0
> > > > > > > Fragment header:
> > > > > > > total = 1
> > > > > > > current = 0
> > > > > > > Contents:
> > > > > > > service = 'basic-connect' (a289cc33-bcbb-8b4f-b6b0-
> > > > > > > 133ec2aae6df)
> > > > > > > cid = 'packet-service' (0x0000000a)
> [24 Mar 2016, 10:37:15] [Debug] [/dev/cdc-wdm0] Received message...
> >
> > >
> > > >
> > > > >
> > > > > >
> > > > > > >
> > > > > > > RAW:
> > > > > > > length = 84
> > > > > > > data =
> 03:00:00:80:54:00:00:00:02:00:00:00:01:00:00:00:00:00:00:00:A2:89:CC:
> 33:BC:BB:8B:4F:B6:B0:13:3E:C2:AA:E6:DF:0C:00:00:00:00:00:00:00:24:00:
> 00:00:00:00:00:00:01:00:00:00:00:00:00:00:01:00:00:00:7E:5E:2A:7E:4E:
> 6F:72:72:73:6B:65:6E:7E:5E:2A:7E:00:00:00:00
>
> [24 Mar 2016, 10:37:15] [Debug] [/dev/cdc-wdm0] Received message
> (translated)...
> >
> > >
> > > >
> > > > >
> > > > > >
> > > > > > >
> > > > > > > Header:
> > > > > > > length = 84
> > > > > > > type = command-done (0x80000003)
> > > > > > > transaction = 2
> > > > > > > Fragment header:
> > > > > > > total = 1
> > > > > > > current = 0
> > > > > > > Contents:
> > > > > > > status error = 'None' (0x00000000)
> > > > > > > service = 'basic-connect'
> (a289cc33-bcbb-8b4f-b6b0-133ec2aae6df)
> >
> > >
> > > >
> > > > >
> > > > > >
> > > > > > >
> > > > > > > cid = 'connect' (0x0000000c)
> [/dev/cdc-wdm0] Successfully connected
>
> [/dev/cdc-wdm0] Connection status:
> Session ID: '0'
> Activation state: 'activated'
> Voice call state: 'none'
> IP type: 'ipv4'
> Context type: 'internet'
> Network error: 'unknown'
> [24 Mar 2016, 10:37:15] [Debug] [/dev/cdc-wdm0] Sent message...
> <<<<<< RAW:
> <<<<<< length = 108
> <<<<<< data =
> 03:00:00:00:6C:00:00:00:03:00:00:00:01:00:00:00:00:00:00:00:A2:89:CC:
> 33:BC:BB:8B:4F:B6:B0:13:3E:C2:AA:E6:DF:0F:00:00:00:00:00:00:00:3C:00:
> 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:
> 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:
> 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
>
> [24 Mar 2016, 10:37:15] [Debug] [/dev/cdc-wdm0] Sent message
> (translated)...
> <<<<<< Header:
> <<<<<< length = 108
> <<<<<< type = command (0x00000003)
> <<<<<< transaction = 3
> <<<<<< Fragment header:
> <<<<<< total = 1
> <<<<<< current = 0
> <<<<<< Contents:
> <<<<<< service = 'basic-connect' (a289cc33-bcbb-8b4f-b6b0-
> 133ec2aae6df)
> <<<<<< cid = 'ip-configuration' (0x0000000f)
> <<<<<< type = 'query' (0x00000000)
>
> [24 Mar 2016, 10:37:15] [Debug] [/dev/cdc-wdm0] Received message...
> >
> > >
> > > >
> > > > >
> > > > > >
> > > > > > >
> > > > > > > RAW:
> > > > > > > length = 128
> > > > > > > data =
> 03:00:00:80:80:00:00:00:03:00:00:00:01:00:00:00:00:00:00:00:A2:89:CC:
> 33:BC:BB:8B:4F:B6:B0:13:3E:C2:AA:E6:DF:0F:00:00:00:00:00:00:00:50:00:
> 00:00:00:00:00:00:07:00:00:00:00:00:00:00:01:00:00:00:44:00:00:00:00:
> 00:00:00:00:00:00:00:4C:00:00:00:00:00:00:00:02:00:00:00:3C:00:00:00:
> 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:AC:20:37:14:AC:20:37:
> 15:18:00:00:00:0A:27:06:08:0A:27:06:01
>
> [24 Mar 2016, 10:37:15] [Debug] [/dev/cdc-wdm0] Received message
> (translated)...
> >
> > >
> > > >
> > > > >
> > > > > >
> > > > > > >
> > > > > > > Header:
> > > > > > > length = 128
> > > > > > > type = command-done (0x80000003)
> > > > > > > transaction = 3
> > > > > > > Fragment header:
> > > > > > > total = 1
> > > > > > > current = 0
> > > > > > > Contents:
> > > > > > > status error = 'None' (0x00000000)
> > > > > > > service = 'basic-connect'
> (a289cc33-bcbb-8b4f-b6b0-133ec2aae6df)
> >
> > >
> > > >
> > > > >
> > > > > >
> > > > > > >
> > > > > > > cid = 'ip-configuration' (0x0000000f)
>
> [/dev/cdc-wdm0] IPv4 configuration available: 'address, gateway, dns'
> IP [0]: '10.39.6.8/24'
> Gateway: '10.39.6.1'
> DNS [0]: '172.32.55.20'
> DNS [1]: '172.32.55.21'
>
> [/dev/cdc-wdm0] IPv6 configuration available: 'none'
> [24 Mar 2016, 10:37:15] [Debug] [/dev/cdc-wdm0] Sent message...
> <<<<<< RAW:
> <<<<<< length = 12
> <<<<<< data = 02:00:00:00:0C:00:00:00:04:00:00:00
>
> [24 Mar 2016, 10:37:15] [Debug] [/dev/cdc-wdm0] Sent message
> (translated)...
> <<<<<< Header:
> <<<<<< length = 12
> <<<<<< type = close (0x00000002)
> <<<<<< transaction = 4
>
> [24 Mar 2016, 10:37:15] [Debug] [/dev/cdc-wdm0] Received message...
> >
> > >
> > > >
> > > > >
> > > > > >
> > > > > > >
> > > > > > > RAW:
> > > > > > > length = 16
> > > > > > > data =
> > > > > > > 02:00:00:80:10:00:00:00:04:00:00:00:00:00:00:00
> [24 Mar 2016, 10:37:15] [Debug] Device closed
> root at SBC05:~# mbimcli -d /dev/cdc-wdm0 --query-connection-state -v
> [24 Mar 2016, 10:37:18] [Debug] opening device...
> [24 Mar 2016, 10:37:18] [Debug] [/dev/cdc-wdm0] Queried max control
> message
> size: 512
> [24 Mar 2016, 10:37:18] [Debug] [/dev/cdc-wdm0] Sent message...
> <<<<<< RAW:
> <<<<<< length = 16
> <<<<<< data = 01:00:00:00:10:00:00:00:01:00:00:00:00:02:00:00
>
> [24 Mar 2016, 10:37:18] [Debug] [/dev/cdc-wdm0] Sent message
> (translated)...
> <<<<<< Header:
> <<<<<< length = 16
> <<<<<< type = open (0x00000001)
> <<<<<< transaction = 1
> <<<<<< Contents:
> <<<<<< max_control_transfer = 512
>
> [24 Mar 2016, 10:37:18] [Debug] [/dev/cdc-wdm0] Received message...
> >
> > >
> > > >
> > > > >
> > > > > >
> > > > > > >
> > > > > > > RAW:
> > > > > > > length = 16
> > > > > > > data =
> > > > > > > 01:00:00:80:10:00:00:00:01:00:00:00:00:00:00:00
> [24 Mar 2016, 10:37:18] [Debug] MBIM Device at '/dev/cdc-wdm0' ready
> [24 Mar 2016, 10:37:18] [Debug] [/dev/cdc-wdm0] Sent message...
> <<<<<< RAW:
> <<<<<< length = 84
> <<<<<< data =
> 03:00:00:00:54:00:00:00:02:00:00:00:01:00:00:00:00:00:00:00:A2:89:CC:
> 33:BC:BB:8B:4F:B6:B0:13:3E:C2:AA:E6:DF:0C:00:00:00:00:00:00:00:24:00:
> 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:7E:5E:2A:7E:4E:
> 6F:72:72:73:6B:65:6E:7E:5E:2A:7E:00:00:00:00
>
> [24 Mar 2016, 10:37:18] [Debug] [/dev/cdc-wdm0] Sent message
> (translated)...
> <<<<<< Header:
> <<<<<< length = 84
> <<<<<< type = command (0x00000003)
> <<<<<< transaction = 2
> <<<<<< Fragment header:
> <<<<<< total = 1
> <<<<<< current = 0
> <<<<<< Contents:
> <<<<<< service = 'basic-connect' (a289cc33-bcbb-8b4f-b6b0-
> 133ec2aae6df)
> <<<<<< cid = 'connect' (0x0000000c)
> <<<<<< type = 'query' (0x00000000)
>
> [24 Mar 2016, 10:37:18] [Debug] [/dev/cdc-wdm0] Received message...
> >
> > >
> > > >
> > > > >
> > > > > >
> > > > > > >
> > > > > > > RAW:
> > > > > > > length = 84
> > > > > > > data =
> 03:00:00:80:54:00:00:00:02:00:00:00:01:00:00:00:00:00:00:00:A2:89:CC:
> 33:BC:BB:8B:4F:B6:B0:13:3E:C2:AA:E6:DF:0C:00:00:00:00:00:00:00:24:00:
> 00:00:00:00:00:00:03:00:00:00:00:00:00:00:00:00:00:00:B4:3F:75:8C:A5:
> 60:4B:46:B3:5E:C5:86:96:41:FB:54:00:00:00:00
>
> [24 Mar 2016, 10:37:18] [Debug] [/dev/cdc-wdm0] Received message
> (translated)...
> >
> > >
> > > >
> > > > >
> > > > > >
> > > > > > >
> > > > > > > Header:
> > > > > > > length = 84
> > > > > > > type = command-done (0x80000003)
> > > > > > > transaction = 2
> > > > > > > Fragment header:
> > > > > > > total = 1
> > > > > > > current = 0
> > > > > > > Contents:
> > > > > > > status error = 'None' (0x00000000)
> > > > > > > service = 'basic-connect'
> (a289cc33-bcbb-8b4f-b6b0-133ec2aae6df)
> >
> > >
> > > >
> > > > >
> > > > > >
> > > > > > >
> > > > > > > cid = 'connect' (0x0000000c)
> [/dev/cdc-wdm0] Connection status:
> Session ID: '0'
> Activation state: 'deactivated'
> Voice call state: 'none'
> IP type: 'default'
> Context type: 'none'
> Network error: 'unknown'
> [24 Mar 2016, 10:37:18] [Debug] [/dev/cdc-wdm0] Sent message...
> <<<<<< RAW:
> <<<<<< length = 12
> <<<<<< data = 02:00:00:00:0C:00:00:00:03:00:00:00
>
> [24 Mar 2016, 10:37:18] [Debug] [/dev/cdc-wdm0] Sent message
> (translated)...
> <<<<<< Header:
> <<<<<< length = 12
> <<<<<< type = close (0x00000002)
> <<<<<< transaction = 3
>
> [24 Mar 2016, 10:37:18] [Debug] [/dev/cdc-wdm0] Received message...
> >
> > >
> > > >
> > > > >
> > > > > >
> > > > > > >
> > > > > > > RAW:
> > > > > > > length = 16
> > > > > > > data =
> > > > > > > 02:00:00:80:10:00:00:00:03:00:00:00:00:00:00:00
> [24 Mar 2016, 10:37:18] [Debug] Device closed
> root at SBC05:~#
> _______________________________________________
> libqmi-devel mailing list
> libqmi-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/libqmi-devel
More information about the libqmi-devel
mailing list