Saturday, May 12, 2012

Using Micromax 3G Modem on Ubuntu 12.04

In Sep 2010 I had written about using Micromax 3G modem on Ubuntu 10.04. Since then I could not find time to see whether Ubuntu 10.11, 11.04 and 11.10 has any changes wrt modeswitch etc. In Ubuntu 12.04 the newest version of usb-modeswitch is already installed by default and  mode switching takes place in the background.

Today I downloaded the iso of Ubuntu 12.04 Desktop iso and made a boot-able pen-drive and wanted to use the Micromax 3G Modem. Before implementing the procedure in my last post I searched and found following procedure on askubuntu:
Open up a terminal from Applications -> Accessories. Type:
sudo gedit /etc/modules
At the bottom of the file, make two new lines, like this:
usbserial
option
Then close the editor program and save it. Reboot the computer and hopefully you’ll be right from now on!

Since I was running from usb stick I used the following commands to load these modules:
sudo modprobe usbserial
sudo modprobe option

Then I inserted Micromax usb modem and configured a new Mobile Broadband connection through the Network Manager.

Although the Network Manager had not detected the insertion of modem but after configuring the connection it worked.

If you have installed Ubuntu 12.04 and want to use this modem on regular basis you can edit /etc/modules file as per the procedure on askubuntu so that the modules would be loaded on boot.

If you want to occasionally use this modem you can use my procedure i.e. to load the modules before inserting the modem.

NB: Network Manager takes about 3 minutes to detect the modem on LiveCD/USB or even installed Ubuntu 12.04. You need to have some patience after inserting the modem. In addition the modules 'usbserial' and 'option' need to be loaded before insertion as described above. In Ubuntu 11.10 this Modem shows up in Network Manager after a few minutes without giving any command.

One visitor wanted me to post screen shots. Here they are.

12 comments:

Unknown said...

tankx bos . . ,

Kamalakar Agashe said...

welcome.

Unknown said...

boss itz not working ...,
plz helping....
I'm using micromax mmx 352g modem.

Kamalakar Agashe said...

You need some patience because it takes about 3 minutes to see the modem connection in the Network Manager even after you have followed all the instructions.

Unknown said...

plz add screenshots....

Kamalakar Agashe said...

I have posted the screen shots on a new post

Unknown said...

tankx boss . . .

Unknown said...

bos hw to use micromax mmx352g modem in ubuntu 10.04 or ubuntu 9.10.

rishi said...

gr8 work man.. i appreciate you.. thank u very much..

Anonymous said...

I get this error -

[ 351.326300] usb_modeswitch_[2641]: segfault at 8 ip 00007f5bdd56f101 sp 00007fffa8bfef88 error 4 in libc-2.15.so[7f5bdd4e6000+1b5000]

What do I do?

ashishdalvi said...

hey thanks a lot. Now my connection is detected, i can connect but surprisingly I cannot browse even after connecting. The webpage does not open :-(

ponmudi said...

hi i got an error at the last step
i am using micromax mmx355g 3g modem hspa 7.2mbps
configuration will be very difficult and detection of driver also difficult.
i just did the above steps are fine upto modprobe statement and at last statement
--> usb_modeswitch -c /etc/usb_modeswitch.d/1dbc:0669
i got the error is no driver found but usb storage driver is found and product id is also found

Looking for target devices ...
found matching product ID
adding device
Found devices in target mode or class (1)
Looking for default devices ...
found matching product ID
adding device
Found device in default mode, class or configuration (1)
Accessing device 006 on bus 001 ...
Getting the current device configuration ...
OK, got current device configuration (1)
Using first interface: 0x00
Using endpoints 0x01 (out) and 0x87 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
OK, driver found ("usb-storage")
OK, driver "usb-storage" detached
Could not send INQUIRY message (error -2)

USB description data (for identification)
-------------------------
Manufacturer: HSPA
Product: HSPA
Serial No.: 8444311594054030
-------------------------
Looking for active driver ...
No driver found. Either detached before or never attached
Setting up communication with interface 0
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
Sending the message returned error -2. Trying to continue
Resetting response endpoint 0x87
Resetting message endpoint 0x01
Could not reset endpoint (probably harmless): -2
-> Run lsusb to note any changes. Bye.

Air India direct flight to San Fransisco has flown through China today.

 My sister in law left for San Fransisco by AI 173 flight which flows over North Pole. I tracked that flight on flightstats.com till it land...