Again a shorty about the Huawei E220 and linux. Since my last updates of ubuntu 6.10 the E220 is always recognised the right way and usable right from the start.
Hi Folks. Finally I have finished my tests and scripting with the Huawei E220 USB UMTS Modem and Ubuntu Edgy Eft. Some conclusions can be made:
- have the modem plugged in on boot
- if you work continuous only with the modem work with suspend to disk mode instead of shutdown
- use the scripts I provide here
- if you unplug the modem so that kppp is hanging or the modem device is hanging you will only get it back to work with a reboot
I have done some scripting and tests. The modem is ready for working if you have more than one device named /dev/ttyUSB. If there is only one ttyUSB0 device it might not work at all. I have created a script which checks the number of ttyUSB devices if not a minimum of 2 devices exist the script automatically does the procedure described in my prior article about this modem. ATTENTION please follow exact the hints written to the console. The script has some built in sleeps and waits which have been tested to work quite well. So long.
Script for setting the pin, slightly modified: setpinpl.txt
Script doing all the other work: huaweish.txt
HINT: Please modify the entry with the pin code needed for your umts device.
I changed my mobile card due to a change of my notebook where the new one no longer supports pcmcia cards. So I switched to the Huawei E220 usb UMTS Modem. The drawback, it does not work from scratch, the benefit, the signal strength is much better.
So the device is recogniced as an scsi storage device if you plug it in.
You have to close all open windows showing content of the device and unmount the device.
call the follwing commands:
to unload the storage device, then call:
and write down the vencor id and produc number of the attached device, then call
modprobe usb-serial vendor=<vendor id> product=<product id>
unplug the device, replug again and check that there are three usb devices calling:
ls -la /dev/ttyU*
if there are 3 devices you can use the device with kppp or wvdial. The modem device is ttyUSB0
ATTENTION: don’t forget to execute all commands with sudo