14 Juli 2010
Lagi ga Mood, Coba aja Tips dan trik ini
How To Config and use Huawei e220 modem in Ubuntu
Actually I already upload this article in one of my blog that I used. So just want to share it again with all you guys who need it. Enjoy my share, from a newbie in open source world ;)
Ubuntu, one of the Linux OS from debian distro..
I just start to like it and try to use it ( I use the latest Ubuntu 8.0 ). I just want to share little knowledge about how to make your huawei E220 modem work in Ubuntu environment. After trying hard and ask mr.google and also join the ubuntu forum, finally the huawei e220 modem can successfully connected to my desktop PC which is use Ubuntu as the OS. Hopefully this information from me as a newbie will also useful and helpful for you.
Generally speaking, if you want to find a complete information, you can check the ubuntu guide and forum from ubuntu website. I admit that the forum is very helpful, with the guidance in the forum, and with very little modification in wvdial.conf finally i can use the modem from my ubuntu to connect to the internet.
Here are the steps to make your huawei E220 modem works in u'r Ubuntu environment:
1. Connect your huawei E220 modem to your USB port of your PC/Notebook.
2. Open the terminal, and then type lsusb to check whether u'r usb modem has been detected.
xxx@xxx-laptop:~$ lsusb
The result is:
Bus 005 Device 003: ID 054c:0281 Sony Corp.
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 003: ID 093a:2500 Pixart Imaging, Inc. USB Optical Mouse
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 003: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem
Bus 001 Device 001: ID 0000:0000
3. Then type:
xxxx@xxx-laptop:~$ sudo wvdialconf /etc/wvdial.conf
Editing `/etc/wvdial.conf'.
Scanning your serial ports for a modem.
Modem Port Scan<*1>: S0 S1 S2 S3
WvModem<*1>: Cannot get information for serial port.
ttyUSB0<*1>: ATQ0 V1 E1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB0<*1>: Modem Identifier: ATI -- Manufacturer: huawei
ttyUSB0<*1>: Speed 9600: AT -- OK
ttyUSB0<*1>: Max speed is 9600; that should be safe.
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB1
ttyUSB2
Modem Port Scan<*1>: USB2
WvModem<*1>: Cannot get information for serial port.
ttyUSB3<*1>: ATQ0 V1 E1 -- OK
ttyUSB3<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB3<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB3<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB3<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB3<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB3<*1>: Modem Identifier: ATI -- Manufacturer: huawei
ttyUSB3<*1>: Speed 9600: AT -- OK
ttyUSB3<*1>: Max speed is 9600; that should be safe.
ttyUSB3<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB4
ttyUSB5
Modem Port Scan<*1>: USB5
Found a modem on /dev/ttyUSB0.
Modem configuration written to /etc/wvdial.conf.
ttyUSB0
ttyUSB3
4. After that you should config the wvdial.conf that located in /etc directory.
xxxx@xxxx-laptop:~$ sudo gedit /etc/wvdial.conf
You can add this configuration in your wvdial.conf (for indosatm2 user)
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
; Phone =
; Password =
Baud = 9600
[Dialer hsdpa]
Auto DNS = Yes
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,"IP","indosatm2"
Stupid Mode = Yes
Modem Type = Analog Modem
ISDN = 0
Phone = *99#
Modem = /dev/ttyUSB0
Username = xxxxx
Password = xxxxxxx
Baud = 460800
5. Then save your wvdial.conf
6. Since Indosat m2 are using PAP authenctication, then:
xxx@xxx-laptop:~$ sudo echo "username * password" >> /etc/ppp/pap-secret
7. Finish. To try to use the modem, you should call the wvdial.conf by typing:
xxx@xxx-laptop:~$ wvdial hsdpa
8. It's done. You're now connected to the internet. If you want to disconnect from the internet, you can just use ctrl+z at your terminal.
Hope this guide will help you.. Enjoy it :)