[review] dcbw/huawei-at-dhcp: use AT^DHCP response if available for NDISDUP-capable devices
Dan Williams
dcbw at redhat.com
Wed Aug 19 13:52:11 PDT 2015
On Wed, 2015-08-19 at 22:07 +0200, Thomas Schäfer wrote:
> I am not sure if I understand your question.
>
>
> The E3372s-153 (speedstick v) answers to at^dhcp?
>
> But at the moment I don't understand the answer. My second problem is now,
> that there is no interface, where I could use it.
It gets exposed in the bearer properties for the bearer that gets
created when you ask ModemManager to connect, the same way it does for
HSO or Sierra modems that offer static IP config. Unfortunately mmcli
doesn't seem to have a way to print the bearer properties.
> ^DHCP:
> BBA24C0A,F8FFFFFF,B9A24C0A,B9A24C0A,D2D24A0A,D3D24A0A,150000000,150000000
That would be 10.76.162.187 (ip addr), 255.255.255.248 (netmask),
10.76.162.185 (gateway), 10.76.162.185 (gateway again), 10.74.210.210
(dns1), 10.74.210.211 (dns2).
One thing you could do to test more: after doing the ^DHCP request, run
actual DHCP on the net interface and see what numbers it comes up with.
Dan
> OK
>
> ^DSFLOWRPT:0000021E,00000000,00000000,0000000000000000,0000000000000000,00000000,00000000
>
> ^DSFLOWRPT:00000220,00000000,00000000,0000000000000000,0000000000000000,00000000,00000000
>
>
> at
> ^DSFLOWRPT:00000276,00000000,00000000,0000000000000000,0000000000000000,00000000,00000000
> ^
> ^RSSI:27
>
> ^HCSQ:"LTE",62,55,146,26
> ndis
> ^DSFLOWRPT:00000278,00000000,00000000,0000000000000000,0000000000000000,00000000,00000000
> dup
> ^DSFLOWRPT:0000027A,00000000,00000000,0000000000000000,0000000000000000,00000000,00000000
> =1,0
> ^DSFLOWRPT:0000027C,00000000,00000000,0000000000000000,0000000000000000,00000000,00000000
>
> OK
>
> ^NDISSTAT:0,36,,"IPV4"
>
> ^RSSI:26
>
> /tmp/speedstickv.txt lines 1-41/42 99%
>
> ^HCSQ:"LTE",61,53,146,26
>
>
> My input was
>
> at^dhcp?
> at^ndisdup=1,0
>
> (the first ndisdup=1,1.. is not included here, but the LED switched to
> "connected")
>
> Thomas
>
> _______________________________________________
> ModemManager-devel mailing list
> ModemManager-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/modemmanager-devel
More information about the ModemManager-devel
mailing list