Open rob-meiner opened 4 years ago
Hi,
I encountered the same problem as you, and the logs printed out using btmon
are basically the same.However, it should be noted that the device I am using is different from yours and is not a Raspberry Pi, but some other development board.
The phenomenon is that device A requests to connect with device B using bluetooth, and after device B receives Service Search Attribute Response
from device A, device B initiates a request to disconnect.
After executing pair [mac address]
in bluetoothctl
, Bluetooth connects successfully for a few seconds and then disconnect, after executing connct [mac address]
, it shows Failed to connect: org.bluez.Error.Failed
, and in btmon
, I see error message as follows:
= bluetoothd: src/service.c:btd_service_connect() a2dp-source profile connect failed for [mac address]: Protocol not available
So I suspect that device A does not support a certain protocol that causes device B to disconnect.
After doing a lot of searching, I found this article, installed pulseaudio-module-bluetooth
solved this problem. So I hope this will help you too!
Did this ever get resolved? I am having the same problem with a Raspberry Pi 4b.
This happens with every bluetooth device that I try. In the case shown below, I am attempting to connect to an older Samsung Smartphone.
I updated to latest rpi-config using
sudo rpi-update
and rebooted.Bluetooth still disconnects within 2-5 seconds of connecting (I xx'ed out the MAC addresses). In the entries at the end of this log, it appears that the disconnection request is coming from the raspberry pi.
Just before attempting the pairing/connection, I ran
sudo btmon -wpair.bts
to log what goes wrong: