Huawei in Debian

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]
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

Some line may not be needed but I did not investigate and it works this way :-)

To connect type in console:
#wvdial -C /etc/zain.conf

or:
#wvdial -C /etc/mobily.conf

Make sure yout type -C not -c (capital C)

I have tried these in Debian but it should work with any distribution.

hope this will save some people some brain cells

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
2 + 9 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.