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 internet is using wvdial from the command line. Here is 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 lines 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 you 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

English

Comments

Hi,

Our routers (DOVADO) are selling very quickly over at Sharaf DG in Bahrain, yet we do not have a list of APN's covering the three operators within the kingdom.

I can see from above that your list contains the APN "Internet" for Zain, along with u/p "web2". Is the u/p required?

Also, can you verify if these APN's for the other operators are valid for mobile broadband?

Batelco: internet.batelco.com
Viva: viva.bh

Thanks

Add new comment