Huawei E220 success in Spain / Kubuntu
I used much of the useful information in this forum to experiment and finally was successful..... Of course if anyone has any suggestions they would be most welcome: Here is how I configured it:
HOW TO Configure the Huawei 220 usb modem in Linux, (IN SPAIN)
__________________________________________________________________
"Spain is different" (..is an advertising slogan they developed years ago to attract tourists to Spain) (Technologically VERY different)
I am a Linux newbie... this is my first "How To".... I tried other advice from various forums without success... by experimenting I came up with this soultion:
I use a Packard Bell EasyNote laptop with Kubuntu kernel 2.6.15-23-386
Disable pin by putting card in a phone and disabling (otherwise the nightmare is much worse..,.although it is possible... I eventually disabled the pin and am much happier.
When the Huawei is identified initially as a CD "Connect_Box", right click it and "eject"
Go to System Settings / Network Settings and disable Ethernet and Wireless as these interfere greatly with the Huawei.
(I read in a few places that the long cable doesn't work but this is NOT my experience... I use the long one with an extension of two metres and my connection then, (only then) has a strong and stable signal)
Open a terminal as root
rmmod usb-storage
modprobe usbserial vendor=0x12d1 product=0x1003
remove the Huawei E220 for a few moments
wait a few seconds, maybe 10-20, and re-insert
optionally, you can enter:
ls -la /dev/ttyU*
and you will probably
find USB0 USB1 and USB2 ..
if not, wait a few more moments and try again...
then...
wvdial hsdpa
You should be connected!
Here is my wvdial file:
/etc/wvdial.conf
[Dialer hsdpa]
Phone = *99***1#
Username = vodafone
Password = vodafone
Stupid Mode = 1
Dial Command = ATDT
Modem = /dev/ttyUSB0
Baud = 460800
Init2 = ATZ
Init3 = ATE0V1&D2&C1S0=0+IFC=2,2
ISDN = 0
Modem Type = Analog Modem
Init5 =AT+CGDCONT=1,"IP","ac.vodafone.es";
_______________________________________________________
This is what my script looks like when I connect
Password:
root@kp-laptop:/home/daka# rmmod usb-storage
root@kp-laptop:/home/daka# modprobe usbserial vendor=0x12d1 product=0x1003
root@kp-laptop:/home/daka# ls -la /dev/ttyU*
crw-rw---- 1 root dialout 188, 0 2006-12-19 14:33 /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 1 2006-12-19 14:33 /dev/ttyUSB1
crw-rw---- 1 root dialout 188, 2 2006-12-19 14:33 /dev/ttyUSB2
root@kp-laptop:/home/daka# wvdial hsdpa
--> WvDial: Internet dialer version 1.55
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATZ
ATZ
OK
--> Sending: ATE0V1&D2&C1S0=0+IFC=2,2
ATE0V1&D2&C1S0=0+IFC=2,2
OK
--> Sending: AT+CGDCONT=1,"IP","ac.vodafone.es";
OK
--> Modem initialized.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Tue Dec 19 14:33:56 2006
--> Pid of pppd: 5550
--> Using interface ppp0
--> local IP address 62.87.24.143
--> remote IP address 10.64.64.64
--> primary DNS address 212.73.32.3
--> secondary DNS address 212.73.32.67
Good Luck... (I hope I haven't made any mistakes in this!!)
Daka