bullet2916
Posts: 7
Joined: Fri Jul 31, 2015 12:09 am

Bluetooth on Raspberry Pi

Thu Jun 02, 2016 11:57 am

I'm using Raspberry Pi 3 and Raspbian Jessie and have upgrade the distribution and installed bluetooth tools. When I boot up, I get the bluetooth icons and can search and see devices. I have a bluetooth speaker that is paired according to bluetoothctl. Using info on the mac address, it says it is trusted, not block, not connected. When I try to connect, it fails with org.bluez.Error.Failed. Has anyone experienced this? Is there a way to get information? Thanks.

User avatar
Douglas6
Posts: 4860
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: Bluetooth on Raspberry Pi

Thu Jun 02, 2016 12:19 pm

Bluetooth icons? Do you have blueman installed? There have been reports that blueman causes conflicts, you might want to purge that. Also, you didn't mention; the speaker is paired?

fruitoftheloom
Posts: 23336
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Bluetooth on Raspberry Pi

Thu Jun 02, 2016 12:24 pm

bullet2916 wrote:I'm using Raspberry Pi 3 and Raspbian Jessie and have upgrade the distribution and installed bluetooth tools. When I boot up, I get the bluetooth icons and can search and see devices. I have a bluetooth speaker that is paired according to bluetoothctl. Using info on the mac address, it says it is trusted, not block, not connected. When I try to connect, it fails with org.bluez.Error.Failed. Has anyone experienced this? Is there a way to get information? Thanks.
There was recently a major update to Raspbian Jessie, if you had prior to this update installed Bluetooth software it may cause conflicts:

https://www.raspberrypi.org/blog/anothe ... e-raspbian
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

bullet2916
Posts: 7
Joined: Fri Jul 31, 2015 12:09 am

Re: Bluetooth on Raspberry Pi

Thu Jun 02, 2016 2:11 pm

I removed blueman. This is the output from bluetoothctl

NEW] Controller B8:27:EB:4F:7A:DD raspberrypi [default]
[NEW] Device FC:58:FA:56:08:FC HMDX RAVE
[bluetooth]# info FC:58:FA:56:08:FC
Device FC:58:FA:56:08:FC
Name: HMDX RAVE
Alias: HMDX RAVE
Class: 0x260404
Icon: audio-card
Paired: yes
Trusted: yes
Blocked: no
Connected: no
LegacyPairing: no
UUID: Serial Port (00001101-0000-1000-8000-00805f9b34fb)
UUID: Headset (00001108-0000-1000-8000-00805f9b34fb)
UUID: Audio Sink (0000110b-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb)
UUID: Handsfree (0000111e-0000-1000-8000-00805f9b34fb)
[bluetooth]# connect FC:58:FA:56:08:FC
Attempting to connect to FC:58:FA:56:08:FC
Failed to connect: org.bluez.Error.Failed

User avatar
Douglas6
Posts: 4860
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: Bluetooth on Raspberry Pi

Thu Jun 02, 2016 2:18 pm

PulseAudio and it's Bluetooth modules installed? What happens when you do

Code: Select all

aplay /usr/share/sounds/alsa/Front_Center.wav 

bullet2916
Posts: 7
Joined: Fri Jul 31, 2015 12:09 am

Re: Bluetooth on Raspberry Pi

Thu Jun 02, 2016 4:01 pm

No sound is produced. When I try to go the Bluetooth icon and connect, I get Connection Failed - Use the audio menu to connect to this device.

When I go to Preferences Audio Device Settings, I only see the bcm sound card.

SteveFreddie01
Posts: 4
Joined: Mon Aug 08, 2016 5:28 pm

Re: Bluetooth on Raspberry Pi

Mon Aug 08, 2016 5:44 pm

Hi, I have a similar issue to this.

I have JBL Charge 3 bluetooth speakers
I have set my media player KODI to play to both HDMI and 3.5mm analogue jack.

I've tried connecting through both terminal and raspbian desktop without success.
My earphones connected to the 3.5 jack work great, but I can't connect the bluetooth speakers, can someone help me please?
I have added Pulseaudio and it doesn't seem to make any difference.

pi@raspberrypi ~ $ bluetoothctl
[NEW] Controller 00:11:22:98:76:54 raspberrypi [default]
[NEW] Device B8:69:C2:3C:FD:AA JBL Charge 3
[bluetooth]# info B8:69:C2:3C:FD:AA
Device B8:69:C2:3C:FD:AA
Name: JBL Charge 3
Alias: JBL Charge 3
Class: 0x240414
Icon: audio-card
Paired: yes
Trusted: yes
Blocked: no
Connected: no
LegacyPairing: no
UUID: Serial Port (00001101-0000-1000-8000-00805f9b34fb)
UUID: Headset (00001108-0000-1000-8000-00805f9b34fb)
UUID: Audio Sink (0000110b-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb)
UUID: Handsfree (0000111e-0000-1000-8000-00805f9b34fb)
UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb)
UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
Modalias: bluetooth:v0057p0023d0000
[bluetooth]# connect B8:69:C2:3C:FD:AA
Attempting to connect to B8:69:C2:3C:FD:AA
Failed to connect: org.bluez.Error.Failed

Thank you for some help.

User avatar
Douglas6
Posts: 4860
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: Bluetooth on Raspberry Pi

Tue Aug 09, 2016 4:19 pm

Take a look at this tutorial in the Magpi for instructions using the blueman GUI. https://www.raspberrypi.org/magpi/bluet ... erry-pi-3/

SteveFreddie01
Posts: 4
Joined: Mon Aug 08, 2016 5:28 pm

Re: Bluetooth on Raspberry Pi

Tue Aug 09, 2016 8:10 pm

Hi, I followed the link, thank you for this, including the additional notes below the main instructions.

The blueman seemed to start on it's own, but I have bluetoothctl still running - should I remove this? Can I access blueman through terminal to give me the same info as bluetoothctl?

Through Blueman when I try to connect it says - "Connection failed - Use the audio menu to connect to this device,"

Following the command line "Pulseaudio --start" allows me to open the Pulseaudio volume control.
The only output available is Analog, no other devices are present.

My bluetooth speaker is paired, but I don't seem to have advanced from yesterday, apart from having an updated os and bluetooth software.

I'm using rpi 2B and bluetooth dongle, not rpi3
Bus 001 Device 008: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)

Do you have any other suggestions please?

heehaw1900
Posts: 13
Joined: Mon Aug 08, 2016 8:34 pm

Re: Bluetooth on Raspberry Pi

Tue Aug 09, 2016 9:35 pm

I got this to work actually... I used blueman-applet and I used pulseaudio. However, in order to get the Pulseaudio volume control to work, you must type

Code: Select all

pulseaudio --start
in terminal.

SteveFreddie01
Posts: 4
Joined: Mon Aug 08, 2016 5:28 pm

Re: Bluetooth on Raspberry Pi

Tue Aug 09, 2016 9:46 pm

Hi heehaw,

Yes I used this command as i mentioned in my last post, but no connection to BT speakers!!

I have no choice of outputs in pulse audio. I believe until I get connected pulseaudio can't see the speakers.

heehaw1900
Posts: 13
Joined: Mon Aug 08, 2016 8:34 pm

Re: Bluetooth on Raspberry Pi

Tue Aug 09, 2016 10:06 pm

Hi steve,

Actually what you would do is download blueman, than open up that applet. Once that is done you would click the scan button while making sure your speaker is turned on. Then once you see the device listed simply hit connect.

Hope this works

heehaw1900
Posts: 13
Joined: Mon Aug 08, 2016 8:34 pm

Re: Bluetooth on Raspberry Pi

Tue Aug 09, 2016 10:08 pm

To install blueman:

Code: Select all

sudo apt-get install pi-bluetooth blueman
To install pulseaudio:

Code: Select all

sudo apt-get install pulseaudio pavucontrol pulseaudio-module-bluetooth

SteveFreddie01
Posts: 4
Joined: Mon Aug 08, 2016 5:28 pm

Re: Bluetooth on Raspberry Pi

Wed Aug 10, 2016 9:27 am

Hi Heehaw,

Thank you for your reply, I do appreciate it, but you are repeating what I have already reported in my post, please read this carefully.

I already have Blueman installed

Pulseaudio is also running when I use "Pulseaudio --start" in terminal and it allows me to open the Pulseaudio volume control.
The only output available is Analog, no other devices are present.

My bluetooth speaker is paired, but I don't seem to have advanced from Monday, apart from having an updated OS and bluetooth software.

Through Blueman when I try to connect it says - "Connection failed - Use the audio menu to connect to this device,"

Selecting "Connect" in Blueman is not working, there is something missing.

How do I add more options and devices to Pulseaudio volume control or Audio Device Settings and connect my device using the audio menu?

Return to “Advanced users”