Juanito
Group: Members
Posts: 1601
Joined: Sep. 2005 |
|
Posted: Jan. 17 2007,14:35 |
|
I've trying for a while to get Bluetooth up and running with DSL (it was relatively easy with DSL-N) and thought others might be interested in this.
My aim is to be able to make dial-up and GPRS Internet connections over Bluetooth, transfer files from/to a DSL box (and ultimately mount a file system via Bluetooth) and use one of those Bluetooth headsets with Skype on DSL.
First things first - part one of this how-to will deal with getting Bluetooth up and running and to "pair" with a Bluetooth device.
There are no Bluetooth modules included with DSL but they can be found on the Knoppix 3.4 CD under the following directories:
/lib/modules/2.4.26/kernel/drivers/bluetooth /lib/modules/2.4.26/kernel/net/bluetooth
My machine has an internal USB Bluetooth device and I need to load the following modules to get things working:
# insmod bluez [interface with bluez-utils] # insmod hci_usb [USB Bluetooth driver] # insmod l2cap [not sure what this does but required anyway] # insmod rfcomm [required for dial-up, file transfer and serial connections] # insmod bnep [required for IP over Bluetooth – Knoppix version will not load] # insmod sco [required for voice over Bluetooth]
Edit If the crc32 module is loaded first, bnep will load EndEdit
First you need to load dsl-dpkg.unc, gnu-utils.unc and gt2k-0705.unc and edit /etc/apt/sources.list to point to Debian stable. Then:
apt-get install bluez-utils [27 new packages and 6 updated packages..]
For some reason the bluez-pin program will not work with DSL so you will need to edit a couple of files as a work-around:
1. /etc/bluetooth/hcid.conf
change pin_helper to /opt/mybtpin.sh;
2. /etc/bluetooth/pin
change 1234 to PIN:1234 [or whatever 4-digit code you prefer]
3. Create /opt/mybtpin.sh and make it executable
enter #!/bin/bash cat /etc/bluetooth/pin
Now we are in a position to bring up the Bluetooth interface and restart the hcid daemon to make sure the modifications to the files above are loaded:
# hciconfig hci0 up # hcid restart
Now the interface is up, we need to check that we can see the Bluetooth device we want to “pair” with (in this example a SonyEricsson P900 mobile phone) and we also need to know its Bluetooth address:
# hcitool scan Scanning ... 00:0A:D9:E8:4A:65 .P900
Now all that remains is to "pair" with the device - I guess "cc" means “create a connection”. After "auth" your other Bluetooth device will request a PIN, you need to give the same one as entered in /etc/bluetooth/pin - if things work correctly, the prompt will return in the terminal window:
# hcitool cc 00:0A:D9:E8:4A:65 # hcitool auth 00:0A:D9:E8:4A:65
If all goes well, change the setting on your Bluetooth device to accept future connections from your DSL machine without authentication and you’re in business.
|