Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [bluez]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
23 views

How to enable Bluetooth on the Raspberry Pi 3B with Void Linux?

I have a RPI 3B with Void Linux, I've searched a lot on Google how to enable Bluetooth, but I can't find solutions.... Here are the things I have already done: Followed to the letter the indications ...
Jamil Gomez's user avatar
0 votes
1 answer
20 views

Which document I can find bluetooth HCI event code meaning?

While I was searching how to find Bluetooth HCI event code meaning, I found the link below. Raspberry Pi Bluetooth HCI Event Code Meaning In this post, Section 7.8 Part E, Vol 4 and Section 7.7.14, ...
Cprogrammer's user avatar
0 votes
0 answers
130 views

(Resolved) Audio over bluetooth doesn't work when launch as a systemd service

I'm running into a similar issue as (Can't play audio via BT from systemd service) on my project where audio works fine in the python script if I launch it from the command line, but if I move it ...
hkd's user avatar
  • 1
0 votes
1 answer
745 views

Reading data from a BLE peripheral device via bluetoothctl

I am new with Raspberry Pi 4B and I am trying to read data sent from a peripheral BLE device, but I am having some problems and would like your help. First of all, I am able to connect to the BLE ...
aag's user avatar
  • 1
0 votes
0 answers
53 views

Troubles connecting raspberry and OBD2 through bluetooth

I try to connect my pi zero W to OBD2 module through bluetoooth. My pi is connected to my 4G iphone wifi and I communicate with it through ssh. I used bluetoothctl and can't connect when running ...
Antoine Riguillard's user avatar
0 votes
0 answers
60 views

How to check if bluetooth packets are being recieved by BlueZ daemon

I'm connecting to BLE devices on a Raspberry Pi (running Raspberry PI OS (bullseye)) running BlueZ 5.68. I call BlueZ's AcquireNotify method to read incoming packets. However I'm not receiving all the ...
Richard Beattie's user avatar
2 votes
1 answer
401 views

Raspberry Pi 4B Ubuntu 22.10 Bluetooth scan successful but fail to pair

My mouse stopped working a few days ago and is unable to work since then. I tried but fail to pair it again through either Terminal or Settings > Bluetooth. The Bluetooth right now is able to ...
yts61's user avatar
  • 121
1 vote
0 answers
689 views

Bluetooth stopped working on Raspberry Pi 4

Bluetooth was working fine on my Bluetooth stopped working on Raspberry Pi 4 and then just it stopped turning on even on the GUI. The rfkill list shows the following results: 0: phy0: Wireless LAN ...
mohamed tahan's user avatar
2 votes
0 answers
284 views

Problem with the import bluetooth!

I have tried a lot of this lines programs but the terminal it keep's complaint. Error message: Import Error:No module named bluetooth._bluetooth I have install some lib but again the problem it shows. ...
Lilfio's user avatar
  • 21
0 votes
0 answers
142 views

Bluetooth 1200ms delay on Raspberry Pi using bluez (GATT Server)

I have set up GATT server on Raspberry Pi, and I am experiencing huge delay of about, 1200ms. To check delay, I am using nRF Connect on iPhone. I am using Raspberry Pi zero w and bluez bindings for ...
MN_XD's user avatar
  • 11
1 vote
1 answer
649 views

Raspberry PI fails to connect to BLE Device but a Linux Laptop connects successfully

Problem: A python based BLE central program, when run on a Raspberry Pi, failed to connect to BLE peripheral device (a custom board based on Nordic processor). The same python program successfully ...
ugmurthy's user avatar
0 votes
0 answers
809 views

two raspberry pi 4 communication via BLE

I need to pass a stream of data from raspberry pi 4 to pi 4. and I downloaded /home/pi/Downloads/bluez-5.50/test/example-advertisement,and can successfully run it,two pi can connect,but I don't know ...
Zwo Hau's user avatar
-1 votes
1 answer
390 views

Update BLE broadcast message at low latency

I want to use RPis to broadcast every 50ms a new updated message of just a few bytes, for its listeners to receive. Is this possible? How?
Gouz's user avatar
  • 115
0 votes
0 answers
214 views

Bluetooth is not connecting

I'm having trouble connecting my Raspberry Pi 400 to my Bluetooth speaker: GDBus.Error:org.bluez.Error.AlreadyExists: Already Exists Any idea on how to resolve this? The same message pops up for my ...
astroroots's user avatar
1 vote
2 answers
2k views

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

Following up from this question: How can I open a connection to my Raspberry Pi over Bluetooth without having to pair? I am trying to connect from my Windows Laptop to my Raspberry Pi over Bluetooth ...
nreh's user avatar
  • 123
1 vote
1 answer
3k views

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

I'm extremely new to Raspberry Pi and Bluetooth in general and have been having some trouble and confusion connecting between my computer and Pi programmatically. I'm trying to open a Bluetooth ...
nreh's user avatar
  • 123
2 votes
1 answer
941 views

BlueZ receive Bluetooth sensor information

Good afternoon, First of all I apologize for asking questions in this thread but this is my first time writing on StackExchange. I am doing a university work where it is necessary through a Raspberry ...
jf_PT's user avatar
  • 21
