creotiv / MiBand2

Library to work with Xiaomi MiBand 2
Creative Commons Zero v1.0 Universal
544 stars 173 forks source link

Stucks on Heart rate oneshot #16

Open aksarburak opened 5 years ago

aksarburak commented 5 years ago

I changed my firmware version to one that you mentioned in previous issues. However, still, I have a problem when I run example.py it stucks on heart rate one-shot part. If I need to update my HW version, how I can do that? FW:1.0.1.81 HW: V0.1.3.3, MiFit2 : 3.3.1›

screen shot 2018-11-11 at 12 40 03 pm
creotiv commented 5 years ago

even same hardware version can be not same(it's China), the best way what you can do is to debug your device in the same way i mentioned in the article(in git readme), and check if all commands are the same, and change something if there is a difference. Also there can be problem with you PC bluetooth or python bluetooth lib(on one of my pc band also not worked, packet loss). also you can try to duplicate all the packets(maybe this can help)

creotiv commented 5 years ago

also you can try this js version https://github.com/vshymanskyy/miband-js

aksarburak commented 5 years ago

How can I duplicate the packets? I will try to update python Bluetooth lib also! If these not work, I will try that js version

creotiv commented 5 years ago

just sent them two times in a row, but you will need to rewrite package slightly

Kindly yours, Andrey Nikishaev

Areas ML/DS/CV/Soft Dev/BizDev/Growth Hacking/Customer Rel/IT LinkedIn http://ua.linkedin.com/in/creotiv GitHub http://github.com/creotiv Slideshare https://www.slideshare.net/anikishaev/ Skype creotiv.in.ua Mobile +380632410666

On Sun, Nov 11, 2018 at 8:28 PM Burak Aksar notifications@github.com wrote:

How can I duplicate the packets? I will try to update python Bluetooth lib also! If these not work, I will try that js version

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/creotiv/MiBand2/issues/16#issuecomment-437692857, or mute the thread https://github.com/notifications/unsubscribe-auth/AAPRDbhuYQlVkEWafxPHrzI5cb2gmcc2ks5uuGxDgaJpZM4YYmBk .