Gadgetbridge: Need to sync twice to get all Mi Band 2 activity data

Created on 21 Mar 2017  Â·  6Comments  Â·  Source: Freeyourgadget/Gadgetbridge

To sync all data from my Mi Band 2 I (most of the time) have to sync twice: Atfer the first sync, not all data is received, leaving the last hours in the activity graph empty. Only a second sync process fetches all activity data and fills the graph completely. Do others experience the same issue?
I have a Mi Band 2 with latest FW (v. 1.0.1.39), latest GB on F-Droid (v. 0.18.0) and a HTC One M8 with CM 12.1.

Here is a GB log of the problem (after the first sync completed not all data was fetched, so I synced again to fetch the rest):
gadgetbridge.log.txt
The log looks normal though.

device mi band 2

Most helpful comment

Yes, I noticed this, too! I assume this came in with newer firmware versions. Thanks for the log, will try to fix this.

All 6 comments

Yes, I noticed this, too! I assume this came in with newer firmware versions. Thanks for the log, will try to fix this.

I've been seeing this too with 0.18(.5) and FW 1.0.1.34. I don't think it happened when I was running 0.16.x or 0.17.x.

For some reason I was unable to reproduce this recently. Need to find a pattern when this happens.

Regarding a pattern: I think it only happens when I sync from the main menu and immediately switch to the graph view before the sync process has finished. That way, I don't only need to sync twice, but I can repeat the procedure indefinitely without any data being synced. The data is always synced when I wait for ~2s or more – no need to sync twice then. Can anybody confirm this?

Data is synced.
Caching is the problem.
You can kill the charts activity by swiping it away from the android activity list. And then start charts again.

I am aware of the problem and will invalidate caches after syncing

@ashimokawa want to open another issue for the cache invalidation thing?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ihsan-driveyello picture ihsan-driveyello  Â·  6Comments

robalvsan picture robalvsan  Â·  3Comments

ruimnetob picture ruimnetob  Â·  4Comments

bigretromike picture bigretromike  Â·  8Comments

ghost picture ghost  Â·  7Comments