HowTo: Huawei E173 on Ubuntu
Recently I purchased few Huawei E173 modems for my organization. Configuring them on ubuntu was the next part which I need to take care of. There were couple of solutions available out there where i searched, but this one was the very basic one and didn’t needed any special drivers or installation of any special software.
So, When you attach modem to your machine, the modem gets detected as a cd-rom or micro-sd card. So, to get it detected as a modem, you have to use usb_modeswitch. So, for that usb_modeswitch needs to be installed at your machine. Though it normally come installed with the default installation of ubuntu or else you can use this command to install it.
# sudo aptitude install usb_modeswitch -y
Once this is installed, attach your modem. Then issue this command.
# lsusb Bus 001 Device 003: ID 12d1:1d35 Huawei Technologies Co., Ltd.
With this command you will be able to find out vendor id and the product id of the modem. Now just open the /etc/modules file and put in a new line there
usbserial vendor=0x12d1 product=0x1d35
Save and Quit the file and simply reboot the machine.
Once the machine is up, use the network manager to configure your modem.
Still If you know any other much simpler or better way to do it, please comment and I will include that in my post.
If you enjoyed this post, make sure you subscribe to my RSS feed!!!!


Hi, I do the same but do not work.
Bus 003 Device 004: ID 12d1:1c0b Huawei Technologies Co., Ltd.
and in /etc/modules I put this:
usbserial vendor=0x12d1 product=0x1c0b
Can you help me?
What exact problem you are seeing ?
Can you please be more specific.
tech@tech-Inspiron-N5010:~$ sudo usb_modeswitch -H -v 20a6 -p f00e
Looking for default devices …
found matching product ID
adding device
Found device in default mode, class or configuration (1)
Accessing device 007 on bus 002 …
Getting the current device configuration …
OK, got current device configuration (1)
Using first interface: 0×00
Using endpoints 0×01 (out) and 0×81 (in)
Inquiring device details; driver will be detached …
Looking for active driver …
No driver found. Either detached before or never attached
SCSI inquiry data (for identification)
————————-
Vendor String: Modem
Model String: Disk
Revision String: 2.31
————————-
USB description data (for identification)
————————-
Manufacturer: Modem
Product: Modem Device
Serial No.: 000000000002
————————-
Sending Huawei control message …
OK, Huawei control message sent
-> Run lsusb to note any changes. Bye.
tech@tech-Inspiron-N5010:~$ sudo modprobe usbserial vendor=0x20a6 product=0xf00e
usb-devices
T: Bus=02 Lev=02 Prnt=02 Port=01 Cnt=01 Dev#= 7 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=20a6 ProdID=f00e Rev=00.00
S: Manufacturer=Modem
S: Product=Modem Device
S: SerialNumber=000000000002
C: #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=500mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none)
i have tried this all i am using intex 3.5g modem and have tried to configure rules and modules also but nothing has worked can u tell me wats d real prob,i ll be grateful as i am really hassled by this.
tech@tech-Inspiron-N5010:~$ sudo usb_modeswitch -H -v 20a6 -p f00e.
Looking for default devices ….
found matching product ID.
adding device
Found device in default mode, class or configuration (1).
Accessing device 007 on bus 002 ….
Getting the current device configuration ….
OK, got current device configuration (1).
Using first interface: 0×00.
Using endpoints 0×01 (out) and 0×81 (in).
Inquiring device details; driver will be detached ….
Looking for active driver ….
No driver found. Either detached before or never attached.
SCSI inquiry data (for identification).
————————-
Vendor String: Modem.
Model String: Disk.
Revision String: 2.31.
————————-
USB description data (for identification).
————————-
Manufacturer: Modem
Product: Modem Device.
Serial No.: 000000000002.
————————-
Sending Huawei control message ….
OK, Huawei control message sent.
-> Run lsusb to note any changes. Bye.
tech@tech-Inspiron-N5010:~$ sudo modprobe usbserial vendor=0x20a6 product=0xf00e.
usb-devices
T: Bus=02 Lev=02 Prnt=02 Port=01 Cnt=01 Dev#= 7 Spd=480 MxCh= 0.
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1.
P: Vendor=20a6 ProdID=f00e Rev=00.00.
S: Manufacturer=Modem
S: Product=Modem Device.
S: SerialNumber=000000000002
C: #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=500mA.
I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none).
i have tried this all I am using intex 3.5g modem and have tried to configure rules and modules also but nothing has worked can u tell me wats d real prob, i ll be grateful as I am really hassled by this.