PPP dial-up over Bluetooth Cell-Phone
Don't know which forum to put this in, since it's part networking, part software.
I'm using an Anycom PCMCIA bluetooth card, with a Sony Ericsson r520m phone. Other combinations of hardware should work fine, but check to make sure the bluetooth hardware works with Linux/Bluez first, and make sure you've got a modem in your cell phone.
1. Obviously, be sure your bluetooth hardware is installed and working
in your system. There are too many permutations to deal with, so
that's up to you to figure out.
2. Put your modem-capable cellphone into discoverable mode, and turn
Bluetooth on, on your phone.
3. Run "hcitool scan" at a command prompt. It will dutifully go out
and look for any bluetooth devices. In my c ase, it finds my phone,
Make a node of this number and name for later use.
4. To make sure things are working, ping your phone via bluetooth:
Be sure to do this while your phone is still in discoverable mode,
otherwise it will give you a permission denied message.
5. Bind the phone to a comm channel via Bluetooth by using:
rfcomm bind 0 00:80:37:1A:CB:38
Verify this worked by typing in "rfcomm show" afterwards. You should
then see an open comm channel:
rfcomm0: 00:80:37:1A:CB:38 channel 1 clean
6. So far, you've gotten your Linux box to talk to your phone, via
bluetooth. The only thing that's left is to get a data connection
going via PPP over that /dev/rfcomm0 link, which is easier than it
Under /etc/bluetooth, edit the hcid.conf file. Look for the
pin_helper line, and make it read:
Save the file and exit the editor. Restart Bluetooth services. On my system, that's "/etc/init.d/bluetooth restart"
7. Now, from the command-prompt, enter "kbluepin". Enter the
pairing code you want to use, when you pair with other devices.
REMEMBER this number, you'll need it.
8. On your system, you've got Bluetooth up and running, and kbluepin
is serving up any pairing requests. On your phone, initiate a pairing
request. It should go out, and find your Linux box, and prompt you
for the pairing code you entered before. Enter it, and the pairing
should take place, showing you a PC-type device on your lists of
9. On my system, I have a small script which will bind the rfcomm
device, and open the channel. it's a one-liner, reading:
rfcomm bind 0 00:80:37:1A:CB:38 1
rfcomm bind 0 - This binds the connection to device 0.
You can also have rfcomm bind /dev/rfcomm0, and it'll do the same
thing. Typing in a 0 will make the /dev/rfcomm0 device magically show
The 00:80:etc... is the Bluetooth 'MAC' address of my phone. You'll
naturally want to replace this with the Bluetooth address of YOUR
The 1 at the end says to open up a data channel, which is defaulted to
The script will save you some typing, and come in handy later.
10. Now, go into your PPP manager (I use kpp). Set up a new modem,
pointing to /dev/rfcomm0. Enter the account params as you normally
would for a dial-up connection to your provider. Enjoy slow, but
totally wireless, goodness, from anywhere you can get a cell signal.
I have two modems, one for my internal modem on my laptop (using /dev/modem, via the Linuxant drivers), and one for my cell phone, using /dev/rfcomm0. I have kppp set up to run the bind-script from above, before trying to initiate a modem connection to my cell device. Otherwise, the device won't be there to dial. :)
I know there are GPRS cards and connections that will give you far higher speeds. This only goes to 9600 baud on my phone, but for the rare times I need a connection and can't find a WiFi point (i.e. on car trips, or using my laptop for GPS navigation to download map data), it's all I need, and is pretty handy to have.
Hope someone can make use of this.
Nice howto, should put it here man as it'll get lost on the forums :)
PPP dial-up over Bluetooth Cell-Phone
|All times are GMT -5. The time now is 04:33 PM.|