piggz / harbour-amazfish

Amazfit Bip support for SailfishOS
GNU General Public License v3.0
103 stars 52 forks source link

[Device] Support for Mi Band 2 #15

Closed idnovic closed 4 years ago

idnovic commented 6 years ago

Hi I own a Mi Band 2. Can you add support for it? I can help with testing. I use linux and sailfish os .

idnovic commented 6 years ago

Just found miband 2 in the src folder, you did not include it in the changelog. Gonna test it out after I charged my miband.

piggz commented 6 years ago

its named that because the protocol is approx the same.

what is the name returned when scanning in sailfish BT dialog? currently i filter on Amazfit*, but it will be easy to change, you can just edit Pair-page.qml to try

idnovic commented 6 years ago

MI Band 2

above is the exacte return, first I get a mac address then the name above gets displayed (yes MI not Mi)

idnovic commented 6 years ago

I edited the settings and put "MI Band 2" in. but your app is stuck at "Connecting to watch..."

piggz commented 6 years ago

Things you could try: Make sure its not paired in the BT settings page After trying to pair, what is the ConnectionState in th debug window? When stuck, leave the pair window open, and switch back to the sailfish settings, and try and pair there, it might prompt my app to send the auth code

idnovic commented 6 years ago

I followed you suggestions, unpaired at the settings page, connection state before was pairing.

Now I am connected. Seems to work. Took a long time to pair. Like 1 Minute after the device was found. Battery state is shown. Pulse state and reading seems to work. Let me go a few steps. brb

idnovic commented 6 years ago

steps do not seem to be syncronised

piggz commented 4 years ago

App now supports band 2, 3, and 4.