#2020 Mi Band 4C / Redmi Band

Open
opened 4 weeks ago by michael.offermann · 4 comments
name about
Device request Support Mi Band 4C

Before reporting a bug, please confirm the following:

I got Gadgetbridge from:

If you got it from Google Play, please note that version is unofficial and not supported here; it’s also often quite outdated. Please switch to one of the above versions if you can.

Your issue is:

I got the Mi Band 4C because I thought it would be similar to the Mi Band 4 and thus work with gadgetbridge. Turns out it is something totally different. It does not even work with Mi Fit, but Xiaomi Wear. It would be nice if support could be added. Unfortunately I have found no documentation on protocol or other things.

Your wearable device is: Mi Band 4C / Redmi Band

Firmware version 2.7.1

Please specify model and firmware version if possible

Your android version is: 8.1.0

Your Gadgetbridge version is: 0.47.1

New issues about already solved/documented topics could be closed without further comments. Same for too generic or incomplete reports.

--- name: Device request about: Support Mi Band 4C --- #### 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) ### I got Gadgetbridge from: * [X] F-Droid * [ ] I built it myself from source code (specify tag / commit) If you got it from Google Play, please note [that version](https://github.com/TaaviE/Gadgetbridge) is unofficial and not supported here; it's also often quite outdated. Please switch to one of the above versions if you can. #### Your issue is: I got the Mi Band 4C because I thought it would be similar to the Mi Band 4 and thus work with gadgetbridge. Turns out it is something totally different. It does not even work with Mi Fit, but Xiaomi Wear. It would be nice if support could be added. Unfortunately I have found no documentation on protocol or other things. #### Your wearable device is: Mi Band 4C / Redmi Band Firmware version 2.7.1 *Please specify model and firmware version if possible* #### Your android version is: 8.1.0 #### Your Gadgetbridge version is: 0.47.1 *New issues about already solved/documented topics could be closed without further comments. Same for too generic or incomplete reports.*
izzy added the
device request
label 4 weeks ago
izzy commented 4 weeks ago

If you want to help getting this started, please take a look at Support for a new Device and maybe also the New Device Tutorial. Any details help – the more, the better 😉

If you want to help getting this started, please take a look at [Support for a new Device](https://codeberg.org/Freeyourgadget/Gadgetbridge/wiki/Support-for-a-new-Device) and maybe also the [New Device Tutorial](https://codeberg.org/Freeyourgadget/Gadgetbridge/wiki/New-Device-Tutorial). Any details help – the more, the better :wink:
ashimokawa commented 3 weeks ago
Owner

Interesting, someone has to figure out if it is the same protocol.
This can easily be done by changing MiBand4Coordinator.java and adding the bluetooth name there.

@michael.offermann

Can you do that?

Interesting, someone has to figure out if it is the same protocol. This can easily be done by changing MiBand4Coordinator.java and adding the bluetooth name there. @michael.offermann Can you do that?
michael.offermann commented 3 weeks ago
Poster

Unfortunately, I think I lack the necessary skill...

But do I understand it correctly :

in this file https://codeberg.org/Freeyourgadget/Gadgetbridge/src/branch/master/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/miband/MiBandCoordinator.java in line 73

 if (macAddress.startsWith(MiBandService.MAC_ADDRESS_FILTER_1_1A)

change “MiBandService” with whatever bluethooth name the MiBand4c has and build again and test?

Unfortunately, I think I lack the necessary skill... But do I understand it correctly : in this file https://codeberg.org/Freeyourgadget/Gadgetbridge/src/branch/master/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/miband/MiBandCoordinator.java in line 73 ``` if (macAddress.startsWith(MiBandService.MAC_ADDRESS_FILTER_1_1A) ``` change "MiBandService" with whatever bluethooth name the MiBand4c has and build again and test?
TaaviE commented 2 weeks ago

@michael.offermann

It’s a Mi Band 4 or related, so take a look at https://codeberg.org/Freeyourgadget/Gadgetbridge/src/branch/master/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huami/miband4/MiBand4Coordinator.java.

On line 51 there’s a check that compares the device’s bluetooth name to a constant, you can add something like || name.equalsIgnoreCase("Mi Band Device Name As It Appears") to the if sentence. You of course need to see how it advertises itself and replace the placeholder I wrote.

@michael.offermann It's a Mi Band 4 or related, so take a look at https://codeberg.org/Freeyourgadget/Gadgetbridge/src/branch/master/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huami/miband4/MiBand4Coordinator.java. On line 51 there's a check that compares the device's bluetooth name to a constant, you can add something like `|| name.equalsIgnoreCase("Mi Band Device Name As It Appears")` to the `if` sentence. You of course need to see how it advertises itself and replace the placeholder I wrote.
Sign in to join this conversation.
No Milestone
No Assignees
4 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.