Android Question Connecting to Mi Band 2 with BLE2 Library

he4a

Member
Licensed User
Longtime User
Hi folks!

I've been trying to write a simple app for mi band 2, but unfortunately I haven't been able to connect it!

I have been using a slightly modified version of the Demo posted in the BLE2 Library Thread:
https://www.b4x.com/android/forum/threads/ble-2-bluetooth-low-energy.59937/



The difficult part with Mi Band 2 is the fact that the connection process is a bit different than it was with mi band 1! You have read and write a few characteristics during the auth process.

Full description is here:
https://stackoverflow.com/questions/41417747/connection-to-mi-band-2


I just can't change the connection process. All I can do with this Library is use the BleManager2 Object with its .Connect function, which doesn't work. Is there another library? Any ideas??

Greetings Rob :)


This is what it looks like: Always Discovering Services, then Disconnected....
123.png
 

he4a

Member
Licensed User
Longtime User
Yes! This is what the successful connection process with the Mi Band 1 looks like.

Missing the "Connected" msg when trying with Mi Band 2... it starts with "Discovering services." and immediately goes to "Disconnected"

Funny enough I have been able to connect to the Mi Band 2 and discover its services and characteristics when using the app "nrf connect" from nordic semiconductor

123.png
 
Upvote 0
Top