Wednesday, June 11, 2008

Configure Huawei E220 HSDPA modem in Linux PC with (M3)Mobitel-SriLanka

If any one want to use HUAWEI E220/E270 HSDPA/HSPA modem with Fedora core 7,Read following.

Though i specifically mentioned about Fedora core 7,it may work with any Linux distro having "wvdial". You may find several examples from Internet,however following will help for you setup E220/E270 HUAWEI modems with M3-Mobitel Sri Lanka(South Asia's first 3.5G Network)

step1: Connect HUAWEI USB Modem to your Linux box.
step2: Open wvdial.conf file located in /etc/
step3: Add following in wvdial.conf file. If you are not M3 user in Sri Lanka(Mobitel),Please change user name,password and APN accordingly.

[Dialer E220]
Phone = *99#
Username = ""
Password = ""
Stupid Mode = 1
Dial Command = ATDT
Modem = /dev/ttyUSB0
Baud = 460800
Init2 = ATZ
ISDN = 0
Modem Type = Analog Modem
Init5 = AT+CGDCONT=1,"IP","MOBITEL3G";


step4: open /etc/resolve.conf and add following.this may not need.However if DNS server not detected automatically,you have add it manually in /etc/resolve.conf as bellow

nameserver DNS IP

step5: in the console give following command.This will remove default route.

[root@localhost ~]# route del default

step6: Then connect usb by giving

[root@localhost ~]# wvdial E220

if you can get following ouput,you are ready to use HUAWEI HSDPA/HSPA modem in your Fedora 7

--> WvDial: Internet dialer version 1.40
-->Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATZ
ATZ
OK
--> Sending: T+CGDCONT=1,"IP","MOBITEL3G";
AT+CGDCONT=1,"IP","MOBITEL3G";
OK
--> Modem initialized.
--> Sending: ATDT *99#
--> Waiting for carrier.
ATDT *99#CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Wed Jun 11 18:14:29 2008