No internet connection for Huawei E3131 modem on TL-WDR4300

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Author Message
carinthat
DD-WRT Novice


Joined: 15 Apr 2015
Posts: 7

PostPosted: Wed Apr 15, 2015 21:32    Post subject: No internet connection for Huawei E3131 modem on TL-WDR4300 Reply with quote
Hello!

I am having trouble to get my USB modem connected to the internet.

Router Model: TPLINK TL-WDR4300 v1
Firmware Version: DD-WRT v24-sp2 (04/09/15) std - build 26653
USB modem: Huawei E3131 HSPA+ Modem

I have enabled the Core USB support in the WebGui and plugged the USB Modem into the USB port of the router.

I checked the interface list and the 12d1:14fe is listed in the supported modems.

Code:
root@TL-WDR4300:~# cat /proc/bus/usb/devices

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  1, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 3.10
S:  Manufacturer=Linux 3.10.73 ehci_hcd
S:  Product=Atheros AR91xx built-in EHCI controller
S:  SerialNumber=platform
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480  MxCh= 4
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=05e3 ProdID=0608 Rev=85.36
S:  Product=USB2.0 Hub
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   1 Ivl=256ms

T:  Bus=01 Lev=02 Prnt=02 Port=01 Cnt=01 Dev#=  3 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=12d1 ProdID=14fe Rev= 1.02
S:  Manufacturer=HUAWEI
S:  Product=HUAWEI Mobile
C:* #Ifs= 2 Cfg#= 1 Atr=80 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none)
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none)
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
root@TL-WDR4300:~#


Then I switched the WAN connection type to Mobile Broadband and configured the settings in the WebGui:

Code:
root@TL-WDR4300:~# nvram show | grep wan
wan_unit=0
size: 24351 bytes (41185 left)
wan_get_dns=
telnet_wanport=23
wan_lease=0
http_wanport=8080
wan_gateway=0.0.0.0
wan_hwname=
wan_domain=
wan_netmask=0.0.0.0
wan_ifname2=
block_wan=1
dr_wan_rx=0
wan_dns=
wan_apn=drei.at
dhcp_wins=wan
wan_proto=3g
wanup=0
wan_hwaddr=14:CC:20:2B:97:3F
clone_wan_mac=0
wan_default=
wan_ifnames=
dr_wan_tx=0
l2tp_wan_gateway=0.0.0.0
wan_pin=1815
proftpd_wan=0
wan_primary=1
openvpn_onwan=0
dhcp_domain=wan
wan_dial=1
wan_gateway_buf=0.0.0.0
wan_vdsl=0
upnp_wan_proto=
wan_ipaddr=0.0.0.0
wan_wins=0.0.0.0
wan_mtu=1500
pptp_wan_gateway=0.0.0.0
sshd_wanport=22
wan_get_domain=
wan_ifname=
wan_hostname=
wan_conmode=5
ddns_wan_ip=1
wan_dualaccess=0
root@TL-WDR4300:~#

Then I power cycled the router:

Code:
root@TL-WDR4300:~# dmesg | grep usb
<6>[    5.430000] usbcore: registered new interface driver usbfs
<6>[    5.430000] usbcore: registered new interface driver hub
<6>[    5.440000] usbcore: registered new device driver usb
<6>[    5.620000] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
<6>[    5.630000] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
<6>[    5.640000] usb usb1: Product: Atheros AR91xx built-in EHCI controller
<6>[    5.640000] usb usb1: Manufacturer: Linux 3.10.73 ehci_hcd
<6>[    5.650000] usb usb1: SerialNumber: platform
<6>[    5.980000] usb 1-1: new high-speed USB device number 2 using ar71xx-ehci
<6>[    6.130000] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
<6>[    6.130000] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
<6>[    6.140000] usb 1-1: Product: USB2.0 Hub
<6>[   10.710000] usb 1-1.2: new high-speed USB device number 3 using ar71xx-ehci
<6>[   10.820000] usb 1-1.2: New USB device found, idVendor=12d1, idProduct=14fe
<6>[   10.820000] usb 1-1.2: New USB device strings: Mfr=2, Product=1, SerialNumber=0
<6>[   10.830000] usb 1-1.2: Product: HUAWEI Mobile
<6>[   10.830000] usb 1-1.2: Manufacturer: HUAWEI
<6>[   18.250000] usbcore: registered new interface driver usbserial
<6>[   18.260000] usbcore: registered new interface driver usbserial_generic
<6>[   18.260000] usbserial: USB Serial support registered for generic
<6>[   18.330000] usbcore: registered new interface driver cdc_wdm
<6>[   18.380000] usbcore: registered new interface driver qmi_wwan
<6>[   18.400000] usbcore: registered new interface driver option
<6>[   18.410000] usbserial: USB Serial support registered for GSM modem (1-port)
<6>[   18.680000] usb 1-1.2: USB disconnect, device number 3
<6>[   23.760000] usb 1-1.2: new high-speed USB device number 4 using ar71xx-ehci
<6>[   23.870000] usb 1-1.2: New USB device found, idVendor=12d1, idProduct=1506
<6>[   23.870000] usb 1-1.2: New USB device strings: Mfr=3, Product=2, SerialNumber=0
<6>[   23.880000] usb 1-1.2: Product: HUAWEI Mobile
<6>[   23.890000] usb 1-1.2: Manufacturer: HUAWEI
<6>[   23.900000] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB0
<6>[   23.910000] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB1
<6>[   23.930000] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB2
root@TL-WDR4300:~#


