Cannot get IPv4 address from EE UK with MC7455

Cian Masterson cian.masterson at gmail.com
Thu Apr 13 11:41:13 UTC 2017


I did some digging with this, and if I set the PDP context to IPv4 only
with AT commands as follows...

AT+CGDCONT=1,"IP","everywhere"
OK
AT+CGDCONT?
+CGDCONT: 1,"IP","everywhere","0.0.0.0",0,0,0,0

OK


...then the --wds-start-network command connects and pulls an IPv4
address.  I also did some tests by setting a garbage PDP context - for
example

 AT+CGDCONT=1,"IP","ciantest"
OK

The subsequent --wds-start-network command also succeeded and pulled an
IPv4 address.  I then queried the PDP context with AT+CGDCONT? and found it
had been set correctly to "IP","everywhere".  If I set a garbage PDP
context with the type set to "IPV4V6" I go back to my original problem of
getting rejected with "[3gpp] ipv6-only-allowed".

So......it seems like the APN part of the stored PDP context gets
overwritten by a successful connection to the network, but the "IPV4V6"
part doesn't, even with ip-type=4 in the APN string.  I have a workaround
now so I'm happy enough, but I'm curious why one part gets overwritten and
the other part doesn't.  Anyone know?

Slan,
Cian


On 5 April 2017 at 11:09, Cian Masterson <cian.masterson at gmail.com> wrote:

>
>> Let's see what your PDP/EPS contexts are.  Your device should expose
>> one or more serial ports, one of which will probably speak AT commands.
>>  You can use "minicom -d /dev/xxxxx" (where the xxxxx is something like
>> ACM0 or USB1) and then type:
>>
>> AT+CGDCONT? <hit return>
>>
>> and then copy and paste what it says in a reply to this mail.
>>
>
> That returns the following:
>
> AT+CGDCONT?
> +CGDCONT: 1,"IPV4V6","everywhere","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",
> 0,0,0,0
>
> OK
>
> I note that it has IPV4V6, which presumably tells the network it's happy
> to do either.  The "everywhere" part would presumably have been set by my
> --wds-start-network command, but how does the IPV4V6 get set?
>
> For reference the uBlox responds with +CGDCONT:
> 1,"IP","everywhere","10.189.241.78",0,0,0,0,0,0
>
>
> It may be that the only contexts defined on the device are IPv6 ones,
>> and since you're requesting IPv4 the device doesn't allow that.  The
>> contexts are stored on the device, not related to the SIM, so that
>> would explain why you can do IPv4 on the Toby.
>>
>> Alternatively, if you have a new enough qmicli, you can:
>>
>> qmicli -d /dev/cdc-wdm0 --wds-get-profile-list=3gpp
>>
>
> That returns teh following:
>
> [root at feegle /]# qmicli -d /dev/cdc-wdm0 --wds-get-profile-list=3gpp
> Profile list retrieved:
>         [1] 3gpp -
>                 APN: 'everywhere'
>                 PDP type: 'ipv4-or-ipv6'
>                 Username: 'eesecure'
>                 Password: 'secure'
>                 Auth: 'chap'
> [root at feegle /]#
>
>
> If I understand you correctly this means the contexts are stored on the
> device and it is using those, so I guess my question is how do they get set
> and/or how do I change them?
>
> Slan,
> Cian
>



-- 
"Give a man a fire and he's warm for a day, but set
 fire to him and he's warm for the rest of his life."
          --  Terry Pratchett
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libqmi-devel/attachments/20170413/0ac7fc8c/attachment-0001.html>


More information about the libqmi-devel mailing list