OpenWrt Forum Archive

Topic: Troubles reconnecting 3G connection Huawei K3765

The content of this topic has been archived on 25 Dec 2016. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi guys,


I have some trouble with my 3G dongle. When i have a successful connection with my Huawei dongle and i disconnect, it is impossible to reconnect again. Even reboot of the router does not fix that. Only when i unplug the dongle or power down my router can i make a new connection..

I'm out of ideas. Is there anyone that has the same problem?

/etc/config/network

config 'interface' 'isp3'
    option 'ifname' 'ppp0'
    option 'proto' '3g'
    option 'device' '/dev/ttyUSB0'
    option 'apn' 'office.vodafone.nl'
    option 'username' 'vodafone'
    option 'password' 'vodafone'
    option 'service' 'umts'
    option 'demand' '300'
    option 'pppd_options' 'noipdefault'

logread:

Feb  7 15:48:13 mercurius daemon.err pppd[1598]: Connect script failed
Feb  7 15:48:45 mercurius local2.info chat[9607]: abort on (BUSY)
Feb  7 15:48:45 mercurius local2.info chat[9607]: abort on (NO CARRIER)
Feb  7 15:48:45 mercurius local2.info chat[9607]: abort on (ERROR)
Feb  7 15:48:45 mercurius local2.info chat[9607]: report (CONNECT)
Feb  7 15:48:45 mercurius local2.info chat[9607]: timeout set to 10 seconds
Feb  7 15:48:45 mercurius local2.info chat[9607]: send (AT&F^M)
Feb  7 15:48:45 mercurius local2.info chat[9607]: expect (OK)
Feb  7 15:48:55 mercurius local2.info chat[9607]: alarm
Feb  7 15:48:55 mercurius local2.info chat[9607]: Failed

THNX

(Last edited by Adze on 7 Feb 2012, 15:36)

Do you have usb-modeswitch usb-modeswitch-data installed ?

Yes, i have. It was necessary to get the 3g dongle working in the first place. It correctly switched from 12d1:1520 to 12d1:1465.

Turns out that the standard chat script didn't work for me. I found some other scripts on the net and did a mix and match. With the below script I can reconnect, in case somebody has the same problem.

/etc/chatscripts/3g.chat

ABORT   BUSY
ABORT   'NO CARRIER'
ABORT   ERROR
REPORT  CONNECT
TIMEOUT 20
""      "ATZ"
OK      "ATE1"
OK      'AT+CGDCONT=1,"IP","$USE_APN"'
OK      "ATD*99***1#"
CONNECT ' '

(Last edited by Adze on 7 Feb 2012, 20:14)

Thanks for the update. ATZ is usually preferred to AT&F which is in the default script.

The discussion might have continued from here.