Friday, August 7, 2009

Nokia Phone Modem Internet connection in ubuntu

There are two ways to do that:


For newbies:
  • 1. Connect your phone to the PC via USB.
  • 2. Select “PC Suite” in phone.
  • 3. Ubuntu will detect your phone
  • 4. Click on the Configure button and a window will appear, click on “Forward” then you can see names of Mobile Connection Provider. If you can see your Mobile Connection Provider is on the list, select that one. If your Mobile Connection Provider is not on the list (like in my case - AirCel) then select any one of them (I choose AirTel).

NB: If your Mobile Connection Provider is not on the list then please follow the steps from 6 to 10.

  • 5. Click on Finish
  • 6. Go to the Network icon and right click on that and then click on “Configure/Edit Connection”.
  • 7. It will leads you to a window. Go to the "Mobile Broadband" tab and select the Connection name (in my case it was "Airtel") and then Click on "Edit".









  • 8. Then the below screen will appear:
  • 9. Now you have to customize these properties as your Connection Provider. (In my case I changed the APN only).
  • 10. Change the Connection Name as you like. Press “OK”.
  • 11.Now click on the network icon and select the connection name what you have gave.
  • 12. That’s it……. connected!!!
For Terminal Lovers:


  • 1. Connect your phone to the PC via USB.
  • 2. Select “PC Suite” in phone.
  • 3. Go to Terminal
  • 4. type "lsusb"
  • You will get like this:
  • Bus 001 Device 004: ID 0421:00e9 Nokia Mobile Phones
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  • 5. sudo /sbin/modprobe usbserial vendor=0x0421 product=0x00e9
  • The Vendor ID and Product ID must match with the result of "lsusb"
  • 4. sudo wvdialconf /etc/wvdial.conf
  • 5.you may find this:
  • ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud

    ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud

    ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.

    Modem Port Scan<*1>: S1 S2 S3

    WvModem<*1>: Cannot get information for serial port.

    ttyACM0<*1>: ATQ0 V1 E1 -- OK

    ttyACM0<*1>: ATQ0 V1 E1 Z -- OK

    ttyACM0<*1>: ATQ0 V1 E1 S0=0 -- OK

    ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK

    ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK

    ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK

    ttyACM0<*1>: Modem Identifier: ATI -- Nokia

    ttyACM0<*1>: Speed 4800: AT -- OK

    ttyACM0<*1>: Speed 9600: AT -- OK

    ttyACM0<*1>: Speed 19200: AT -- OK

    ttyACM0<*1>: Speed 38400: AT -- OK

    ttyACM0<*1>: Speed 57600: AT -- OK

    ttyACM0<*1>: Speed 115200: AT -- OK

    ttyACM0<*1>: Speed 230400: AT -- OK

    ttyACM0<*1>: Speed 460800: AT -- OK

    ttyACM0<*1>: Max speed is 460800; that should be safe.

    ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK



    Found an USB modem on /dev/ttyACM0.

    Modem configuration written to /etc/wvdial.conf.

    ttyACM0: Speed 460800; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"

  • 6. To see the conf file type "cat /etc/wvdial.conf" and you may find this:
  • [Dialer Defaults]

    Init1 = ATZ

    Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0

    Modem Type = USB Modem

    ; Phone =

    ISDN = 0

    ; Password =

    New PPPD = yes

    ; Username =

    Modem = /dev/ttyACM0

    Baud = 460800

  • 7. Now we have to edit this wvdial.conf file according to our Service Provider. I've edited my file just like this:
  • a) uncomment the below line and put target phone no in it like *99#

    ; Phone =

  • Phone = *99#
  • b) uncomment the below line and don't keep it blank, put anything like:

  • ; Password =

  • Password = A
  • c) uncomment the below line and don't keep it blank, put anything like:
  • ; Username =

  • Username = B
  • d) Add the below line:
  • Stupid Mode = 1
  • 8. Type "sudo wvdial" and get connected!!!





No comments:

Post a Comment