61
votes
SAP error on bluetooth service status
SAP stands for SIM Access Profile, so you have to disable it:
Open /etc/systemd/system/bluetooth.target.wants/bluetooth.service
Add "--noplugin=sap" at the end of the "ExecStart" ...
34
votes
Disable power on Wifi and Bluetooth interfaces during boot?
Since you are running with Jessie, you are supposed to define the hardware in /boot/config.txt (Reference to overlays for pi).
Disable Bluetooth and WiFi by adding the lines
dtoverlay=pi3-disable-bt
...
31
votes
Accepted
Failed to connect to SDP server on FF:FF:FF:00:00:00: No such file or directory
This might help
sdptool is broken in Bluez 5
You need to run the blue tooth daemon in compatibility mode to provide deprecated command line interfaces. You're running Bluez5 and you need some Bluez4 ...
31
votes
Accepted
Setup Raspberry Pi 3 as bluetooth speaker
I have been on this project after while (to help my friend doing their paper for graduating) and find the online project doing just fine (although the pi processing the audio is quite lagging the pi, ...
23
votes
Accepted
Automatically connect trusted Bluetooth speaker
Here is a very detail explanation:
Den3243
Here is a command line solution:
First, let's scan, pair, trust your device with
"bluetoothctl". To do that, run this at the
command line, your terminal:...
22
votes
How can I set up a bluetooth PAN connection with a Raspberry Pi and an iPod?
Here's how you can setup a bluetooth pan on Raspbian.
This answer uses systemd/networkd but you could do something similar with an interfaces file and dnsmasq if you wanted.
Run:
sudo apt-get ...
22
votes
Setup Raspberry Pi 3 as bluetooth speaker
Here is an alternate solution that doesn't rely on PulseAudio:
https://github.com/lukasjapan/bt-speaker
Install on raspbian as root with:
curl -s https://raw.githubusercontent.com/lukasjapan/bt-...
20
votes
SAP error on bluetooth service status
If you don't want to overwrite the system bluetooth.service file, it's a good place to use a .service.d override:
sudo mkdir /etc/systemd/system/bluetooth.service.d/
Then place in this file:
/etc/...
17
votes
Accepted
bluetoothctl fails to connect to any device [[ Failed to connect: org.bluez.Error.Failed ]]
So it turns out that when I looked into the bluetoothctl logs on the Raspberry Pi that I was getting this error:
a2dp-source profile connect failed for AA:BB:CC:11:22:33: Protocol not available
You ...
17
votes
Accepted
Raspberry PI 3B. Wifi and bluetooth shared antenna?
RPi 3B only has one antenna on board, so yes, it will be shared. Sharing is managed by the adapter firmware which is closed-source. Even if done right, it will not be as good as separate antennas.
...
12
votes
Accepted
Automatically accepting Bluetooth connections on a Pi 3
(Note that this answer is no longer working as of Raspbian Jessie, since bluez removed the bluetooth-agent command)
So currently you state that you can connect to the Pi just fine, but require a ...
12
votes
Disable power on Wifi and Bluetooth interfaces during boot?
Here is a link that should help with the blue tooth side? on the latest os ver as of April 2016.
https://discourse.osmc.tv/t/disable-rpi3-internal-bluetooth-device/15760
There will be a little power ...
12
votes
Installing Bluez 5.44 onto Raspbian?
A bit late here, but I recently suffered the headache of following a variety of different guides, none of which worked for me. So here is another guide...that probably won't work for you ;)
I ...
12
votes
Accepted
Bluetooth library for Raspberry Pi
There are many options for using Python for Bluetooth Low Energy on Raspberry Pi. Maybe too many options and that is why there is maybe no one winner for all situations.
BLE defines multiple roles ...
11
votes
Accepted
RPI 4B - Bluetooth unavailable on Ubuntu 20.04
Finally solved it !
I thought this was an issue and searched how to "fix" it but it is an intended behaviour.
20.04 solution (source [FR]):
Install the pi-bluetooth package:
sudo apt-get ...
10
votes
Automatically accept bluetooth pairings
Since bluetooth-agent command doesn't exist on Jessie, the modern way is to pipe relevant commands to bluetoothctl. Based on this SO question, the following script should enable automatic pairing ...
10
votes
Accepted
Bluetooth status: inactive (dead)
I did:
sudo modprobe btusb # add the btusb module to the kernel
sudo systemctl start bluetooth.service
And it works!
$ sudo systemctl status bluetooth.service
● bluetooth.service - Bluetooth service
...
10
votes
Raspberry Pi 4 won't pair to bluetooth devices
My research has continued and I now have a solution that works on the newest Raspbian 2021-03-04. I tried it with the desktop version, but lite should be the same as my previous observations showed ...
9
votes
Bluetooth device is not available?
Late answer, but recently experienced it. I noticed the interface is down. Yours is down too.
Running sudo hciconfig hci0 up on an updated firmware solved my problem. Not sure how that happened, as ...
8
votes
Bluetooth import for Python Raspberry Pi 3
You need to install bluetooth library
sudo apt-get update
sudo apt-get install bluetooth bluez libbluetooth-dev
sudo python3 -m pip install pybluez
and try again your code.
Regards
Edit: Answer's ...
8
votes
Accepted
Reliable method to differentiate a Raspberry Pi 2 and 3?
cat /proc/cpuinfo | grep Revision
RPi 2 boards will show board revisions a*1040, a*1041 or a*2042, while an RPi 3 board will give you a*2082. Here's a list of board revisions.
See also: Getting Your ...
7
votes
Accepted
Having an issue with Bluetooth Manager/Pairing on the Pi
Had the same problem and found this to work.
The error in syslog as mentioned in previous post: "Protocol not available" suggest the Sound (Multimedia device) protocol is not available.
Make sure ...
7
votes
Accepted
Bluetooth does not work with Raspbian Stretch and Raspberry Pi 3
I just hit the same issue. The errors from the bluetooth service are red herrings. The problem (for me, anyway) was that the permissions required to access the service over DBus have changed.
As ...
7
votes
Failed to connect: org.bluez.Error.NotAvailable - Error
You do not need to connect with Bluetoothctl. With Bluetoothctl, use exactly most commands as you show; then after pair, leave this window but not close. Open new terminal and use
rfcomm bind rfcomm0 ...
7
votes
Accepted
How to stream sound to a bluetooth device from a raspberry pi zero
I did manage to play sound and record using my Marshall MID headphones using a Raspberry Pi Zero W, which has a builtin WiFi + Bluetooth adapter, but no audio jack.
Please note that there are ...
6
votes
Bluetooth scan usin "hcitool scan" returns no results (Hama 00049229)
Try running the following:
sudo bluetoothctl
agent on
default-agent
scan on
Type scan off to stop scanning.
6
votes
RetroPie & PS3 Controller over Bluetooth
These directions are what worked for me. Like you I tried everything. Not sure which step cleared it up. But after doing all these it worked, so give it a try.
Directions
Shut off the board and make ...
6
votes
bluetoothctl fails to connect to any device [[ Failed to connect: org.bluez.Error.Failed ]]
I realize this is over 3 years old now, but after looking at the answers given here, I found that I didn't even have pulse audio installed (Pi OS Lite (Buster) on RPi4).
After installing bluez-tools ...
6
votes
Accepted
What Bluetoothctl agents are there?
The agents are external software entities that are used as callbacks by bluetoothctl. They get called at the instant when authentication during pairing is required. The current set of callbacks ...
6
votes
Host Web Server on Raspberry PI via Bluetooth PAN
It seems that you have had no response to this so I thought I would have a try to see how far I got. These are my notes from the journey. This was not a successful journey for me but I'm hoping by ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
bluetooth × 807raspbian × 138
pi-3 × 121
python × 96
audio × 80
bluez × 56
wifi × 53
pi-4 × 50
pulseaudio × 42
pi-zero-w × 40
serial × 37
keyboard × 31
android × 31
wireless × 30
pi-3b+ × 27
networking × 20
raspbian-jessie × 18
usb × 17
pi-2 × 16
raspbian-stretch × 16
arduino × 15
connection × 15
uart × 15
alsa × 14
pi-zero × 12