Issues Enabling Notifications for Heart Rate Measurement on Xiaomi Band 8 Using gatttool

I'm trying to connect to my Xiaomi Band 8 and read heart rate data using gatttool with the help of extended Bluetooth adaptor, UB500 | Bluetooth 5.0 Nano USB Adapter - TP-Link. I followed steps from similar articles

- blog.alikhalil.tech/.../

- https://gist.github.com/pmav99/e2979966ef31ae044f025fe09308d564

for heart rate monitors like Polar Beat. While I can connect to the device and write to the Client Characteristic Configuration Descriptor (CCCD) to enable notifications for the Heart Rate Measurement characteristic, I do not receive any notifications. Despite ensuring that the fitness tracker is active and properly worn and also refreshing the heart rate manually, no heart rate data is being received from the output..

I followed these steps to connect and read heart rate data from my Xiaomi Band 8 using gatttool:

1. Scan for devices:

sudo hcitool lescan
Output: AA:BB:CC:DD:EE:FF Xiaomi Smart Band 8

2. Connect to the device:

[AA:BB:CC:DD:EE:FF][LE]> connect
Connection successful

3. Discover Primary services:

[AA:BB:CC:DD:EE:FF][LE]> primary
attr handle: 0x0025, end grp handle: 0xffff uuid: 0000180d-0000-1000-8000-00805f9b34fb

4. Discover all characteristic descriptors:

[AA:BB:CC:DD:EE:FF][LE]> char-desc 0x0025 0xffff
handle: 0x0026, uuid: 00002a37-0000-1000-8000-00805f9b34fb (Heart Rate Measurement characteristic)
handle: 0x0027, uuid: 00002902-0000-1000-8000-00805f9b34fb (Client Characteristic Configuration Descriptor)

5. Write to the CCCD to enable notifications:

[AA:BB:CC:DD:EE:FF][LE]> char-write-req 0x0027 0100
Characteristic value was written successfully

However, I do not receive any notifications after performing these steps. I ensured that the fitness tracker is properly worn and active in measuring heart rate.

What am I missing?

  • Did I miss any steps in enabling notifications?
  • Are there additional configurations or commands required for the Xiaomi Band 8 to start sending notifications?
  • Is there a specific procedure to ensure the fitness tracker sends data to gatttool?

Additionally, I read some articles suggesting that authentication might be required for Xiaomi devices. I found a relevant articles below.

but the steps seem outdated or do not apply to the latest version. I am unable to reproduce the steps and understand how to proceed with authentication for Xiaomi Band 8.

Parents Reply Children
No Data
Related