Forced pairing of devices with Linux BlueZ

The largest problem I've had with Bluez (the bluetooth stack under Linux) is the pairing process. If everything "just works" that's great, but when your distribution lets you down and something gets miss-configured, it can be very difficult to get a phone or PDA to pair with the linux box.

Here is how to force the issue:

passkey-agent –default /usr/bin/bluez-pin (Or replace bluez-pin with your favorite PIN program) (Your bluez-pin agent might be located in a different directory which bluez-pin will find it)
hcitool scan – finds the device ID , looks something like: 00:0D:AD:B2:31:2A
hcitool cc – connects to the device

hcitool auth – Requests a passkey/pin exchange.

Enter the same PIN on the device and in the bluez-pin dialog and the computer and device should now be paired.

Related posts:

  1. Pairing with a iOne Libra N1 bluetooth presenter
  2. How to use a T-Mobile cell phone as a bluetooth modem from Linux
  3. Creating udev rules to name your devices in Mandriva

1 comment so far ↓

#1 Jay’s Technical Talk » How to use a T-Mobile cell phone as a bluetooth modem from Linux on 01.12.07 at 8:28 pm

[...] First, make sure the phone and your linux box are paired. [...]

Leave a Comment