I connect fine but always get disconnected exactly after 120 seconds

Hector Lopez helopez at gmail.com
Tue Dec 8 09:37:29 PST 2015


Alexander,

The --wds-get-autoconnect-settings is an unknown option in my version
(libqmi-1.12.6), below the result of the commands

Thanks

root at black:~# /usr/local/qmi/bin/qmicli -vd /dev/cdc-wdm1
--wds-get-autoconnect-settings
error: Unknown option --wds-get-autoconnect-settings
root at black:~# /usr/local/qmi/bin/qmicli -vd /dev/cdc-wdm1
--wds-get-default-settings=3gpp
[08 Dec 2015, 13:32:41] [Debug] [/dev/cdc-wdm1] Opening device with
flags 'none'...
[08 Dec 2015, 13:32:41] [Debug] QMI Device at '/dev/cdc-wdm1' ready
[08 Dec 2015, 13:32:41] [Debug] [/dev/cdc-wdm1] Assuming service 'wds'
is supported...
[08 Dec 2015, 13:32:41] [Debug] [/dev/cdc-wdm1] Allocating new client ID...
[08 Dec 2015, 13:32:41] [Debug] [/dev/cdc-wdm1] Sent message...
<<<<<< RAW:
<<<<<<   length = 16
<<<<<<   data   = 01:0F:00:00:00:00:00:01:22:00:04:00:01:01:00:01

[08 Dec 2015, 13:32:41] [Debug] [/dev/cdc-wdm1] Sent message (translated)...
<<<<<< QMUX:
<<<<<<   length  = 15
<<<<<<   flags   = 0x00
<<<<<<   service = "ctl"
<<<<<<   client  = 0
<<<<<< QMI:
<<<<<<   flags       = "none"
<<<<<<   transaction = 1
<<<<<<   tlv_length  = 4
<<<<<<   message     = "Allocate CID" (0x0022)
<<<<<< TLV:
<<<<<<   type       = "Service" (0x01)
<<<<<<   length     = 1
<<<<<<   value      = 01
<<<<<<   translated = wds

[08 Dec 2015, 13:32:41] [Debug] [/dev/cdc-wdm1] Received message...
>>>>>> RAW:
>>>>>>   length = 34
>>>>>>   data   = 01:21:00:80:01:FF:04:00:00:22:00:15:00:01:02:00:01:00:10:02:00:F0:03:11:04:00:06:00:24:00:12:01:00:04

[08 Dec 2015, 13:32:41] [Debug] [/dev/cdc-wdm1] Received message (translated)...
>>>>>> QMUX:
>>>>>>   length  = 33
>>>>>>   flags   = 0x80
>>>>>>   service = "wds"
>>>>>>   client  = 255
>>>>>> QMI:
>>>>>>   flags       = "indication"
>>>>>>   transaction = 0
>>>>>>   tlv_length  = 21
>>>>>>   message     = (0x0022)
>>>>>> TLV:
>>>>>>   type   = 0x01
>>>>>>   length = 2
>>>>>>   value  = 01:00
>>>>>> TLV:
>>>>>>   type   = 0x10
>>>>>>   length = 2
>>>>>>   value  = F0:03
>>>>>> TLV:
>>>>>>   type   = 0x11
>>>>>>   length = 4
>>>>>>   value  = 06:00:24:00
>>>>>> TLV:
>>>>>>   type   = 0x12
>>>>>>   length = 1
>>>>>>   value  = 04

[08 Dec 2015, 13:32:41] [Debug] [/dev/cdc-wdm1] Received message...
>>>>>> RAW:
>>>>>>   length = 24
>>>>>>   data   = 01:17:00:80:00:00:01:01:22:00:0C:00:02:04:00:00:00:00:00:01:02:00:01:03

[08 Dec 2015, 13:32:41] [Debug] [/dev/cdc-wdm1] Received message (translated)...
>>>>>> QMUX:
>>>>>>   length  = 23
>>>>>>   flags   = 0x80
>>>>>>   service = "ctl"
>>>>>>   client  = 0
>>>>>> QMI:
>>>>>>   flags       = "response"
>>>>>>   transaction = 1
>>>>>>   tlv_length  = 12
>>>>>>   message     = "Allocate CID" (0x0022)
>>>>>> TLV:
>>>>>>   type       = "Result" (0x02)
>>>>>>   length     = 4
>>>>>>   value      = 00:00:00:00
>>>>>>   translated = SUCCESS
>>>>>> TLV:
>>>>>>   type       = "Allocation Info" (0x01)
>>>>>>   length     = 2
>>>>>>   value      = 01:03
>>>>>>   translated = [ service = 'wds' cid = '3' ]

