Sunday, February 14, 2010

Huawei E1762 on Linux

You'll need two packages and a configuration file

usb-modeswitch version => 1.07
usb-modeswitch-data file dated => 10 Jan 2010
usb_modeswitch.conf => 2010-03-09

Note: The above package links are for Debian based distribution like Ubuntu. If you are using 10.04 Lucid, use the Ubuntu Software Center to install both usb-modeswitch and usb-modeswitch-data.

Install the packages at the same time

Place the configuration file in /etc directory. To check if you have place the configuration file at the right place just type
# usb_modeswitch
and it should not give you a 'file not found error'.

To check if your stick is correctly detected as a modem, give the command
# lsusb
you should see something like this
Bus 002 Device 009: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E270 HSDPA/HSUPA Modem
usb
If you see something like this
Bus 002 Device 002: ID 12d1:1446 Huawei Technologies Co., Ltd
edit the configuration file by giving the command
# sudo gedit /etc/usb-modeswitch.conf
and find the lines that says 'E7162' and uncomment the 5 lines that follows. There are two instances of 'E1762'. Either one will work. Save the edited file, and give the command
# sudo usb_modeswitch -H -v 12d1 -p 1446 -c /etc/usb-modeswitch.conf
Now check if the dongle is detected correctly by giving the 'lsusb' command again and you should the stick is now detected as a modem.

If you are using on a 64-bit architecture, you can download them here

If you are not using a Debian based distribution, you can download the files below

usb-modeswitch-1.1.0.tar.bz2
usb-modeswitch-data-20100203.tar.bz2