Tutorial - inrenet through airtelgprs in Ubuntu

Status
Not open for further replies.
S

sariq

Guest
Tutorial - internet through airtelgprs in Ubuntu

source: *help.ubuntu.com/community/BluetoothDialup
edited by me at some steps, as steps were not working. here is the steps which actually worked on aitel gprs:-

1.Make your phone Bluetooth discoverable.
Run the following at a shell prompt:
Code:
$ hcitool scan
Copy the MAC address (the text with the capital letters, numbers, and ':'s) somewhere convenient. You'll need it many times. in my case it was 11:11:11:11:11:11

2.Pairing : search from your device, it will find your computer with the name ubuntu-0, pair it use pin 1234

3.Get the channel number for your phone's dialup service by running the following, replacing your-phone-mac-address with the proper data
Code:
$ sdptool browse your-phone-mac-address
* Look under "Service Name: Dial-up Networking"
* Under "Protocol Descriptor List:" and "RFCOMM", there should be a number after "Channel:"
* Remember that number; you'll need it for the rfcomm configuration, in my case it was 1

4.Edit file /etc/bluetooth/rfcomm.conf
Code:
$ gksudo gedit /etc/bluetooth/rfcomm.conf
* Paste the following into the file, replacing your-phone-mac-address and your-phone-rfcomm-channel with appropriate values
Code:
rfcomm0 {
bind yes;
device 11:11:11:11:11:11;
channel	1;
comment "Bluetooth PPP connection";
}
* Save and close the rfcomm.conf file

5. Restart bluetooth services. This will create the rfcomm0 device (and rfcomm1, rfcomm2 if configured)
Code:
$ sudo /etc/init.d/bluez-utils restart

6. Create a peers file for the connection
Code:
$ gksudo gedit /etc/ppp/peers/BluetoothDialup
* Paste the following into the file (the file should start out blank)
Code:
debug
noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/BluetoothDialup"
usepeerdns
/dev/rfcomm0 115200
defaultroute
crtscts
lcp-echo-failure 0
* Save and close the BluetoothDialup file

7. Create a chatscript for the connection
Code:
$ gksudo gedit /etc/chatscripts/BluetoothDialup
* Paste the following into the file (the file should start out blank).
Code:
TIMEOUT	35
ECHO	ON
ABORT	'\nBUSY\r'
ABORT	'\nERROR\r'
ABORT	'\nNO ANSWER\r'
ABORT	'\nNO CARRIER\r'
ABORT	'\nNO DIALTONE\r'
ABORT	'\nRINGING\r\n\r\nRINGING\r'
''	\rAT
OK	'AT+CGDCONT=1,"IP","airtelgprs.com"'
OK	ATD*99***1#
CONNECT	""
* Save and close the BluetoothDialup file

8. Dialing permission

* Add the user who wants dialing permission to the 'dialout' group
Code:
$ sudo adduser your-username-here dialout
You can also do this from GUI, System->Administration->Users & Groups. Check for user permissions and make sure that Allow to use modem checkbox is checked.

9. using the connection in subsequent connections

* Start the connection using pon command
Code:
$ pon BluetoothDialup
* End the connection using poff command
Code:
$ poff BluetoothDialup
* After pon you can verify if the connection has started using plog command
Code:
$ plog BluetoothDialup
 
Last edited by a moderator:

din

Tribal Boy
For Mobile phone + Cable + Airtel GPRS

I followed the instructions from here

With small modifications, it worked perfectly for me. Please give a try and post details.
 
Status
Not open for further replies.
Top Bottom