Setting up PPP to use the Bluetooth connection

This is the third phase in using a GPRS cellphone as modem for Ubuntu.

The final phase is to set up PPP scripts and options to use the established connection. The scripts and options are set in two files which you will need to edit.

Step 1. Set up the chat script
Put this chat script in the file /etc/chatscripts/smart-3g (SMART being my cellphone service provider; you can use a different name.) The file location is referenced in the PPP options settings, given in step 2.

This simple four line script will dial up the connection to the Internet provider. You don't invoke this directly, but through the ppp startup command given in step 3.

"" ATZW2
OK AT&F
OK ATD*99***1#
CONNECT ""


Step 2. PPP options
Put this in /etc/ppp/peers/smart-3g. The filename itself is arbitrary, but it has to be in the /etc/ppp/peers directory.

connect '/usr/sbin/chat -v -f /etc/chatscripts/smart-3g'
ipparam smart-3g
/dev/rfcomm0
115200
crtscts
noccp
noipdefault
usepeerdns
ipcp-accept-remote
ipcp-accept-local
defaultroute
debug
noauth


For a full explanation of these options, read the descriptions in the /etc/ppp/options file.

Step 3. Fire up the PPP connection
Open a terminal session and initiate the connection with this command.

pon smart-3g

smart-3g is, of course, the name I gave the connection. Follow the filename that you used in step 2. You should see the connection fire up.

Be aware that you will be subject to connection charges. In my case, it's a relatively cheap P10 ($0.20) per thirty minutes.