#1929 Mi Band 5 support

Open
opened 3 weeks ago by TaaviE · 17 comments
TaaviE commented 3 weeks ago
name about
Device request Supporting Mi Band 5

Before reporting a bug, please confirm the following:

Your issue is:

I’ve been requested support for Mi Band 5. I’m creating this issue just to see how much interest there is in the device and if anyone’s willing to pick up adding its support.

Your wearable device is:

Mi Band 5

--- name: Device request about: Supporting Mi Band 5 --- #### Before reporting a bug, please confirm the following: - [X] I have read the [wiki](https://codeberg.org/Freeyourgadget/Gadgetbridge/wiki), and I didn't find a solution to my problem / an answer to my question. - [X] I have searched the [issues](https://codeberg.org/Freeyourgadget/Gadgetbridge/issues), and I didn't find a solution to my problem / an answer to my question. - [X] If you upload an image or other content, please make sure you have read and understood the [Codeberg Terms of Use](https://codeberg.org/codeberg/org/src/branch/master/TermsOfUse.md) #### Your issue is: I've been requested support for Mi Band 5. I'm creating this issue just to see how much interest there is in the device and if anyone's willing to pick up adding its support. #### Your wearable device is: Mi Band 5

Bluetooth device’s name is Mi Smart Band 5, it seems similar to the Mi Band 4 on the software side

Bluetooth device's name is `Mi Smart Band 5`, it seems similar to the Mi Band 4 on the software side
izzy added the
device request
label 3 weeks ago

