Hey guyz..! after a long time .. howzi going? yep I was bussy with ma studies and work. Dudring the past dayz I tried to be connected with the internet using GPRS and Bluetooth. Has anyone tried to be connected with the internet using yer mobile phone as a dial up modem? Dassa and Anu have experiences in that and I got lots of advice from those guyz. Lots of googling and after a few dayz hacking I could do that successfully. I found a few scripts and I edited those scripts as neceasary.
I have Motorola L6 mobile phone with bluetooth. My system Is Debian GNU/linux, kernel 2.6.x. And I have a box with Intel Pentium IV 2.6 GHz and 256 MB RAM. I'll show how I could manipulate the script for better work.
Step 1: Make sure the Bluetooth connection between system and phone is working well.
* Switch on the bluetooth of the phone and run 'hcitool scan' on root terminal to ensure that the Bluetooth system is up and running. This should find the Bluetooth address of the phone. The address of my phone is 00:16:75:50:DE:1F
* Run 'sdptool browse
debian:~# sdptool browse 00:16:75:50:DE:1F
"Service Name: Dial-up Networking Gateway
Service Description: Dial-up Networking Gateway
Service Provider: Motorola
Service RecHandle: 0x10001
Service Class ID List:
"Dialup Networking" (0x1103)
Protocol Descriptor List:
* Set up RFCOMM device. /dev/rfcomm0 is the default bluetooth modem device. So I edited /etc/bluetooth/rfcomm.conf to ensure that /dev/rfcomm0 connects Channel 1. I edited the /etc/bluetooth/rfcomm.conf as follows.
bind yes ;
device 00:16:75:50:DE:1F ;
channel 1 ;
comment "mot Dial-up Networking Service -- for PPP" ;
Tip : Whenever u change the configuration file restart the bluetooth survice each time.
Step 2 : Make the PPP (Point-tp-Point Protocol) sub-system. for that first I made the peer specification. and I named it mot. "vim /etc/ppp/peers/mot" ma peer specification as follws.
connect "/usr/sbin/chat -v -f /etc/chatscripts/mot"
connect '/usr/sbin/chat -v -f /etc/ppp/chat-gprs'
Then I created a chatscript mentioned in the peer specification and I named in the same way as peer specification (mot) "vim /etc/chatscript/mot. thats script like this.
# This chatfile was generated by pppconfig 2.3.10.
# Please do not delete any of the comments. pppconfig needs them.
# ispauth chat
ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYED
# end of pppconfig stuff
" *99***1# " is the dial up number which is provided by the survice provider
Finally I wrote a script what I called chat-gprs which is also mentioned in the peer specification. "vim /etc/ppp/chat-gprs
'' ATZ OK
Now I finished ma Scripts. So lets check out those scripts are weather working or not.???
Okay... I gonna check ma connection. First I had to make a bluetooth connection with phone and system. here the commands.
debian:~# hcitool cc 00:16:75:50:DE:1F
debian:~# hcitool auth 00:16:75:50:DE:1F
When authenticate the connection it ask PIN. Most probably the default PIN is 1234.
Then run the comand "pon mot" to up the dialup connection. If you want to disconnect just run the command "poff mot". It is almost certainly a wise move to monitor /var/log/syslog run "tail -f /var/log/syslog" in a separate terminal to check that all the right things are happening.
Yeahhhhh......! Its working.....................!