Notifications on different characteristics break the activity sync #142

Closed
opened 6 years ago by daniele · 2 comments
daniele commented 6 years ago
Owner

The band may decide spontaneously to send notifications on different characteristics anytime. Especially on long activity data transfer this yields to an abnormal termination of the sync process, that remains stuck (the notification remains on screen with the progressbar blocked) with the device marked as busy.

10-13 14:53:21.942  19472-19489/nodomain.freeyourgadget.gadgetbridge D/nodomain.freeyourgadget.gadgetbridge.service.btle.BtLEQueue﹕ characteristic changed: 0000ff07-0000-1000-8000-00805f9b34fb
    [ 10-13 14:53:21.944 19472:19489 D/nodomain.freeyourgadget.gadgetbridge.service.devices.miband.operations.FetchActivityOperatioactivity data: length: 20, remaining bytes: 389
10-13 14:53:21.957  19472-19489/nodomain.freeyourgadget.gadgetbridge D/nodomain.freeyourgadget.gadgetbridge.service.btle.BtLEQueue﹕ characteristic changed: 0000ff07-0000-1000-8000-00805f9b34fb
    [ 10-13 14:53:21.960 19472:19489 D/nodomain.freeyourgadget.gadgetbridge.service.devices.miband.operations.FetchActivityOperatioactivity data: length: 20, remaining bytes: 369
10-13 14:53:21.971  19472-19489/nodomain.freeyourgadget.gadgetbridge D/nodomain.freeyourgadget.gadgetbridge.service.btle.BtLEQueue﹕ characteristic changed: 0000ff03-0000-1000-8000-00805f9b34fb
10-13 14:53:21.974  19472-19489/nodomain.freeyourgadget.gadgetbridge W/nodomain.freeyourgadget.gadgetbridge.service.devices.miband.MiBandSupport﹕ DATA: 0x 8
10-13 14:53:21.976  19472-19489/nodomain.freeyourgadget.gadgetbridge D/nodomain.freeyourgadget.gadgetbridge.service.btle.BtLEQueue﹕ characteristic changed: 0000ff06-0000-1000-8000-00805f9b34fb
10-13 14:53:21.977  19472-19489/nodomain.freeyourgadget.gadgetbridge D/nodomain.freeyourgadget.gadgetbridge.service.devices.miband.MiBandSupport﹕ realtime steps: 1552
10-13 14:53:21.980  19472-19489/nodomain.freeyourgadget.gadgetbridge D/nodomain.freeyourgadget.gadgetbridge.service.btle.BtLEQueue﹕ characteristic changed: 0000ff06-0000-1000-8000-00805f9b34fb
10-13 14:53:21.981  19472-19489/nodomain.freeyourgadget.gadgetbridge D/nodomain.freeyourgadget.gadgetbridge.service.devices.miband.MiBandSupport﹕ realtime steps: 1553
10-13 14:53:21.984  19472-19489/nodomain.freeyourgadget.gadgetbridge D/nodomain.freeyourgadget.gadgetbridge.service.btle.BtLEQueue﹕ characteristic changed: 0000ff06-0000-1000-8000-00805f9b34fb
10-13 14:53:21.986  19472-19489/nodomain.freeyourgadget.gadgetbridge D/nodomain.freeyourgadget.gadgetbridge.service.devices.miband.MiBandSupport﹕ realtime steps: 1555
10-13 14:53:21.988  19472-19489/nodomain.freeyourgadget.gadgetbridge D/nodomain.freeyourgadget.gadgetbridge.service.btle.BtLEQueue﹕ characteristic changed: 0000ff06-0000-1000-8000-00805f9b34fb
10-13 14:53:21.989  19472-19489/nodomain.freeyourgadget.gadgetbridge D/nodomain.freeyourgadget.gadgetbridge.service.devices.miband.MiBandSupport﹕ realtime steps: 1556
10-13 14:53:21.989  19472-19489/nodomain.freeyourgadget.gadgetbridge D/nodomain.freeyourgadget.gadgetbridge.service.btle.BtLEQueue﹕ characteristic write: 0000ff05-0000-1000-8000-00805f9b34fb (success)
10-13 14:53:21.990  19472-19489/nodomain.freeyourgadget.gadgetbridge I/nodomain.freeyourgadget.gadgetbridge.service.devices.miband.MiBandSupport﹕ handleControlPoint write status:0
10-13 14:53:21.990  19472-19489/nodomain.freeyourgadget.gadgetbridge I/nodomain.freeyourgadget.gadgetbridge.service.devices.miband.MiBandSupport﹕ handleControlPoint WROTE DATA:0x       a
10-13 14:53:21.991  19472-19489/nodomain.freeyourgadget.gadgetbridge I/nodomain.freeyourgadget.gadgetbridge.service.devices.miband.MiBandSupport﹕ handleControlPoint WROTE DATA:0x       f
10-13 14:53:21.993  19472-19489/nodomain.freeyourgadget.gadgetbridge I/nodomain.freeyourgadget.gadgetbridge.service.devices.miband.MiBandSupport﹕ handleControlPoint WROTE DATA:0x       8
10-13 14:53:21.994  19472-19489/nodomain.freeyourgadget.gadgetbridge I/nodomain.freeyourgadget.gadgetbridge.service.devices.miband.MiBandSupport﹕ handleControlPoint WROTE DATA:0x      11
10-13 14:53:21.994  19472-19489/nodomain.freeyourgadget.gadgetbridge I/nodomain.freeyourgadget.gadgetbridge.service.devices.miband.MiBandSupport﹕ handleControlPoint WROTE DATA:0x      10
10-13 14:53:21.995  19472-19489/nodomain.freeyourgadget.gadgetbridge I/nodomain.freeyourgadget.gadgetbridge.service.devices.miband.MiBandSupport﹕ handleControlPoint WROTE DATA:0x       f
10-13 14:53:21.996  19472-19489/nodomain.freeyourgadget.gadgetbridge I/nodomain.freeyourgadget.gadgetbridge.service.devices.miband.MiBandSupport﹕ handleControlPoint WROTE DATA:0x      20
10-13 14:53:21.996  19472-19489/nodomain.freeyourgadget.gadgetbridge I/nodomain.freeyourgadget.gadgetbridge.service.devices.miband.MiBandSupport﹕ handleControlPoint WROTE DATA:0x      dd
10-13 14:53:21.997  19472-19489/nodomain.freeyourgadget.gadgetbridge I/nodomain.freeyourgadget.gadgetbridge.service.devices.miband.MiBandSupport﹕ handleControlPoint WROTE DATA:0x      76
The band may decide spontaneously to send notifications on different characteristics anytime. Especially on long activity data transfer this yields to an abnormal termination of the sync process, that remains stuck (the notification remains on screen with the progressbar blocked) with the device marked as busy. ``` 10-13 14:53:21.942 19472-19489/nodomain.freeyourgadget.gadgetbridge D/nodomain.freeyourgadget.gadgetbridge.service.btle.BtLEQueue﹕ characteristic changed: 0000ff07-0000-1000-8000-00805f9b34fb [ 10-13 14:53:21.944 19472:19489 D/nodomain.freeyourgadget.gadgetbridge.service.devices.miband.operations.FetchActivityOperatioactivity data: length: 20, remaining bytes: 389 10-13 14:53:21.957 19472-19489/nodomain.freeyourgadget.gadgetbridge D/nodomain.freeyourgadget.gadgetbridge.service.btle.BtLEQueue﹕ characteristic changed: 0000ff07-0000-1000-8000-00805f9b34fb [ 10-13 14:53:21.960 19472:19489 D/nodomain.freeyourgadget.gadgetbridge.service.devices.miband.operations.FetchActivityOperatioactivity data: length: 20, remaining bytes: 369 10-13 14:53:21.971 19472-19489/nodomain.freeyourgadget.gadgetbridge D/nodomain.freeyourgadget.gadgetbridge.service.btle.BtLEQueue﹕ characteristic changed: 0000ff03-0000-1000-8000-00805f9b34fb 10-13 14:53:21.974 19472-19489/nodomain.freeyourgadget.gadgetbridge W/nodomain.freeyourgadget.gadgetbridge.service.devices.miband.MiBandSupport﹕ DATA: 0x 8 10-13 14:53:21.976 19472-19489/nodomain.freeyourgadget.gadgetbridge D/nodomain.freeyourgadget.gadgetbridge.service.btle.BtLEQueue﹕ characteristic changed: 0000ff06-0000-1000-8000-00805f9b34fb 10-13 14:53:21.977 19472-19489/nodomain.freeyourgadget.gadgetbridge D/nodomain.freeyourgadget.gadgetbridge.service.devices.miband.MiBandSupport﹕ realtime steps: 1552 10-13 14:53:21.980 19472-19489/nodomain.freeyourgadget.gadgetbridge D/nodomain.freeyourgadget.gadgetbridge.service.btle.BtLEQueue﹕ characteristic changed: 0000ff06-0000-1000-8000-00805f9b34fb 10-13 14:53:21.981 19472-19489/nodomain.freeyourgadget.gadgetbridge D/nodomain.freeyourgadget.gadgetbridge.service.devices.miband.MiBandSupport﹕ realtime steps: 1553 10-13 14:53:21.984 19472-19489/nodomain.freeyourgadget.gadgetbridge D/nodomain.freeyourgadget.gadgetbridge.service.btle.BtLEQueue﹕ characteristic changed: 0000ff06-0000-1000-8000-00805f9b34fb 10-13 14:53:21.986 19472-19489/nodomain.freeyourgadget.gadgetbridge D/nodomain.freeyourgadget.gadgetbridge.service.devices.miband.MiBandSupport﹕ realtime steps: 1555 10-13 14:53:21.988 19472-19489/nodomain.freeyourgadget.gadgetbridge D/nodomain.freeyourgadget.gadgetbridge.service.btle.BtLEQueue﹕ characteristic changed: 0000ff06-0000-1000-8000-00805f9b34fb 10-13 14:53:21.989 19472-19489/nodomain.freeyourgadget.gadgetbridge D/nodomain.freeyourgadget.gadgetbridge.service.devices.miband.MiBandSupport﹕ realtime steps: 1556 10-13 14:53:21.989 19472-19489/nodomain.freeyourgadget.gadgetbridge D/nodomain.freeyourgadget.gadgetbridge.service.btle.BtLEQueue﹕ characteristic write: 0000ff05-0000-1000-8000-00805f9b34fb (success) 10-13 14:53:21.990 19472-19489/nodomain.freeyourgadget.gadgetbridge I/nodomain.freeyourgadget.gadgetbridge.service.devices.miband.MiBandSupport﹕ handleControlPoint write status:0 10-13 14:53:21.990 19472-19489/nodomain.freeyourgadget.gadgetbridge I/nodomain.freeyourgadget.gadgetbridge.service.devices.miband.MiBandSupport﹕ handleControlPoint WROTE DATA:0x a 10-13 14:53:21.991 19472-19489/nodomain.freeyourgadget.gadgetbridge I/nodomain.freeyourgadget.gadgetbridge.service.devices.miband.MiBandSupport﹕ handleControlPoint WROTE DATA:0x f 10-13 14:53:21.993 19472-19489/nodomain.freeyourgadget.gadgetbridge I/nodomain.freeyourgadget.gadgetbridge.service.devices.miband.MiBandSupport﹕ handleControlPoint WROTE DATA:0x 8 10-13 14:53:21.994 19472-19489/nodomain.freeyourgadget.gadgetbridge I/nodomain.freeyourgadget.gadgetbridge.service.devices.miband.MiBandSupport﹕ handleControlPoint WROTE DATA:0x 11 10-13 14:53:21.994 19472-19489/nodomain.freeyourgadget.gadgetbridge I/nodomain.freeyourgadget.gadgetbridge.service.devices.miband.MiBandSupport﹕ handleControlPoint WROTE DATA:0x 10 10-13 14:53:21.995 19472-19489/nodomain.freeyourgadget.gadgetbridge I/nodomain.freeyourgadget.gadgetbridge.service.devices.miband.MiBandSupport﹕ handleControlPoint WROTE DATA:0x f 10-13 14:53:21.996 19472-19489/nodomain.freeyourgadget.gadgetbridge I/nodomain.freeyourgadget.gadgetbridge.service.devices.miband.MiBandSupport﹕ handleControlPoint WROTE DATA:0x 20 10-13 14:53:21.996 19472-19489/nodomain.freeyourgadget.gadgetbridge I/nodomain.freeyourgadget.gadgetbridge.service.devices.miband.MiBandSupport﹕ handleControlPoint WROTE DATA:0x dd 10-13 14:53:21.997 19472-19489/nodomain.freeyourgadget.gadgetbridge I/nodomain.freeyourgadget.gadgetbridge.service.devices.miband.MiBandSupport﹕ handleControlPoint WROTE DATA:0x 76 ```
Owner

Do you think we can make the Mi Band not send unrelated notifications? E.g. by disabling them before starting the activity fetching?

Can you reprodiuce this?

Do you think we can make the Mi Band _not_ send unrelated notifications? E.g. by disabling them before starting the activity fetching? Can you reprodiuce this?
Owner

Should be fixed, closing.

Should be fixed, closing.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.