I’m trying to support it (#1930), but I can’t guarantee my work is gonna be “good” because I’m pretty much a beginner, so if anyone want to check the code feel free to insult me.
Datas like step counter and heartrate number needs to be fixed, but it works for now.

I'm trying to support it (#1930), but I can't guarantee my work is gonna be "good" because I'm pretty much a beginner, so if anyone want to check the code feel free to insult me. Datas like step counter and heartrate number needs to be fixed, but it works for now.
jwillmer commented 2 weeks ago

I see a menu entry for Mi band 5 in the wiki but it is missing the referenced page. On gadgetbridge.org the Mi band 5 information is also missing. Maybe it should be added since the first pull request was merged? #1930

I see a menu entry for Mi band 5 in the wiki but it is missing the referenced page. On gadgetbridge.org the Mi band 5 information is also missing. Maybe it should be added since the first pull request was merged? https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/1930

I see a menu entry for Mi band 5 in the wiki but it is missing the referenced page. On gadgetbridge.org the Mi band 5 information is also missing. Maybe it should be added since the first pull request was merged? #1930

That’s true, I just created the reference page, @ashimokawa hope it’s not a problem. Maybe the README.md can be updated with the next release.

> I see a menu entry for Mi band 5 in the wiki but it is missing the referenced page. On gadgetbridge.org the Mi band 5 information is also missing. Maybe it should be added since the first pull request was merged? https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/1930 That's true, I just created the reference page, @ashimokawa hope it's not a problem. Maybe the README.md can be updated with the next release.
ashimokawa commented 2 weeks ago
Owner

@odavo32nof

No not a problem, thanks!

@odavo32nof No not a problem, thanks!
juodumas commented 1 week ago

@odavo32nof, how did you connect to the Mi Band 5?

I got the auth key, but then I click on the Mi Band 5 entry in gadgetbridge discovery, I can’t find the “Auth key” setting like here https://i.imgur.com/QEdTTbr.png (from https://codeberg.org/Freeyourgadget/Gadgetbridge/wiki/Huami-Server-Pairing). Also the title at the top is “Mi Band / Amazfit settings” for me instead of “Device specific settings”...

@odavo32nof, how did you connect to the Mi Band 5? I got the auth key, but then I click on the Mi Band 5 entry in gadgetbridge discovery, I can't find the "Auth key" setting like here https://i.imgur.com/QEdTTbr.png (from https://codeberg.org/Freeyourgadget/Gadgetbridge/wiki/Huami-Server-Pairing). Also the title at the top is "Mi Band / Amazfit settings" for me instead of "Device specific settings"...
juodumas commented 1 week ago

Oh, sorry, didn’t notice that I should do a long press, not a short press. But after a long press on “Mi Smart Band 5” I see “Device specific settings” with these options only:

  • Wearing left or right?
  • Use low-latency mode for firmware flashing?
  • Alarms to reserve for upcoming events
  • Device time offset in hours

My gadgetbridge version is 0.45.1.

Oh, sorry, didn't notice that I should do a long press, not a short press. But after a long press on "Mi Smart Band 5" I see "Device specific settings" with these options only: * Wearing left or right? * Use low-latency mode for firmware flashing? * Alarms to reserve for upcoming events * Device time offset in hours My gadgetbridge version is 0.45.1.
ashimokawa commented 1 week ago
Owner

@juodumas

long press on Mi Band 5 not short tap.

Is your Mi Band 5 calles “Mi Smart Band 5”?

@juodumas long press on Mi Band 5 not short tap. Is your Mi Band 5 calles "Mi Smart Band 5"?
juodumas commented 1 week ago

@ashimokawa yeah, now I see that my version is too old, initial support landed only in 0.46.0. How do I get a newer version? Currently using fdroid.

@ashimokawa yeah, now I see that my version is too old, initial support landed only in 0.46.0. How do I get a newer version? Currently using fdroid.
ashimokawa commented 1 week ago
Owner

@juodumas
Mi Band 5 support is only in Gadgetbridge 0.46.0, scheduled for release tomorrow (hopefully).

After that wait for F-Droid build. Takes between 1 and 10 days.

@juodumas Mi Band 5 support is only in Gadgetbridge 0.46.0, scheduled for release tomorrow (hopefully). After that wait for F-Droid build. Takes between 1 and 10 days.
juodumas commented 1 week ago

Do you have a build that I could test?

Do you have a build that I could test?

Do you have a build that I could test?

I suggest you wait for tomorrow, so you can get a reliable release; I’m still on the debug one because I’m testing. While we’re there tho, can you press the three-dot button on the GB main menù and write what’s you HW version? A new firmware is out too

Edit: I added the latest update too there #1950!

> Do you have a build that I could test? I suggest you wait for tomorrow, so you can get a reliable release; I'm still on the debug one because I'm testing. While we're there tho, can you press the three-dot button on the GB main menù and write what's you HW version? A new firmware is out too Edit: I added the latest update too there #1950!
markus_be commented 1 week ago

Hi,

the connection to the Mi Band 5 (Firmware 1.0.1.16) Works fine with 0.46 . Thank you for the Implementation.

I have noticed few issues with Music player (overlay “cant get the song name”) and the Vibration modes (does not change). I will check the other open issues and if they not exist i will open them.

Hi, the connection to the Mi Band 5 (Firmware 1.0.1.16) Works fine with 0.46 . Thank you for the Implementation. I have noticed few issues with Music player (overlay "cant get the song name") and the Vibration modes (does not change). I will check the other open issues and if they not exist i will open them.
ashimokawa commented 1 week ago
Owner

@markus_be

See #1911 about the patterns

@markus_be See #1911 about the patterns
markus_be commented 1 week ago

@ashimokawa

thanks for the hint.
I am try to get a log from my huawei at the moment.
Will update #1911 when iam done.

Workaround for the Music player is to press play in the second you open the player on the Mi Band. Then you can control everything and the overlay is gone.

@ashimokawa thanks for the hint. I am try to get a log from my huawei at the moment. Will update #1911 when iam done. Workaround for the Music player is to press play in the second you open the player on the Mi Band. Then you can control everything and the overlay is gone.
orcaxs commented 3 days ago

Hi,
I’ve successfully paired with Mi Band 5 on 0.46.
I have noticed that custom watchfaces aren’t installable, saying Element cannot be installed. Is it expected, or should I open a new issue with loggings?
Thanks.

Hi, I've successfully paired with Mi Band 5 on 0.46. I have noticed that custom watchfaces aren't installable, saying `Element cannot be installed`. Is it expected, or should I open a new issue with loggings? Thanks.

Hi,
I’ve successfully paired with Mi Band 5 on 0.46.
I have noticed that custom watchfaces aren’t installable, saying Element cannot be installed. Is it expected, or should I open a new issue with loggings?
Thanks.

Yea, it seems like the watchface header for Mi Band 5 is different and I guess the data too. By putting the wf header in MiBand5Support (it’s 0x55, 0x49, 0x48, 0x48, 0x01, 0x00), GB can recognize the file but is unable to succesfully flash it. I need to investigate the watchface code; pinging @ashimokawa since I saw you committed code for Mi Band 4 WF and maybe you already know what’s going on.

> Hi, > I've successfully paired with Mi Band 5 on 0.46. > I have noticed that custom watchfaces aren't installable, saying `Element cannot be installed`. Is it expected, or should I open a new issue with loggings? > Thanks. Yea, it seems like the watchface header for Mi Band 5 is different and I guess the data too. By putting the wf header in MiBand5Support (it's 0x55, 0x49, 0x48, 0x48, 0x01, 0x00), GB can recognize the file but is unable to succesfully flash it. I need to investigate the watchface code; pinging @ashimokawa since I saw you committed code for Mi Band 4 WF and maybe you already know what's going on.
Sign in to join this conversation.
No Milestone
No Assignees
7 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.