Raspberry Pi: Setting Up Bluetooth

Outdated: This post is preserved for reference and may no longer reflect current tools or services.

Setting up a Bluetooth dongle with Raspbmc could be a bit tricky. This post collects the steps and notes that helped me get it working.

Requirements

  • Raspberry Pi
  • Bluetooth dongle
  • Wi-Fi or Ethernet connection

Steps

I found the following guide very helpful, but I kept running into errors.

To fix that, run the following commands after rebooting and instead of the original Bluetooth install step:

apt-get install obex-data-server
apt-get install bluetooth bluez-utils blueman bluez-compat

If you have tried to install Bluetooth in the past and it is still broken, run:

sudo dpkg --configure -a

Unfortunately, I still ran into pairing problems with the following error:

Creating device failed: org.bluez.Error.AuthenticationRejected: Authentication Rejected

Based on another article, the next step was to edit:

sudo nano /usr/bin/bluez-simple-agent

Then change KeyboardDisplay to DisplayYesNo.

Note

Some Bluetooth devices did not work well on Raspbmc, especially audio devices. At the time, it was often suggested on the Raspberry Pi forums to use OpenELEC or Xbian instead.

Resources