piggz / harbour-amazfish

Amazfit Bip support for SailfishOS
GNU General Public License v3.0
103 stars 52 forks source link

Amazfit GTR 2 doesn't connect to Xperia 10 II #231

Closed flossgeek closed 1 year ago

flossgeek commented 2 years ago

Steps I've taken:

  1. Pair watch with Pairing key (fetched with Zepp app on Android)
  2. Add Appearance=0x0192 under the [General] heading in /var/lib/bluetooth/[host mac address]/[watch mac address]/info
  3. Try to connect to the watch via Amazfish

Sadly the watch icon keeps loading when I'm trying to connect to the watch (and eventually doesn't connect). What am I missing here? Is it necessary to flash additional firmware to be able to use the watch with Amazfish?

Additional info:

theseer commented 1 year ago

No, I only used the offical app to get it to sign up so I could get the code to use amazfish.

You did try rebooting the watch, right?

theseer commented 1 year ago

Check the amazifsh settings as well: Pully Menu -> Settings -> Device Settings -> Humami Display Items

If all are disabled (for whatever reasons) of course the menu is empty..

flossgeek commented 1 year ago

Thanks a lot! I completely overlooked those settings. It now works as expected!

theseer commented 1 year ago

That implies this issue could be closed I guess? ;-)

flossgeek commented 1 year ago

If others still have issues they can reopen it, but for me it can be closed for sure!

piggz commented 1 year ago

Hi, thanks for resolving this issue, you beat me to it with the display items!

Thaodan commented 1 year ago

GTR2E is unsupported currently. I imagine the daemon picks the wrong backend to use. I will try and add it.

Any news? The GTR2E should work with the GTR2 backend.

I tried hack the existing GTR2 however I get unexpected data.

Mar 12 01:18:49 Xperia1II harbour-amazfishd[28070]: 2023-03-12 01:18:49.336 : Writing to  "dummy" : "0308490a52578dbed8f11554a798155505cc"
Mar 12 01:18:49 Xperia1II harbour-amazfishd[28070]: 2023-03-12 01:18:49.343 : Mi2Band Changed: "dummy" "\x10\x02\x01\x1A""f\x1F\xAF\\\xD0\x91\x89~\x9A\xE3\xC3\x80\xC4\x15]"
Mar 12 01:18:49 Xperia1II harbour-amazfishd[28070]: 2023-03-12 01:18:49.343 : Received random auth number, sending encrypted auth number
Mar 12 01:18:49 Xperia1II harbour-amazfishd[28070]: 2023-03-12 01:18:49.343 : Writing to  "dummy" : "0308490a52578dbed8f11554a798155505cc"
Mar 12 01:18:49 Xperia1II harbour-amazfishd[28070]: 2023-03-12 01:18:49.426 : Mi2Band Changed: "dummy" "\x10\x03\x07"
Mar 12 01:18:49 Xperia1II harbour-amazfishd[28070]: 2023-03-12 01:18:49.426 : Unexpected data
Mar 12 01:18:49 Xperia1II harbour-amazfishd[28070]: 2023-03-12 01:18:49.427 : void HuamiDevice::authenticated(bool) false
Mar 12 01:18:49 Xperia1II harbour-amazfishd[28070]: 2023-03-12 01:18:49.427 : void AbstractDevice::setConnectionState(const QString&) "authfailed"

Gadget bridge uses the same backend for GTR2 and GTR2e.