~2011

vodafone k3765 linux

OMG, so much time spend on getting this Vodafone K3765 (Huawei) USB dongle to work! I just used the wrong APN. So a hint to everybody: Can't get your 3G/UMTS/HSDPA dongle to work? Make sure you use the right APN. For me the NetworkManager gave me the wrong APN. So here are some right settings at least in The Netherlands:

Wvdial:

[Dialer Defaults]
Modem Type = USB Modem
Baud = 460800
New PPPD = yes
#Check your device!
Modem = /dev/ttyUSB1
ISDN = 0

[Dialer pin]
Init1 = AT+Cpin=0000

[Dialer vodafone]
Dial Command = ATDT
Carrier Check = no
Phone = *99***1#
Password = vodafone
Username = vodafone
Stupid Mode = on
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,"IP","office.vodafone.nl"

Setting the pin doesn't work for me :( don't know why.

Settings for a ppp call setup: /etc/ppp/peers/k3765:

# /etc/ppp/peers/k3765 pppd script
# pppd call k3765
noauth
/dev/ttyUSB1
#3600000
noipdefault
defaultroute
persist
noauth
nodetach
usepeerdns
0.0.0.0:0.0.0.0
connect "/usr/sbin/chat -vf /etc/ppp/peers/k3765.chat"

/etc/ppp/peers/k3765.chat:

TIMEOUT 3
SAY '1...\n'
ABORT BUSY
SAY '2...\n'
ABORT 'NO CARRIER'
SAY '3...\n'
ABORT VOICE
SAY '4...\n'
ABORT 'NO DIALTONE'
SAY '5...\n'
ABORT 'NO DIAL TONE'
SAY '6...\n'
ABORT 'NO ANSWER'
SAY '7...\n'
ABORT DELAYED
SAY '8...\n'
"" ATZ
SAY '9...\n'
OK ATE0V1&D2&C1S0=0+IFC=2,2
OK AT+CGDCONT=1,\"IP\",\"office.vodafone.nl\"\
SAY '10...\n'
OK ATDT*99***#\
SAY '11...\n'
CONNECT ""
SAY 'connect OK\n'

Just run pppd call k3765

So now hook it up to an openWRT router