[08 Dec 2015, 13:32:41] [Debug] [/dev/cdc-wdm1] Registered 'wds'
(version unknown) client with ID '3'
[08 Dec 2015, 13:32:41] [Debug] Asynchronously get default settings...
[08 Dec 2015, 13:32:41] [Debug] [/dev/cdc-wdm1] Sent message...
<<<<<< RAW:
<<<<<<   length = 17
<<<<<<   data   = 01:10:00:00:01:03:00:01:00:2C:00:04:00:01:01:00:00

[08 Dec 2015, 13:32:41] [Debug] [/dev/cdc-wdm1] Sent message (translated)...
<<<<<< QMUX:
<<<<<<   length  = 16
<<<<<<   flags   = 0x00
<<<<<<   service = "wds"
<<<<<<   client  = 3
<<<<<< QMI:
<<<<<<   flags       = "none"
<<<<<<   transaction = 1
<<<<<<   tlv_length  = 4
<<<<<<   message     = "Get Default Settings" (0x002C)
<<<<<< TLV:
<<<<<<   type       = "Profile Type" (0x01)
<<<<<<   length     = 1
<<<<<<   value      = 00
<<<<<<   translated = 3gpp

[08 Dec 2015, 13:32:41] [Debug] [/dev/cdc-wdm1] Received message...
>>>>>> RAW:
>>>>>>   length = 197
>>>>>>   data   = 01:C4:00:80:01:03:02:01:00:2C:00:B8:00:02:04:00:00:00:00:00:31:01:00:00:30:04:00:00:00:00:00:2F:01:00:00:2D:01:00:00:29:22: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:27:01:00:00:26:01:00:00:25:01:00:01:22:01:00:00:21:01:00:00:20:01:00:00:1F:01:00:00:1E:04:00:00:00:00:00:1D:01:00:00:1C:00:00:1B:00:00:17:21: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:16:04:00:00:00:00:00:15:04:00:00:00:00:00:14:00:00:13:01:00:00:12:01:00:00:11:01:00:03:10:08:00:70:72:6F:66:69:6C:65:31

[08 Dec 2015, 13:32:41] [Debug] [/dev/cdc-wdm1] Received message (translated)...
>>>>>> QMUX:
>>>>>>   length  = 196
>>>>>>   flags   = 0x80
>>>>>>   service = "wds"
>>>>>>   client  = 3
>>>>>> QMI:
>>>>>>   flags       = "response"
>>>>>>   transaction = 1
>>>>>>   tlv_length  = 184
>>>>>>   message     = "Get Default Settings" (0x002C)
>>>>>> TLV:
>>>>>>   type       = "Result" (0x02)
>>>>>>   length     = 4
>>>>>>   value      = 00:00:00:00
>>>>>>   translated = SUCCESS
>>>>>> TLV:
>>>>>>   type   = 0x31
>>>>>>   length = 1
>>>>>>   value  = 00
>>>>>> TLV:
>>>>>>   type   = 0x30
>>>>>>   length = 4
>>>>>>   value  = 00:00:00:00
>>>>>> TLV:
>>>>>>   type   = 0x2f
>>>>>>   length = 1
>>>>>>   value  = 00
>>>>>> TLV:
>>>>>>   type   = 0x2d
>>>>>>   length = 1
>>>>>>   value  = 00
>>>>>> TLV:
>>>>>>   type   = 0x29
>>>>>>   length = 34
>>>>>>   value  = 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
>>>>>> TLV:
>>>>>>   type   = 0x27
>>>>>>   length = 1
>>>>>>   value  = 00
>>>>>> TLV:
>>>>>>   type   = 0x26
>>>>>>   length = 1
>>>>>>   value  = 00
>>>>>> TLV:
>>>>>>   type   = 0x25
>>>>>>   length = 1
>>>>>>   value  = 01
>>>>>> TLV:
>>>>>>   type       = "IMCN Flag" (0x22)
>>>>>>   length     = 1
>>>>>>   value      = 00
>>>>>>   translated = no
>>>>>> TLV:
>>>>>>   type       = "PCSCF Address Using DHCP" (0x21)
>>>>>>   length     = 1
>>>>>>   value      = 00
>>>>>>   translated = no
>>>>>> TLV:
>>>>>>   type   = 0x20
>>>>>>   length = 1
>>>>>>   value  = 00
>>>>>> TLV:
>>>>>>   type       = "PCSCF Address Using PCO" (0x1f)
>>>>>>   length     = 1
>>>>>>   value      = 00
>>>>>>   translated = no
>>>>>> TLV:
>>>>>>   type       = "IPv4 Address Preference" (0x1e)
>>>>>>   length     = 4
>>>>>>   value      = 00:00:00:00
>>>>>>   translated = 0
>>>>>> TLV:
>>>>>>   type       = "Authentication" (0x1d)
>>>>>>   length     = 1
>>>>>>   value      = 00
>>>>>>   translated = none
>>>>>> TLV:
>>>>>>   type       = "Password" (0x1c)
>>>>>>   length     = 0
>>>>>>   value      = (null)
>>>>>>   translated =
>>>>>> TLV:
>>>>>>   type       = "Username" (0x1b)
>>>>>>   length     = 0
>>>>>>   value      = (null)
>>>>>>   translated =
>>>>>> TLV:
>>>>>>   type   = 0x17
>>>>>>   length = 33
>>>>>>   value  = 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
>>>>>> TLV:
>>>>>>   type       = "Secondary IPv4 DNS Address" (0x16)
>>>>>>   length     = 4
>>>>>>   value      = 00:00:00:00
>>>>>>   translated = 0
>>>>>> TLV:
>>>>>>   type       = "Primary IPv4 DNS Address" (0x15)
>>>>>>   length     = 4
>>>>>>   value      = 00:00:00:00
>>>>>>   translated = 0
>>>>>> TLV:
>>>>>>   type       = "APN Name" (0x14)
>>>>>>   length     = 0
>>>>>>   value      = (null)
>>>>>>   translated =
>>>>>> TLV:
>>>>>>   type   = 0x13
>>>>>>   length = 1
>>>>>>   value  = 00
>>>>>> TLV:
>>>>>>   type   = 0x12
>>>>>>   length = 1
>>>>>>   value  = 00
>>>>>> TLV:
>>>>>>   type       = "PDP Type" (0x11)
>>>>>>   length     = 1
>>>>>>   value      = 03
>>>>>>   translated = ipv4-or-ipv6
>>>>>> TLV:
>>>>>>   type       = "Profile Name" (0x10)
>>>>>>   length     = 8
>>>>>>   value      = 70:72:6F:66:69:6C:65:31
>>>>>>   translated = profile1