3 votes
1 answer
687 views

Bluetooth disconnects when SSH connection closes (RPi Zero 2)

I am trying to use a headless Rpi Zero 2 (Raspian 11) for bluetooth audio streaming. I can establish a connection to a bluetooth speaker using bluetoothctl connect XX:XX:XX:XX:XX:XX from an SSH ...
Tim's user avatar
  • 161
0 votes
1 answer
727 views

HELP - Bluetoothctl Scan in Python3

I'm new to python and with bluetoothctl and I need to automate the bluetoothcl scan on process in python so that I just need to open the python file and start scanning right away. I've been doing a ...
JJ2021's user avatar
  • 1
0 votes
1 answer
819 views

RPi 3b+; updating bluez to 5.50-1.2~deb10u2 fails/hangs/

As topic says, after running apt update the OS (running Raspbian GNU/Linux 10 (buster) on kernel 5.10.52-v7+) wants me to update bluez and its dependencies. The version it's trying to update to is 5....
blubbafett's user avatar
0 votes
0 answers
107 views

BlueZ 5.58 Connection Fail

I am working on the BlueZ 5.58 library using the Raspberry Pi 4. So far, I am able to install an updated version of the BlueZ 5.58 & making sample test cases. (refrance BLE GATT Server) While ...
shiv patil's user avatar
0 votes
0 answers
988 views

Raspberry Pi Pre-Installed BlueZ

I am working on the Raspberry Pi 4 board with the Raspbian Buster OS. I have found that the BlueZ library Pre-Installed on the Raspbian Buster OS. pi@raspberrypi:~ $ bluetoothd -v 5.50 pi@raspberrypi:~...
shiv patil's user avatar
2 votes
0 answers
2k views

How to make sure BlueZ NoInputNoOutput agent does not ask for user authorization?

I am trying to pair my custom made BLE device with a Raspberry Pi 4, using the bluepy library, programmatically. I do not want to press "accept" or type "yes" whenever I try to ...
robino16's user avatar
0 votes
2 answers
722 views

bluetooth is not working after updation

am using pi 4 8GB for last 6 months everything was going well. Last week i updated my OS(raspbian). After that bluetooth is not working properly. i can able to pair a device successfully, but am not ...
praveen kumar's user avatar
-1 votes
1 answer
712 views

Raspberrypi4B: Unable to establish a BLE connection between RPi4B and Ubuntu Laptop

I am unable to establish an ble connection between my Raspberrypi4B and Laptop. Configuration is as below: Laptop: Ubuntu-20.04.2 LTS, bluez version: 5.53 Raspberrypi4B: Ubuntu-21.04 bluez version: 5....
nagesh shamnur's user avatar
1 vote
1 answer
222 views

How to get Bluetooth back in panel?

After install the drivers and stuff for a 3.5 inch LCD screen, my RPis Bluetooth seems to be disabled... The applet doesn't show in the panel like the wifi and volume does. Before the installation ...
Couch Mango's user avatar
0 votes
0 answers
192 views

How to apply authentication pin while making BLE connection using Bluez5.60

I'm trying to connect my Raspberry Pi 3B+ over BLE GATT Server using the Bluez5.6 library. I have successfully tested the BLE server application. Able to connect & communicate over the GATT ...
shiv patil's user avatar
0 votes
2 answers
2k views

Trouble connecting to bluetooth device

I'm a little confused on how I would interact with a bluetooth device on my Raspberry Pi 4. I have a four probe cooking thermometer that I'd like to read tempatures from and then make a web interface ...
user316114's user avatar
1 vote
2 answers
7k views

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

I want to be able to send code files to my Raspberry Pi Zero W from my Mac or Android phone, without needing to go do anything on the Pi itself. I was able to pair and connect to my devices with ...
SepSol's user avatar
  • 13
5 votes
3 answers
15k views

Bluetooth status: inactive (dead)

I have uninstalled BlueZ from my raspberry pi. sudo apt-get --purge remove bluez Then, I reinstalled it using this tutorial: wget http://www.kernel.org/pub/linux/bluetooth/bluez-5.47.tar.xz tar -xvf ...
vvvvv's user avatar
  • 279
1 vote
1 answer
838 views

BlueZ with Raspberry Pi 3

I'm working on a project that involves interfacing a PC (windows based) with a raspberry pi 3 using Bluetooth with c++. I've done some research and found that the library BlueZ is one of the best ...
dmta24's user avatar
  • 31
0 votes
1 answer
208 views

Unable to broadcast string as beacon

this question is a continuation of the previous one on "How to read a string from a file and advertise as a beacon?". Link here: How to read a string from a file and advertise as a beacon? ...
snow's user avatar
  • 141
0 votes
1 answer
589 views

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

I am using Raspberry Pi to advertise a string stored in a text file on Desktop. I am very new to the concepts of GATT services and characteristics and reading the BlueZ documentation caused me ...
snow's user avatar
  • 141
1 vote
0 answers
322 views

Using PyDBUS to read BLE battery service

I tried to read battery service (0x180F) using pydbus and also via term but unable to find, setNotify or read the value. I tried to register-service under Menu GATT in Terminal running Bluetoothctl ...
R.M.S.Sundram's user avatar
0 votes
0 answers
51 views

Reading, converting Object Array

I am trying to compile : new_value = int(1500).to_bytes(2, byteorder='little') but it throws error in Python 3.5 and 3.8. I am new in python and couldn't find an explanation on this. And also how to ...
R.M.S.Sundram's user avatar
0 votes
1 answer
2k views

Raspberry pi 4 bluetooth file transfer rate [closed]

I am new to raspberry pi so please forgive me if I ask a silly question. What I am trying to do is send files from my windows 10 laptop to raspberry pi with raspbian OS, I was able to send some data (...
Aayush Lakkad's user avatar
1 vote
2 answers
3k views

BlueZ BTGATT-client.py WriteValue

I had a successful attempts with BlueZ-5.50 > test > example-gatt-client.py with ESP32 set as HeartRate Sensor Server.I am able to read from ESP32 which i modified to suit the BlueZ example. ...
R.M.S.Sundram's user avatar
2 votes
1 answer
1k views

Scripting bluetoothctl causes it to fail after connection

I'm connecting to a custom BLE enabled board. Running bluetoothctl, I can pair and connect no problem from the command line. I've been attempting to script it using Python and pexpect. Pexpect spawns ...
Peter Kapteyn's user avatar
1 vote
1 answer
1k views

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

I have a custom board that uses BLE to get Wifi credentials. I'm trying to pair with the board using my Pi. I'm using bluetoothctl. Here's what I get when I try to pair: [bluetooth]# agent on Agent is ...
Peter Kapteyn's user avatar
0 votes
1 answer
1k views

BLE data receive and send from Arduino HC08 to Paspberry Pi

I have noticed that there are lots of topics about classic Bluetooth connect to Arduino and send data to Raspberry Pi by creating virtual port (using rfcomm) I have tried this method for BLE Device. ...
Vincent Yu's user avatar
0 votes
1 answer
2k views

Unable to locate package python3-bluez

I'm stuck at the installation process for openhabian , I realized I couldn't get package python3-bluez to install. script ran : needed_packages() { # Install apt-transport-https - update ...
potatoCatz's user avatar
1 vote
1 answer
2k views

Raspberry Pi Bluetooth HCI Event Code Meaning

I am recently playing with Bluetooth on my Raspberry Pi. I understand the code such as: sudo hcitool -i hci0 cmd 0x08 0x0008 1e 02 01 1a 1a ff 4c 00 02 15 e2 c5 6d b5 df fb 48 d2 b0 60 d0 f5 a7 10 ...
Chang's user avatar
  • 111
0 votes
1 answer
3k views

How to restart/release rfcomm for bluetooth communication?

I am trying to connect raspberry pi to my galaxy note to use it for serial communication. I have somewhat succeeded at that. First I paired it and trusted through bluetoothctl. Then I run sudo rfcomm ...
mega_creamery's user avatar
0 votes
1 answer
355 views

How to set up bluetooth broadcasting on a pi 3 b v1.2

um new to working with bluetooth on linux or on a raspberry pi but i have managed to set up the controllers. What i want to accomplish now is using python to connect or broadcast my raspberry pi as a ...
bots_developer_fix's user avatar
1 vote
0 answers
129 views

RPi3 Bluetooth Tethering Setup

I'm trying to setup automatic Bluetooth Tethering without a GUI, and I can't find anything that works online. A lot of forums just end at the mention of "Blueman." The only way I could even find to ...
JacobTDC's user avatar
  • 111
0 votes
0 answers
2k views

Bluetooth hci0 device suddenly missing on 4B

After a recent reboot of my 4B I noticed that my bluetooth connections had stopped working. I noticed that bluetoothctl reported no device, and further that sudo hciconfig hci0 up indicates Can't get ...
Zane Claes's user avatar
1 vote
0 answers
33 views

What is this prompt saying about bluetooth?

I tried to fix some problems with the bluetooth and uninstall pi-bluetooth. Also installed it .But the problems are bigger now. What is this prompt saying.
Sohan Arafat's user avatar
  • 1,828
1 vote
1 answer
2k views

Can Raspberry Pi use ANT+ as well as Bluetooth?

Since ANT+ and Bluetooth/BLE all use 2.4 GHz radio-waves, and most Raspberry Pi models can use Bluetooth, is it possible to communicate through the ANT+ protocol from a Raspberry Pi without adding any ...
Harley Day's user avatar
0 votes
0 answers
70 views

MFRC522 and Bluetooth not work together

I have a program in which I use pyqt5, MFRC522 and bluetooth. I have 3 threads, one for the interface, one for the MFRC522 and one for the bluetooth. If I run the MFRC522 and the bluetooth separately ...
israel's user avatar
  • 1
0 votes
1 answer
159 views

obexd - Receive files error

I am facing the below error while trying to receive files via bluetooth. The pairing is successful and sending files from the board to the phone is also successful. But receiving files from phone to ...
Blessy Thankam Abraham's user avatar