InfiniTimeOrg / InfiniTime

Firmware for Pinetime smartwatch written in C++ and based on FreeRTOS
GNU General Public License v3.0
2.64k stars 903 forks source link

InfiniTime v1.12.0+ rejects writes from Android companion app Gadgetbridge #1866

Closed kimimaru4000 closed 9 months ago

kimimaru4000 commented 9 months ago

Verification

What happened?

I cannot connect to my PineTime running InfiniTime 1.12.0 or above with Gadgetbridge.

What should happen instead?

I should be able to connect to my PineTime running InfiniTime 1.12.0 or above with Gadgetbridge.

Reproduction steps

  1. I upgraded my PineTime to InfiniTime 1.12.0 (I tried 1.13.0 as well).
  2. Try to connect to the PineTime with Gadgetbridge on Android.
  3. Gadgetbridge stays stuck in a "Connecting..." state, seemingly unable to actually connect to the watch.

More details?

This appears to be a regression, as connecting works with InfiniTime 1.11.0.

My PineTime is sealed, and I'm running Gadgetbridge on LineageOS 17.1, an Android 10 device.

I posted on the Gadgetbridge issue tracker and left Gadgetbridge logs when attempting to connect to the PineTime. I'll repost them here:

00:27:29.045 [main] INFO  n.f.g.Logging - Gadgetbridge version: 0.75.1-bb17a0731
00:27:30.781 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.connect
00:27:30.787 [main] INFO  n.f.g.s.b.BtLEQueue - Attempting to connect to InfiniTime
00:27:30.789 [Gadgetbridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - Queue Dispatch Thread started.
00:27:30.797 [main] DEBUG n.f.g.s.b.BtLEQueue - new device connection state: CONNECTING
00:27:30.824 [main] INFO  n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: false
00:27:30.830 [main] INFO  n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: false
00:27:30.925 [main] DEBUG n.f.g.e.NotificationListener - Notification 1 posted: packageName=nodomain.freeyourgadget.gadgetbridge, priority=0, category=null
00:27:30.927 [main] INFO  n.f.g.e.NotificationListener - Not forwarding notification, screen seems to be on and settings do not allow this
00:27:30.927 [main] INFO  n.f.g.e.NotificationListener - Ignoring notification: nodomain.freeyourgadget.gadgetbridge
00:27:30.946 [main] DEBUG n.f.g.e.NotificationListener - Notification 1 posted: packageName=nodomain.freeyourgadget.gadgetbridge, priority=0, category=null
00:27:30.948 [main] INFO  n.f.g.e.NotificationListener - Not forwarding notification, screen seems to be on and settings do not allow this
00:27:30.949 [main] INFO  n.f.g.e.NotificationListener - Ignoring notification: nodomain.freeyourgadget.gadgetbridge
00:27:31.059 [Binder:31964_3] DEBUG n.f.g.s.b.BtLEQueue - connection state change, newState: 2 (success)
00:27:31.060 [Binder:31964_3] INFO  n.f.g.s.b.BtLEQueue - Connected to GATT server.
00:27:31.060 [Binder:31964_3] DEBUG n.f.g.s.b.BtLEQueue - new device connection state: CONNECTED
00:27:31.061 [Binder:31964_3] INFO  n.f.g.s.b.BtLEQueue - Attempting to start service discovery
00:27:31.062 [main] INFO  n.f.g.e.BluetoothConnectReceiver - connection attempt detected from EB:E5:12:75:F5:90(InfiniTime)
00:27:31.086 [main] INFO  n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: false
00:27:31.097 [Binder:31964_3] DEBUG n.f.g.s.d.p.PineTimeJFSupport - discovered unsupported service: Generic Access: 00001800-0000-1000-8000-00805f9b34fb
00:27:31.099 [Binder:31964_3] DEBUG n.f.g.s.d.p.PineTimeJFSupport - discovered unsupported service: Generic Attribute: 00001801-0000-1000-8000-00805f9b34fb
00:27:31.099 [Binder:31964_3] DEBUG n.f.g.s.d.p.PineTimeJFSupport - discovered supported service: Device Information: 0000180a-0000-1000-8000-00805f9b34fb
00:27:31.100 [Binder:31964_3] INFO  n.f.g.s.d.p.PineTimeJFSupport -     characteristic: Manufacturer Name String: 00002a29-0000-1000-8000-00805f9b34fb
00:27:31.100 [Binder:31964_3] INFO  n.f.g.s.d.p.PineTimeJFSupport -     characteristic: Model Number String: 00002a24-0000-1000-8000-00805f9b34fb
00:27:31.100 [Binder:31964_3] INFO  n.f.g.s.d.p.PineTimeJFSupport -     characteristic: Serial Number String: 00002a25-0000-1000-8000-00805f9b34fb
00:27:31.101 [Binder:31964_3] INFO  n.f.g.s.d.p.PineTimeJFSupport -     characteristic: Firmware Revision String: 00002a26-0000-1000-8000-00805f9b34fb
00:27:31.101 [Binder:31964_3] INFO  n.f.g.s.d.p.PineTimeJFSupport -     characteristic: Hardware Revision String: 00002a27-0000-1000-8000-00805f9b34fb
00:27:31.101 [Binder:31964_3] INFO  n.f.g.s.d.p.PineTimeJFSupport -     characteristic: Software Revision String: 00002a28-0000-1000-8000-00805f9b34fb
00:27:31.101 [Binder:31964_3] DEBUG n.f.g.s.d.p.PineTimeJFSupport - discovered supported service: Current Time Service: 00001805-0000-1000-8000-00805f9b34fb
00:27:31.101 [Binder:31964_3] INFO  n.f.g.s.d.p.PineTimeJFSupport -     characteristic: Current Time: 00002a2b-0000-1000-8000-00805f9b34fb
00:27:31.102 [Binder:31964_3] DEBUG n.f.g.s.d.p.PineTimeJFSupport - discovered supported service: Unknown Service: 00000000-78fc-48fe-8e23-433b3a1942d0
00:27:31.102 [Binder:31964_3] INFO  n.f.g.s.d.p.PineTimeJFSupport -     characteristic: Unknown Characteristic: 00000001-78fc-48fe-8e23-433b3a1942d0
00:27:31.102 [Binder:31964_3] INFO  n.f.g.s.d.p.PineTimeJFSupport -     characteristic: Unknown Characteristic: 00000002-78fc-48fe-8e23-433b3a1942d0
00:27:31.102 [Binder:31964_3] INFO  n.f.g.s.d.p.PineTimeJFSupport -     characteristic: Unknown Characteristic: 00000004-78fc-48fe-8e23-433b3a1942d0
00:27:31.103 [Binder:31964_3] INFO  n.f.g.s.d.p.PineTimeJFSupport -     characteristic: Unknown Characteristic: 00000003-78fc-48fe-8e23-433b3a1942d0
00:27:31.103 [Binder:31964_3] INFO  n.f.g.s.d.p.PineTimeJFSupport -     characteristic: Unknown Characteristic: 00000005-78fc-48fe-8e23-433b3a1942d0
00:27:31.103 [Binder:31964_3] INFO  n.f.g.s.d.p.PineTimeJFSupport -     characteristic: Unknown Characteristic: 00000006-78fc-48fe-8e23-433b3a1942d0
00:27:31.103 [Binder:31964_3] INFO  n.f.g.s.d.p.PineTimeJFSupport -     characteristic: Unknown Characteristic: 00000007-78fc-48fe-8e23-433b3a1942d0
00:27:31.104 [Binder:31964_3] INFO  n.f.g.s.d.p.PineTimeJFSupport -     characteristic: Unknown Characteristic: 00000007-78fc-48fe-8e23-433b3a1942d0
00:27:31.104 [Binder:31964_3] INFO  n.f.g.s.d.p.PineTimeJFSupport -     characteristic: Unknown Characteristic: 00000008-78fc-48fe-8e23-433b3a1942d0
00:27:31.104 [Binder:31964_3] INFO  n.f.g.s.d.p.PineTimeJFSupport -     characteristic: Unknown Characteristic: 00000009-78fc-48fe-8e23-433b3a1942d0
00:27:31.104 [Binder:31964_3] INFO  n.f.g.s.d.p.PineTimeJFSupport -     characteristic: Unknown Characteristic: 0000000a-78fc-48fe-8e23-433b3a1942d0
00:27:31.104 [Binder:31964_3] INFO  n.f.g.s.d.p.PineTimeJFSupport -     characteristic: Unknown Characteristic: 0000000b-78fc-48fe-8e23-433b3a1942d0
00:27:31.105 [Binder:31964_3] INFO  n.f.g.s.d.p.PineTimeJFSupport -     characteristic: Unknown Characteristic: 0000000c-78fc-48fe-8e23-433b3a1942d0
00:27:31.105 [Binder:31964_3] DEBUG n.f.g.s.d.p.PineTimeJFSupport - discovered supported service: Unknown Service: 00040000-78fc-48fe-8e23-433b3a1942d0
00:27:31.105 [Binder:31964_3] INFO  n.f.g.s.d.p.PineTimeJFSupport -     characteristic: Unknown Characteristic: 00040001-78fc-48fe-8e23-433b3a1942d0
00:27:31.105 [Binder:31964_3] INFO  n.f.g.s.d.p.PineTimeJFSupport -     characteristic: Unknown Characteristic: 00040002-78fc-48fe-8e23-433b3a1942d0
00:27:31.109 [Binder:31964_3] DEBUG n.f.g.s.d.p.PineTimeJFSupport - discovered supported service: Unknown Service: 00010000-78fc-48fe-8e23-433b3a1942d0
00:27:31.110 [Binder:31964_3] INFO  n.f.g.s.d.p.PineTimeJFSupport -     characteristic: Unknown Characteristic: 00010001-78fc-48fe-8e23-433b3a1942d0
00:27:31.110 [Binder:31964_3] INFO  n.f.g.s.d.p.PineTimeJFSupport -     characteristic: Unknown Characteristic: 00010002-78fc-48fe-8e23-433b3a1942d0
00:27:31.111 [Binder:31964_3] INFO  n.f.g.s.d.p.PineTimeJFSupport -     characteristic: Unknown Characteristic: 00010003-78fc-48fe-8e23-433b3a1942d0
00:27:31.111 [Binder:31964_3] INFO  n.f.g.s.d.p.PineTimeJFSupport -     characteristic: Unknown Characteristic: 00010004-78fc-48fe-8e23-433b3a1942d0
00:27:31.111 [Binder:31964_3] DEBUG n.f.g.s.d.p.PineTimeJFSupport - discovered supported service: Alert Notification Service: 00001811-0000-1000-8000-00805f9b34fb
00:27:31.111 [Binder:31964_3] INFO  n.f.g.s.d.p.PineTimeJFSupport -     characteristic: New Alert: 00002a46-0000-1000-8000-00805f9b34fb
00:27:31.112 [Binder:31964_3] INFO  n.f.g.s.d.p.PineTimeJFSupport -     characteristic: Unknown Characteristic: 00020001-78fc-48fe-8e23-433b3a1942d0
00:27:31.112 [Binder:31964_3] DEBUG n.f.g.s.d.p.PineTimeJFSupport - discovered unsupported service: Unknown Service: 00001530-1212-efde-1523-785feabcd123
00:27:31.114 [Binder:31964_3] DEBUG n.f.g.s.d.p.PineTimeJFSupport - discovered supported service: Battery Service: 0000180f-0000-1000-8000-00805f9b34fb
00:27:31.114 [Binder:31964_3] INFO  n.f.g.s.d.p.PineTimeJFSupport -     characteristic: Battery Level: 00002a19-0000-1000-8000-00805f9b34fb
00:27:31.116 [Binder:31964_3] DEBUG n.f.g.s.d.p.PineTimeJFSupport - discovered unsupported service: Immediate Alert: 00001802-0000-1000-8000-00805f9b34fb
00:27:31.117 [Binder:31964_3] DEBUG n.f.g.s.d.p.PineTimeJFSupport - discovered unsupported service: Heart Rate: 0000180d-0000-1000-8000-00805f9b34fb
00:27:31.117 [Binder:31964_3] DEBUG n.f.g.s.d.p.PineTimeJFSupport - discovered supported service: Unknown Service: 00030000-78fc-48fe-8e23-433b3a1942d0
00:27:31.117 [Binder:31964_3] INFO  n.f.g.s.d.p.PineTimeJFSupport -     characteristic: Unknown Characteristic: 00030001-78fc-48fe-8e23-433b3a1942d0
00:27:31.117 [Binder:31964_3] INFO  n.f.g.s.d.p.PineTimeJFSupport -     characteristic: Unknown Characteristic: 00030002-78fc-48fe-8e23-433b3a1942d0
00:27:31.118 [Binder:31964_3] DEBUG n.f.g.s.d.p.PineTimeJFSupport - discovered unsupported service: Unknown Service: 0000febb-0000-1000-8000-00805f9b34fb
00:27:31.118 [Binder:31964_3] DEBUG n.f.g.s.d.p.PineTimeJFSupport - Requesting Device Info!
00:27:31.118 [Binder:31964_3] WARN  n.f.g.s.b.TransactionBuilder - Unable to read characteristic: null
00:27:31.119 [Binder:31964_3] WARN  n.f.g.s.b.TransactionBuilder - Unable to read characteristic: null
00:27:31.119 [Binder:31964_3] WARN  n.f.g.s.b.TransactionBuilder - Unable to read characteristic: null
00:27:31.119 [Binder:31964_3] WARN  n.f.g.s.b.TransactionBuilder - Unable to write characteristic: null
00:27:31.120 [Binder:31964_3] DEBUG n.f.g.s.b.BtLEQueue - about to add: 00:27:31: Transaction task: set time with 1 actions
00:27:31.122 [Gadgetbridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - About to run action: August 24, 00:27: WriteAction on characteristic: 00002a2b-0000-1000-8000-00805f9b34fb
00:27:31.123 [Gadgetbridge GATT Dispatcher] DEBUG n.f.g.s.b.a.WriteAction - writing to characteristic: 00002a2b-0000-1000-8000-00805f9b34fb: 0xe7 0x07 0x08 0x18 0x00 0x1b 0x1f 0x04 0x1e 0x00
00:27:31.137 [Binder:31964_3] WARN  n.f.g.s.b.TransactionBuilder - Unable to write characteristic: null
00:27:31.138 [Binder:31964_3] DEBUG n.f.g.s.b.BtLEQueue - about to add: 00:27:31: Transaction task: set world clocks with 0 actions
00:27:31.138 [Binder:31964_3] DEBUG n.f.g.s.b.BtLEQueue - about to add: 00:27:31: Transaction task: Initializing device with 14 actions
00:27:31.188 [main] DEBUG n.f.g.e.NotificationListener - Notification 1 posted: packageName=nodomain.freeyourgadget.gadgetbridge, priority=0, category=null
00:27:31.190 [Binder:31964_3] DEBUG n.f.g.s.b.BtLEQueue - characteristic write: 00002a2b-0000-1000-8000-00805f9b34fb (success)
00:27:31.192 [Gadgetbridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - About to run action: August 24, 00:27: SetDeviceStateAction to INITIALIZING
00:27:31.192 [main] INFO  n.f.g.e.NotificationListener - Not forwarding notification, screen seems to be on and settings do not allow this
00:27:31.192 [main] INFO  n.f.g.e.NotificationListener - Ignoring notification: nodomain.freeyourgadget.gadgetbridge
00:27:31.193 [Gadgetbridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - About to run action: August 24, 00:27: ReadAction on characteristic: 00002a29-0000-1000-8000-00805f9b34fb
00:27:31.203 [main] INFO  n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: false
00:27:31.284 [Binder:31964_3] DEBUG n.f.g.s.b.BtLEQueue - characteristic read: 00002a29-0000-1000-8000-00805f9b34fb (success)
00:27:31.289 [Binder:31964_3] WARN  n.f.g.s.d.p.PineTimeJFSupport - Device info: DeviceInfo{manufacturerName='PINE64', modelNumber='null', serialNumber='null', hardwareRevision='null', firmwareRevision='null', softwareRevision='null', systemId='null', regulatoryCertificationDataList='null', pnpId='null'}
00:27:31.289 [Binder:31964_3] INFO  n.f.g.s.AbstractDeviceSupport - Got event for VERSION_INFO: GBDeviceEventVersionInfo: fwVersion: null; hwVersion: null
00:27:31.290 [Gadgetbridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - About to run action: August 24, 00:27: ReadAction on characteristic: 00002a24-0000-1000-8000-00805f9b34fb
00:27:31.296 [main] INFO  n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: false
00:27:31.318 [main] DEBUG n.f.g.e.NotificationListener - Notification 1 posted: packageName=nodomain.freeyourgadget.gadgetbridge, priority=0, category=null
00:27:31.320 [main] INFO  n.f.g.e.NotificationListener - Not forwarding notification, screen seems to be on and settings do not allow this
00:27:31.320 [main] INFO  n.f.g.e.NotificationListener - Ignoring notification: nodomain.freeyourgadget.gadgetbridge
00:27:31.369 [Binder:31964_3] DEBUG n.f.g.s.b.BtLEQueue - characteristic read: 00002a24-0000-1000-8000-00805f9b34fb (success)
00:27:31.370 [Binder:31964_3] WARN  n.f.g.s.d.p.PineTimeJFSupport - Device info: DeviceInfo{manufacturerName='PINE64', modelNumber='PineTime', serialNumber='null', hardwareRevision='null', firmwareRevision='null', softwareRevision='null', systemId='null', regulatoryCertificationDataList='null', pnpId='null'}
00:27:31.370 [Binder:31964_3] INFO  n.f.g.s.AbstractDeviceSupport - Got event for VERSION_INFO: GBDeviceEventVersionInfo: fwVersion: null; hwVersion: null
00:27:31.371 [Gadgetbridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - About to run action: August 24, 00:27: ReadAction on characteristic: 00002a25-0000-1000-8000-00805f9b34fb
00:27:31.378 [main] INFO  n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: false
00:27:31.414 [main] DEBUG n.f.g.e.NotificationListener - Notification 1 posted: packageName=nodomain.freeyourgadget.gadgetbridge, priority=0, category=null
00:27:31.417 [main] INFO  n.f.g.e.NotificationListener - Not forwarding notification, screen seems to be on and settings do not allow this
00:27:31.418 [main] INFO  n.f.g.e.NotificationListener - Ignoring notification: nodomain.freeyourgadget.gadgetbridge
00:27:31.463 [Binder:31964_3] DEBUG n.f.g.s.b.BtLEQueue - characteristic read: 00002a25-0000-1000-8000-00805f9b34fb (success)
00:27:31.464 [Binder:31964_3] WARN  n.f.g.s.d.p.PineTimeJFSupport - Device info: DeviceInfo{manufacturerName='PINE64', modelNumber='PineTime', serialNumber='0', hardwareRevision='null', firmwareRevision='null', softwareRevision='null', systemId='null', regulatoryCertificationDataList='null', pnpId='null'}
00:27:31.464 [Binder:31964_3] INFO  n.f.g.s.AbstractDeviceSupport - Got event for VERSION_INFO: GBDeviceEventVersionInfo: fwVersion: null; hwVersion: null
00:27:31.466 [Gadgetbridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - About to run action: August 24, 00:27: ReadAction on characteristic: 00002a27-0000-1000-8000-00805f9b34fb
00:27:31.472 [main] INFO  n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: false
00:27:31.500 [main] DEBUG n.f.g.e.NotificationListener - Notification 1 posted: packageName=nodomain.freeyourgadget.gadgetbridge, priority=0, category=null
00:27:31.502 [main] INFO  n.f.g.e.NotificationListener - Not forwarding notification, screen seems to be on and settings do not allow this
00:27:31.502 [main] INFO  n.f.g.e.NotificationListener - Ignoring notification: nodomain.freeyourgadget.gadgetbridge
00:27:31.549 [Binder:31964_3] DEBUG n.f.g.s.b.BtLEQueue - characteristic read: 00002a27-0000-1000-8000-00805f9b34fb (success)
00:27:31.550 [Binder:31964_3] WARN  n.f.g.s.d.p.PineTimeJFSupport - Device info: DeviceInfo{manufacturerName='PINE64', modelNumber='PineTime', serialNumber='0', hardwareRevision='1.0.0', firmwareRevision='null', softwareRevision='null', systemId='null', regulatoryCertificationDataList='null', pnpId='null'}
00:27:31.550 [Binder:31964_3] INFO  n.f.g.s.AbstractDeviceSupport - Got event for VERSION_INFO: GBDeviceEventVersionInfo: fwVersion: null; hwVersion: 1.0.0
00:27:31.551 [Gadgetbridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - About to run action: August 24, 00:27: ReadAction on characteristic: 00002a26-0000-1000-8000-00805f9b34fb
00:27:31.557 [main] INFO  n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: false
00:27:31.614 [main] DEBUG n.f.g.e.NotificationListener - Notification 1 posted: packageName=nodomain.freeyourgadget.gadgetbridge, priority=0, category=null
00:27:31.618 [main] INFO  n.f.g.e.NotificationListener - Not forwarding notification, screen seems to be on and settings do not allow this
00:27:31.619 [main] INFO  n.f.g.e.NotificationListener - Ignoring notification: nodomain.freeyourgadget.gadgetbridge
00:27:31.640 [Binder:31964_3] DEBUG n.f.g.s.b.BtLEQueue - characteristic read: 00002a26-0000-1000-8000-00805f9b34fb (success)
00:27:31.641 [Binder:31964_3] WARN  n.f.g.s.d.p.PineTimeJFSupport - Device info: DeviceInfo{manufacturerName='PINE64', modelNumber='PineTime', serialNumber='0', hardwareRevision='1.0.0', firmwareRevision='1.13.0', softwareRevision='null', systemId='null', regulatoryCertificationDataList='null', pnpId='null'}
00:27:31.641 [Binder:31964_3] INFO  n.f.g.s.AbstractDeviceSupport - Got event for VERSION_INFO: GBDeviceEventVersionInfo: fwVersion: 1.13.0; hwVersion: 1.0.0
00:27:31.642 [Gadgetbridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - About to run action: August 24, 00:27: ReadAction on characteristic: 00002a28-0000-1000-8000-00805f9b34fb
00:27:31.660 [main] INFO  n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: false
00:27:31.682 [main] DEBUG n.f.g.e.NotificationListener - Notification 1 posted: packageName=nodomain.freeyourgadget.gadgetbridge, priority=0, category=null
00:27:31.684 [main] INFO  n.f.g.e.NotificationListener - Not forwarding notification, screen seems to be on and settings do not allow this
00:27:31.685 [main] INFO  n.f.g.e.NotificationListener - Ignoring notification: nodomain.freeyourgadget.gadgetbridge
00:27:31.730 [Binder:31964_3] DEBUG n.f.g.s.b.BtLEQueue - characteristic read: 00002a28-0000-1000-8000-00805f9b34fb (success)
00:27:31.730 [Binder:31964_3] WARN  n.f.g.s.d.p.PineTimeJFSupport - Device info: DeviceInfo{manufacturerName='PINE64', modelNumber='PineTime', serialNumber='0', hardwareRevision='1.0.0', firmwareRevision='1.13.0', softwareRevision='InfiniTime', systemId='null', regulatoryCertificationDataList='null', pnpId='null'}
00:27:31.731 [Binder:31964_3] INFO  n.f.g.s.AbstractDeviceSupport - Got event for VERSION_INFO: GBDeviceEventVersionInfo: fwVersion: 1.13.0; hwVersion: 1.0.0
00:27:31.731 [Gadgetbridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - About to run action: August 24, 00:27: NotifyAction on characteristic: 00000001-78fc-48fe-8e23-433b3a1942d0
00:27:31.733 [Gadgetbridge GATT Dispatcher] DEBUG n.f.g.s.b.a.NotifyAction - use NOTIFICATION
00:27:31.737 [main] INFO  n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: false
00:27:31.767 [main] DEBUG n.f.g.e.NotificationListener - Notification 1 posted: packageName=nodomain.freeyourgadget.gadgetbridge, priority=0, category=null
00:27:31.769 [main] INFO  n.f.g.e.NotificationListener - Not forwarding notification, screen seems to be on and settings do not allow this
00:27:31.769 [main] INFO  n.f.g.e.NotificationListener - Ignoring notification: nodomain.freeyourgadget.gadgetbridge
00:27:31.821 [Binder:31964_3] DEBUG n.f.g.s.b.BtLEQueue - descriptor write: 00002902-0000-1000-8000-00805f9b34fb (failed: 3)
00:27:31.822 [Binder:31964_3] DEBUG n.f.g.s.b.BtLEQueue - failed btle action, aborting transaction: 00000001-78fc-48fe-8e23-433b3a1942d0 (failed: 3)
00:27:31.841 [main] DEBUG n.f.g.e.NotificationListener - Notification 1 posted: packageName=nodomain.freeyourgadget.gadgetbridge, priority=0, category=null
00:27:31.844 [main] INFO  n.f.g.e.NotificationListener - Not forwarding notification, screen seems to be on and settings do not allow this
00:27:31.844 [main] INFO  n.f.g.e.NotificationListener - Ignoring notification: nodomain.freeyourgadget.gadgetbridge

The conclusion was that the PineTime could be preventing some writes. I understand this is not the Gadgetbridge repository, so I'm looking for someone here has more knowledge on what has changed in the Bluetooth/connection stack between 1.11.0 and 1.12.0.

I'm happy to provide additional information.

Version

v1.12.0+

Companion app

Gadgetbridge v0.76.0 (c912ea037)

mark9064 commented 9 months ago

Have you tried removing the device from Gadgetbridge and re-adding it? You can export the device data from Gadgetbridge before you remove it and import it after you add it again to preserve your step history etc.

kimimaru4000 commented 9 months ago

Hi @mark9064, yes I tried that right now, but it cannot detect the device running the new firmware (v1.13.0) via bluetooth at all unfortunately. I fiddled with the discovery settings to no avail.

WatchMate on GNU/Linux works, which is puzzling. Has anything changed in the PineTime bluetooth stack between versions?

mark9064 commented 9 months ago

Try going into your android bluetooth settings and making sure all pairings to the watch are removed. Then search in Gadgetbridge as before

kimimaru4000 commented 9 months ago

Done, but still no dice as there weren't any pairings leftover. Thanks for your help thus far!

mark9064 commented 9 months ago

Hmm, maybe try restarting your phone then? AFAIK there haven't been any bluetooth stack changes, and if it's possible to connect on another device then bluetooth appears to be working

ldsvrn commented 9 months ago

I've had a similar issue last week, pressing the side button until the watch restarted and repairing it to Gadgetbridge did the trick for me.

kimimaru4000 commented 9 months ago

Thanks @ldsvrn that ended up working for me!

Zykino commented 9 months ago

I’m in the same situation, just received 2 watch on 1.11. After the update to 1.13 (or 1.12) they do not connect back to GadgetBridge. I just try @ldsvrn’s solution… but it "just" revert to 1.11, just like going to the firmware menu and pressing "revert".

Did you press "Validate" in the firmware menu first? Is it really safe to do since that means possibly accepting a version that does not work over bluetooth?

kimimaru4000 commented 9 months ago

@Zykino Yes, I had validated the firmware as I was able to connect v1.12+ with WatchMate over bluetooth before doing the reset steps to have it connect to Gadgetbridge.

Zykino commented 9 months ago

Ok. So I think I had to do everything for it to work in the end:

  1. Let the watch boot, try to send it an update that did not work (I think it did not catch the Bluetooth at that time since I don’t remember seeing its icon).
    1. Tell the phone and GadgetBridge to forget the watch… which was useless at that point.
  2. Then reboot the watch (at least) once.
  3. Update again, see that the watch think it is connected while the phone don’t think so.
    1. I redid this a few times and also fond out that WatchMate worked while GadgetBridge did not…
  4. Then in discord someone told me that the "number pass" that is used to connect to the phone act as a password and it needs to be redone since the OS changed. So I re-asked the phone and GadgetBridge to forget the watch and it finally worked… mostly.

I said mostly because the 2nd watch had trouble a couple of times to transfer the update once the first one was updated. (But it looked to be sending/Bluetooth errors.)