Again I checked the interface list and the 12d1:1506 is listed in the supported modems.

Code:
root@TL-WDR4300:~# cat /proc/bus/usb/devices

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  1, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 3.10
S:  Manufacturer=Linux 3.10.73 ehci_hcd
S:  Product=Atheros AR91xx built-in EHCI controller
S:  SerialNumber=platform
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480  MxCh= 4
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=05e3 ProdID=0608 Rev=85.36
S:  Product=USB2.0 Hub
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   1 Ivl=256ms

T:  Bus=01 Lev=02 Prnt=02 Port=01 Cnt=01 Dev#=  4 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=12d1 ProdID=1506 Rev= 1.02
S:  Manufacturer=HUAWEI
S:  Product=HUAWEI Mobile
C:* #Ifs= 6 Cfg#= 1 Atr=80 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=02 Prot=01 Driver=option
E:  Ad=81(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 1 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=02 Prot=16 Driver=(none)
E:  Ad=83(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
I:  If#= 1 Alt= 1 #EPs= 3 Cls=ff(vend.) Sub=02 Prot=16 Driver=(none)
E:  Ad=83(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
E:  Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=02 Prot=03 Driver=option
E:  Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 3 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=02 Prot=02 Driver=option
E:  Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 4 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none)
E:  Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=87(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 5 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none)
E:  Ad=06(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=88(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
root@TL-WDR4300:~#

root@TL-WDR4300:~# ps
  PID USER       VSZ STAT COMMAND
    1 root      1512 S    /sbin/init
    2 root         0 SW   [kthreadd]
    3 root         0 SW   [ksoftirqd/0]
    4 root         0 SW   [kworker/0:0]
    5 root         0 SW<  [kworker/0:0H]
    6 root         0 SW   [kworker/u2:0]
    7 root         0 SW<  [khelper]
   71 root         0 SW<  [writeback]
   74 root         0 SW<  [bioset]
   75 root         0 SW<  [crypto]
   77 root         0 SW<  [kblockd]
  103 root         0 SW   [kworker/0:1]
  110 root         0 SW   [kswapd0]
  111 root         0 SW   [fsnotify_mark]
  243 root         0 SW<  [deferwq]
  534 root       932 S    /sbin/hotplug2 --set-rules-file /etc/hotplug2.rules --persistent
  543 root       956 S    /sbin/mstpd
  555 root      1752 S    watchdog
  628 root         0 SW<  [cfg80211]
  677 root         0 SW   [khubd]
  844 root         0 SW   [kworker/u2:2]
  850 root      1836 S    hostapd -B -P /var/run/ath0_hostapd.pid /tmp/ath0_hostap.conf
  874 root      1836 S    hostapd -B -P /var/run/ath1_hostapd.pid /tmp/ath1_hostap.conf
  926 root         0 SW<  [kworker/0:1H]
  929 root      1160 S    telnetd
  942 root      1040 S    dnsmasq -u root -g root --conf-file=/tmp/dnsmasq.conf
  943 root       900 S    cron
  944 root      1728 S    wland
 1059 root      4060 S    httpd -p 80
 1081 root      1752 S    /tmp/ppp/redial 30
 1089 root      1440 S    ttraff
 1155 root      1704 S    resetbutton
 1573 root      1504 S    process_monitor
 2013 root      1160 S    -sh
11386 root      2312 S    /tmp/ppp/redial 30
11504 root      1152 S    sh -c export COMGTAPN="drei.at";comgt APN -d /dev/usb/tts/2
11505 root       960 S    comgt APN -d /dev/usb/tts/2
11513 root      1152 R    ps
root@TL-WDR4300:~#


The USB modem does not connect to the internet. It is blinking blue one time in 3 seconds, which does mean: The usb stick is connecting to a 3G/3G+ network.

Using the "Connect" button in the Status / WAN section of the WebGui does not help either.

I have already double checked the connection properties again and again, because they are working on a Dovado Tiny router, which I want to replace with the TPLINK TL-WDR4300 router running dd-wrt.

How can I find out, why the USB Modem finally does not get connected to the internet?

Thanks!
Sponsor
carinthat
DD-WRT Novice


Joined: 15 Apr 2015
Posts: 7

PostPosted: Thu Apr 16, 2015 20:40    Post subject: update on comgt Reply with quote
Update:

It seems that the redialer is consistently trying to connect on device /dev/usb/tts/2:

Code:
 1461 root      2312 S    /tmp/ppp/redial 30
 1563 root      1152 S    sh -c export COMGTAPN="drei.at";comgt APN -d /dev/usb/tts/2
 1564 root       960 S    comgt APN -d /dev/usb/tts/2


While the modem is connected to /dev/usb/tts/0:

Code:
root@TL-WDR4300:~# nvram get 3gdata
/dev/usb/tts/0

root@TL-WDR4300:~# export COMGTPIN="1815"
root@TL-WDR4300:~# /usr/sbin/comgt -d /dev/usb/tts/0 PIN
SIM ready

root@TL-WDR4300:~# export COMGTAPN="drei.at"
root@TL-WDR4300:~# /usr/sbin/comgt -d /dev/usb/tts/0 APN

root@TL-WDR4300:~# export COMGTDIAL="ATD*99#"
root@TL-WDR4300:~# /usr/sbin/comgt -d /dev/usb/tts/0 DIAL

Dialling with custom string:ATD*99#

No Connect

root@TL-WDR4300:~# /usr/sbin/comgt -d /dev/usb/tts/0
SIM ready
Waiting for Registration..(120 sec max)
Registered on Home network: 3 AT",2
Signal Quality:9,99

root@TL-WDR4300:~# /usr/sbin/comgt -d /dev/usb/tts/0 info
##### Wireless WAN Modem Configuration #####
Product text:
====
Manufacturer: huaweiModel: E3131Revision: 21.157.31.00.864IMEI: 862733011020024+GCAP: +CGSM,+DS,+ESO
K
====
Manufacturer:           uawei
IMEI and Serial Number: 62733011020024
Manufacturer's Revision: 21.157.31.00.8
Hardware Revision:
Network Locked:         ERROR:
Customisation:
Band settings:          ()
APN:                    1,"IP","drei.at","",0,0
##### END #####
root@TL-WDR4300:~#


There are two issues remaining:

1. The redialer is operating not on the correct device.

2. In contrast to all forum post I have seen, the only way to get the comgt command working, is to put the script at the end:

OK: comgt -d /dev/usb/tts/0 APN
NOT OK: comgt APN -d /dev/usb/tts/0

In fact that is confusing me, I am on build 26653.

Thanks!
vieri
DD-WRT User


Joined: 25 Aug 2010
Posts: 91

PostPosted: Fri Apr 17, 2015 11:40    Post subject: Reply with quote
My USB modem is an Alcatel OneTouch X060S and it worked out of the box (GUI only). The only thing is that I needed to set "3g else 2g" or something similar otherwise I had a hard time connecting.
Even so, it takes at least 2 to 4 minutes to connect after the device boots.

I haven't tried to do it manually via ssh.
carinthat
DD-WRT Novice


Joined: 15 Apr 2015
Posts: 7

PostPosted: Sat Apr 18, 2015 17:07    Post subject: Reply with quote
Can someone bring some light into this?

From the process list I can see, that comgt has started:
Code:
 1461 root      2312 S    /tmp/ppp/redial 30
 1563 root      1152 S    sh -c export COMGTAPN="drei.at";comgt APN -d /dev/usb/tts/2
 1564 root       960 S    comgt APN -d /dev/usb/tts/2

When I try it on the command line, I do get it only working, if I put the script argument behind the options:
Code:
root@TL-WDR4300:~# comgt -d /dev/usb/tts/0 APN

root@TL-WDR4300:~# comgt -V
comgt version 0.32 Copyright Paul Hardwick (c) 2005,2006


I am running this build:
ftp://ftp.dd-wrt.com/betas/2015/04-09-2015-r26653/tplink_tl-wdr4300v1/


Also the device which I can see in the process list is not working. It should be /dev/usb/tts/0 and not /dev/usb/tts/2.

How do I get the 3G modem to connect to the internet?


Thanks!
rina900
DD-WRT Novice


Joined: 25 Apr 2015
Posts: 5

PostPosted: Sat Apr 25, 2015 22:48    Post subject: Reply with quote
similar problem with Tp-link Archer C7 V2... but I'm not a shell command expert :
http://www.dd-wrt.com/phpBB2/viewtopic.php?p=963871#963871
carinthat
DD-WRT Novice


Joined: 15 Apr 2015
Posts: 7

PostPosted: Wed Jul 22, 2015 17:42    Post subject: Mobile broadband not working on Atheros devices Reply with quote
According to this ticket, it seems to be a general problem on Atheros devices:
http://svn.dd-wrt.com/ticket/4745#ticket

Mobile broadband is not working on Atheros devices after build 25760
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum