I’m sure many of you also might be having this problem so I would like to share a hectic experience of setting up my Micromax 3G modem. Now, I have this Micromax 3G modem, and I inserted it in the USB port, but it was not being detected by Ubuntu 12.04. I even tried creating a mobile Internet connection, but still, there is no option to connect. I previously used Ubuntu 11.10, and it had automatically detected the modem and asked me to create a connection. Now I inserted my friend’s Huawei modem and it was detected with no trouble at all. So, I started digging.
On typing lsusb in the terminal it gives the following:

Bus 001 Device 008: ID 1c9e:9605 OMEGA TECHNOLOGY

Amongst many other stuffs. So, detecting modem wasn’t a problem because usb was being detected but the connection wasn’t coming through. The problem as it seems was it had to be registered and Huawei modems are automatically registered. Boy, why don’t they mention the same on the modem box. 😛 Anyways, here’s what I did to get it setup.

On typing lsusb in the terminal, you’ll get the vendor and product ID of your product, which in this case is ID 1c9e:9605
Once you get that, go ahead and do the following to config.

gksudo gedit /etc/usb_modeswitch.d/1c9e:9605

Paste this code on the editor

DefaultVendor = 0x1c9e
DefaultProduct = 0x9605
TargetVendor = 0x1c9e
TargetProduct = 0x9605
MessageContent="55534243123456788000000080000606f50402527000000000000000000000"


Save and exit, then log in as root to your terminal:
su
In case you can’t login as root, add sudo before every commands that follows.
Type & confirm your root password, and do the following:
modprobe usbserial vendor=0x1c9e product=0x9605

usb_modeswitch -c /etc/usb_modeswitch.d/1c9e\:9605

If you didn’t receive any error messages, you’ll then see a new Mobile Broadband Connection on your Network Manager (top right wifi icon)

you need to run this code every session but you can just add the code below to your /etc/rc.local(insert before the ‘exit 0’) so it will be part of your startup programs:

sleep 10
modprobe usbserial vendor=0x1c9e product=0x9605
usb_modeswitch -c /etc/usb_modeswitch.d/1c9e\:9605
sleep 20
nmcli nm wwan on
sleep 10
nmcli con up id "your connection name here"


And that would it all I suppose. That worked for me at least. 😀 Now, some of you might be using some old Micromax modem model which might give lsusb output as 1c9e:9800. Please update to the latest version of usb-modeswitch and you would be good to go. 🙂 For more reading on usb-modeswitch http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?t=692&sid=87157b1cfc5534def6ab31d64ae060b8