Skip to content
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

Backwards Compatibility with Mi Band 1A and 1S #12

Open
rhyswilliamsza opened this issue Mar 31, 2018 · 3 comments
Open

Backwards Compatibility with Mi Band 1A and 1S #12

rhyswilliamsza opened this issue Mar 31, 2018 · 3 comments

Comments

@rhyswilliamsza
Copy link

Hey!

Really love the work. I'd like to help out by introducing backwards compatibility for the Mi Band 1A and 1S. Any tips as to how I should go about doing this, as I've grappled with the code but couldn't get the authentication working correctly. Any tips? I have the necessary UUIDs, however I can't get the GATT service to activate.

Thanks!

Rhys

@vshymanskyy
Copy link
Owner

vshymanskyy commented Mar 31, 2018

@rhyswilliamsza thanks for your interest!
Did you check out this project? https://github.com/freezed-or-frozen/MiBand1A
Does it work for you?
In general, it looks like the protocol is a whole lot different from MiBand 2.

Regarding your question. WebBluetooth requires proper initialization of filters and optionalServices:
https://github.com/vshymanskyy/miband-js/blob/master/src/webapp.js#L28
.. which I believe are different in your case

@vshymanskyy vshymanskyy changed the title Backwards Compatibility Backwards Compatibility with Mi Band 1A and 1S Mar 31, 2018
@rhyswilliamsza
Copy link
Author

I did have a look yeah! Works for 1A, however I have the 1S pulse so the protocol is quite different from even that. I've tried messing around with it, but haven't got very far.

It seems that the 1A and 1S use more standardised BLE protocols.

Let me have a look at that. Not sure how I would implement it, but keen to check it out and have a look. Mind if I send you a message should I get stuck?

@vshymanskyy
Copy link
Owner

Sure. Can't test on my side as i don't have any other MiBands ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants