[OpenWrt-Devel] Huawei 3372 NCM support on CC not working

Bjørn Mork bjorn at mork.no
Wed Jul 1 10:03:53 EDT 2015


chrono <chrono at open-resource.org> writes:

> ### test flow ###
>
> echo -e "AT^NDISDUP=1,1,\"internet.eplus.de\",\"eplus\",\"gprs\"\r" >
> /dev/ttyUSB1
>
> AT^NDISDUP=1,1,"internet.eplus.de","eplus","gprs"
> OK
>
> ^NDISSTAT:1,,,"IPV4"
>
> ^RSSI:19
>
> ^HCSQ:"LTE",47,40,126,20
>
> ^DSFLOWRPT:00000002,00000000,00000000,0000000000000000,0000000000000000,00000000,00000000
>
> ^DSFLOWRPT:00000004,00000000,00000000,0000000000000000,0000000000000000,00000000,00000000
>
> ^DSFLOWRPT:00000006,00000000,00000000,0000000000000000,0000000000000000,00000000,00000000
>
> ^DSFLOWRPT:00000008,00000000,00000000,0000000000000000,0000000000000000,00000000,00000000
>
> ^DSFLOWRPT:0000000A,00000000,00000000,0000000000000000,0000000000000000,00000000,00000000
>
> AT+COPS?
> +COPS: 0,0,"MEDIONmobile",7
>
> OK
>
> echo -e "AT^DHCP?\r" > /dev/ttyUSB1
>
> AT^DHCP?
> ^DHCP:
> F8C9730A,F0FFFFFF,F1C9730A,F1C9730A,096717D4,086717D4,150000000,150000000
>
> perl -e 'print join(",",map { join(".", unpack("C4", pack("L", hex)))
> } split /,/, shift),"\n"'
> F8C9730A,F0FFFFFF,F1C9730A,F1C9730A,096717D4,086717D4
>
> 10.115.201.248,255.255.255.240,10.115.201.241,10.115.201.241,212.23.103.9,212.23.103.8
>
> ifconfig wwan0 10.115.201.248 netmask 255.255.255.240
>
> ping 10.115.201.241

Great docs of what you have tried!

There are two more things I can think of that is worth testing:
1) set the wwan0 interface up before connecting (AT^NDISDUP):
     ifconfig wwan0 up
2) turn off ARP:
     ifconfig wwan0 -arp

And note that pinging the "gateway" isn't a good test, contrary to
normal networks.  The "subnet" and "gateway" are faked by the firmware.
In reality, the gateway address is probably assigned to another user. If
the firmware does things properly, then it won't answer the ping but
forward those icmp echo requests to the mobile network like any other
packet.  And many mobile networks will never forward icmp echo to end
users, so you will not get a reply even if the address happens to be in
use by someone.

To test this you should find some address which is known to be reachable
and responding, and add a route to that (or a default route). I.e.
 ip route add 8.8.8.8/32 via 10.115.201.241
or
 ip route add default via 10.115.201.241

If you turn off arp then you can simply ignore the gateway address and
refer to the netdev instead:
  ip route add 8.8.8.8/32 dev wwan0
or
  ip route add default dev wwan0

Then try to ping 8.8.8.8 (or whatever address you chose).


Bjørn
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list