Huawei in Debian

Submitted by Salman on Mon, 03/08/2010 - 12:55

Nowadays, there are many methods to connect to the internet. ADSL connection using the the ethernet protocol was the easiest to connect. So far the several Huawei devices gave me the most of the headache. I have tried two of them; one from Zain, Bahrain and the other from Mobily, Saudi Arabia.

For me, the easiest method to connect to the is using wvdial from the command line. Here is the my /etc/zain.conf:

Phone = *99#
Username = hsdpa
Password = hsdpa
Stupid Mode = 1
Dial Command = ATDT
Auto DNS = 0
Modem = /dev/ttyUSB0

[Dialler huawei]
Baud = 460800
Init2 = ATZ
Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init4 = AT+CGDCONT=1,"IP","Internet"
ISDN = 0
Modem Type = Analog Modem

and here is my /etc/mobily.conf:

[Dialer Defaults]
Phone = *99#
Username = web2
Password = web2
Stupid Mode = 1
Dial Command = ATDT
Auto DNS = 0
Modem = /dev/ttyUSB0

[Dialler huawei]