LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 07-30-2006, 04:09 PM   #1
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,132

Rep: Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456
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,
and returns:

Scanning ...
00:80:37:1A:CB:38 Motoko

Make a node of this number and name for later use.

4. To make sure things are working, ping your phone via bluetooth:

l2ping 00:80:37:1A:CB:38

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
sounds.

Under /etc/bluetooth, edit the hcid.conf file. Look for the
pin_helper line, and make it read:

pin_helper kbluepin

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
paired devices.

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

To explain:

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
up.

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
phone.

The 1 at the end says to open up a data channel, which is defaulted to
1.

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.
 
Old 07-30-2006, 07:20 PM   #2
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 56
Nice howto, should put it here man as it'll get lost on the forums
 
Old 07-30-2006, 08:00 PM   #3
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,132

Original Poster
Rep: Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456
PPP dial-up over Bluetooth Cell-Phone

Quote:
Originally Posted by cs-cam
Nice howto, should put it here man as it'll get lost on the forums
Done... Didn't know quite where to put it, thanks for the suggestion.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LG VX4650 Cell Phone metallica1973 Linux - Software 2 07-24-2006 10:47 AM
Cell Phone Manager philipvarghese Linux - Software 1 06-26-2006 05:03 PM
Use cell phone as modem Oxagast Linux - Software 4 05-02-2006 12:16 AM
linux support for internet over bluetooth to cell phone? edman007 Linux - Hardware 3 09-08-2005 02:08 PM
cell-phone to modem sparker1968 Slackware 0 04-12-2003 12:22 AM


All times are GMT -5. The time now is 10:02 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration