#2205 Gadgetbridge cannot connect to Mi Band 3 after device is rebooted

Open
opened 1 week ago by giner · 8 comments
giner commented 1 week ago

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:

Gadgetbridge cannot connect to Mi Band 3 after device is rebooted

Here is how to reproduce:

  1. Add Mi Band 3 to Gadgetbridge (it is connected now)
  2. Reboot your Android
  3. Gadgetbridge cannot connect to Mi Band anymore

Work around (See the attached Video):

  1. Click "add a new device" and wait for your device to appear
  2. If it fails to find your device do "search" 1 or 2 more times
  3. Without adding of the found device just go back to previous menu (adding the device will result in recent data being lost)
  4. Click on the device to make it try to connect -> in a few seconds the device is connected
  5. Click sync -> all data from the band successfully fetched

Your wearable device is:

  • Mi Band 3 (MiBand 3, MiBand3)
  • HW: V0.23.18.49
  • FW: 2.4.0.32

Your android version is:

  • Android 9 (LineageOS 16.0)

Your Gadgetbridge version is:

  • 0.53.0
#### 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: <details> <summary>Gadgetbridge cannot connect to Mi Band 3 after device is rebooted</summary> Here is how to reproduce: 1. Add Mi Band 3 to Gadgetbridge (it is connected now) 2. Reboot your Android 3. Gadgetbridge cannot connect to Mi Band anymore Work around (See the attached Video): 1. Click "add a new device" and wait for your device to appear 2. If it fails to find your device do "search" 1 or 2 more times 3. Without adding of the found device just go back to previous menu (adding the device will result in recent data being lost) 4. Click on the device to make it try to connect -> in a few seconds the device is connected 5. Click sync -> all data from the band successfully fetched </details> #### Your wearable device is: * Mi Band 3 (MiBand 3, MiBand3) * HW: V0.23.18.49 * FW: 2.4.0.32 #### Your android version is: * Android 9 (LineageOS 16.0) #### Your Gadgetbridge version is: * 0.53.0
Micha_Btz commented 1 week ago
Poster

For my mother with MI Band 2 the same behaivior. I was not able to reconnect it.

For my mother with MI Band 2 the same behaivior. I was not able to reconnect it.
Poster
Owner

This is typical behaviour if the device is not paired at Android Level. Clicking on "add new device" will trigger a device scan and make the device connect.

Is your device paired at android level?

This is typical behaviour if the device is not paired at Android Level. Clicking on "add new device" will trigger a device scan and make the device connect. Is your device paired at android level?
giner commented 1 week ago
Poster

I don't see MiBand in the list of pared devices on Anroid level after pairing in Gadgetbridge. Gadgetbridge settings are default, i.e. bluetooth paring in Gadgetbridge is enabled but doesn't seem to work.

I don't see MiBand in the list of pared devices on Anroid level after pairing in Gadgetbridge. Gadgetbridge settings are default, i.e. bluetooth paring in Gadgetbridge is enabled but doesn't seem to work.
Poster
Owner

@giner

Oh, maybe it broke after tinkering with the pairing activity. Need to check that.

What you can try to do is, pair it in the Android settings when not connected, it should not need confirmation on the band and just work.

After that it should always connect.

@giner Oh, maybe it broke after tinkering with the pairing activity. Need to check that. What you can try to do is, pair it in the Android settings when not connected, it should not need confirmation on the band and just work. After that it should always connect.
giner commented 1 week ago
Poster

@ashimokawa, have just tried that. "Mi Band 3" disappears from the list of paired devices after reboot.

@ashimokawa, have just tried that. "Mi Band 3" disappears from the list of paired devices after reboot.
Poster
Owner

Hmm I just tried with the Amazfit Bip S, and it worked as expected (removed from android settings, pressed + , paired again in gadgetbridge). It was then in the list of paired devices in Android.

I can try later with the Mi Band 3 and Lineage OS 16.0

Hmm I just tried with the Amazfit Bip S, and it worked as expected (removed from android settings, pressed + , paired again in gadgetbridge). It was then in the list of paired devices in Android. I can try later with the Mi Band 3 and Lineage OS 16.0
vanous commented 1 week ago
Poster
Collaborator

I have MB3 here with LOS 16 and they have been working well for many months, also with othe Android ROMs. I just tested again:

LOS16, Companion Pairing disabled in Gb settings:

  • removed MB3 from Gb
  • discover new device, add MB3
  • MB3 was also automatically bonded Android Bluetooth pairing, so it is listed in "Previously connected" devices in BT.
  • reboot phone
  • start Gb, tap MB3 → device connects and works correctly (this is if autostart and autoconnect is not enabled), if this is enabled, the band is connected automatically after phone restart.
I have MB3 here with LOS 16 and they have been working well for many months, also with othe Android ROMs. I just tested again: LOS16, Companion Pairing disabled in Gb settings: - removed MB3 from Gb - discover new device, add MB3 - MB3 was also automatically bonded Android Bluetooth pairing, so it is listed in "Previously connected" devices in BT. - reboot phone - start Gb, tap MB3 → device connects and works correctly (this is if autostart and autoconnect is not enabled), if this is enabled, the band is connected automatically after phone restart.
giner commented 1 week ago
Poster

I've just tried to reinstall Gadgetbridge and hard-reset MiBand3. Doesn't help. Can it have something to do with Android hardware itself? Mine is Xiaomi Redmi Note 4 (mido).

I've just tried to reinstall Gadgetbridge and hard-reset MiBand3. Doesn't help. Can it have something to do with Android hardware itself? Mine is Xiaomi Redmi Note 4 (mido).
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.