Get a free quote now

Setting up Airtel GPRS on Ubuntu via Nokia Communicator 9300 and data cable.

February 12, 2008 - 01:55
We had never had to configure an Airtel GPRS internet connection on a Laptop with Ubuntu before as we never had a customer who had one such connection. We however got an opportunity last day when we installed ubuntu on a compaq presario F733AU laptop. Setting up internet access on Ubuntu is easy in itself and setting up GPRS could not have been any easier. The customer had a Nokia 9300 communicator with a USB datacable.

1) Plug in the phone to the Laptop via the USB datacable and then identify the vendor ID and product ID of the phone. Run

lsusb

to get an output similar to the following

Bus 001 Device 004: ID 0421:0443 Nokia Mobile Phones

Here 0421 is the vendor ID and 0443 is the product ID of the Nokia phone. Your values could be different based on the phone you are connecting. But more often than not the descriptions should help you find the right line corresponding to your code. You will have other lines of output corresponding to other USB devices

2) Now run the command

sudo /sbin/modprobe usbserial vendor=0x0421 product=0x0443

Make sure you replace 0421 and 0443 with whatever values you had identified as the vendor ID and the product ID of your phone.

3) Create your wvdial.conf by running the following

sudo wvdialconf /etc/wvdial.conf

4) Edit your /etc/wvdial.conf to look similar to the following. You will most probably have to edit only the Phone, Password and Username lines

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

5) Run wvdial and you should be online immediately. You can also configure two shortcuts on the panel to point to wvdial and poff.wvdial to turn on and turn off the connection without opening a terminal window at all.

Configuring GPRS internet access using any other phone other than Nokia or any other service provider other than Airtel should follow a similar process (unless of course you run into problems). If you run into problems and you are located near our offices you can drop by and try to get the problem rectified by our experts or if not you can use the comments form below to ask us your questions and we will try to help you in whatever way we can.

Reference: http://ubuntuforums.org/archive/index.php/t-257127.html

Post your comments / questions

dear all,

we already configured according to given guidelines but when i dial wvdial an error comes again n again in ppp0 interface (error no.16) n connection terminated.

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

Bus 002 Device 002: ID 1131:1001 Integrated System Solution Corp. KY-BT100 Bluetooth Adapter

Step 2. Load Bluetooth Drivers
You'll need to install Bluetooth utilities for Ubuntu.

To install the Bluetooth utilities,

sudo apt-get install bluez-utils

Step 3. Detect the phone
Now, try to detect the phone from Ubuntu.

First, turn on Bluetooth services on the cellphone. On a Nokia, follow the following sequence: Menu->Settings->Connectivity->Bluetooth. Turn on Bluetooth and make sure the the visibility is Shown to all.

Then, run hcitool scan. Sample output is:

Scanning ...
00:17:B0:B4:52:C8 Nokia6233

The six octet number (00:17:B0:B4:52:C8) is my cellphone's unique ID. Yours will be different.

Step 4. Change hcid.conf security option
You'll have to change the default Bluetooth configuration of Ubuntu, specifically the section pertaining to security. Ordinarily, you shouldn't need to go through this step if the security configuration was set properly. (I speak for the case of Edgy; this may change in future versions.)

Edit /etc/bluetooth/hcid.conf (you will need to go sudo for this). Change the line:

security user;

to

security auto;

and restart Bluetooth services by running sudo /etc/init.d/bluetooth restart.

By the way, hcid stands for Bluetooth Host Controller Interface demon. /etc/bluetooth/hcid.conf contains all the options needed by the daemon. It consists of sections and parameters for pairing, security, and others.

Step 5. Pair the phone
Finally, the pairing!

Go back to the Bluetooth menu of your cellphone and activate the pairing. On the Nokia 6233, the sequence is Menu->Settings->Connectivity->Bluetooth->Paired Devices. Click on New. The phone will then search for Devices, after which the hostname of your Ubuntu machine should appear.

Select Pair. You will be prompted for a passcode. The passcode number is as given in /etc/bluetooth/hcid.conf. The default is 1234.

You will have the option to let the computer connect automatically to the phone. Choose "Yes" if this will a more or less permanent connection; choose "No" if this is only temporary or if you want the security of confirmation.

And you're all set!

Hello,

Thank you. It worked without any trouble.

Thanks,
Sateesh

I would like to say thank you to author of these articles on this site. I read all of these articles and i need to read some new articles.

hey when i type wvdial and press enter then it will

-->Sending: ATDT*99***#
-->Waiting for carrier.
-->Timed out while dialing. Trying Again.

can any one help me out of this...

I am using Nokia E72 ... also the latest version of ubuntu (Ubuntu 11.04 [Natty Narwhal])

The verson of ubuntu has a Mobile Broadband connetion in networks...
can any one help me to et the details for Airtel Mobile office in it....

Please Help me to connect to Internet via mobile broadband or wvdial... Pleaseee...