If you want to use GPRS internet with bluetooth connection in Calculate you must first active your bluetooth in your pc and mobile device and after that do this things :
For found your mobile MAC address and channal use this command :
sdptool search DUN
Your mobile MAC look like this
X:X:X:X:X:X
Your mobile channel is written in this line
Channel: 2
After you found your MAC and channal you must edit rfcomm.conf file (my MAC is 00:23:F1:AC:BF:49 and channal is 2)
nano /etc/bluetooth/rfcomm.conf
This a sample rfcomm config :
rfcomm0 {
bind yes;
device 00:23:F1:AC:BF:49;
channel 2;
comment "Dial-up networking Gateway";
}
Now you must get a ppp connection
nano /etc/ppp/peers/gprs
Add this lines to new text file
/dev/rfcomm0 115200
connect '/usr/sbin/chat -v -f /etc/ppp/chat-gprs'
crtscts
modem -detach
noccp
defaultroute
usepeerdns
noauth
ipcp-accept-remote
ipcp-accept-local
noipdefault
And get chat-gprs file
nano /etc/ppp/chat-gprs
Add this lines into new file
'' ATZ OK
AT+CGDCONT=1,"IP","www.google.com"
OK "ATD*99***1#"
CONNECT ''
Restart bluetooth daemon
/etc/init.d/bluetooth restart
And at the end you can you this command to connect to GPRS internet
pppd call gprs