Thursday, 6 June 2013

Connecting to 3G using wvdial in Linux

I always keep losing my config files for wvdial and have to go through everything to figure out how to get it working again... Below is my config file tested on the South African Cell C and Vodacom networks (you'll probably need to change the Modem device though to match yours):

[Dialer Defaults]
New PPPD = yes
Phone = *99#
Username = usually
Password = ignored
Stupid Mode = 1
Dial Command = ATDT
Modem = /dev/ttyACM0
Baud = 460800
Init2 = ATZ
Init3 = AT+CGDCONT=1,"IP","Internet"
ISDN = 0
Modem Type = Analog Modem

If your sim card requires a pin before use, you can try adding the line:

Init4 = AT+CPIN=replace_with_your_pin

To do a modeswitch if your device appears as a stupid compact disc device:

1. lsusb and find the device
   Mine for eg:  Bus 001 Device 010: ID 12d1:1436 Huawei Technologies Co., Ltd. 
2. Your vendor/product ID's should be the ones before the name, eg in mine. 12d1:1436
    usb_modeswitch -v 12d1 -p 1436

If all looks good a simple of wvdial should work or let you know if you need to tweak a bit more...

No comments:

Post a Comment