suprabathk / CLI-Interface-For-Mi-Band

Communicate with your Mi band from Raspberry pi
25 stars 9 forks source link

Could I get the real-time data from acceleration sensor? #4

Closed VincentJYZhang closed 4 years ago

VincentJYZhang commented 4 years ago

Hi, I'm working on a project and need the real-time acceleration data. This question nagged me for many days. I really need some help.

Thanks, Junyang

savegame commented 4 years ago

i think standard firmware do not send real time acceleration...

suprabathk commented 4 years ago

Hello @VincentJYZhang

Try by writing [0x12, 0x1] to the CONTROL_POINT characteristic. The band starts sending a continuous flow of data the UUID_CHARACTERISTIC_SENSOR_DATA characteristic. That data stream is live accelerometer data of your band.

Have a look at this https://github.com/Freeyourgadget/Gadgetbridge/issues/63

Peace!