Questions tagged [bluez]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

Can I disable Bluetooth Bonding on a Raspberry Pi?

Just to get things straight, since the Androids documentation uses these terms interchangeably and makes everything more confusing. Pairing is the exchange of temporary encryption keys, which ...
user avatar
0 votes
0 answers
115 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 ...
user avatar
-1 votes
1 answer
36 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?
user avatar
  • 99
0 votes
0 answers
28 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? Same message pops up for my ...
user avatar
0 votes
0 answers
16 views

Want to transmit video data from a sensor connected to my Raspberry Pi over bluetooth to a mobile device

As I understand sending video data over bluetooth isnt its primary use case but the resolution of this video is extremely small therefore I think it might be possible in that sense. This is my first ...
user avatar
0 votes
0 answers
21 views

Windows 10 HotSpot Raspberry Pi Bluetooth Failed

Good Morning, I have a bluetooth sensor, which I usually connect to through the Raspberry Pi 4 device. On the other hand I usually use VNC to access the Raspberry Pi screen without needing an external ...
user avatar
  • 21
0 votes
0 answers
26 views

Send USSD command to mobile phone connected via bluez to raspberrypi 4

I just start working with ofono and when I want to send USSD command. when I use initiate-ussd <modem> I get this error: Traceback (most recent call last): File "/home/pi/workspace/libs/...
user avatar
0 votes
2 answers
236 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 ...
user avatar
  • 113
1 vote
1 answer
587 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 ...
user avatar
  • 113
2 votes
1 answer
216 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 ...
user avatar
  • 21
2 votes
1 answer
164 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 ...
user avatar
  • 31
0 votes
1 answer
128 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 ...
user avatar
  • 1
0 votes
1 answer
398 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....
user avatar
0 votes
0 answers
23 views

How to list only valid bluetooth devices?

I have setup a Pi4 using PyBluez to create a Bluetooth server. The client is on an Android phone using Android Studio. So far it is working the way I need to except that I wish to automate the first ...
user avatar
  • 1
0 votes
0 answers
47 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 ...
user avatar
0 votes
0 answers
244 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:~...
user avatar
2 votes
0 answers
814 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 ...
user avatar
0 votes
2 answers
356 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 ...
user avatar
-1 votes
1 answer
251 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....
user avatar
0 votes
1 answer
114 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 ...
user avatar
0 votes
0 answers
77 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 ...
user avatar
0 votes
2 answers
1k 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 ...
user avatar
0 votes
2 answers
2k 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 ...
user avatar
  • 1
4 votes
3 answers
8k 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 ...
user avatar
  • 219
1 vote
1 answer
433 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 ...
user avatar
  • 31
0 votes
1 answer
122 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? ...
user avatar
0 votes
1 answer
282 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 ...
user avatar
1 vote
0 answers
197 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 ...
user avatar
0 votes
0 answers
41 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 ...
user avatar
0 votes
1 answer
881 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 (...
user avatar
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. ...
user avatar
2 votes
1 answer
849 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 ...
user avatar
1 vote
1 answer
501 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 ...
user avatar
0 votes
1 answer
767 views

BLE data receive and send from arduino HC08 to raspberry pi

I have noticed that there are lots of topics about classic BT connect to arduino and send data to raspberry pi by creating virtual port (using rfcomm) I have tried this method for BLE Device. However ...
user avatar
0 votes
1 answer
925 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 ...
user avatar
1 vote
1 answer
693 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 ...
user avatar
  • 111
0 votes
1 answer
2k 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 ...
user avatar
0 votes
1 answer
90 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 ...
user avatar
1 vote
0 answers
61 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 ...
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 ...
user avatar
1 vote
0 answers
30 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.
user avatar
  • 1,650
1 vote
1 answer
1k 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 ...
user avatar
0 votes
0 answers
64 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 ...
user avatar
  • 1
0 votes
1 answer
107 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 ...
user avatar
3 votes
4 answers
871 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 /...
user avatar
1 vote
1 answer
1k 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 ...
user avatar
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 ...
user avatar
-1 votes
1 answer
4k 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 ) ...
user avatar
  • 1
1 vote
1 answer
665 views

Rpi Zero W - How to automatically accept bluetooth pairing and log mac and info request?

I am using Raspbian Stretch 9.4 on a Zero W. The goal is to deploy it headless for long periods of time where it will broadcast a specified bluetooth signal. When someone tries to connect to it, it ...
user avatar
  • 19
2 votes
0 answers
642 views

BLE Connect fails with page timeout

I've got a custom BLE 4.1 device and I'm trying to connect it to Raspberry PI 3 B+ using hcitool, gatttool, bluetoothctl, ..., without success. The device is an NRF BLE chip with the Nordic UART ...
user avatar
  • 121