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

connect to mi band 4-5-6 #1043

Open
advancedcodingenterprise opened this issue Jan 12, 2025 · 1 comment
Open

connect to mi band 4-5-6 #1043

advancedcodingenterprise opened this issue Jan 12, 2025 · 1 comment

Comments

@advancedcodingenterprise

I see it in many newer BLE devices they require confirmation by the device itself for the connection. Which means I have to invoke some sort of write function (I guess) so I can establish connection.
The example I can give and I have troubles is with Mi Smart Band 4.
I am bonding the devices - connecting then when I try to subscribe for heartrate or read hearrate data (on appropriate characteristics) I just don't receive anything. I was wondering if the device required PIN or if I am missing anything since all connections are successfull except reading the data.
Then I saw that the native app of the band forces somehow the band to pop a confirmation for the connection. Now can anyone give me a clue how this can happen? May be I have to write on some characteristics?

@graphefruit
Copy link

So after you can establish the connection but don't receive any data:
What happens when you write some kind of empty bytes to the device after connection?

I know this from my bluetooth devices, where some devices needs a "starting" signal to send the data then after connection.
But I think you need to find out which exact command you need to write.

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

3 participants
@graphefruit @advancedcodingenterprise and others