LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-23-2009, 06:04 PM   #1
ljones0
Member
 
Registered: Dec 2007
Posts: 100

Rep: Reputation: 17
Slackware and PAN/Piconet (Over bluetooth)


Hello everybody !

I'm using slackware 12.2 on one PC (an old IBM T22 laptop) and Slamd64 12.2 on a normal 64-bit desktop PC. The desktop PC connects to the internet via wireless networking (wlan0). What I am trying to do is to share the internet connection over bluetooth, via USB bluetooth adapters.

Example:
Code:
bash-3.1# hcitool scan
	00:11:67:18:18:18	BlueZ (0)
	00:1C:CC:51:97:56	BlackBerry 8820
bash-3.1#
bash-3.1# hciconfig -a
hci0:	Type: USB
	BD Address: 00:11:67:C5:38:73 ACL MTU: 1021:4 SCO MTU: 48:10
	UP RUNNING PSCAN ISCAN 
	RX bytes:9998 acl:140 sco:0 events:397 errors:0
	TX bytes:4860 acl:146 sco:0 commands:119 errors:0
	Features: 0xff 0xfe 0xff 0x7e 0x98 0x19 0x00 0x80
	Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
	Link policy: 
	Link mode: SLAVE ACCEPT 
	Name: 'BlueZ2 (0)'
	Class: 0x080100
	Service Classes: Capturing
	Device Class: Computer, Uncategorized
	HCI Ver: 2.0 (0x3) HCI Rev: 0x2da LMP Ver: 2.0 (0x3) LMP Subver: 0x2da
	Manufacturer: Integrated System Solution Corp. (57)
The PC which is connecting via wlan0 is working fine, I am using it right now to type this message. Also the USB bluetooth adapters are detected ok, they can find each others' MAC addresses (via hcitool scan) and also find a mobile phone. hciconfig -a displays information about the bluetooth adapters.

What is confusing me is what I do next . Just about every website I've turned up so far hasn't been all that helpful. The suggestions I have turned up so far have been either been for a different version of linux (e.g. ubuntu, so the config files are all different!), are all very short and/or very old (c.2005, for example) or just suggest "Install KDE".

From what I Can gather, I need to make both systems see each other and connect to one another via bluetooth and then somehow pass data to and from the wireless connection (connected to the internet) via the bluetooth adapter.

Only snag is how is it done?

Again I have a working wireless connection, and the bluetooth adapters can find each others' MAC addresses, and also a mobile phone too so I can see that the adapters are doing *something*.

ljones

Last edited by ljones0; 02-23-2009 at 06:07 PM.
 
Old 02-27-2009, 02:51 PM   #2
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,859
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
I've been meaning to give this project a whirl myself, but haven't gotten round to it. You're right, seems like most bluetooth technology help is old, probably eclipsed by wifi etc.
This:
http://www.hanscees.com/bluezhowto.html
looked promising especially part #11; seems like you need to
use sdptool to find the channel and pair the devices
make a device for rfcomm and link it to /dev/modem,
then use ppp, then use route to put it on your net.
Hope that helps a bit...
This pdf seemed to have a number of walk through examples:
http://www.jeremythompson.uklinux.ne...bluezhowto.pdf

Last edited by mostlyharmless; 02-27-2009 at 02:56 PM.
 
Old 02-28-2009, 06:14 PM   #3
ljones0
Member
 
Registered: Dec 2007
Posts: 100

Original Poster
Rep: Reputation: 17
Intresting ta for that. Though I still have a big problem -- neither bluetooth adapter will find each other with sdptool. One PC's USB bluetooth adapter is set to MAC 00:11:67:45:45:45, the other 00:11:67:18:18:18 .

On one PC;
Code:
hcitool scan
  00:11:67:45:45:45 BlueZ2 (0)
On the other;
Code:
hcitool scan
  00:11:67:18:18:18 BlueZ (0)
Both adapters can see one another with the "hcitool scan" command, but that's as far as I can get. Now if I do the following:

Code:
hciconfig hci0 up
and then

Code:
l2ping 00:11:67:18:18:18
or

Code:
l2ping 00:11:67:45:45:45
the result is "Can't connet : No route to host".

The command "sdptool browse 00:11:67:45:45:45" displays nothing x.x .

The problem is "what" to do next, the information out there is sketchy at best .

ljones
 
Old 03-01-2009, 06:12 PM   #4
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,859
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
Haven't figured it out yet myself - let you know if/when I do....
 
Old 03-02-2009, 12:07 PM   #5
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,859
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
Hmmm, I came across this:
http://www.linuxquestions.org/questi...ighlight=blueZ
which makes me wonder whether this is the source of my problems, though maybe not yours, as you *seem* to have things working. Still, reinstall form scratch does solve problems sometimes..
 
Old 03-02-2009, 03:03 PM   #6
ljones0
Member
 
Registered: Dec 2007
Posts: 100

Original Poster
Rep: Reputation: 17
x.x I'm not sure, I might give that a try (remove and install packages again) either that or try compiling it. The adapters do see one another but won't talk to one another, maybe this is the reason?

Edit: I've checked my versions; both seem to tie up. They are bluez-utils-3.36 and bluez-utils 3.36. x.x

SP

Last edited by ljones0; 03-02-2009 at 03:10 PM.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bluetooth pan bridging problem ppr:kut Linux - Networking 1 08-29-2007 02:54 PM
Slackware 12.0 and Bluetooth perry Slackware 2 08-07-2007 05:21 PM
How to use Bluetooth PAN to communicate in Fedora 3 chen8002004 Fedora 0 01-10-2006 09:25 PM
Bluetooth PAN Network HaPagan Linux - Networking 1 09-23-2005 02:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:54 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration