Using Mobile as USB Modem in Ubuntu

Now I am at Chittagong, enjoying my eid vacation here. Normally I use broadband at my home at Dhaka. But I am so much addicted in Internet that I can’t pass a single day without it and also I can pass all my time without eating or drinking if I get Internet. So, I faced a problem here that is my sister use GP Edge and I have to use this as alternate here. But I use Ubuntu Hardy 8.04 in my laptop and I don’t have any other OS. I never used any phone as modem in Ubuntu. I could have used my sister’s laptop but I didn’t feel comfortable as I will miss all my personal settings in which I am used to. So I started looking for how I can install the mobile set in my laptop. It’s a Nokia 6280 phone. I have searched over internet and finally by taking help from two site I have succeeded using it. The steps I have followed to install it are as follows:

1. Connected the phone using USB cable.
2. Open the terminal.
3. Check the USB detection:-

$ lsusb

Bus 003 Device 003: ID 0421:045a Nokia Mobile Phones
Bus 003 Device 002: ID 04f3:0210 Elan Microelectronics Corporation
Bus 003 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

4. Autodetect the modem using WVDial:-

$ sudo wvdialconf
Found an USB modem on /dev/ttyACM0.
Modem configuration written to /etc/wvdial.conf.
ttyACM0<Info>: Speed 460800; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
ttyACM1<Info>: Speed 460800; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"

5.

 sudo gedit /etc/wvdial.conf
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,”IP”,”gpinternet”
Modem Type = USB Modem
Baud = 460800
New PPPD = yes
Modem = /dev/ttyACM0
ISDN = 0
Phone = *99***1#
Username = gp
Password = gp

6.

 sudo ifdown eth0 

[it will disable your LAN connection]

7. finally execute

$ wvdial

Now I am connected to GP Internet.

Special thanks to Mr. Hasan for the step 6. Without this I tried again and again but couldn’t get connected.

About Saifur

A passionate software engineer, having several years of experiences in different area of software industry in Europe and Asia loves music, playing soccer, traveling new places, researching on new technologies such as programming languages, frameworks, software architectures and different project management practices.

, , ,

5 Responses to Using Mobile as USB Modem in Ubuntu

  1. Shubuntu May 12, 2009 at 2:00 am #

    Good tutorial. Thanks.

    I have a similar post, on how to connect using the Phone as the modem. Here:

    http://shubuntu.blogspot.com/2008/04/use-your-mobile-as-external-modem-in.html

  2. Rummandinho May 23, 2009 at 4:07 pm #

    Saifur Bhaia,

    Your website and blogsite has been an inspiration for me to help people. After getting internet with Ubuntu using GP and a cell. I started learning a few languages and now I completed PHP. I am only 15 and in the 9th grade. It’s really amazing how much you help people in your site. Especially Bangladeshi people.
    You’re a legend.

    A Fan of your :D
    Rumman R.K

  3. rajib September 6, 2009 at 4:42 am #

    atually i want to connect to internet through usb modem and my handset is nokia 3110classic and i use reliance smart for net in ubuntu 8.04…………..
    can any one help me for this?????????

  4. Internet Usb Phone October 24, 2009 at 1:46 am #

    I started learning a few languages and now I completed PHP. I am only 15 and in the 9th grade. It’s really amazing how much you help people in your site

  5. computer repair bronxville ny May 3, 2010 at 8:24 am #

    When the content of this blog delivers good tips, it’s the way to go.

Leave a Reply


*