Using Airtel Edge/GPRS Micromax MMX 610U USB device to surf the internet from Linux

This has been a major headache for me to reboot to Windows just to surf my net, and to update my Linux machine I had to forward the internet connection from a Windows computer to my Linux machine. None-the-less I eventually managed to make it work to day. 🙂

Note that I managed to make it work, and I provide no guarantee that it will work on your computer, but I will share my computer’s configuration so that it may help you.

So, first my computer’s configuration. I have Kubuntu Hardy Heron installed (8.04). My current kernel is 2.6.24-19-generic (installed from the official Ubuntu server). Mine is a 32-bit system. The USB modem I have is Micromax MMX 610U.

Now the steps to setup your USB modem:-

  1. Plug-in your USB modem. A green light will start blinking. If the light is blue then you have PIN set and I have no idea how to enter PIN code from Linux. In that case, reboot to Windows and from the provided Airtel’s software enter the PIN code and reboot to Linux or disable the PIN altogether.
  2. Now run the command lsusb in the console the output will be like as below.Bus 005 Device 003: ID 0d49:7410 Maxtor
    Bus 005 Device 001: ID 0000:0000
    Bus 004 Device 001: ID 0000:0000
    Bus 003 Device 002: ID 046d:c016 Logitech, Inc. M-UV69a Optical Wheel Mouse
    Bus 003 Device 001: ID 0000:0000
    Bus 002 Device 001: ID 0000:0000
    Bus 001 Device 004: ID 12d1:1001 Huawei Technologies Co., Ltd. E620 USB Modem
    Bus 001 Device 001: ID 0000:0000

    An Important Note:-
    As I have found out that hot plugging of this USB modem doesn’t work. The modem will be detected by the kernel but for some reason wvdial won’t be able to locate the modem, hence, when you insert the modem into your USB drive then reboot your computer (or plug it in before turning on your computer).

    Note the bolded text above. That’s your modem.

  3. Now run sudo wvdialconf. This will create the file /etc/wvdial.conf with some of the necessary values.
  4. Now whatever values the file /etc/wvdial.conf keep that as such except for the ones shown below. If any settings shown below already existed then replace that with the ones below, if they didn’t exist then just add them to the file, but they must appear below the line [Dialer Defaults]. Note that will need to open the file /etc/wvdial.conf as a root. Try using sudo nano /etc/wvdial.conf.Init1 = AT+CGDCONT=1,”IP”,”airtelgprs.com”,””,0,0
    Baud = 460800
    stupid mode = 1
    Phone = *99#
    Password = a
    ;No need to change this to anything else. This is immaterial, and note that no semicolon before Password =.
    Username = a ;No need to change this to anything else. This is immaterial, and note that no semicolon before Username =.
  5. Now create a file connAir in your home directory. Copy and paste the following code into it and give it execute permission.
    [code lang=”bash”]#!/bin/bash
    # BY AppleGrew @ http://blog.applegrew.com (All rigths
    # reserved)

    pid=`pgrep wvdial`
    if [ -z $pid ]
    then

    sudo route del default
    echo "CONNECTING TO Airtel…"
    wvdial &

    sleep 10s

    IP=`ifconfig ppp0|grep -o  ‘inet addr:\([.0-9]*\)’`
    IP=`echo $IP|sed  ‘s/inet addr:\([.0-9]*\)/\1/g’`
    echo "YOUR CURRENT IP IS ‘$IP’".
    if [ -z $IP ]
    then
    echo "CONNECTION TO Airtel TIMED-OUT…….. : ("
    else
    echo "CONNECTED TO Airtel. : )"
    fi
    sudo route add default gw $IP

    else
    echo "A CONNECTION IS ALREADY IN PROGRESS."
    fi[/code]

  6. Now create another file disconnAir in your home directory. Copy and paste the following code into it and give it execute permission.
    [code lang=”bash”]#!/bin/bash
    # BY AppleGrew @ http://blog.applegrew.com (All rigths
    # reserved)

    pid=`pgrep wvdial`
    if [ -z $pid ]
    then
    echo "NO CONNECTION IN PROGRESS."
    else
    echo "DISCONECTTING FROM Airtel…"
    kill -INT $pid

    sleep 6s
    pid=`pgrep wvdial`
    if [ -z $pid ]
    then
    echo "DISCONNECTED."
    else
    echo "DISCONNECTION MAY HAVE FAILED."
    fi
    fi[/code]

Connecting to Airtel:-

  1. Open console and type ./connAir.

Disconnecting from Airtel:-

  1. Open console and type ./disconnAir.

Hope this helps.

