Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
1 answer
34 views

GATTTool fails to read characteristics/attribute for Heart Beat data

I'm trying to read the heart rate data from my Xiaomi Mi Band 8 using BlueZ's gatttool. The heart rate data is found in the characteristic with UUID 0x2a37, which has the property NOTIFY. However, ...
abdul's user avatar
  • 3
2 votes
1 answer
92 views

Bluetooth Pairing via BlueZ in Just Work Mode Fails - Confirm Value Failed

Kernel: Linux 4.9.84 armv7l on board Bluez: 5.65 Peer: Android 12 & IOS 16.6 Application: Use btmgmt open bluetooth settings btmgmt power off btmgmt connectable on btmgmt pairable on btmgmt ...
ayezang's user avatar
  • 29
-1 votes
2 answers
228 views

How to deal with BlueZ bluetooth instability? [closed]

Background My team has been trying to implement a bluetooth LE 'api' for a while now. We decided on BLE over legacy Bluetooth due to iOS (one of our client device types) blocking legacy BT for anyone ...
Wisteso's user avatar
  • 368
0 votes
1 answer
676 views

Raspberry Pi Bluetooth: Enable legacy pairing / connection without PIN input

For a few days I'm desperately trying to configure Bluetooth legacy pairing on my Raspberry Pi. Unfortunately I hadn't had any success until today. I tried countless tutorials/posts on several forums ...
manintree's user avatar
0 votes
1 answer
143 views

bluetoothctl creating gatt server - cant write more than one byte

I've added a service and charecteristic with bluetoothctl (bluez v5.64). I have some issues: I can only write one byte. attempting write "0x11 0x22" results in "Unable to write local ...
Ordit Gross's user avatar
0 votes
1 answer
359 views

Linux BlueZ BLE GATT Service encryption + indications

I am setting up a BLE GATT Service using Bluez 5.65 in Linux. I have my own process that I compile together with BlueZ sources. In the makefiles I have added it as another tool. I base my new tool on ...
Kim's user avatar
  • 83
0 votes
0 answers
614 views

How to change the supervision timeout of BLE peripheral?

I have a pure C application running on a BLE peripheral that reproduces some of the bluez code. In le_set_advertising_parameters_cp, I see min_interval and max_interval but I don't see any supervision ...
gregoiregentil's user avatar
1 vote
4 answers
3k views

Trying to understand BLE UUIDs and handles (with bluetoothctl example)

As far as I understand, in BLE, UUIDs are universal IDs that serve to uniquely identify a BLE attribute. They can be 2, 4 or 128 bytes. When they are 2 or 4, the remaining bits until 128 are filled ...
Dan's user avatar
  • 2,602
0 votes
1 answer
453 views

[Linux][Bluez][Bluetooth] Failed to re-connect after forgetting while using NoInputNoOutput with bluetooth agent

System is running below: Bluez_version: 5.65 Linux Kernel version: 5.15.77-3 In this case let's call the system that's having the issue is called DUT Steps to reproduce(Scenario): Set the bluetooth ...
Aravind's user avatar
  • 109
0 votes
1 answer
375 views

How to Automatically Re-Connect Bluetooth HID over GATT (HOG) Device when BlueZ Plugin "hog" is Disabled

Linux 5.10, BlueZ 5.55 I have a remote control which implements Bluetooth LE. If I use the default Bluetooth daemon, I am able to pair and trust using bluetoothctl. If the connection is lost after a ...
Martin's user avatar
  • 147
0 votes
1 answer
540 views

Python bluez dbus: Custom GATT server how to notify int16 Value changed

I'm building a custom BLE GATT Server with Python. I took the original bluez example server and added a Temperature (0x2a6e) characteristic. From the documentation, it should be a single field '...
Danilo Fuchs's user avatar
0 votes
0 answers
131 views

Best practice for designing GATT server service

How would you design a GATT server service that will be used for getting long-string information? What is the best practice for that? I saw some implementations used two characteristics one uses the ...
Frozen's user avatar
  • 1
0 votes
0 answers
59 views

Detect bluetooth FW hang in bluez stack

I am trying to implement an application using bluez. The issue is : If sometimes the Bluetooth controller Firmware goes into bad state, my application hangs. There is no way to recover, except through ...
dfordevy's user avatar
  • 161
1 vote
2 answers
279 views

How to specify AdressType in bluez device-api?

I'm trying to connect a LE device to my Linux laptop through a python script. Nevertheless, the device address must be specified as "random" for the connection to happen, and the examples ...
Evaldo De Paula Souza's user avatar
2 votes
1 answer
2k views

Receiving ERR UNLIKELY when doing a Write With Response

I have written an application in C using Bluez that implements a peripheral (a GATT server). I managed to advertise and make my peripheral work. Reading a characteristic works fine, notifying works ...
Martijn van Welie's user avatar

15 30 50 per page