Hot answers tagged

6 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 ...
user avatar
  • 209
5 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 ...
user avatar
  • 774
4 votes
Accepted

How can I open a connection to my Raspberry Pi over Bluetooth without having to pair?

I am assuming it is a Serial Port Profile (SPP) connection that you are trying to establish between the two machines. The Linux Bluetooth stack uses BlueZ which has an API for setting up classic ...
user avatar
  • 1,216
3 votes

Can Raspberry Pi use ANT+ as well as Bluetooth?

No you can't use the built in WiFi or Bluetooth radio to communicate with ANT! WiFi also can't emulate Bluetooth or ANT as they all use the 2.4GHz ISM free frequency band.
user avatar
  • 2,451
3 votes
Accepted

Scripting bluetoothctl causes it to fail after connection

I don't think bluetoothctl was ever intended to work in this way. While I am sure you could get it to work, BlueZ are often changing the commands in bluetoothctl so your script is likely to break when ...
user avatar
  • 1,216
2 votes

Bluetooth status: inactive (dead)

I assume you are using a Raspberry Pi OS based on Buster. It is curious that systemd does not give you any output what's going on with the bluetooth.service. The status should at least contain ...
user avatar
  • 39.5k
2 votes

BlueZ with Raspberry Pi 3

Yes, BlueZ is included in the latest versions of Raspberry Pi OS. To check that it is running on your system, use the command service bluetooth status. BlueZ's API for interfacing with various ...
user avatar
  • 1,216
2 votes

How to read a string from a file and advertise as a beacon?

There are a lot of parts to your question. I would recommend that you break the problem down into a series of smaller problems. Maybe: Get advertisement working with hard coded values Add reading ...
user avatar
  • 1,216
2 votes

bluetooth is not working after updation

It is a known issue on the PI4. Take a look at the forum thread: https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=311457#p1864038
user avatar
2 votes

BlueZ receive Bluetooth sensor information

gatttool is one of the tools that has been deprecated by the BlueZ project. If you are following a tutorial that uses those tools then you should be careful that the tutorial isn't incompatible with ...
user avatar
  • 1,216
2 votes

BlueZ Profile RequireAuthentication=False not working when trying to initiate connection without pairing

I have tested the Python code you posted in your question on my system and it also didn't work. Looking at it more closely, and running some experiments, I noticed that you were not making the server ...
user avatar
  • 1,216
1 vote

BlueZ Profile RequireAuthentication=False not working when trying to initiate connection without pairing

This answer only relates to the UUID question in the comments. See section 5.1 in https://github.com/petzval/btferret documentation for a discussion of serial UUIDs. The specification of a service as ...
user avatar
  • 46
1 vote

Bluetooth disconnects when SSH connection closes (RPi Zero 2)

If someone stumbles upon this: pulseaudio was the culprit. pulseaudio uses systemd to check if anyone is logged on, else it shuts down. This also closes the BT connection. I fixed my problem by ...
user avatar
  • 31
1 vote

bluetooth is not working after updation

by executing this command sudo apt-get install pulseaudio pulseaudio-module-bluetooth dpkg -l pulseaudio pulseaudio-module-bluetooth issue has been solved
user avatar
1 vote

Trouble connecting to bluetooth device

There are two types of Bluetooth, classic and BLE. How these two types of Bluetooth work is very different. We need to know which type it is before being able to make recommendations on how to proceed....
user avatar
  • 1,216
1 vote

How would I send files to Raspberry Pi through bluetooth without touching the Pi?

Bluetooth is interoperable by having common ways to interact defined by the Bluetooth SIG. There is a list of these profiles at: https://www.bluetooth.com/specifications/profiles-overview/ The list of ...
user avatar
  • 1,216
1 vote

Unable to broadcast string as beacon

There are only 26 bytes available in advertising data. 2 bytes are used for the company ID. That leaves 24 bytes for data. When I try to use an advertisement that is too long I get the following ...
user avatar
  • 1,216
1 vote
Accepted

Not getting an "Enter Pin" prompt when pairing with BLE device

What has worked for me: agent on default-agent power on connect [mac-addr] (instead of pair [mac-addr]) The missing steps for me were power on and using connect instead of pair. Now it's working and ...
user avatar
1 vote
Accepted

Unable to locate package python3-bluez

The package you've asked about - python3-bluez is available in the current package repository (buster). This may be verified as follows: $ apt-cache search python3-bluez python3-bluez - Python 3 ...
user avatar
  • 17.4k
1 vote

Raspberry Pi Bluetooth HCI Event Code Meaning

The easiest way of seeing what the HCI commands are doing is to have sudo btmon running in another terminal. btmon does a good job of giving more information about what is happening at the HCI low ...
user avatar
  • 1,216
1 vote

How to restart/release rfcomm for bluetooth communication?

rfcomm is one of the tools that has been deprecated by the BlueZ team as working at that low level can lead to unpleasant things happening on the system because those tools by passed the the bluetooth ...
user avatar
  • 1,216
1 vote

obexd - Receive files error

I had exactly the same problem and I resolve it just now. In my case I had not set the copy gconv libraries option in the Linaro external toolchain options of my buildroot distribution. I set it and ...
user avatar
  • 11
1 vote

Raspberry Pi 3B+ BLE peripheral : Android can't retrieve services list, OK with iPhone and Win10

I have found to get reliable connection to Android phones it is best to put the controller into le only mode. This is done in the /etc/bluetooth/main.conf file. Ensure that it contains the following: ...
user avatar
  • 1,216
1 vote

Raspberry Pi 3B+ BLE peripheral : Android can't retrieve services list, OK with iPhone and Win10

"Android" is a broad family of devices, each with different BT hardware and drivers, and as a result with different behavior and quirks. If you own a device from a major brand, searching or asking ...
user avatar
1 vote
Accepted

bluez - failure to pair bluetooth remote

After much strife, my issue was solved by installing blueman and using its wizard to pair the remote.
user avatar
1 vote
Accepted

Develop a communicattion between a Raspberry with BLE server and a Raspberry with BLE client

I'll mark this as an answer because I could make it possible with the libraries written in javascript noble and bleno
user avatar
1 vote

Bluetooth Blues

A possible solution is to add users to groups e.g. sudo gpasswd -a pi pulse sudo gpasswd -a pi lp sudo gpasswd -a pulse lp sudo gpasswd -a pi audio sudo gpasswd -a pulse audio
user avatar
  • 11
1 vote

Connecting a new Bluetooth device without monitor?

Taken from raspberryPi.org To pair type pair xx:xx:xx:xx:xx:xx where xx:xx:xx:xx:xx:xx is your BD address of the device you want to pair Next type trust xx:xx:xx:xx:xx:xx You should read the full ...
user avatar
  • 216
1 vote

Pulseaudio module-combine-sink always throws Failure

Figured out the reason why it was not working. On checking the logs of pulseaudio, I found that it was not able to find the module-combine-sink library. I copied the libraries manually in /usr/lib/...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible