-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Xiaomi Mi smartband 6 #87
Comments
@G1K do you have any thought on what might need to change? |
I know the product name is XMSH15HM but in the xiaomi.js I see a Hex number in front I have no idea what to add there |
I do not have myband 6, but on many previous bracelets and watches it is necessary to turn on 2 switches in the application. 1) for ads, it often has steps 2) for heartbeat data. in order for the bracelet to constantly measure and broadcast the heartbeat, you need to turn on the training mode. maybe it will transmit in the usual mode, but rarely. |
When de Mi smartband 6 is on I can see the name of it in the Espruinohub but there is no advertising data, also no steps which I can see with earlier Mi bands. I do not know how the Xiaomi.js is working but when i look into it i see productnames. |
The name and model is not used to decrypt messages. In most cases, the decryption goes on the service ID from the data that announces devices. Did you go in the MI FIT application and turned on the detection of the device and the transfer of the pulse? |
|
Search in your app or in mi fit. the setting should be somewhere in the device settings. There are not so many buttons to get confused. I don't have such a bracelet, nor an android. You can search in Google "how to enable mi band ble detection " , example https://community.home-assistant.io/t/esphome-ble-tracking-mi-band-4-working/129732/21 . For underage accounts, this setting may not be visible. |
Found the setting and now the band is advertising the steps :-) |
And now reread what I wrote above. The key should be the second switch and you need to turn on the training mode to constantly monitor your heart rate. |
I tried to start a training and turn on heartrate advertising to other party. When i start a BLE heartrate app on my mobile it connects and show the heartrate, but the EspruinoHub does show nothing except steps. |
These are two different things. I was talking about switches. in Zepp app referred to as 1) Detection 2) General heart rate information. in Mi fit is similar. If both of them are turned on, then in the training mode that can be turned on from a watch or bracelet, information about the heart rate is transmitted in clear form in advertising messages. And it can be caught by anyone and is implemented in espruino in the xiaomi.js parser. What you showed in the screenshot is a different mode, you can run it through espruino. You need to connect to the bracelet, and subscribe to notifications of a specific characteristic. then they will be sent directly and not broadcast to everyone, but there is one drawback. only one device can be connected to the bracelet at once and therefore most likely you will have to turn off the bluetooth on the phone. |
I turned on both switches and start training or workout on the MI6 band, but the EspruinoHub does not show the heart rate. Think there must be some editing in the attributes.js
I think this need some editing. |
You've been posting in the forum recently as well? https://forum.espruino.com/conversations/379871/#comment167048 Maybe just continue the discussion there rather than posting here |
Just bought a Xiaomi MI band 6 and want to read the heartrate.
It will connect to the hub but I see no advertising data at all.
Is there anything I have to change in xiaomi.js to see the values of this device?
Maybe the xiaomiProductName has to been added?
The text was updated successfully, but these errors were encountered: