janvda / balena-pulseaudio

Is a balena application running a pulseaudio server and demonstrating how it can be used for playing and recording audio on a raspberry pi. It also supports bluetooth audio devices.
Eclipse Public License 2.0
6 stars 2 forks source link

buetoothctl : Failed to connect: org.bluez.Error.NotReady #30

Open janvda opened 4 years ago

janvda commented 4 years ago

I tried to manually connect to my bluetooth speaker by means of the pulseaudio-server terminal window but I got the error Failed to connect: org.bluez.Error.NotReady.

Here below the full log:

[bluetooth]# info A0:E9:DB:09:CF:FF
Device A0:E9:DB:09:CF:FF (public)
        Name: GEAR4 SPW
        Alias: GEAR4 SPW
        Class: 0x00240404
        Icon: audio-card
        Paired: yes
        Trusted: yes
        Blocked: no
        Connected: no
        LegacyPairing: no
        UUID: Headset                   (00001108-0000-1000-8000-00805f9b34fb)
        UUID: Audio Sink                (0000110b-0000-1000-8000-00805f9b34fb)
        UUID: Advanced Audio Distribu.. (0000110d-0000-1000-8000-00805f9b34fb)
        UUID: Handsfree                 (0000111e-0000-1000-8000-00805f9b34fb)
[bluetooth]# connect A0:E9:DB:09:CF:FF
Attempting to connect to A0:E9:DB:09:CF:FF
Failed to connect: org.bluez.Error.NotReady
[bluetooth]# 
janvda commented 4 years ago

I am also getting errors when running scan on

[bluetooth]# scan on
Failed to start discovery: org.bluez.Error.NotReady
Failed to set power on: org.bluez.Error.Failed
[bluetooth]# 
janvda commented 4 years ago

stopping and starting the pulseaudio-server had no effect. also stopping and staring the bluetooth deamon on the Host Os with following commands also had no effect: systemctl stop bluetooth and systemctl start bluetooth

janvda commented 4 years ago

rebooting the device fixed the problem:

Spawning shell...
root@ba7c427:/# bluetoothctl
Agent registered
[GEAR4 SPW]# info
Device A0:E9:DB:09:CF:FF (public)
        Name: GEAR4 SPW
        Alias: GEAR4 SPW
        Class: 0x00240404
        Icon: audio-card
        Paired: yes
        Trusted: yes
        Blocked: no
        Connected: yes
        LegacyPairing: no
        UUID: Headset                   (00001108-0000-1000-8000-00805f9b34fb)
        UUID: Audio Sink                (0000110b-0000-1000-8000-00805f9b34fb)
        UUID: Advanced Audio Distribu.. (0000110d-0000-1000-8000-00805f9b34fb)
        UUID: Handsfree                 (0000111e-0000-1000-8000-00805f9b34fb)
[GEAR4 SPW]#