Huawei EC226 USB modem BayanBROADBAND (CDMA/EV-DO) on Ubuntu

I have a fresh installed Ubuntu 9.10 Karmic Koala on my Laptop. I also have a
Huawei EC226 USB modem BayanBROADBAND 

How to run internet on BayanBROADBAND Huawei ECS226 USB modem on Ubuntu?

Here is a guide how to connect Bayan Broadband on Ubuntu
by install WvDial
Note: you need a wired INTERNET connection to install WvDial on your Ubuntu machine

Installing WvDial
1. Go to Application> Accessories> select Terminal.
2. You must be root user, type sudo su. enter your  password (password for your UID)

yourusername@yourusername:~$ sudo su
[sudo] password for
yourusername:
root@
yourusername:/home/yourusername#

3. Type sudo apt-get install wvdial (It will download, install, and configure itself and then it is ready to use.)
Making a New Connection
  1. Plug-in your  Huawei EC226  USB Modem on your machine
  2. Run wvdialconf to generate a configuration file containing information on your modem and ISP information. The output should look like this:

root@yourusername:/home/yourusername# wvdialconf
Editing `/etc/wvdial.conf’.

Scanning your serial ports for a modem.

Modem Port Scan: S0   S1   S2   S3  
WvModem: Cannot get information for serial port.
ttyUSB0: ATQ0 V1 E1 — OK
ttyUSB0: ATQ0 V1 E1 Z — OK
ttyUSB0: ATQ0 V1 E1 S0=0 — OK
ttyUSB0: ATQ0 V1 E1 S0=0 &C1 — OK
ttyUSB0: ATQ0 V1 E1 S0=0 &C1 &D2 — OK
ttyUSB0: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
ttyUSB0: Modem Identifier: ATI — Manufacturer: +GMI: HUAWEI TECHNOLOGIES CO., LTD
ttyUSB0: Speed 9600: AT — OK
ttyUSB0: Max speed is 9600; that should be safe.
ttyUSB0: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
WvModem: Cannot get information for serial port.
ttyUSB1: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
ttyUSB1: ATQ0 V1 E1 — failed with 9600 baud, next try: 9600 baud
ttyUSB1: ATQ0 V1 E1 — and failed too at 115200, giving up.
WvModem: Cannot get information for serial port.
ttyUSB2: ATQ0 V1 E1 — OK
ttyUSB2: ATQ0 V1 E1 Z — OK
ttyUSB2: ATQ0 V1 E1 S0=0 — OK
ttyUSB2: ATQ0 V1 E1 S0=0 &C1 — OK
ttyUSB2: ATQ0 V1 E1 S0=0 &C1 &D2 — OK
ttyUSB2: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
ttyUSB2: Modem Identifier: ATI — Manufacturer: +GMI: HUAWEI TECHNOLOGIES CO., LTD
ttyUSB2: Speed 9600: AT — OK
ttyUSB2: Max speed is 9600; that should be safe.
ttyUSB2: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK

Found a modem on /dev/ttyUSB0.
Modem configuration written to /etc/wvdial.conf.
ttyUSB0: Speed 9600; init “ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0”
ttyUSB2: Speed 9600; init “ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0”
root@yourusername:/home/yourusername# 

Configuring WvDial

  1. Once you have run wvdialconf, you need to edit the /etc/wvdial.conf file to reflect the phone number to dial, and your username and password.
  2. Open up /etc/wvdial.conf in your favorite text editor. It should look something like this:

    [Dialer Defaults]
    Init1 = ATZ
    Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    Modem Type = Analog Modem
    ; Phone =
    ISDN = 0
    ; Password =
    ; Username =
    Modem = /dev/ttyUSB0
    Baud = 9600

    1. Remove the ‘;‘ in front of the Phone, Username and Password lines
    2. Fill in #777 on the Phone = line.
    3. Using the information from the Welcome Letter that was faxed to you;

      1. Fill in your Username on the Username = line.
      2. Fill in your Password on the Password = line.

    4. Save your changes and exit out of the text editor.

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Phone = #777
ISDN = 0
Password = bayan
Username = MDN@WBBLite.com
Modem = /dev/ttyUSB0
Baud = 9600

Connecting to the Internet
  1. Run wvdial. Assuming that you filled in your phone number, username, and password correctly, wvdial will now dial your ISP.

root@yourusername:/home/yourusername# wvdial
–> WvDial: Internet dialer version 1.60
–> Cannot get information for serial port.
–> Initializing modem.
–> Sending: ATZ
ATZ
OK
–> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
–> Modem initialized.
–> Sending: ATDT#777
–> Waiting for carrier.
ATDT#777
CONNECT
–> Carrier detected.  Waiting for prompt.
~[7f]}#@!}!} } }=}!}$}%\}”}&} } } } }#}%B#}%}%}&`!}]>}’}”}(}”[Q~
–> PPP negotiation detected.
–> Starting pppd at Sun Jan 17 08:48:13 2010
–> Pid of pppd: 3139
–> Using interface ppp0
–> pppd: p(c[08]��b[08]
–> pppd: p(c[08]��b[08]
–> pppd: p(c[08]��b[08]
–> pppd: p(c[08]��b[08]
–> pppd: p(c[08]��b[08]
–> local  IP address 10.10.16.210
–> pppd: p(c[08]��b[08]
–> remote IP address 2.2.2.2
–> pppd: p(c[08]��b[08]
–> primary   DNS address 210.4.2.8
–> pppd: p(c[08]��b[08]
–> secondary DNS address 210.4.2.9
–> pppd: p(c[08]��b[08]

    Disconnecting from the Internet

    wvdial will not exit until the connection is terminated- you can do a Ctrl-C to terminate it.

    Related posts

    Leave a Comment