<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:????
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><br><br><div>> From: bjorn@mork.no<br>> To: aleksander@aleksander.es<br>> CC: zapman711@hotmail.com; libqmi-devel@lists.freedesktop.org<br>> Subject: Re: QMICLI IPV6 problem on MC7354<br>> Date: Tue, 16 Dec 2014 18:36:25 +0100<br>> <br>> Aleksander Morgado <aleksander@aleksander.es> writes:<br>> <br>> > I don't think so; the "WDS Start Network" given by qmicli<br>> > --wds-start-network gives just the APN to use, it doesn't give any<br>> > reference to the profile that was set with AT+CGDCONT. If you want to<br>> > use profiles, then qmicli needs to be modified to allow passing the<br>> > profile ID (e.g. a new --wds-start-network-id=[ID]").<br>> <br>> There is always a default profile used for parameters you don't give in<br>> the "WDS Start Network" command. And because the PDP type is one of<br>> these, you *have* to create a default profile with the IPV4V6 type to<br>> create a successful dual stack connection. It's just not possible to<br>> specify that PDP type any other way using QMI (AFAIK - it's been a while<br>> since I played with QMI).<br>> <br>> E.g., if I set my default profile like this (not recommended):<br>> <br>> at+cgdcont?<br>> +CGDCONT: 1,"IP","","0.0.0.0",0,0<br>> <br>> OK<br>> <br>> and initiate an IPv4 QMI connection, then this is what I get:<br>> <br>> sending to /dev/cdc-wdm1:<br>> 01 0c 00 00 01 0d 00 02 00 2d 00 00 00 <br>> => QMUX Header:<br>> => len: 0x000c<br>> => sender: 0x00<br>> => svc: 0x01<br>> => cid: 0x0d<br>> <br>> => QMI Header:<br>> => Flags: 0x00<br>> => TXN: 0x0002<br>> => Cmd: 0x002d<br>> => Size: 0x0000<br>> reading from /dev/cdc-wdm1<br>> [Tue Dec 16 18:21:32 2014] read 143 bytes from /dev/cdc-wdm1<br>> 01 8e 00 80 01 0d 02 02 00 2d 00 82 00 02 04 00 00 00 00 00 1e 04 00 66 a8 7d 0a 15 04 00 04 70 d5 c1 16 04 00 c6 0f 43 82 20 04 00 65 a8 7d 0a 21 04 00 fc ff ff ff 24 01 00 00 23 01 00 00 1f 02 00 00 01 10 08 00 70 72 6f 66 69 6c 65 31 11 01 00 00 14 0d 00 74 65 6c 65 6e 6f 72 2e 73 6d 61 72 74 1d 01 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 22 01 00 00 <br>> <= QMUX Header:<br>> <= len: 0x008e<br>> <= sender: 0x80<br>> <= svc: 0x01<br>> <= cid: 0x0d<br>> <br>> <= QMI Header:<br>> <= Flags: 0x02<br>> <= TXN: 0x0002<br>> <= Cmd: 0x002d<br>> <= Size: 0x0082<br>> <= [0x02] ( 4) 00 00 00 00 SUCCESS - QMI_ERR_NONE<br>> <= [0x10] ( 8) 70 72 6f 66 69 6c 65 31 profile1<br>> <= [0x11] ( 1) 00 PDP-IP (IPv4)<br>> <= [0x14] (13) 74 65 6c 65 6e 6f 72 2e 73 6d 61 72 74 telenor.smart<br>> <= [0x15] ( 4) 04 70 d5 c1 193.213.112.4<br>> <= [0x16] ( 4) c6 0f 43 82 130.67.15.198<br>> <= [0x17] (33) 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 .................................<br>> <= [0x1d] ( 1) 00 .<br>> <= [0x1e] ( 4) 66 a8 7d 0a 10.125.168.102<br>> <= [0x1f] ( 2) 00 01 ..<br>> <= [0x20] ( 4) 65 a8 7d 0a 10.125.168.101<br>> <= [0x21] ( 4) fc ff ff ff 255.255.255.252<br>> <= [0x22] ( 1) 00 .<br>> <= [0x23] ( 1) 00 .<br>> <= [0x24] ( 1) 00 .<br>> <br>> <br>> Notice the 'PDP-IP' type. This makes it impossible to continue creating<br>> a dual stack connection. But if I change the default profile to this:<br>> <br>> at+cgdcont?<br>> +CGDCONT: 1,"IPV4V6","","0.0.0.0",0,0<br>> <br>> OK<br>> <br>> and connect using the exact same QMI command and APN I used for the<br>> previous connection (i.e. no IPv6 mentioned anywhere), then I get this<br>> result:<br>> <br>> sending to /dev/cdc-wdm1:<br>> 01 0c 00 00 01 10 00 04 00 2d 00 00 00 <br>> => QMUX Header:<br>> => len: 0x000c<br>> => sender: 0x00<br>> => svc: 0x01<br>> => cid: 0x10<br>> <br>> => QMI Header:<br>> => Flags: 0x00<br>> => TXN: 0x0004<br>> => Cmd: 0x002d<br>> => Size: 0x0000<br>> reading from /dev/cdc-wdm1<br>> [Tue Dec 16 18:24:10 2014] read 143 bytes from /dev/cdc-wdm1<br>> 01 8e 00 80 01 10 02 04 00 2d 00 82 00 02 04 00 00 00 00 00 1e 04 00 31 83 7d 0a 15 04 00 04 70 d5 c1 16 04 00 c6 0f 43 82 20 04 00 32 83 7d 0a 21 04 00 fc ff ff ff 24 01 00 00 23 01 00 00 1f 02 00 00 01 10 08 00 70 72 6f 66 69 6c 65 31 11 01 00 03 14 0d 00 74 65 6c 65 6e 6f 72 2e 73 6d 61 72 74 1d 01 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 22 01 00 00 <br>> <= QMUX Header:<br>> <= len: 0x008e<br>> <= sender: 0x80<br>> <= svc: 0x01<br>> <= cid: 0x10<br>> <br>> <= QMI Header:<br>> <= Flags: 0x02<br>> <= TXN: 0x0004<br>> <= Cmd: 0x002d<br>> <= Size: 0x0082<br>> <= [0x02] ( 4) 00 00 00 00 SUCCESS - QMI_ERR_NONE<br>> <= [0x10] ( 8) 70 72 6f 66 69 6c 65 31 profile1<br>> <= [0x11] ( 1) 03 PDP-IPV4V6<br>> <= [0x14] (13) 74 65 6c 65 6e 6f 72 2e 73 6d 61 72 74 telenor.smart<br>> <= [0x15] ( 4) 04 70 d5 c1 193.213.112.4<br>> <= [0x16] ( 4) c6 0f 43 82 130.67.15.198<br>> <= [0x17] (33) 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 .................................<br>> <= [0x1d] ( 1) 00 .<br>> <= [0x1e] ( 4) 31 83 7d 0a 10.125.131.49<br>> <= [0x1f] ( 2) 00 01 ..<br>> <= [0x20] ( 4) 32 83 7d 0a 10.125.131.50<br>> <= [0x21] ( 4) fc ff ff ff 255.255.255.252<br>> <= [0x22] ( 1) 00 .<br>> <= [0x23] ( 1) 00 .<br>> <= [0x24] ( 1) 00 .<br>> <br>> <br>> Notice the 'PDP-IPV4V6' type. I can now continue connecting, using the<br>> same APN and IPv6 with a second WDS client, to create a dual stack<br>> connection.<br>> <br>> The procedure to set up a dual stack QMI connection is:<br>> <br>> 1) Set the default profile PDP type to "IPV4V6"<br>> 2) connect IPv4 WDS client<br><br>> 3) connect IPv6 WDS client using the same APN<br><br>It seems like 'qmicli' doesn't implement these options, isn't it?<br>My qmicli version: 1.10.4<br>> <br><br><br>> <br>> But as I said before: There are really good reasons why the default<br>> should always be set to "IPV4V6". It is the only setting that will work<br>> on every network.<br>> <br>> <br>> Bjørn<br></div> </div></body>
</html>