Installing the Huawei E220 modem under Linux is so so easy. Probably easier than running through the Windows XP Setup tool actually!
1. Kernel version equal to or greater than 2.6.20 (There are workarounds availble for older kernels)
2. wvdial (You can use any serial dialer I guess)
Insert the modem, you should notice /dev/ttyUSB0 and /dev/ttyUSB1 appear. If so, great. You’re all set to dial out:
[Dialer Defaults] Modem = /dev/ttyUSB0 Baud = 3600000 Init1 = ATZ Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 Init3 = Area Code = Phone = *99# Username = ppp Password = ppp Ask Password = 0 Dial Command = ATDT Stupid Mode = 1 Compuserve = 0 Force Address = Idle Seconds = 0 DialMessage1 = DialMessage2 = ISDN = 0 Auto DNS = 1
Perhaps change the ‘username’ and ‘password’ if your cell network requires it – tmobile UK provide me with a username and password but doesn’t seem to make any difference if it’s incorrect.
Then just run wvdial.
You should now be connected!
For further information, visit http://oozie.fm.interia.pl/pro/huawei-e220/ – this contains workaround information for older kernels and also a statistics tool that reads connection data from /dev/ttyUSB1 – I don’t find it very accurate though. I suspect this is the fault of /dev/ttyUSB1 and not the stats program.