Questions tagged [bluez]
The bluez tag has no usage guidance.
59
questions
0
votes
0
answers
40
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 ...
0
votes
0
answers
37
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 ...
2
votes
1
answer
267
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 ...
1
vote
0
answers
482
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
...
2
votes
0
answers
216
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. ...
0
votes
0
answers
127
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 ...
1
vote
1
answer
445
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 ...
0
votes
0
answers
713
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 ...
-1
votes
1
answer
283
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?
0
votes
0
answers
188
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 ...
0
votes
2
answers
1k
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 ...
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 ...
2
votes
1
answer
694
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 ...
3
votes
1
answer
535
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 ...
0
votes
1
answer
568
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 ...
0
votes
1
answer
745
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....
0
votes
0
answers
93
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 ...
0
votes
0
answers
811
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:~...
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 ...
0
votes
2
answers
621
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 ...
-1
votes
1
answer
589
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....
1
vote
1
answer
191
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 ...
0
votes
0
answers
170
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 ...
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 ...
1
vote
2
answers
5k
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 ...
5
votes
3
answers
13k
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 ...
1
vote
1
answer
724
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 ...
0
votes
1
answer
200
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?
...
0
votes
1
answer
505
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 ...
1
vote
0
answers
299
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 ...
0
votes
0
answers
45
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 ...
0
votes
1
answer
1k
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 (...
1
vote
2
answers
2k
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.
...
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 ...
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 ...
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. ...
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 ...
1
vote
1
answer
1k
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 ...
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 ...
0
votes
1
answer
281
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 ...
1
vote
0
answers
109
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 ...
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 ...
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.
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 ...
0
votes
0
answers
69
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 ...
0
votes
1
answer
146
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 ...
3
votes
4
answers
1k
views
Raspberry Pi 3B+ BLE peripheral : Android can't retrieve services list, OK with iPhone and Win10
I try to make a Raspberry Pi 3B+ act as a BLE peripheral.
I downloaded latest version (5.50) of bluez stack here : https://git.kernel.org/pub/scm/bluetooth/bluez.git.
I execute provided examples in /...
1
vote
1
answer
2k
views
bluez - failure to pair bluetooth remote
I'm trying to pair my PS3 remote with my RPi 3, through bluetoothctl. The steps I'm attempting:
place the remote in pair mode
run
bluetoothctl
[bluetooth]# devices
Device 00:19:C1:5A:24:7B BD Remote ...
1
vote
1
answer
1k
views
Develop a communicattion between a Raspberry with BLE server and a Raspberry with BLE client
I have been developing an small project which requieres a communication between two Raspberries, the first one acts as a Beacon and the second one tries to connect to that beacon and obtain the RSSI ...
-1
votes
1
answer
5k
views
Rpi Bluetooth Android Device Connection Pairing Problem
I'm trying to connect my rpi0 w to any android device via Bluetooth LE(low energy) , i can pair but i can't connect them ,an error always showed (Connection failed,No usable services on this device ) ...