Professional Documents
Culture Documents
Contents
[hide]
1 Prerequisite
2 Configuring device node (rfcomm, bluetooth only)
2.1 Listing Bluetooth devices
2.2 Pairing
2.3 Configuring the rfcomm device
3 Configuring GPRS connection
3.1 Airtel
3.1.1 Peers file
3.1.2 Chatscript
3.2 Idea
3.3 Tata Indicom Plug2Surf
3.3.1 Peers file
3.3.2 Chatscript
4 Using GPRS connection
4.1 Dialing permission
4.2 Using the connection
5 Additional/Alternate Instructions for Configuring Internet Using GPRS via
Bluetooth
5.1 Preparing Your Phone and Laptop for Bluetooth Connection
Prerequisite
In case of Airtel a GPRS enabled phone which can be used as modem. This phone
should have data profile set properly as per instructions provided by the service
provider. OR
In case of Tata Indicom, the USB GPRS kit which has a SIM card using which one can
connect to internet.
Configuring device node (rfcomm, bluetooth only)
If you are going to connect phone via USB cable, please skip this section.
Peers file
Create a peers file for the connection
$ sudo vi /etc/ppp/peers/tatagprsPaste the following into the file (the file
should start out blank) noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/tatagprs"
debug
/dev/ttyACM0
460800
defaultroute
noipdefault
user "internet"
password "internet"
remotename tata
ipparam tata
usepeerdns
Save and close the file.
Chatscript
Create a chatscript for the connection
$ sudo vi /etc/chatscripts/tatagprsPaste the following into the file (the file
should start out blank).
ABORT 'BUSY'
ABORT 'NO CARRIER'
ABORT 'ERROR'
'' ATZ
OK ATDT#777
CONNECT ''
Save and close the file.
Using GPRS connection
Dialing permission
Add the user who wants dialing permission to the 'dialout' group $ 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.
Using the connection
Start the connection using pon command (replace BluetoothDialup with appropriate
connection name). $ pon BluetoothDialup
End the connection using poff command $ poff BluetoothDialup
After pon you can verify if the connection has started using plog -f command
If you have configured bluetooth succesfully and are looking for the Airtel GPRS
connection string, then you can find it below.
These instructions have been tested on a Ubuntu Dapper Drake release with a Dell
Latitude D610, connected to a Nokia Series 60 phone over Airtel GPRS via
bluetooth.
This contains information right from checking your bluetooth driver installation
to creating the chat scripts for bluetooth dialup using pppd.
The only additional information you need here is the GPRS connection string for
your service provider. The connection string for Airtel GPRS is:
OK 'AT+CGDCONT=1,"IP","airtelgprs.com","",0,0'\
OK ATD*99# \
So, if you are following the instructions given in the link above, then replace
the gprs-chat script given there, with the one below.
#!/bin/sh
#this is the matrix setting #
exec chat
\
TIMEOUT 5 \
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 \
TIMEOUT 12 \
SAY "Press CTRL-C to close the connection at any stage!" \
SAY "\ndefining PDP context...\n" \
OK ATH \
OK ATE1 \
OK 'AT+CGDCONT=1,"IP","airtelgprs.com","",0,0'\
OK ATD*99# \
TIMEOUT 22 \
SAY "\nwaiting for connect...\n" \
CONNECT "" \
SAY "\nConnected." \
SAY "\nIf the following ppp negotiations fail,\n" \
SAY "try restarting the phone.\n"
For any other service provider, simply call the customer care and ask them
specifically about the GPRS connection string and other GPRS specific settings (if
any).
Thats it. This should get you started on the internet using GPRS. Happy
Surfing...:)