GPRS via Bluetooth enabled phone on Ubuntu Linux (and not only) 25 November 2007
Posted by Cosmin Oprisan in BlueTooth, GPRS, How-To, Linux.trackback
This will be a small guide on how to connect to internet using a GPRS over a Bluetooth enabled Phone
1) First you need to install the necessary tools:
- Bluez-utils (sudo apt-get install bluez-utils) (should be installed by default on Ubuntu)
- bluez-pin (sudo apt-get install bluez-pin) (not existing anymore I belive)
- ppp (sudo apt-get install ppp) (should be installed by default on Ubuntu and probably on most distors)
- wvdial (should be installed by default on Ubuntu and probably on most distros)
- gnome-ppp (sudo apt-get install gnome-ppp) – This will help very much as it eliminates all the manual config
2) The next step you have to do is to pair your computer with the phone, but do this by searching the computer from the phone, then add it, select a PIN on the phone, then a baloon will popup on the computer too, where you put the same PIN. Now there you have it, two devices paired.
3) Now you have to run “hcitool scan”, to find the MAC address for your phone. Copy it.
4) Run also “sdptool search dun”, which will show the details about the DUN connection provided by the phone. Look for the “Channel” line, and remember the number
5) Then run “rfcomm bind /dev/rfcomm0 phone_mac_address dun_channel”
6) Now run as root “gnome-ppp”. If the provider gave you any specific username and password, complete them in the boxes, otherwise complete with some bogus info. The number to be dialed is for the majority of devices *99# or *99***1#. At Setup, in the Device edit write “/dev/rfcomm0″, for the Type you will probably have to choose “USB Modem” as the majority of them are USB based devices, and leave the rest of the fields unaltered. If your provider requires a specific APN to connect, then you have to go also to Init Strings, and replace the first line with “AT+CGDCONT=1,”IP”,”provider_APN”, and press enter for the setting to be saved.
Now you can just click on Connect, and everything should work as a charm.
After the first time, the only thing you have to run to get things working is the 5th step, and after gnome-ppp and connect.
Observations:
You might have to disable the Wireless LAN before connecting, otherwise it might mess around with routes, etc.
Good luck.
[...] with your computer with a much more reliable wireless interface, i.e., Bluetooth. Not only can you surf the net, you can also access the content of your [...]
[...] Everything about Everything This will contain all my frustrations… « GPRS via Bluetooth enabled phone on Ubuntu Linux (and not only) [...]
I would like to use my mobile phone for surfing internet. Please revert to me on procedure.
My mobile instrument has blue tooth.
I have created a page giving step by step instructions:
http://www.attari.net/?My_space…:Ubuntu_HowTo:Internet_via_Bluetooth_mobile
I have given acknowledgments to this site. Thankyou.