30th May, 2016, 08:37 AM
Hi All,
After A LOT of trial and error, I have simplified the process of getting RPi to work as a Bluetooth Audio receiver on the latest release of Xbian with Raspberry Pi 3 using the built-in bluetooth module. I hope this can be helpful to someone.
Open up ssh/terminal and run the following commands:
Install Packages
Notes: Fairly straightforward step. Preferably do a clean install to avoid any configuration issues.
Add users to groups
Setup PulseAudio & Bluetooth Device
Add Bluetooth Device
The following commands inside bluetoothctl only needs to run once only when setting up:
The following commands inside bluetoothctl needs to run every time you need to add a new device:
Notes: Make your phone/tablet's Bluetooth discoverable before executing `scan on`. Wait for a minute until your device is discovered and MAC address is displayed. Use the MAC address in the pair & trust steps.
After exiting bluetoothctl, initiate the connection from the paired phone/tablet, and play some music
Let me know if this works out for you.
After A LOT of trial and error, I have simplified the process of getting RPi to work as a Bluetooth Audio receiver on the latest release of Xbian with Raspberry Pi 3 using the built-in bluetooth module. I hope this can be helpful to someone.
Open up ssh/terminal and run the following commands:
Install Packages
Terminal
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install pulseaudio-module-bluetooth bluez-tools
sudo apt-get upgrade
sudo apt-get install pulseaudio-module-bluetooth bluez-tools
Add users to groups
Terminal
sudo gpasswd -a xbian pulse
sudo gpasswd -a xbian lp
sudo gpasswd -a pulse lp
sudo gpasswd -a xbian audio
sudo gpasswd -a pulse audio
sudo gpasswd -a xbian lp
sudo gpasswd -a pulse lp
sudo gpasswd -a xbian audio
sudo gpasswd -a pulse audio
Setup PulseAudio & Bluetooth Device
Terminal
sudo sh -c "echo 'extra-arguments = --exit-idle-time=-1 --log-target=syslog' >> /etc/pulse/client.conf"
sudo hciconfig hci0 up
sudo hciconfig hci0 class 0x200420
sudo reboot
sudo hciconfig hci0 up
sudo hciconfig hci0 class 0x200420
sudo reboot
Add Bluetooth Device
Terminal
sudo bluetoothctl
Terminal
agent KeyboardOnly
default-agent
default-agent
Terminal
scan on
pair xx:xx:xx:...
trust xx:xx:xx:...
exit
pair xx:xx:xx:...
trust xx:xx:xx:...
exit
After exiting bluetoothctl, initiate the connection from the paired phone/tablet, and play some music
Let me know if this works out for you.