Xiaomi band 6 and EspruinoHub #6656
Replies: 1 comment
-
Posted at 2022-09-21 by @gfwilliams
Is this when you connect? Or just in normal advertising data in the Because if you have to connect first, it's not really what EspruinoHub was meant for. If it's in advertising data it should be a pretty easy tweak to https://github.com/espruino/EspruinoHub/blob/master/lib/attributes.js that is required Posted at 2022-09-21 by user133055 It is not in the advertising data, so i hope someone on this forum knows how to set the MI6 to advertise the heart rate data like it does with the step counter Posted at 2022-09-29 by user133055 I looked at the attributes.js and see Xiaomi settings for the Xiaomi Flower care. I have a Flower care and it worked fine. Can you give me some tips how to add my Xiaomi MI6 band? Attachments: Posted at 2022-09-30 by @gfwilliams
You're connected to the band when you see that. It's not something that is being advertised... Flower care works because it advertises the data. You can set up EspruinoHub to get the data via https://github.com/espruino/EspruinoHub#connections but it will be connected to the watch band constantly and so won't be able to scan for other advertisements. When you look in the Posted at 2022-09-30 by user133055 This is what we see. Attachments: Posted at 2022-10-02 by user133055 Do I have to edit this in attributes.js "fee0": function (d) { Posted at 2022-10-03 by @gfwilliams Ok, well that code implies that there would be a heart rate if you had 5 bytes of data advertised. ... but you only have 4, so your heart rate is not being advertised by the band - I guess it must need configuring somehow to advertise it? Bytes 0+1 are your step count I guess. But bytes 2+3 are both zero so those are unlikely to be heart rate :) Posted at 2022-10-03 by user133055 As you can see both switches for advertising heart rate are on. I start also a workout because someone said it only advertise when starting a workout but no go. Attachments: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2022-09-16 by user133055
I have asked this before but still no solution.
I have a Xiaomi Band 6 and running a EspruinoHub on a raspberry Pi, I can see the MI6 band and it's advertising my steps. But I want to see the heart rate from the MI6 band. I had a few suggestions for the settings on the band and I have all set them but still no data from the heart rate counter. When I start the NRF app on my phone I see there are some UUiD 's what send some heart rate data.
Is there anyone has a solution to read the heart rate of this MI6 band on the EspruinoHub?
Beta Was this translation helpful? Give feedback.
All reactions