47 Comments

  1. Thanks for your write-up. I’m heading over to India for three weeks and am taking my Asus eee 901 to manage work remotely and am trying to decide between:

    – grabbing an airtel usb modem once I get there, and attempting to set it up via your instructions (thanks!)

    – using my unlocked blackberry curve and grabbing an airtel SIM card w/unlimited data and using that to tether to the laptop (as well as retrieve emails, etc.)

    How’s your experience been with the modem?

    Thanks again —

    Justin

    Reply

  2. Hi justin,

    The for this Airtel modem that I am using you need to get an Airtel SIM too. This modem is just a pen drive shaped adapter for the SIM. U can do that very thing by putting the SIM in ur phone and hooking it to ur laptop, but using such SIMs will be costlier to make phone calls, hence if u use them with the phone then u will need to switch the SIMs frequently, …. very inconvinient.

    My Airtel Tariff is Rs.999 per month with unlimited data transfer. Speed is 15-20 kBps (i.e. 120-160 kbps).

    Reply

  3. @Thirupathy
    Hi,
    I get a speed of max 15-16KBps. This is very less compared to that we get on Windows (where we get 28KBps). I believe the Linux driver is to be blamed for this.

    Reply

  4. Hi Buddy,

    Can you add a email subscriber to your blog, I would like to subscribe to your blog. I just couldn’t find the link for the same.

    Good work

    I’m a doc with interest in Computers.

    Reply

  5. @Sanjiv

    Hi, as per ur request I have now added the box for email subscription. Welcome aboard. 🙂

    And my apolozies to all readers as there was typo (typing mistake) in this post, where I asked you to run the command sudo wvdial.conf instead of sudo wvdialconf. Anybody who would have tried the misspelled command would had got an error. Some of you could had figured it out and rest could have been perplexed. Anyway I have fixed it now.

    Reply

  6. @Ankit
    This should very well work with your Vodafone sim. Here computer communicates with the USB hardware and not the SIM, and I guess the hardware is capable to handle any SIM. Give it a try and lemme know if it works or not.

    Reply

  7. Thanks for the reply. I tried but it gave me the following message on my vodafone sim “Enter PIN to Unlock Data Card” 10 tries remaining. The pin required was definately not 4 digit. Also in the back of the aitrel usb modem packaging was written that it was sim locked. Any ideas.

    Reply

  8. @Ankit
    Oh. Ur SIM card is locked. Log into Windows and from there Choose remove PIN code. U will need the PIN code to remove it. Once removed it won’t cause for PIN anymore.

    Reply

  9. @Ankit
    If anything works in Linux then it should work in Mac as at core it is a Linux system. Anyway the Airtel people said that someone has made their USB device work on Mac.

    Reply

  10. I have a data card model MMX 610U USB divice its use air tail sim, some time i want use Idea sim, as i insert idea sim and pluck USB port the data card ask a unlock code but i have no nay unlock code kinldy give the possible way for the same.

    Reply

    1. Hello Mokarram

      You just follow the steps given below for Unlocking Microimax MMX 610U Datacard from Airtel.

      1. Remove the Airtel SIM from Modem then insert any other Operators Sim Card.
      2. Visit http://a-zgsm.com/huawei.php and enter Your Microimax MMX 610U IMEI number (written on the Card itself). Enter the Security code then press Calculate, You will get 2 Codes Unlock Code and Flash Code.
      3. Now connect your Modem to PC, a Screen will be put up to enter the Unlock code, Enter theUnlock Code generated above and you are Done. Your Card is Unlocked.

      If it’s not working please forward a mail to: riyajshahmba@gmail.com

      Reply

  11. Hi Apple Grew….

    Thanks for a such a simple solution to a complex problem. Please change the mistake on wvdialconf in the main text of the blog. That would save a lot of time for novices like me.

    Thanks again.

    Ritwik

    Reply

  12. Hey Apple Grew,

    Help me in something else. I did a mistake and without doing any research bought iBall webcam. Now realized that a Logitech one would have been better for me to install on my Unbuntu Box. Could u please help on this???

    Waiting….

    Ritwik

    Reply

  13. Hi Ritwik,
    I think the wvdialconf typo u r referring to has been fixed.

    And about the iBall thing,…hmmm… u need to google it out. For a heads up try using the command lsusb after attaching ur webcam. See if it gets listed in the output. Now use that chip to model no. there and google out how to make that work in linux. I did a similar thing to make my Intex TV Tuner card work in Linux.

    Reply

  14. Hi,

    Do anyone have AT command set for this Airtel Data card “MMX 610U” model? If yes, can u post that link here…

    Regards,
    Sabari.

    Reply

  15. hi all
    myself sreeath from bangalore
    thankyou for giving valuable information
    i am using airtemodem(Microma610U)
    i want to change my etwork from airtel when i insert other network sim into modem that will ask for unlock code
    please help me on unlock code
    sreenatha84@gmai.com

    Reply

  16. Thanks for the write up, but the micromax modem is being detected as Prolific Technologies Inc. See the output of lsusb
    Bus 007 Device 001: ID 0000:0000
    Bus 006 Device 002: ID 045e:0084 Microsoft Corp. Basic Optical Mouse
    Bus 006 Device 001: ID 0000:0000
    Bus 005 Device 002: ID 067b:0612 Prolific Technology, Inc.
    Bus 005 Device 001: ID 0000:0000
    Bus 004 Device 001: ID 0000:0000
    Bus 003 Device 001: ID 0000:0000
    Bus 002 Device 001: ID 0000:0000
    Bus 001 Device 002: ID 05a9:2640 OmniVision Technologies, Inc. OV2640 Webcam
    Bus 001 Device 001: ID 0000:0000

    Will u be able to help me to configure?
    Any help is appreciated.

    Reply

  17. Dear Mr Applegrew,
    when i tried out the steps indicated, and finally ran connAir, I got the following error:

    SIOCDELRT: No such process
    CONNECTING TO Airtel…
    –> WvDial: Internet dialer version 1.60
    –> Cannot get information for serial port.
    –> Initializing modem.
    –> Sending: AT+CGDCONT=1,”IP”,”airtelgprs.com”,””,0,0
    AT+CGDCONT=1,b [1d]IPb [1d],b [1d]airtelgprs.comb [1d],b [1d]”,0,0
    ERROR
    –> Bad init string.
    –> Cannot get information for serial port.
    –> Initializing modem.
    –> Sending: AT+CGDCONT=1,”IP”,”airtelgprs.com”,””,0,0
    AT+CGDCONT=1,b [1d]IPb [1d],b [1d]airtelgprs.comb [1d],b [1d]”,0,0
    ERROR
    –> Bad init string.
    –> Cannot get information for serial port.
    –> Initializing modem.
    –> Sending: AT+CGDCONT=1,”IP”,”airtelgprs.com”,””,0,0
    AT+CGDCONT=1,b [1d]IPb [1d],b [1d]airtelgprs.comb [1d],b [1d]”,0,0
    ERROR
    –> Bad init string.
    ppp0: error fetching interface information: Device not found
    YOUR CURRENT IP IS ”.
    CONNECTION TO Airtel TIMED-OUT……..
    Usage: inet_route [-vF] del {-host|-net} Target[/prefix] [gw Gw] [metric M] [[dev] If]
    inet_route [-vF] add {-host|-net} Target[/prefix] [gw Gw] [metric M]
    [netmask N] [mss Mss] [window W] [irtt I]
    [mod] [dyn] [reinstate] [[dev] If]
    inet_route [-vF] add {-host|-net} Target[/prefix] [metric M] reject
    inet_route [-FC] flush NOT supported

    Can you help?

    Reply

  18. Hi sanyal,
    First make sure that u have ran the ‘sudo wvdialconf’. If yes, next make sure that use ‘sudo ./connAir’ to connect instead of simply running as ‘./connAir’.

    Reply

  19. I have lost my driver CD of my usb with wire Data Card micromax mm 610u (for airtel) how can i get this. and if another alternate is available then let me know plz.

    Reply

  20. @Ishu,
    Unfortunately I don’t have the CD anymore, so I don’t have the drivers. U can try googling it out. BTW to run this in Linux u don’t need the drivers.

    Reply

  21. Hi,my name is SHEHZAD

    I have a Airtel USB MICROMAX Data card model MMX 610U IMEI nO. 353474021874805. I want to use other sim cards like Aircel. Kindly help me to unlock it.

    Thanking you.
    contact me on- shehzad_roy@ymail.com or +919773635591 frm MuMbAi…

    Reply

  22. hei grew,
    I’m sylvia, i’m using airtel micromax mmx610u EDGE GPRS. and i got habituated to tht modem to browse with a very low cost. it was given by a friend,and naw he is asking me fo tht and he said it is an imported device. so haw and where can i get the same device here in india.or else plz suggest me if any other better device for me at a low cost whch works like ths modem. plz send me a reply, i’m waiting.

    Reply

  23. hai apple grew and thanks to for this valuable information….

    my question is i just now brought new huawei e1731 airtel 3G modem ..whether it is possible to work with linux (ubuntu)….. if passible what are all things i need to concentrate …
    or that following steps are enough…..

    thank you in advance ………….

    Reply

  24. hai grew

    whether it is necessary to use ./connectionair and ./disconnectair

    or directly i can use $ sudo wvdial after the edition of wvdial.conf page.

    Reply

    1. Well my script does some more stuffs like configuring the system to the Airtel connection. I am not sure if all these will work now, but it should. Just give it a try.

      Reply

  25. Dear Applegrew,
    When I ran wvdial 3g at the end, it gave the following error:
    –> Timed out while dialing. Trying again.
    –> Sending: ATDT*99#
    –> Waiting for carrier.

    –> Modem initialized.
    –> Sending: ATDT*99#
    –> Waiting for carrier.
    ATDT*99#
    CONNECT
    –> Carrier detected. Starting PPP immediately.
    –> Unable to run /usr/sbin/pppd.
    –> Check permissions, or specify a “PPPD Path” option in wvdial.conf.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.