LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware and PAN/Piconet (Over bluetooth) (http://www.linuxquestions.org/questions/slackware-14/slackware-and-pan-piconet-over-bluetooth-706962/)

ljones0 02-23-2009 05:04 PM

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

mostlyharmless 02-27-2009 01:51 PM

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

ljones0 02-28-2009 05:14 PM

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

mostlyharmless 03-01-2009 05:12 PM

Haven't figured it out yet myself - let you know if/when I do.... :(

mostlyharmless 03-02-2009 11:07 AM

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

ljones0 03-02-2009 02:03 PM

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


All times are GMT -5. The time now is 04:15 PM.