- 15 Jul 2024
- 1
- 3
HI Everyone,
I'm having trouble reading heart rate data from my Mi Band 7 using the linux command, "gatttool". I have connected to the device via Bluetooth and discovered the relevant characteristics which are
- 0x180F which is the Heart rate service
- 0x2a37 which is the Heart Rate Measurement which properties is NOTIFY.
What I have done so far by trying the commands inside the gatttool
I identify the Heart Rate Service
If so how to achieve this?
I'm having trouble reading heart rate data from my Mi Band 7 using the linux command, "gatttool". I have connected to the device via Bluetooth and discovered the relevant characteristics which are
- 0x180F which is the Heart rate service
- 0x2a37 which is the Heart Rate Measurement which properties is NOTIFY.
What I have done so far by trying the commands inside the gatttool
I identify the Heart Rate Service
Then I read the characteristics for Heart Rate Service and could see 0x2a37 which properties is NOTIFYprimary
attr handle: 0x0039, end grp handle: 0x003c uuid: 0000180d-0000-1000-8000-00805f9b34fb
i tried reading Heart Rate Beat Data but I cantchar-desc 0x0039 0x003c
handle: 0x0039, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x003a, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x003b, uuid: 00002a37-0000-1000-8000-00805f9b34fb
handle: 0x003c, uuid: 00002902-0000-1000-8000-00805f9b34fb
I enabled the notification to 0x2902 but Cant see any notifcationchar-read-hnd 0x003b
Error: Characteristic value/descriptor read failed: Attribute can't be read
Please advise on how to read the heart beat data and how to receive the notificattion. Is there a need to input authentication for this?char-write-req 0x003c 0100 --listen
Characteristic value was written successfully
If so how to achieve this?