Default settings retrieved:
        PDP type: 'ipv4-or-ipv6'
        Auth: 'none'
[08 Dec 2015, 13:32:41] [Debug] [/dev/cdc-wdm1] Releasing 'wds' client
with flags 'release-cid'...
[08 Dec 2015, 13:32:41] [Debug] [/dev/cdc-wdm1] Unregistered 'wds'
client with ID '3'
[08 Dec 2015, 13:32:41] [Debug] [/dev/cdc-wdm1] Sent message...
<<<<<< RAW:
<<<<<<   length = 17
<<<<<<   data   = 01:10:00:00:00:00:00:02:23:00:05:00:01:02:00:01:03

[08 Dec 2015, 13:32:41] [Debug] [/dev/cdc-wdm1] Sent message (translated)...
<<<<<< QMUX:
<<<<<<   length  = 16
<<<<<<   flags   = 0x00
<<<<<<   service = "ctl"
<<<<<<   client  = 0
<<<<<< QMI:
<<<<<<   flags       = "none"
<<<<<<   transaction = 2
<<<<<<   tlv_length  = 5
<<<<<<   message     = "Release CID" (0x0023)
<<<<<< TLV:
<<<<<<   type       = "Release Info" (0x01)
<<<<<<   length     = 2
<<<<<<   value      = 01:03
<<<<<<   translated = [ service = 'wds' cid = '3' ]

[08 Dec 2015, 13:32:41] [Debug] [/dev/cdc-wdm1] Received message...
>>>>>> RAW:
>>>>>>   length = 24
>>>>>>   data   = 01:17:00:80:00:00:01:02:23:00:0C:00:02:04:00:00:00:00:00:01:02:00:01:03

[08 Dec 2015, 13:32:41] [Debug] [/dev/cdc-wdm1] Received message (translated)...
>>>>>> QMUX:
>>>>>>   length  = 23
>>>>>>   flags   = 0x80
>>>>>>   service = "ctl"
>>>>>>   client  = 0
>>>>>> QMI:
>>>>>>   flags       = "response"
>>>>>>   transaction = 2
>>>>>>   tlv_length  = 12
>>>>>>   message     = "Release CID" (0x0023)
>>>>>> TLV:
>>>>>>   type       = "Result" (0x02)
>>>>>>   length     = 4
>>>>>>   value      = 00:00:00:00
>>>>>>   translated = SUCCESS
>>>>>> TLV:
>>>>>>   type       = "Release Info" (0x01)
>>>>>>   length     = 2
>>>>>>   value      = 01:03
>>>>>>   translated = [ service = 'wds' cid = '3' ]

[08 Dec 2015, 13:32:41] [Debug] Client released


More information about the libqmi-devel mailing list