QMICLI IPV6 problem on MC7354
Tang Nguyen
tang_nguyen at yahoo.com
Wed Aug 17 22:17:22 UTC 2016
Thanks Alessander. Yes, I tried tour command and successfuly got new CID and packet handler number. Looks like modem has connected to network with 2 CID, but I am not able to get ipv6 address. From modem, I can see both ipv6 and ipv4 assigned to modem, but "qmicli -d /dev/cdc-wdm0 --wds-get-current-settings" just shows me ipv4 only.
****Send AT command to modem and got both ipv4 and ipv6:
at+cgcontrdp
+CGCONTRDP: 1,5,vzwims,172.22.1.100,FC01:ABAB:CDCD:EFE0:0:0:0:1, FE80:0:0:0:290:B8FF:FE01:FFF1,172.22.1.201 FC01:CAFE:0:0:0:0:0:1,,FCB1:ABAB:CDCD:6FEE:0:0:0:1
OK
*****qmicli commands only shows IPv4********
root at rx1500-lns-33:~# qmicli -d /dev/cdc-wdm1 --wds-get-current-settings
[/dev/cdc-wdm1] Current settings retrieved:
IP Family: IPv4
IPv4 address: 172.22.1.101
IPv4 subnet mask: 255.255.255.252
IPv4 gateway address: 172.22.1.102
IPv4 primary DNS: 172.22.1.201
MTU: 1428
Domains: none
root at rx1500-lns-33:~# qmicli -d /dev/cdc-wdm1 --wds-get-default-settings=3gpp
Default settings retrieved:
APN: 'vzwinternet'
PDP type: 'ipv4-or-ipv6'
Username: ''
Password: ''
Auth: 'none'
Tracing
***First call return SUCCESS***
root at rx1500-lns-33:~# qmicli -d /dev/cdc-wdm1 --wds-start-network=vzwinternet --client-no-release-cid -v
[17 Aug 2016, 17:57:26] [Debug] [/dev/cdc-wdm1] Opening device with flags 'none'...
[17 Aug 2016, 17:57:26] [Debug] [/dev/cdc-wdm1] Received message...
>>>>>> RAW:
>>>>>> length = 12
>>>>>> data = 01:0B:00:80:00:00:02:00:27:00:00:00
[17 Aug 2016, 17:57:26] [Debug] [/dev/cdc-wdm1] Received message (translated)...
>>>>>> QMUX:
>>>>>> length = 11
>>>>>> flags = 0x80
>>>>>> service = "ctl"
>>>>>> client = 0
>>>>>> QMI:
>>>>>> flags = "indication"
>>>>>> transaction = 0
>>>>>> tlv_length = 0
>>>>>> message = "Sync" (0x0027)
[17 Aug 2016, 17:57:26] [Debug] [/dev/cdc-wdm1] Received message...
>>>>>> RAW:
>>>>>> length = 12
>>>>>> data = 01:0B:00:80:00:00:02:00:27:00:00:00
[17 Aug 2016, 17:57:26] [Debug] [/dev/cdc-wdm1] Received message (translated)...
>>>>>> QMUX:
>>>>>> length = 11
>>>>>> flags = 0x80
>>>>>> service = "ctl"
>>>>>> client = 0
>>>>>> QMI:
>>>>>> flags = "indication"
>>>>>> transaction = 0
>>>>>> tlv_length = 0
>>>>>> message = "Sync" (0x0027)
[17 Aug 2016, 17:57:26] [Debug] QMI Device at '/dev/cdc-wdm1' ready
[17 Aug 2016, 17:57:26] [Debug] [/dev/cdc-wdm1] Assuming service 'wds' is supported...
[17 Aug 2016, 17:57:26] [Debug] [/dev/cdc-wdm1] Allocating new client ID...
[17 Aug 2016, 17:57:26] [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
[17 Aug 2016, 17:57:26] [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
[17 Aug 2016, 17:57:26] [Debug] [/dev/cdc-wdm1] Received message...
>>>>>> RAW:
>>>>>> length = 12
>>>>>> data = 01:0B:00:80:00:00:02:00:27:00:00:00
[17 Aug 2016, 17:57:26] [Debug] [/dev/cdc-wdm1] Received message (translated)...
>>>>>> QMUX:
>>>>>> length = 11
>>>>>> flags = 0x80
>>>>>> service = "ctl"
>>>>>> client = 0
>>>>>> QMI:
>>>>>> flags = "indication"
>>>>>> transaction = 0
>>>>>> tlv_length = 0
>>>>>> message = "Sync" (0x0027)
[17 Aug 2016, 17:57:26] [Debug] [/dev/cdc-wdm1] Received message...
>>>>>> RAW:
>>>>>> length = 12
>>>>>> data = 01:0B:00:80:00:00:02:00:27:00:00:00
[17 Aug 2016, 17:57:26] [Debug] [/dev/cdc-wdm1] Received message (translated)...
>>>>>> QMUX:
>>>>>> length = 11
>>>>>> flags = 0x80
>>>>>> service = "ctl"
>>>>>> client = 0
>>>>>> QMI:
>>>>>> flags = "indication"
>>>>>> transaction = 0
>>>>>> tlv_length = 0
>>>>>> message = "Sync" (0x0027)
[17 Aug 2016, 17:57:26] [Debug] [/dev/cdc-wdm1] Received message...
>>>>>> RAW:
>>>>>> length = 12
>>>>>> data = 01:0B:00:80:00:00:02:00:27:00:00:00
[17 Aug 2016, 17:57:26] [Debug] [/dev/cdc-wdm1] Received message (translated)...
>>>>>> QMUX:
>>>>>> length = 11
>>>>>> flags = 0x80
>>>>>> service = "ctl"
>>>>>> client = 0
>>>>>> QMI:
>>>>>> flags = "indication"
>>>>>> transaction = 0
>>>>>> tlv_length = 0
>>>>>> message = "Sync" (0x0027)
[17 Aug 2016, 17:57:26] [Debug] [/dev/cdc-wdm1] Received message...
>>>>>> RAW:
>>>>>> length = 12
>>>>>> data = 01:0B:00:80:00:00:02:00:27:00:00:00
[17 Aug 2016, 17:57:26] [Debug] [/dev/cdc-wdm1] Received message (translated)...
>>>>>> QMUX:
>>>>>> length = 11
>>>>>> flags = 0x80
>>>>>> service = "ctl"
>>>>>> client = 0
>>>>>> QMI:
>>>>>> flags = "indication"
>>>>>> transaction = 0
>>>>>> tlv_length = 0
>>>>>> message = "Sync" (0x0027)
[17 Aug 2016, 17:57:26] [Debug] [/dev/cdc-wdm1] Sync indication received
[17 Aug 2016, 17:57:26] [Debug] [/dev/cdc-wdm1] Sync indication received
[17 Aug 2016, 17:57:26] [Debug] [/dev/cdc-wdm1] Sync indication received
[17 Aug 2016, 17:57:26] [Debug] [/dev/cdc-wdm1] Sync indication received
[17 Aug 2016, 17:57:26] [Debug] [/dev/cdc-wdm1] Sync indication received
[17 Aug 2016, 17:57:26] [Debug] [/dev/cdc-wdm1] Sync indication received
[17 Aug 2016, 17:57:26] [Debug] [/dev/cdc-wdm1] Received message...
>>>>>> RAW:
>>>>>> length = 12
>>>>>> data = 01:0B:00:80:00:00:02:00:27:00:00:00
[17 Aug 2016, 17:57:26] [Debug] [/dev/cdc-wdm1] Received message (translated)...
>>>>>> QMUX:
>>>>>> length = 11
>>>>>> flags = 0x80
>>>>>> service = "ctl"
>>>>>> client = 0
>>>>>> QMI:
>>>>>> flags = "indication"
>>>>>> transaction = 0
>>>>>> tlv_length = 0
>>>>>> message = "Sync" (0x0027)
[17 Aug 2016, 17:57:26] [Debug] [/dev/cdc-wdm1] Sync indication received
[17 Aug 2016, 17:57:26] [Debug] [/dev/cdc-wdm1] Received message...
>>>>>> RAW:
>>>>>> length = 12
>>>>>> data = 01:0B:00:80:00:00:02:00:27:00:00:00
[17 Aug 2016, 17:57:26] [Debug] [/dev/cdc-wdm1] Received message (translated)...
>>>>>> QMUX:
>>>>>> length = 11
>>>>>> flags = 0x80
>>>>>> service = "ctl"
>>>>>> client = 0
>>>>>> QMI:
>>>>>> flags = "indication"
>>>>>> transaction = 0
>>>>>> tlv_length = 0
>>>>>> message = "Sync" (0x0027)
[17 Aug 2016, 17:57:26] [Debug] [/dev/cdc-wdm1] Sync indication received
[17 Aug 2016, 17:57:26] [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:08
[17 Aug 2016, 17:57:26] [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:08
>>>>>> translated = [ service = 'wds' cid = '8' ]
[17 Aug 2016, 17:57:26] [Debug] [/dev/cdc-wdm1] Registered 'wds' (version unknown) client with ID '8'
[17 Aug 2016, 17:57:26] [Debug] Network start parameters set (apn: 'vzwinternet', 3gpp_profile: '0', 3gpp2_profile: '0', auth: 'unspecified', username: 'unspecified', password: 'unspecified', autoconnect: 'unspecified')
[17 Aug 2016, 17:57:26] [Debug] Asynchronously starting network...
[17 Aug 2016, 17:57:26] [Debug] [/dev/cdc-wdm1] Sent message...
<<<<<< RAW:
<<<<<< length = 27
<<<<<< data = 01:1A:00:00:01:08:00:01:00:20:00:0E:00:14:0B:00:76:7A:77:69:6E:74:65:72:6E:65:74
[17 Aug 2016, 17:57:26] [Debug] [/dev/cdc-wdm1] Sent message (translated)...
<<<<<< QMUX:
<<<<<< length = 26
<<<<<< flags = 0x00
<<<<<< service = "wds"
<<<<<< client = 8
<<<<<< QMI:
<<<<<< flags = "none"
<<<<<< transaction = 1
<<<<<< tlv_length = 14
<<<<<< message = "Start Network" (0x0020)
<<<<<< TLV:
<<<<<< type = "APN" (0x14)
<<<<<< length = 11
<<<<<< value = 76:7A:77:69:6E:74:65:72:6E:65:74
<<<<<< translated = vzwinternet
[17 Aug 2016, 17:57:27] [Debug] [/dev/cdc-wdm1] Received message...
>>>>>> RAW:
>>>>>> length = 27
>>>>>> data = 01:1A:00:80:01:08:02:01:00:20:00:0E:00:02:04:00:00:00:00:00:01:04:00:28:2E:DB:47
[17 Aug 2016, 17:57:27] [Debug] [/dev/cdc-wdm1] Received message (translated)...
>>>>>> QMUX:
>>>>>> length = 26
>>>>>> flags = 0x80
>>>>>> service = "wds"
>>>>>> client = 8
>>>>>> QMI:
>>>>>> flags = "response"
>>>>>> transaction = 1
>>>>>> tlv_length = 14
>>>>>> message = "Start Network" (0x0020)
>>>>>> TLV:
>>>>>> type = "Result" (0x02)
>>>>>> length = 4
>>>>>> value = 00:00:00:00
>>>>>> translated = SUCCESS
>>>>>> TLV:
>>>>>> type = "Packet Data Handle" (0x01)
>>>>>> length = 4
>>>>>> value = 28:2E:DB:47
>>>>>> translated = 1205546536
[/dev/cdc-wdm1] Network started
Packet data handle: '1205546536'
[/dev/cdc-wdm1] Client ID not released:
Service: 'wds'
CID: '8'
[17 Aug 2016, 17:57:27] [Debug] [/dev/cdc-wdm1] Releasing 'wds' client with flags 'none'...
[17 Aug 2016, 17:57:27] [Debug] [/dev/cdc-wdm1] Unregistered 'wds' client with ID '8'
[17 Aug 2016, 17:57:27] [Debug] Client released
**** Second Call also returns SUCCESS*******
root at rx1500-lns-33:~# qmicli -d /dev/cdc-wdm1 --wds-start-network=vzwinternet --client-no-release-cid -v
[17 Aug 2016, 17:58:02] [Debug] [/dev/cdc-wdm1] Opening device with flags 'none'...
[17 Aug 2016, 17:58:02] [Debug] [/dev/cdc-wdm1] Received message...
>>>>>> RAW:
>>>>>> length = 27
>>>>>> data = 01:1A:00:80:01:08:04:00:00:22:00:0E:00:01:02:00:02:00:12:01:00:04:13:02:00:80:88
[17 Aug 2016, 17:58:02] [Debug] [/dev/cdc-wdm1] Received message (translated)...
>>>>>> QMUX:
>>>>>> length = 26
>>>>>> flags = 0x80
>>>>>> service = "wds"
>>>>>> client = 8
>>>>>> QMI:
>>>>>> flags = "indication"
>>>>>> transaction = 0
>>>>>> tlv_length = 14
>>>>>> message = "Packet Service Status" (0x0022)
>>>>>> TLV:
>>>>>> type = "Connection Status" (0x01)
>>>>>> length = 2
>>>>>> value = 02:00
>>>>>> translated = [ status = 'connected' reconfiguration_required = 'no' ]
>>>>>> TLV:
>>>>>> type = "IP Family" (0x12)
>>>>>> length = 1
>>>>>> value = 04
>>>>>> translated = ipv4
>>>>>> TLV:
>>>>>> type = 0x13
>>>>>> length = 2
>>>>>> value = 80:88
[17 Aug 2016, 17:58:02] [Debug] QMI Device at '/dev/cdc-wdm1' ready
[17 Aug 2016, 17:58:02] [Debug] [/dev/cdc-wdm1] Assuming service 'wds' is supported...
[17 Aug 2016, 17:58:02] [Debug] [/dev/cdc-wdm1] Allocating new client ID...
[17 Aug 2016, 17:58:02] [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
[17 Aug 2016, 17:58:02] [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
[17 Aug 2016, 17:58:02] [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:09
[17 Aug 2016, 17:58:02] [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:09
>>>>>> translated = [ service = 'wds' cid = '9' ]
[17 Aug 2016, 17:58:02] [Debug] [/dev/cdc-wdm1] Registered 'wds' (version unknown) client with ID '9'
[17 Aug 2016, 17:58:02] [Debug] Network start parameters set (apn: 'vzwinternet', 3gpp_profile: '0', 3gpp2_profile: '0', auth: 'unspecified', username: 'unspecified', password: 'unspecified', autoconnect: 'unspecified')
[17 Aug 2016, 17:58:02] [Debug] Asynchronously starting network...
[17 Aug 2016, 17:58:02] [Debug] [/dev/cdc-wdm1] Sent message...
<<<<<< RAW:
<<<<<< length = 27
<<<<<< data = 01:1A:00:00:01:09:00:01:00:20:00:0E:00:14:0B:00:76:7A:77:69:6E:74:65:72:6E:65:74
[17 Aug 2016, 17:58:02] [Debug] [/dev/cdc-wdm1] Sent message (translated)...
<<<<<< QMUX:
<<<<<< length = 26
<<<<<< flags = 0x00
<<<<<< service = "wds"
<<<<<< client = 9
<<<<<< QMI:
<<<<<< flags = "none"
<<<<<< transaction = 1
<<<<<< tlv_length = 14
<<<<<< message = "Start Network" (0x0020)
<<<<<< TLV:
<<<<<< type = "APN" (0x14)
<<<<<< length = 11
<<<<<< value = 76:7A:77:69:6E:74:65:72:6E:65:74
<<<<<< translated = vzwinternet
[17 Aug 2016, 17:58:02] [Debug] [/dev/cdc-wdm1] Received message...
>>>>>> RAW:
>>>>>> length = 27
>>>>>> data = 01:1A:00:80:01:09:02:01:00:20:00:0E:00:02:04:00:00:00:00:00:01:04:00:00:61:DC:47
[17 Aug 2016, 17:58:02] [Debug] [/dev/cdc-wdm1] Received message (translated)...
>>>>>> QMUX:
>>>>>> length = 26
>>>>>> flags = 0x80
>>>>>> service = "wds"
>>>>>> client = 9
>>>>>> QMI:
>>>>>> flags = "response"
>>>>>> transaction = 1
>>>>>> tlv_length = 14
>>>>>> message = "Start Network" (0x0020)
>>>>>> TLV:
>>>>>> type = "Result" (0x02)
>>>>>> length = 4
>>>>>> value = 00:00:00:00
>>>>>> translated = SUCCESS
>>>>>> TLV:
>>>>>> type = "Packet Data Handle" (0x01)
>>>>>> length = 4
>>>>>> value = 00:61:DC:47
>>>>>> translated = 1205625088
[/dev/cdc-wdm1] Network started
Packet data handle: '1205625088'
[/dev/cdc-wdm1] Client ID not released:
Service: 'wds'
CID: '9'
[17 Aug 2016, 17:58:02] [Debug] [/dev/cdc-wdm1] Releasing 'wds' client with flags 'none'...
[17 Aug 2016, 17:58:02] [Debug] [/dev/cdc-wdm1] Unregistered 'wds' client with ID '9'
[17 Aug 2016, 17:58:02] [Debug] Client released
I am using version 14.2
Any hint is much appreciated.
Tang
On Sunday, July 31, 2016 11:59 AM, Aleksander Morgado <aleksander at aleksander.es> wrote:
On Fri, Jul 29, 2016 at 10:37 PM, Tang Nguyen <tang_nguyen at yahoo.com> wrote:
>
>
> I have problem with getting ipv6 address from modem on MC7354 as described in above thread. Bjon mentioned we should need to connect 2 WDS clients for dual stack. Would anyone please let me know how to open a second WDS client ?
Every time you run qmicli without using --client-cid=[CID] you're
creating a new WDS client. E.g.
$ qmicli -d /dev/cdc-wdm3 --wds-noop --client-no-release-cid
[/dev/cdc-wdm3] Client ID not released:
Service: 'wds'
CID: '10'
(creates a WDS client and doesn't release it, to use it, run WDS
commands with "--client-cid=10 --client-no-release-cid")
$ qmicli -d /dev/cdc-wdm3 --wds-noop --client-no-release-cid
Service: 'wds'
CID: '11'
(creates a WDS client and doesn't release it, to use it, run WDS
commands with "--client-cid=11 --client-no-release-cid")
--
Aleksander
https://aleksander.es
_______________________________________________
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