.

mob

Tips Inside Moved To New Domain

Friday, September 10, 2010

How to connect GPRS Internet on Ubuntu 9.10 using Nokia mobile phone

Categories: ,

In UBUNTU Linux, The mobile internet is not possible at older version, Here today our tips go for about it, Some time our mobile phones play an important role on wireless internet, here our linux not providing the easier form to connect mobile to their hardware, For example: Nokia mobile having PC Suite for windows operating system, here the internet is possible in a single click, but there no PC suite for linux, Here WVDIAL is used to connect mobile internet to linux, just we require an mobile, Data Cable, Unlimited internet usage from service provider,



Step to Install Mobile Internet In Linux.

  • Then open up a terminal and type:


lsusb

  • and you ll get something like that:

Bus 001 Device 005: ID 0421:02e3 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

  • The first line corresponding to your Nokia phone, has two numbers: 421 which is the vendor ID and 2e3 which is the product ID. These two numbers must be used in order to enable the serial connection through the usb cable from the connected phone. On that terminal type:

sudo modprobe usbserial vendor=0x421 product=0x2e3

  • In your case go ahead and replace the above numbers with the ones from your output.

  • Now, if you do not have wvdial installed, go ahead and install it (in debian-like linux distros):

sudo apt-get install wvdial

And now you are ready to start configuration for your modem. On the terminal type:

sudo wvdialconf create

  • The tool will try to identify the serial port the modem is connected and will make some tests in order to give you the final settings. Hopefully you will get a -not so small- list ending with something like this:

Found an USB modem on /dev/ttyACM0.
Modem configuration written to create.
ttyACM0: Speed 460800; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"

  • So, /dev/ttyACM0 is the device node that it is going to be used with speed 460800. Now, we will edit the options for dialing. Edit the following file with your favourite editor:

sudo vi /etc/wvdial.conf

  •  And enter the following:

[Dialer Defaults]
Modem = /dev/ttyACM0
BAUD = 460800
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=, ,"airtelgprs.com"
Phone = *99***1#
Username = web
Password = web
New PPPD = yes
Stupid Mode = 1

  • Edit the above according to the setting that you received. Also, change the "airtelgprs.com" according to your cell settings.

  • Save it, close it and then in terminal type:

sudo wvdial

  • And if you get the following:Carrier detected.  Starting PPP immediately.;
  Starting pppd at Thu Apr 15 15:27:00 2010
  Pid of pppd: 2975
  Using interface ppp0
  pppd: `(Q �1Q �(Q
  pppd: `(Q �1Q �(Q
  pppd: `(Q �1Q �(Q
  pppd: `(Q �1Q �(Q
  local  IP address 188.73.249.223
  pppd: `(Q �1Q �(Q
  remote IP address 10.6.6.6
  pppd: `(Q �1Q �(Q
  primary   DNS address 212.152.70.6
  pppd: `(Q �1Q �(Q
  secondary DNS address 212.152.70.7
  pppd: `(Q �1Q �(Q

  • You are done!!! You have internet from your mobile and you can go ahead and start using the internet!

The  above solution can be achieved through a bluetooth connection. First of all, you need to have bluetooth utilities installed on your machine. So make sure to install them.
After installing them, open up a terminal and type:

hcitool scan

  • This will identify all bluetooth devices that are in range. When your device shows up, use its MAC address to identify the channel for the rfcomm property (needed to access the modem):

sdptool search DUN

  • This will give you a list for the properties of your phone:


Inquiring ...
Searching for DUN on [mac address] ...
Service Name: Dial-Up Networking
Service RecHandle: 0x1001a
Service Class ID List:
  "Dialup Networking" (0x1103)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 22
Language Base Attr List:
  code_ISO639: 0x454e
  encoding:    0x6a
  base_offset: 0x100
Profile Descriptor List:
  "Dialup Networking" (0x1103)
    Version: 0x0100

  • Note the MAC and the channel number so that you may use it. Now we should create the rfcomm0
  • node so that it can be accessed:
sudo rfcomm bind 0 [mac address] [channel]

  • The device node has been created and now you can use it for dialup. Last step before dialing, you should change the modem property on wvdial.conf to:

modem = /dev/rfcomm0

And you are done!

Spread The Love, Share Our Article

Related Posts

No Response to "How to connect GPRS Internet on Ubuntu 9.10 using Nokia mobile phone"

Post a Comment

Subscribe via MAIL

Enter your email address:

Delivered by FeedBurner

Related Posts with Thumbnails