MiBand 2 not able complete connection #408

Closed
by ghost opened 5 years ago · 17 comments
ghost commented 5 years ago (Migrated from github.com)
Owner

I see my miband 2 every time I open gadgetbridge.
But when I click on the device, it attempts to connect and stays at the connecting stage for quite a while.
I read the README and have tried 15 times.
I've waited every time but at the end it just goes back to Mi Band 2 not connected.

I'm pasting logs from my last attempt:

12:37:38.749 [main] INFO n.f.g.Logging - Gadgetbridge version: 0.13.3 12:37:44.584 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.start 12:37:44.592 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.request_deviceinfo 12:37:44.665 [main] INFO n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: true 12:37:45.925 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.connect 12:37:45.927 [main] DEBUG n.f.g.s.b.BtLEQueue - disconnect() 12:37:45.933 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - Thread interrupted 12:37:45.934 [GadgetBridge GATT Dispatcher] INFO n.f.g.s.b.BtLEQueue - Queue Dispatch Thread terminated. 12:37:45.936 [main] INFO n.f.g.s.b.BtLEQueue - Attempting to connect to MI Band 2 12:37:45.937 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - Queue Dispatch Thread started. 12:37:45.954 [main] DEBUG n.f.g.s.b.BtLEQueue - new device connection state: CONNECTING 12:37:45.965 [main] INFO n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: true 12:37:49.744 [main] INFO n.f.g.e.BluetoothConnectReceiver - got connection attempt 12:37:49.754 [main] INFO n.f.g.e.BluetoothConnectReceiver - won't connect to EA:4E:DE:EE:31:59(MI Band 2) 12:37:49.757 [Binder_1] DEBUG n.f.g.s.b.BtLEQueue - connection state change, newState: 2 (success) 12:37:49.768 [Binder_1] INFO n.f.g.s.b.BtLEQueue - Connected to GATT server. 12:37:49.768 [Binder_1] DEBUG n.f.g.s.b.BtLEQueue - new device connection state: CONNECTED 12:37:49.770 [Binder_1] INFO n.f.g.s.b.BtLEQueue - Attempting to start service discovery:true 12:37:49.788 [main] INFO n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: true 12:37:49.863 [Binder_3] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Generic Access: 00001800-0000-1000-8000-00805f9b34fb 12:37:49.864 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Device Name: 00002a00-0000-1000-8000-00805f9b34fb 12:37:49.864 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Appearance: 00002a01-0000-1000-8000-00805f9b34fb 12:37:49.864 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Peripheral Preferred Connection Parameters: 00002a04-0000-1000-8000-00805f9b34fb 12:37:49.864 [Binder_3] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Generic Attribute: 00001801-0000-1000-8000-00805f9b34fb 12:37:49.865 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Service Changed: 00002a05-0000-1000-8000-00805f9b34fb 12:37:49.865 [Binder_3] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Device Information: 0000180a-0000-1000-8000-00805f9b34fb 12:37:49.865 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Serial Number String: 00002a25-0000-1000-8000-00805f9b34fb 12:37:49.865 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Hardware Revision String: 00002a27-0000-1000-8000-00805f9b34fb 12:37:49.867 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Software Revision String: 00002a28-0000-1000-8000-00805f9b34fb 12:37:49.867 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: System ID: 00002a23-0000-1000-8000-00805f9b34fb 12:37:49.867 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: PnP ID: 00002a50-0000-1000-8000-00805f9b34fb 12:37:49.867 [Binder_3] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered unsupported service: (Propr: Xiaomi Weight Service): 00001530-0000-3512-2118-0009af100700 12:37:49.868 [Binder_3] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Alert Notification Service: 00001811-0000-1000-8000-00805f9b34fb 12:37:49.868 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: New Alert: 00002a46-0000-1000-8000-00805f9b34fb 12:37:49.868 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Alert Notification Control Point: 00002a44-0000-1000-8000-00805f9b34fb 12:37:49.868 [Binder_3] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Immediate Alert: 00001802-0000-1000-8000-00805f9b34fb 12:37:49.868 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Alert Level: 00002a06-0000-1000-8000-00805f9b34fb 12:37:49.868 [Binder_3] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Heart Rate: 0000180d-0000-1000-8000-00805f9b34fb 12:37:49.868 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Heart Rate Measurement: 00002a37-0000-1000-8000-00805f9b34fb 12:37:49.869 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Heart Rate Control Point: 00002a39-0000-1000-8000-00805f9b34fb 12:37:49.869 [Binder_3] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Unknown Service: 0000fee0-0000-1000-8000-00805f9b34fb 12:37:49.869 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Current Time: 00002a2b-0000-1000-8000-00805f9b34fb 12:37:49.869 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000001-0000-3512-2118-0009af100700 12:37:49.869 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000002-0000-3512-2118-0009af100700 12:37:49.869 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000003-0000-3512-2118-0009af100700 12:37:49.869 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Peripheral Preferred Connection Parameters: 00002a04-0000-1000-8000-00805f9b34fb 12:37:49.869 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000004-0000-3512-2118-0009af100700 12:37:49.870 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000005-0000-3512-2118-0009af100700 12:37:49.870 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000006-0000-3512-2118-0009af100700 12:37:49.870 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000007-0000-3512-2118-0009af100700 12:37:49.870 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000008-0000-3512-2118-0009af100700 12:37:49.870 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000010-0000-3512-2118-0009af100700 12:37:49.870 [Binder_3] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Unknown Service: 0000fee1-0000-1000-8000-00805f9b34fb 12:37:49.870 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000009-0000-3512-2118-0009af100700 12:37:49.870 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 0000fedd-0000-1000-8000-00805f9b34fb 12:37:49.871 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 0000fede-0000-1000-8000-00805f9b34fb 12:37:49.871 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 0000fedf-0000-1000-8000-00805f9b34fb 12:37:49.873 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 0000fed0-0000-1000-8000-00805f9b34fb 12:37:49.873 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 0000fed1-0000-1000-8000-00805f9b34fb 12:37:49.873 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 0000fed2-0000-1000-8000-00805f9b34fb 12:37:49.873 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 0000fed3-0000-1000-8000-00805f9b34fb 12:37:49.876 [Binder_3] WARN n.f.g.s.b.TransactionBuilder - Unable to notify characteristic: null 12:37:49.877 [Binder_3] WARN n.f.g.s.b.TransactionBuilder - Unable to notify characteristic: null 12:37:49.878 [Binder_3] DEBUG n.f.g.s.b.BtLEQueue - about to add: 12:37:49 PM: Transaction task: Initializing device with 3 actions 12:37:49.934 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - About to run action: 12 October, 12:37 PM: NotifyAction on characteristic: 00000009-0000-3512-2118-0009af100700 12:37:49.935 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.TransactionBuilder - use NOTIFICATION 12:37:49.937 [Binder_4] DEBUG n.f.g.s.b.BtLEQueue - descriptor write: 00002902-0000-1000-8000-00805f9b34fb (success) 12:37:49.938 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - About to run action: 12 October, 12:37 PM: SetDeviceStateAction to INITIALIZING 12:37:49.939 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - About to run action: 12 October, 12:37 PM: WriteAction on characteristic: 00000009-0000-3512-2118-0009af100700 12:37:49.941 [Binder_1] DEBUG n.f.g.s.b.BtLEQueue - characteristic write: 00000009-0000-3512-2118-0009af100700 (success) 12:37:49.942 [Binder_1] INFO n.f.g.s.d.m.MiBand2Support - KEY AES SEND 12:37:49.942 [Binder_1] INFO n.f.g.s.d.m.MiBand2Support - RECEIVED DATA WITH LENGTH: 2 12:37:49.942 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x 2 12:37:49.942 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x 8 12:37:49.946 [main] INFO n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: true 12:37:50.184 [Binder_1] DEBUG n.f.g.s.b.BtLEQueue - characteristic changed: 00000009-0000-3512-2118-0009af100700 value: 0x10 0x2 0x1 0x90 0xa4 0x85 0x1d 0x32 0xee 0x57 0xd7 0xb4 0x98 0x9 0xf1 0x16 0xa2 0x9b 0x6b 12:37:50.185 [Binder_1] INFO n.f.g.s.d.m.MiBand2Support - RECEIVED DATA WITH LENGTH: 19 12:37:50.185 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x10 12:37:50.186 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x 2 12:37:50.186 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x 1 12:37:50.186 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x90 12:37:50.186 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0xa4 12:37:50.186 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x85 12:37:50.186 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x1d 12:37:50.187 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x32 12:37:50.187 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0xee 12:37:50.187 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x57 12:37:50.187 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0xd7 12:37:50.187 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0xb4 12:37:50.187 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x98 12:37:50.187 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x 9 12:37:50.188 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0xf1 12:37:50.188 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x16 12:37:50.188 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0xa2 12:37:50.188 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x9b 12:37:50.188 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x6b 12:37:50.198 [Binder_1] DEBUG n.f.g.s.b.BtLEQueue - about to insert: 12:37:50 PM: Transaction task: Sending the encrypted random key to the band with 2 actions 12:37:50.199 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - About to run action: 12 October, 12:37 PM: WriteAction on characteristic: 00000009-0000-3512-2118-0009af100700 12:37:50.201 [Binder_2] DEBUG n.f.g.s.b.BtLEQueue - characteristic write: 00000009-0000-3512-2118-0009af100700 (success) 12:37:50.201 [Binder_2] INFO n.f.g.s.d.m.MiBand2Support - KEY AES SEND 12:37:50.201 [Binder_2] INFO n.f.g.s.d.m.MiBand2Support - RECEIVED DATA WITH LENGTH: 18 12:37:50.201 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x 3 12:37:50.201 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x 8 12:37:50.205 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0xcd 12:37:50.206 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x52 12:37:50.206 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x85 12:37:50.207 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x52 12:37:50.207 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x35 12:37:50.207 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x 5 12:37:50.207 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x2e 12:37:50.207 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x66 12:37:50.208 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x19 12:37:50.209 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x29 12:37:50.209 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0xc3 12:37:50.209 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0xda 12:37:50.210 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0xf5 12:37:50.210 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x21 12:37:50.210 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0xea 12:37:50.210 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x10 12:37:50.211 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - About to run action: 12 October, 12:37 PM: WriteAction on characteristic: 00002a2b-0000-1000-8000-00805f9b34fb 12:37:50.285 [Binder_5] DEBUG n.f.g.s.b.BtLEQueue - characteristic changed: 00000009-0000-3512-2118-0009af100700 value: 0x10 0x3 0x4 12:37:50.285 [Binder_5] INFO n.f.g.s.d.m.MiBand2Support - RECEIVED DATA WITH LENGTH: 3 12:37:50.285 [Binder_5] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x10 12:37:50.285 [Binder_5] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x 3 12:37:50.286 [Binder_5] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x 4 12:37:50.286 [Binder_5] INFO n.f.g.s.d.m.MiBand2Support - AUTHENTICATION?? 00000009-0000-3512-2118-0009af100700 12:37:50.286 [Binder_5] INFO n.f.g.s.d.m.MiBand2Support - RECEIVED DATA WITH LENGTH: 3 12:37:50.286 [Binder_5] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x10 12:37:50.286 [Binder_5] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x 3 12:37:50.286 [Binder_5] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x 4 12:37:50.339 [Binder_3] DEBUG n.f.g.s.b.BtLEQueue - characteristic write: 00002a2b-0000-1000-8000-00805f9b34fb (success) 12:38:17.100 [main] INFO n.f.g.e.MusicPlaybackReceiver - got metadata changed intent, but nothing changed, ignoring. 12:38:17.164 [main] INFO n.f.g.e.MusicPlaybackReceiver - got metadata changed intent, but nothing changed, ignoring. 12:38:17.235 [main] INFO n.f.g.e.MusicPlaybackReceiver - got metadata changed intent, but nothing changed, ignoring. 12:38:17.300 [main] INFO n.f.g.e.MusicPlaybackReceiver - got metadata changed intent, but nothing changed, ignoring. 12:38:18.811 [main] INFO n.f.g.e.MusicPlaybackReceiver - Update Music Info: Amit Trivedi / Udaan / Aazaadiyan 12:38:18.813 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.setmusicinfo 12:38:19.208 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.setmusicinfo 12:38:19.211 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.setmusicstate 12:38:19.404 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.setmusicinfo 12:38:19.414 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.setmusicstate 12:38:20.047 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.setmusicinfo 12:38:20.048 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.setmusicstate 12:38:20.367 [main] INFO n.f.g.e.MusicPlaybackReceiver - Update Music Info: Harris Jayaraj / Vaaranam Aayiram / Adiyae Kolluthey 12:38:20.375 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.setmusicinfo

I see my `miband 2` every time I open gadgetbridge. But when I click on the device, it attempts to connect and stays at the connecting stage for quite a while. I read the README and have tried 15 times. I've waited every time but at the end it just goes back to Mi Band 2 not connected. I'm pasting logs from my last attempt: ` 12:37:38.749 [main] INFO n.f.g.Logging - Gadgetbridge version: 0.13.3 12:37:44.584 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.start 12:37:44.592 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.request_deviceinfo 12:37:44.665 [main] INFO n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: true 12:37:45.925 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.connect 12:37:45.927 [main] DEBUG n.f.g.s.b.BtLEQueue - disconnect() 12:37:45.933 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - Thread interrupted 12:37:45.934 [GadgetBridge GATT Dispatcher] INFO n.f.g.s.b.BtLEQueue - Queue Dispatch Thread terminated. 12:37:45.936 [main] INFO n.f.g.s.b.BtLEQueue - Attempting to connect to MI Band 2 12:37:45.937 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - Queue Dispatch Thread started. 12:37:45.954 [main] DEBUG n.f.g.s.b.BtLEQueue - new device connection state: CONNECTING 12:37:45.965 [main] INFO n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: true 12:37:49.744 [main] INFO n.f.g.e.BluetoothConnectReceiver - got connection attempt 12:37:49.754 [main] INFO n.f.g.e.BluetoothConnectReceiver - won't connect to EA:4E:DE:EE:31:59(MI Band 2) 12:37:49.757 [Binder_1] DEBUG n.f.g.s.b.BtLEQueue - connection state change, newState: 2 (success) 12:37:49.768 [Binder_1] INFO n.f.g.s.b.BtLEQueue - Connected to GATT server. 12:37:49.768 [Binder_1] DEBUG n.f.g.s.b.BtLEQueue - new device connection state: CONNECTED 12:37:49.770 [Binder_1] INFO n.f.g.s.b.BtLEQueue - Attempting to start service discovery:true 12:37:49.788 [main] INFO n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: true 12:37:49.863 [Binder_3] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Generic Access: 00001800-0000-1000-8000-00805f9b34fb 12:37:49.864 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Device Name: 00002a00-0000-1000-8000-00805f9b34fb 12:37:49.864 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Appearance: 00002a01-0000-1000-8000-00805f9b34fb 12:37:49.864 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Peripheral Preferred Connection Parameters: 00002a04-0000-1000-8000-00805f9b34fb 12:37:49.864 [Binder_3] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Generic Attribute: 00001801-0000-1000-8000-00805f9b34fb 12:37:49.865 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Service Changed: 00002a05-0000-1000-8000-00805f9b34fb 12:37:49.865 [Binder_3] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Device Information: 0000180a-0000-1000-8000-00805f9b34fb 12:37:49.865 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Serial Number String: 00002a25-0000-1000-8000-00805f9b34fb 12:37:49.865 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Hardware Revision String: 00002a27-0000-1000-8000-00805f9b34fb 12:37:49.867 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Software Revision String: 00002a28-0000-1000-8000-00805f9b34fb 12:37:49.867 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: System ID: 00002a23-0000-1000-8000-00805f9b34fb 12:37:49.867 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: PnP ID: 00002a50-0000-1000-8000-00805f9b34fb 12:37:49.867 [Binder_3] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered unsupported service: (Propr: Xiaomi Weight Service): 00001530-0000-3512-2118-0009af100700 12:37:49.868 [Binder_3] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Alert Notification Service: 00001811-0000-1000-8000-00805f9b34fb 12:37:49.868 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: New Alert: 00002a46-0000-1000-8000-00805f9b34fb 12:37:49.868 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Alert Notification Control Point: 00002a44-0000-1000-8000-00805f9b34fb 12:37:49.868 [Binder_3] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Immediate Alert: 00001802-0000-1000-8000-00805f9b34fb 12:37:49.868 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Alert Level: 00002a06-0000-1000-8000-00805f9b34fb 12:37:49.868 [Binder_3] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Heart Rate: 0000180d-0000-1000-8000-00805f9b34fb 12:37:49.868 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Heart Rate Measurement: 00002a37-0000-1000-8000-00805f9b34fb 12:37:49.869 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Heart Rate Control Point: 00002a39-0000-1000-8000-00805f9b34fb 12:37:49.869 [Binder_3] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Unknown Service: 0000fee0-0000-1000-8000-00805f9b34fb 12:37:49.869 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Current Time: 00002a2b-0000-1000-8000-00805f9b34fb 12:37:49.869 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000001-0000-3512-2118-0009af100700 12:37:49.869 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000002-0000-3512-2118-0009af100700 12:37:49.869 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000003-0000-3512-2118-0009af100700 12:37:49.869 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Peripheral Preferred Connection Parameters: 00002a04-0000-1000-8000-00805f9b34fb 12:37:49.869 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000004-0000-3512-2118-0009af100700 12:37:49.870 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000005-0000-3512-2118-0009af100700 12:37:49.870 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000006-0000-3512-2118-0009af100700 12:37:49.870 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000007-0000-3512-2118-0009af100700 12:37:49.870 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000008-0000-3512-2118-0009af100700 12:37:49.870 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000010-0000-3512-2118-0009af100700 12:37:49.870 [Binder_3] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Unknown Service: 0000fee1-0000-1000-8000-00805f9b34fb 12:37:49.870 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000009-0000-3512-2118-0009af100700 12:37:49.870 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 0000fedd-0000-1000-8000-00805f9b34fb 12:37:49.871 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 0000fede-0000-1000-8000-00805f9b34fb 12:37:49.871 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 0000fedf-0000-1000-8000-00805f9b34fb 12:37:49.873 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 0000fed0-0000-1000-8000-00805f9b34fb 12:37:49.873 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 0000fed1-0000-1000-8000-00805f9b34fb 12:37:49.873 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 0000fed2-0000-1000-8000-00805f9b34fb 12:37:49.873 [Binder_3] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 0000fed3-0000-1000-8000-00805f9b34fb 12:37:49.876 [Binder_3] WARN n.f.g.s.b.TransactionBuilder - Unable to notify characteristic: null 12:37:49.877 [Binder_3] WARN n.f.g.s.b.TransactionBuilder - Unable to notify characteristic: null 12:37:49.878 [Binder_3] DEBUG n.f.g.s.b.BtLEQueue - about to add: 12:37:49 PM: Transaction task: Initializing device with 3 actions 12:37:49.934 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - About to run action: 12 October, 12:37 PM: NotifyAction on characteristic: 00000009-0000-3512-2118-0009af100700 12:37:49.935 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.TransactionBuilder - use NOTIFICATION 12:37:49.937 [Binder_4] DEBUG n.f.g.s.b.BtLEQueue - descriptor write: 00002902-0000-1000-8000-00805f9b34fb (success) 12:37:49.938 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - About to run action: 12 October, 12:37 PM: SetDeviceStateAction to INITIALIZING 12:37:49.939 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - About to run action: 12 October, 12:37 PM: WriteAction on characteristic: 00000009-0000-3512-2118-0009af100700 12:37:49.941 [Binder_1] DEBUG n.f.g.s.b.BtLEQueue - characteristic write: 00000009-0000-3512-2118-0009af100700 (success) 12:37:49.942 [Binder_1] INFO n.f.g.s.d.m.MiBand2Support - KEY AES SEND 12:37:49.942 [Binder_1] INFO n.f.g.s.d.m.MiBand2Support - RECEIVED DATA WITH LENGTH: 2 12:37:49.942 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x 2 12:37:49.942 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x 8 12:37:49.946 [main] INFO n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: true 12:37:50.184 [Binder_1] DEBUG n.f.g.s.b.BtLEQueue - characteristic changed: 00000009-0000-3512-2118-0009af100700 value: 0x10 0x2 0x1 0x90 0xa4 0x85 0x1d 0x32 0xee 0x57 0xd7 0xb4 0x98 0x9 0xf1 0x16 0xa2 0x9b 0x6b 12:37:50.185 [Binder_1] INFO n.f.g.s.d.m.MiBand2Support - RECEIVED DATA WITH LENGTH: 19 12:37:50.185 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x10 12:37:50.186 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x 2 12:37:50.186 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x 1 12:37:50.186 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x90 12:37:50.186 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0xa4 12:37:50.186 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x85 12:37:50.186 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x1d 12:37:50.187 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x32 12:37:50.187 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0xee 12:37:50.187 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x57 12:37:50.187 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0xd7 12:37:50.187 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0xb4 12:37:50.187 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x98 12:37:50.187 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x 9 12:37:50.188 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0xf1 12:37:50.188 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x16 12:37:50.188 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0xa2 12:37:50.188 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x9b 12:37:50.188 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x6b 12:37:50.198 [Binder_1] DEBUG n.f.g.s.b.BtLEQueue - about to insert: 12:37:50 PM: Transaction task: Sending the encrypted random key to the band with 2 actions 12:37:50.199 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - About to run action: 12 October, 12:37 PM: WriteAction on characteristic: 00000009-0000-3512-2118-0009af100700 12:37:50.201 [Binder_2] DEBUG n.f.g.s.b.BtLEQueue - characteristic write: 00000009-0000-3512-2118-0009af100700 (success) 12:37:50.201 [Binder_2] INFO n.f.g.s.d.m.MiBand2Support - KEY AES SEND 12:37:50.201 [Binder_2] INFO n.f.g.s.d.m.MiBand2Support - RECEIVED DATA WITH LENGTH: 18 12:37:50.201 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x 3 12:37:50.201 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x 8 12:37:50.205 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0xcd 12:37:50.206 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x52 12:37:50.206 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x85 12:37:50.207 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x52 12:37:50.207 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x35 12:37:50.207 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x 5 12:37:50.207 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x2e 12:37:50.207 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x66 12:37:50.208 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x19 12:37:50.209 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x29 12:37:50.209 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0xc3 12:37:50.209 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0xda 12:37:50.210 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0xf5 12:37:50.210 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x21 12:37:50.210 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0xea 12:37:50.210 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x10 12:37:50.211 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - About to run action: 12 October, 12:37 PM: WriteAction on characteristic: 00002a2b-0000-1000-8000-00805f9b34fb 12:37:50.285 [Binder_5] DEBUG n.f.g.s.b.BtLEQueue - characteristic changed: 00000009-0000-3512-2118-0009af100700 value: 0x10 0x3 0x4 12:37:50.285 [Binder_5] INFO n.f.g.s.d.m.MiBand2Support - RECEIVED DATA WITH LENGTH: 3 12:37:50.285 [Binder_5] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x10 12:37:50.285 [Binder_5] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x 3 12:37:50.286 [Binder_5] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x 4 12:37:50.286 [Binder_5] INFO n.f.g.s.d.m.MiBand2Support - AUTHENTICATION?? 00000009-0000-3512-2118-0009af100700 12:37:50.286 [Binder_5] INFO n.f.g.s.d.m.MiBand2Support - RECEIVED DATA WITH LENGTH: 3 12:37:50.286 [Binder_5] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x10 12:37:50.286 [Binder_5] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x 3 12:37:50.286 [Binder_5] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x 4 12:37:50.339 [Binder_3] DEBUG n.f.g.s.b.BtLEQueue - characteristic write: 00002a2b-0000-1000-8000-00805f9b34fb (success) 12:38:17.100 [main] INFO n.f.g.e.MusicPlaybackReceiver - got metadata changed intent, but nothing changed, ignoring. 12:38:17.164 [main] INFO n.f.g.e.MusicPlaybackReceiver - got metadata changed intent, but nothing changed, ignoring. 12:38:17.235 [main] INFO n.f.g.e.MusicPlaybackReceiver - got metadata changed intent, but nothing changed, ignoring. 12:38:17.300 [main] INFO n.f.g.e.MusicPlaybackReceiver - got metadata changed intent, but nothing changed, ignoring. 12:38:18.811 [main] INFO n.f.g.e.MusicPlaybackReceiver - Update Music Info: Amit Trivedi / Udaan / Aazaadiyan 12:38:18.813 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.setmusicinfo 12:38:19.208 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.setmusicinfo 12:38:19.211 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.setmusicstate 12:38:19.404 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.setmusicinfo 12:38:19.414 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.setmusicstate 12:38:20.047 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.setmusicinfo 12:38:20.048 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.setmusicstate 12:38:20.367 [main] INFO n.f.g.e.MusicPlaybackReceiver - Update Music Info: Harris Jayaraj / Vaaranam Aayiram / Adiyae Kolluthey 12:38:20.375 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.setmusicinfo `
Owner

Thanks for the log! Did you use your band with mi fit before? Could it be possible that you have to "unbind" it from mi fit?

Thanks for the log! Did you use your band with mi fit before? Could it be possible that you have to "unbind" it from mi fit?
ghost commented 5 years ago (Migrated from github.com)
Poster
Owner

As a matter of fact, yes.
I had previously paired it with the mi fit app before i became aware of this open source alternative.

Anyways, I unpaired it now. Rebooted the device, and re-paired it with my mobile.

I then, emptied all the previous log content, started gadget bridge and pressed on my visible MI Band 2.

It went to connecting state, then the icon turned blue for almost 30 seconds, before it turned back grey saying MI Band 2 not connected.

Logs for this exercise as follows:

07:03:17.977 [main] INFO  n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: true
07:03:18.203 [Binder_4] DEBUG n.f.g.s.b.BtLEQueue - characteristic read: 00002a00-0000-1000-8000-00805f9b34fb (success)
07:03:18.205 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - About to run action: 15 October, 7:03 AM:  on characteristic: (null)
07:03:18.208 [GadgetBridge GATT Dispatcher] ERROR n.f.g.s.b.BtLEQueue - Queue Dispatch Thread died: Attempt to invoke virtual method 'boolean nodomain.freeyourgadget.gadgetbridge.service.devices.miband.DeviceInfo.isMili1()' on a null object reference
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean nodomain.freeyourgadget.gadgetbridge.service.devices.miband.DeviceInfo.isMili1()' on a null object reference
    at nodomain.freeyourgadget.gadgetbridge.devices.miband.UserInfo.getData(UserInfo.java:88) ~[na:0.0]
    at nodomain.freeyourgadget.gadgetbridge.service.devices.miband.MiBandSupport$1.run(MiBandSupport.java:268) ~[na:0.0]
    at nodomain.freeyourgadget.gadgetbridge.service.btle.BtLEQueue$1.run(BtLEQueue.java:89) ~[na:0.0]
07:03:18.210 [GadgetBridge GATT Dispatcher] INFO  n.f.g.s.b.BtLEQueue - Queue Dispatch Thread terminated.
07:03:48.901 [Binder_3] DEBUG n.f.g.s.b.BtLEQueue - connection state change, newState: 0 (failed: 19)
07:03:48.902 [Binder_3] WARN  n.f.g.s.b.BtLEQueue - connection state event with error status 19
07:03:48.902 [Binder_3] INFO  n.f.g.s.b.BtLEQueue - Disconnected from GATT server.
07:03:48.903 [Binder_3] DEBUG n.f.g.s.b.BtLEQueue - handleDisconnected: 19
07:03:48.903 [Binder_3] DEBUG n.f.g.s.b.BtLEQueue - internal gatt callback set to null
07:03:48.903 [Binder_3] DEBUG n.f.g.s.b.BtLEQueue - new device connection state: NOT_CONNECTED
07:03:48.939 [Binder_3] DEBUG n.f.g.s.b.BtLEQueue - disconnect()
07:03:48.940 [Binder_3] INFO  n.f.g.s.b.BtLEQueue - Disconnecting BtLEQueue from GATT device
07:03:48.947 [main] WARN  n.f.g.i.GBDeviceCandidate - no cached services available for MI Band 2: EA:4E:DE:EE:31:59
07:03:48.952 [main] INFO  n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: true
07:03:48.974 [Binder_3] DEBUG n.f.g.s.b.BtLEQueue - new device connection state: NOT_CONNECTED
07:03:48.999 [main] WARN  n.f.g.i.GBDeviceCandidate - no cached services available for MI Band 2: EA:4E:DE:EE:31:59
07:03:49.004 [main] INFO  n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: true
07:03:54.203 [main] INFO  n.f.g.e.AlarmReceiver - won't send sunrise and sunset events (disabled in preferences)
07:04:37.633 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.start
07:04:37.638 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.request_deviceinfo
07:04:37.700 [main] WARN  n.f.g.i.GBDeviceCandidate - no cached services available for MI Band 2: EA:4E:DE:EE:31:59
07:04:37.707 [main] INFO  n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: true
07:04:38.905 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.connect
07:04:38.905 [main] DEBUG n.f.g.s.b.BtLEQueue - disconnect()
07:04:38.907 [main] INFO  n.f.g.s.b.BtLEQueue - Attempting to connect to MI Band 2
07:04:38.907 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - Queue Dispatch Thread started.
07:04:38.913 [main] DEBUG n.f.g.s.b.BtLEQueue - new device connection state: CONNECTING
07:04:38.932 [main] WARN  n.f.g.i.GBDeviceCandidate - no cached services available for MI Band 2: EA:4E:DE:EE:31:59
07:04:38.940 [main] INFO  n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: true
07:04:39.927 [main] INFO  n.f.g.e.BluetoothConnectReceiver - got connection attempt
07:04:39.930 [Binder_4] DEBUG n.f.g.s.b.BtLEQueue - connection state change, newState: 2 (success)
07:04:39.931 [Binder_4] INFO  n.f.g.s.b.BtLEQueue - Connected to GATT server.
07:04:39.932 [Binder_4] DEBUG n.f.g.s.b.BtLEQueue - new device connection state: CONNECTED
07:04:39.944 [Binder_4] INFO  n.f.g.s.b.BtLEQueue - Attempting to start service discovery:true
07:04:39.949 [main] INFO  n.f.g.e.BluetoothConnectReceiver - won't connect to EA:4E:DE:EE:31:59(MI Band 2)
07:04:39.970 [main] WARN  n.f.g.i.GBDeviceCandidate - no cached services available for MI Band 2: EA:4E:DE:EE:31:59
07:04:39.989 [Binder_4] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Generic Access: 00001800-0000-1000-8000-00805f9b34fb
07:04:39.990 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Device Name: 00002a00-0000-1000-8000-00805f9b34fb
07:04:39.990 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Appearance: 00002a01-0000-1000-8000-00805f9b34fb
07:04:39.990 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Peripheral Preferred Connection Parameters: 00002a04-0000-1000-8000-00805f9b34fb
07:04:39.991 [Binder_4] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Generic Attribute: 00001801-0000-1000-8000-00805f9b34fb
07:04:39.992 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Service Changed: 00002a05-0000-1000-8000-00805f9b34fb
07:04:39.992 [Binder_4] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered unsupported service: Device Information: 0000180a-0000-1000-8000-00805f9b34fb
07:04:39.992 [Binder_4] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered unsupported service: (Propr: Xiaomi Weight Service): 00001530-0000-3512-2118-0009af100700
07:04:39.992 [Binder_4] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered unsupported service: Alert Notification Service: 00001811-0000-1000-8000-00805f9b34fb
07:04:39.992 [Binder_4] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Immediate Alert: 00001802-0000-1000-8000-00805f9b34fb
07:04:39.992 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Alert Level: 00002a06-0000-1000-8000-00805f9b34fb
07:04:39.993 [Binder_4] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Heart Rate: 0000180d-0000-1000-8000-00805f9b34fb
07:04:39.993 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Heart Rate Measurement: 00002a37-0000-1000-8000-00805f9b34fb
07:04:39.993 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Heart Rate Control Point: 00002a39-0000-1000-8000-00805f9b34fb
07:04:39.993 [Binder_4] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Unknown Service: 0000fee0-0000-1000-8000-00805f9b34fb
07:04:39.993 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Current Time: 00002a2b-0000-1000-8000-00805f9b34fb
07:04:39.994 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Unknown Characteristic: 00000001-0000-3512-2118-0009af100700
07:04:39.994 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Unknown Characteristic: 00000002-0000-3512-2118-0009af100700
07:04:39.994 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Unknown Characteristic: 00000003-0000-3512-2118-0009af100700
07:04:39.994 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Peripheral Preferred Connection Parameters: 00002a04-0000-1000-8000-00805f9b34fb
07:04:39.994 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Unknown Characteristic: 00000004-0000-3512-2118-0009af100700
07:04:39.995 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Unknown Characteristic: 00000005-0000-3512-2118-0009af100700
07:04:39.996 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Unknown Characteristic: 00000006-0000-3512-2118-0009af100700
07:04:39.996 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Unknown Characteristic: 00000007-0000-3512-2118-0009af100700
As a matter of fact, yes. I had previously paired it with the mi fit app before i became aware of this open source alternative. Anyways, I unpaired it now. Rebooted the device, and re-paired it with my mobile. I then, emptied all the previous log content, started gadget bridge and pressed on my visible MI Band 2. It went to connecting state, then the icon turned blue for almost 30 seconds, before it turned back grey saying MI Band 2 not connected. Logs for this exercise as follows: ``` 07:03:17.977 [main] INFO n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: true 07:03:18.203 [Binder_4] DEBUG n.f.g.s.b.BtLEQueue - characteristic read: 00002a00-0000-1000-8000-00805f9b34fb (success) 07:03:18.205 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - About to run action: 15 October, 7:03 AM: on characteristic: (null) 07:03:18.208 [GadgetBridge GATT Dispatcher] ERROR n.f.g.s.b.BtLEQueue - Queue Dispatch Thread died: Attempt to invoke virtual method 'boolean nodomain.freeyourgadget.gadgetbridge.service.devices.miband.DeviceInfo.isMili1()' on a null object reference java.lang.NullPointerException: Attempt to invoke virtual method 'boolean nodomain.freeyourgadget.gadgetbridge.service.devices.miband.DeviceInfo.isMili1()' on a null object reference at nodomain.freeyourgadget.gadgetbridge.devices.miband.UserInfo.getData(UserInfo.java:88) ~[na:0.0] at nodomain.freeyourgadget.gadgetbridge.service.devices.miband.MiBandSupport$1.run(MiBandSupport.java:268) ~[na:0.0] at nodomain.freeyourgadget.gadgetbridge.service.btle.BtLEQueue$1.run(BtLEQueue.java:89) ~[na:0.0] 07:03:18.210 [GadgetBridge GATT Dispatcher] INFO n.f.g.s.b.BtLEQueue - Queue Dispatch Thread terminated. 07:03:48.901 [Binder_3] DEBUG n.f.g.s.b.BtLEQueue - connection state change, newState: 0 (failed: 19) 07:03:48.902 [Binder_3] WARN n.f.g.s.b.BtLEQueue - connection state event with error status 19 07:03:48.902 [Binder_3] INFO n.f.g.s.b.BtLEQueue - Disconnected from GATT server. 07:03:48.903 [Binder_3] DEBUG n.f.g.s.b.BtLEQueue - handleDisconnected: 19 07:03:48.903 [Binder_3] DEBUG n.f.g.s.b.BtLEQueue - internal gatt callback set to null 07:03:48.903 [Binder_3] DEBUG n.f.g.s.b.BtLEQueue - new device connection state: NOT_CONNECTED 07:03:48.939 [Binder_3] DEBUG n.f.g.s.b.BtLEQueue - disconnect() 07:03:48.940 [Binder_3] INFO n.f.g.s.b.BtLEQueue - Disconnecting BtLEQueue from GATT device 07:03:48.947 [main] WARN n.f.g.i.GBDeviceCandidate - no cached services available for MI Band 2: EA:4E:DE:EE:31:59 07:03:48.952 [main] INFO n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: true 07:03:48.974 [Binder_3] DEBUG n.f.g.s.b.BtLEQueue - new device connection state: NOT_CONNECTED 07:03:48.999 [main] WARN n.f.g.i.GBDeviceCandidate - no cached services available for MI Band 2: EA:4E:DE:EE:31:59 07:03:49.004 [main] INFO n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: true 07:03:54.203 [main] INFO n.f.g.e.AlarmReceiver - won't send sunrise and sunset events (disabled in preferences) 07:04:37.633 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.start 07:04:37.638 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.request_deviceinfo 07:04:37.700 [main] WARN n.f.g.i.GBDeviceCandidate - no cached services available for MI Band 2: EA:4E:DE:EE:31:59 07:04:37.707 [main] INFO n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: true 07:04:38.905 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.connect 07:04:38.905 [main] DEBUG n.f.g.s.b.BtLEQueue - disconnect() 07:04:38.907 [main] INFO n.f.g.s.b.BtLEQueue - Attempting to connect to MI Band 2 07:04:38.907 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - Queue Dispatch Thread started. 07:04:38.913 [main] DEBUG n.f.g.s.b.BtLEQueue - new device connection state: CONNECTING 07:04:38.932 [main] WARN n.f.g.i.GBDeviceCandidate - no cached services available for MI Band 2: EA:4E:DE:EE:31:59 07:04:38.940 [main] INFO n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: true 07:04:39.927 [main] INFO n.f.g.e.BluetoothConnectReceiver - got connection attempt 07:04:39.930 [Binder_4] DEBUG n.f.g.s.b.BtLEQueue - connection state change, newState: 2 (success) 07:04:39.931 [Binder_4] INFO n.f.g.s.b.BtLEQueue - Connected to GATT server. 07:04:39.932 [Binder_4] DEBUG n.f.g.s.b.BtLEQueue - new device connection state: CONNECTED 07:04:39.944 [Binder_4] INFO n.f.g.s.b.BtLEQueue - Attempting to start service discovery:true 07:04:39.949 [main] INFO n.f.g.e.BluetoothConnectReceiver - won't connect to EA:4E:DE:EE:31:59(MI Band 2) 07:04:39.970 [main] WARN n.f.g.i.GBDeviceCandidate - no cached services available for MI Band 2: EA:4E:DE:EE:31:59 07:04:39.989 [Binder_4] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Generic Access: 00001800-0000-1000-8000-00805f9b34fb 07:04:39.990 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Device Name: 00002a00-0000-1000-8000-00805f9b34fb 07:04:39.990 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Appearance: 00002a01-0000-1000-8000-00805f9b34fb 07:04:39.990 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Peripheral Preferred Connection Parameters: 00002a04-0000-1000-8000-00805f9b34fb 07:04:39.991 [Binder_4] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Generic Attribute: 00001801-0000-1000-8000-00805f9b34fb 07:04:39.992 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Service Changed: 00002a05-0000-1000-8000-00805f9b34fb 07:04:39.992 [Binder_4] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered unsupported service: Device Information: 0000180a-0000-1000-8000-00805f9b34fb 07:04:39.992 [Binder_4] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered unsupported service: (Propr: Xiaomi Weight Service): 00001530-0000-3512-2118-0009af100700 07:04:39.992 [Binder_4] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered unsupported service: Alert Notification Service: 00001811-0000-1000-8000-00805f9b34fb 07:04:39.992 [Binder_4] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Immediate Alert: 00001802-0000-1000-8000-00805f9b34fb 07:04:39.992 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Alert Level: 00002a06-0000-1000-8000-00805f9b34fb 07:04:39.993 [Binder_4] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Heart Rate: 0000180d-0000-1000-8000-00805f9b34fb 07:04:39.993 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Heart Rate Measurement: 00002a37-0000-1000-8000-00805f9b34fb 07:04:39.993 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Heart Rate Control Point: 00002a39-0000-1000-8000-00805f9b34fb 07:04:39.993 [Binder_4] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Unknown Service: 0000fee0-0000-1000-8000-00805f9b34fb 07:04:39.993 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Current Time: 00002a2b-0000-1000-8000-00805f9b34fb 07:04:39.994 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000001-0000-3512-2118-0009af100700 07:04:39.994 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000002-0000-3512-2118-0009af100700 07:04:39.994 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000003-0000-3512-2118-0009af100700 07:04:39.994 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Peripheral Preferred Connection Parameters: 00002a04-0000-1000-8000-00805f9b34fb 07:04:39.994 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000004-0000-3512-2118-0009af100700 07:04:39.995 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000005-0000-3512-2118-0009af100700 07:04:39.996 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000006-0000-3512-2118-0009af100700 07:04:39.996 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000007-0000-3512-2118-0009af100700 ```
ghost commented 5 years ago (Migrated from github.com)
Poster
Owner

Also, when i had first connected it to the mi fit, it upgraded the device's firmware, could that be a reason?

Also, when i had first connected it to the mi fit, it upgraded the device's firmware, could that be a reason?
Owner

Yes, that could be a reason. However your last log shows a problem that is already fixed in 0.13.4, which ought to be available in f-droid for a few days already, but alas, isn't. Please try again with this version, once it is available.

Yes, that could be a reason. However your last log shows a problem that is already fixed in 0.13.4, which ought to be available in f-droid for a few days already, but alas, isn't. Please try again with this version, once it is available.
Owner

FYI 0.13.4 finally showed up in f-droid

FYI 0.13.4 finally showed up in f-droid
ghost commented 5 years ago (Migrated from github.com)
Poster
Owner

It did, after updating, I unpaired from mi fit, rebooted my phone and tried again.
Unfortunately, the issue came up,

07:13:58.089 [main] INFO  n.f.g.Logging - Gadgetbridge version: 0.13.4
07:13:59.833 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.connect
07:13:59.836 [main] INFO  n.f.g.s.b.BtLEQueue - Attempting to connect to kBand
07:13:59.838 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - Queue Dispatch Thread started.
07:13:59.842 [main] DEBUG n.f.g.s.b.BtLEQueue - new device connection state: CONNECTING
07:13:59.857 [main] INFO  n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: true
07:13:59.881 [main] INFO  n.f.g.e.MusicPlaybackReceiver - got metadata changed intent, but nothing changed, ignoring.
07:14:04.215 [main] INFO  n.f.g.e.BluetoothConnectReceiver - got connection attempt
07:14:04.225 [Binder_4] DEBUG n.f.g.s.b.BtLEQueue - connection state change, newState: 2 (success)
07:14:04.225 [Binder_4] INFO  n.f.g.s.b.BtLEQueue - Connected to GATT server.
07:14:04.225 [Binder_4] DEBUG n.f.g.s.b.BtLEQueue - new device connection state: CONNECTED
07:14:04.238 [main] INFO  n.f.g.e.BluetoothConnectReceiver - won't connect to EA:4E:DE:EE:31:59(MI Band 2)
07:14:04.246 [Binder_4] INFO  n.f.g.s.b.BtLEQueue - Attempting to start service discovery:true
07:14:04.264 [main] INFO  n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: true
07:14:04.286 [Binder_2] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Generic Access: 00001800-0000-1000-8000-00805f9b34fb
07:14:04.286 [Binder_2] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Device Name: 00002a00-0000-1000-8000-00805f9b34fb
07:14:04.286 [Binder_2] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Appearance: 00002a01-0000-1000-8000-00805f9b34fb
07:14:04.287 [Binder_2] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Peripheral Preferred Connection Parameters: 00002a04-0000-1000-8000-00805f9b34fb
07:14:04.287 [Binder_2] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Generic Attribute: 00001801-0000-1000-8000-00805f9b34fb
07:14:04.287 [Binder_2] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Service Changed: 00002a05-0000-1000-8000-00805f9b34fb
07:14:04.287 [Binder_2] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Device Information: 0000180a-0000-1000-8000-00805f9b34fb
07:14:04.287 [Binder_2] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Serial Number String: 00002a25-0000-1000-8000-00805f9b34fb
07:14:04.287 [Binder_2] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Hardware Revision String: 00002a27-0000-1000-8000-00805f9b34fb
07:14:04.287 [Binder_2] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Software Revision String: 00002a28-0000-1000-8000-00805f9b34fb
07:14:04.288 [Binder_2] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: System ID: 00002a23-0000-1000-8000-00805f9b34fb
07:14:04.288 [Binder_2] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: PnP ID: 00002a50-0000-1000-8000-00805f9b34fb
07:14:04.288 [Binder_2] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered unsupported service: (Propr: Xiaomi Weight Service): 00001530-0000-3512-2118-0009af100700
07:14:04.288 [Binder_2] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Alert Notification Service: 00001811-0000-1000-8000-00805f9b34fb
07:14:04.288 [Binder_2] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: New Alert: 00002a46-0000-1000-8000-00805f9b34fb
07:14:04.288 [Binder_2] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Alert Notification Control Point: 00002a44-0000-1000-8000-00805f9b34fb
07:14:04.288 [Binder_2] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Immediate Alert: 00001802-0000-1000-8000-00805f9b34fb
07:14:04.289 [Binder_2] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Alert Level: 00002a06-0000-1000-8000-00805f9b34fb
07:14:04.289 [Binder_2] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Heart Rate: 0000180d-0000-1000-8000-00805f9b34fb
07:14:04.289 [Binder_2] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Heart Rate Measurement: 00002a37-0000-1000-8000-00805f9b34fb
07:14:04.289 [Binder_2] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Heart Rate Control Point: 00002a39-0000-1000-8000-00805f9b34fb
07:14:04.289 [Binder_2] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Unknown Service: 0000fee0-0000-1000-8000-00805f9b34fb
07:14:04.289 [Binder_2] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Current Time: 00002a2b-0000-1000-8000-00805f9b34fb
07:14:04.289 [Binder_2] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Unknown Characteristic: 00000001-0000-3512-2118-0009af100700
07:14:04.290 [Binder_2] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Unknown Characteristic: 00000002-0000-3512-2118-0009af100700
07:14:04.290 [Binder_2] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Unknown Characteristic: 00000003-0000-3512-2118-0009af100700
07:14:04.290 [Binder_2] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Peripheral Preferred Connection Parameters: 00002a04-0000-1000-8000-00805f9b34fb
07:14:04.290 [Binder_2] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Unknown Characteristic: 00000004-0000-3512-2118-0009af100700
07:14:04.290 [Binder_2] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Unknown Characteristic: 00000005-0000-3512-2118-0009af100700
07:14:04.290 [Binder_2] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Unknown Characteristic: 00000006-0000-3512-2118-0009af100700
07:14:04.310 [Binder_2] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Unknown Characteristic: 00000007-0000-3512-2118-0009af100700
07:14:04.310 [Binder_2] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Unknown Characteristic: 00000008-0000-3512-2118-0009af100700
07:14:04.310 [Binder_2] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Unknown Characteristic: 00000010-0000-3512-2118-0009af100700
07:14:04.311 [Binder_2] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Unknown Service: 0000fee1-0000-1000-8000-00805f9b34fb
07:14:04.311 [Binder_2] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Unknown Characteristic: 00000009-0000-3512-2118-0009af100700
07:14:04.311 [Binder_2] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Unknown Characteristic: 0000fedd-0000-1000-8000-00805f9b34fb
07:14:04.311 [Binder_2] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Unknown Characteristic: 0000fede-0000-1000-8000-00805f9b34fb
07:14:04.311 [Binder_2] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Unknown Characteristic: 0000fedf-0000-1000-8000-00805f9b34fb
07:14:04.311 [Binder_2] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Unknown Characteristic: 0000fed0-0000-1000-8000-00805f9b34fb
07:14:04.311 [Binder_2] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Unknown Characteristic: 0000fed1-0000-1000-8000-00805f9b34fb
07:14:04.312 [Binder_2] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Unknown Characteristic: 0000fed2-0000-1000-8000-00805f9b34fb
07:14:04.312 [Binder_2] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Unknown Characteristic: 0000fed3-0000-1000-8000-00805f9b34fb
07:14:04.312 [Binder_2] WARN  n.f.g.s.b.TransactionBuilder - Unable to notify characteristic: null
07:14:04.312 [Binder_2] WARN  n.f.g.s.b.TransactionBuilder - Unable to notify characteristic: null
07:14:04.313 [Binder_2] DEBUG n.f.g.s.b.BtLEQueue - about to add: 7:14:04 AM: Transaction task: Initializing device with 3 actions
07:14:04.314 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - About to run action: 19 October, 7:14 AM: NotifyAction on characteristic: 00000009-0000-3512-2118-0009af100700
07:14:04.315 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.TransactionBuilder - use NOTIFICATION
07:14:04.333 [Binder_2] DEBUG n.f.g.s.b.BtLEQueue - descriptor write: 00002902-0000-1000-8000-00805f9b34fb (success)
07:14:04.334 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - About to run action: 19 October, 7:14 AM: SetDeviceStateAction to INITIALIZING
07:14:04.337 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - About to run action: 19 October, 7:14 AM: WriteAction on characteristic: 00000009-0000-3512-2118-0009af100700
07:14:04.344 [main] INFO  n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: true
07:14:04.345 [Binder_2] DEBUG n.f.g.s.b.BtLEQueue - characteristic write: 00000009-0000-3512-2118-0009af100700 (success)
07:14:04.346 [Binder_2] INFO  n.f.g.s.d.m.MiBand2Support - KEY AES SEND
07:14:04.346 [Binder_2] INFO  n.f.g.s.d.m.MiBand2Support - RECEIVED DATA WITH LENGTH: 2
07:14:04.346 [Binder_2] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0x 2
07:14:04.346 [Binder_2] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0x 8
07:14:04.710 [Binder_1] DEBUG n.f.g.s.b.BtLEQueue - characteristic changed: 00000009-0000-3512-2118-0009af100700 value:  0x10 0x2 0x1 0x87 0xcf 0xd4 0xc0 0x99 0xc9 0x96 0xaa 0x8b 0x23 0x38 0xf4 0x5d 0xdd 0xba 0x9e
07:14:04.711 [Binder_1] INFO  n.f.g.s.d.m.MiBand2Support - RECEIVED DATA WITH LENGTH: 19
07:14:04.711 [Binder_1] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0x10
07:14:04.711 [Binder_1] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0x 2
07:14:04.712 [Binder_1] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0x 1
07:14:04.712 [Binder_1] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0x87
07:14:04.712 [Binder_1] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0xcf
07:14:04.713 [Binder_1] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0xd4
07:14:04.713 [Binder_1] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0xc0
07:14:04.713 [Binder_1] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0x99
07:14:04.714 [Binder_1] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0xc9
07:14:04.714 [Binder_1] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0x96
07:14:04.724 [Binder_1] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0xaa
07:14:04.725 [Binder_1] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0x8b
07:14:04.726 [Binder_1] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0x23
07:14:04.727 [Binder_1] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0x38
07:14:04.727 [Binder_1] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0xf4
07:14:04.728 [Binder_1] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0x5d
07:14:04.728 [Binder_1] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0xdd
07:14:04.728 [Binder_1] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0xba
07:14:04.729 [Binder_1] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0x9e
07:14:04.732 [Binder_1] DEBUG n.f.g.s.b.BtLEQueue - about to insert: 7:14:04 AM: Transaction task: Sending the encrypted random key to the band with 2 actions
07:14:04.734 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - About to run action: 19 October, 7:14 AM: WriteAction on characteristic: 00000009-0000-3512-2118-0009af100700
07:14:04.737 [Binder_3] DEBUG n.f.g.s.b.BtLEQueue - characteristic write: 00000009-0000-3512-2118-0009af100700 (success)
07:14:04.738 [Binder_3] INFO  n.f.g.s.d.m.MiBand2Support - KEY AES SEND
07:14:04.738 [Binder_3] INFO  n.f.g.s.d.m.MiBand2Support - RECEIVED DATA WITH LENGTH: 18
07:14:04.739 [Binder_3] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0x 3
07:14:04.739 [Binder_3] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0x 8
07:14:04.739 [Binder_3] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0x48
07:14:04.739 [Binder_3] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0x51
07:14:04.740 [Binder_3] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0xa8
07:14:04.740 [Binder_3] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0x76
07:14:04.741 [Binder_3] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0x1c
07:14:04.741 [Binder_3] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0xe6
07:14:04.741 [Binder_3] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0xc3
07:14:04.742 [Binder_3] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0x8a
07:14:04.742 [Binder_3] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0xf7
07:14:04.742 [Binder_3] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0xf2
07:14:04.742 [Binder_3] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0x80
07:14:04.743 [Binder_3] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0x79
07:14:04.743 [Binder_3] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0x49
07:14:04.744 [Binder_3] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0x54
07:14:04.744 [Binder_3] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0x5c
07:14:04.744 [Binder_3] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0x 7
07:14:04.746 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - About to run action: 19 October, 7:14 AM: WriteAction on characteristic: 00002a2b-0000-1000-8000-00805f9b34fb
07:14:04.810 [Binder_2] DEBUG n.f.g.s.b.BtLEQueue - characteristic changed: 00000009-0000-3512-2118-0009af100700 value:  0x10 0x3 0x4
07:14:04.811 [Binder_2] INFO  n.f.g.s.d.m.MiBand2Support - RECEIVED DATA WITH LENGTH: 3
07:14:04.811 [Binder_2] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0x10
07:14:04.811 [Binder_2] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0x 3
07:14:04.811 [Binder_2] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0x 4
07:14:04.812 [Binder_2] INFO  n.f.g.s.d.m.MiBand2Support - AUTHENTICATION?? 00000009-0000-3512-2118-0009af100700
07:14:04.812 [Binder_2] INFO  n.f.g.s.d.m.MiBand2Support - RECEIVED DATA WITH LENGTH: 3
07:14:04.812 [Binder_2] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0x10
07:14:04.812 [Binder_2] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0x 3
07:14:04.812 [Binder_2] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0x 4
07:14:04.861 [Binder_4] DEBUG n.f.g.s.b.BtLEQueue - characteristic write: 00002a2b-0000-1000-8000-00805f9b34fb (success)
07:14:34.362 [Binder_1] DEBUG n.f.g.s.b.BtLEQueue - connection state change, newState: 0 (failed: 19)
07:14:34.362 [Binder_1] WARN  n.f.g.s.b.BtLEQueue - connection state event with error status 19
07:14:34.363 [Binder_1] INFO  n.f.g.s.b.BtLEQueue - Disconnected from GATT server.
07:14:34.363 [Binder_1] DEBUG n.f.g.s.b.BtLEQueue - handleDisconnected: 19
07:14:34.363 [Binder_1] DEBUG n.f.g.s.b.BtLEQueue - internal gatt callback set to null
07:14:34.363 [Binder_1] DEBUG n.f.g.s.b.BtLEQueue - new device connection state: NOT_CONNECTED
07:14:34.377 [Binder_1] DEBUG n.f.g.s.b.BtLEQueue - disconnect()
07:14:34.378 [Binder_1] INFO  n.f.g.s.b.BtLEQueue - Disconnecting BtLEQueue from GATT device
07:14:34.412 [main] INFO  n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: true
07:14:34.418 [Binder_1] DEBUG n.f.g.s.b.BtLEQueue - new device connection state: NOT_CONNECTED
07:14:34.459 [main] INFO  n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: true
07:14:37.665 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.connect
07:14:37.666 [main] DEBUG n.f.g.s.b.BtLEQueue - disconnect()
07:14:37.667 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - Thread interrupted
07:14:37.668 [GadgetBridge GATT Dispatcher] INFO  n.f.g.s.b.BtLEQueue - Queue Dispatch Thread terminated.
07:14:37.673 [main] INFO  n.f.g.s.b.BtLEQueue - Attempting to connect to kBand
07:14:37.674 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - Queue Dispatch Thread started.
07:14:37.679 [main] DEBUG n.f.g.s.b.BtLEQueue - new device connection state: CONNECTING
07:14:37.709 [main] INFO  n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: true
07:14:48.034 [main] INFO  n.f.g.e.BluetoothConnectReceiver - got connection attempt
07:14:48.046 [main] INFO  n.f.g.e.BluetoothConnectReceiver - won't connect to EA:4E:DE:EE:31:59(MI Band 2)
07:14:48.052 [Binder_2] DEBUG n.f.g.s.b.BtLEQueue - connection state change, newState: 2 (success)
07:14:48.052 [Binder_2] INFO  n.f.g.s.b.BtLEQueue - Connected to GATT server.
07:14:48.052 [Binder_2] DEBUG n.f.g.s.b.BtLEQueue - new device connection state: CONNECTED
07:14:48.066 [Binder_2] INFO  n.f.g.s.b.BtLEQueue - Attempting to start service discovery:true
07:14:48.084 [main] INFO  n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: true
07:14:48.128 [Binder_4] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Generic Access: 00001800-0000-1000-8000-00805f9b34fb
07:14:48.129 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Device Name: 00002a00-0000-1000-8000-00805f9b34fb
07:14:48.129 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Appearance: 00002a01-0000-1000-8000-00805f9b34fb
07:14:48.129 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Peripheral Preferred Connection Parameters: 00002a04-0000-1000-8000-00805f9b34fb
07:14:48.130 [Binder_4] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Generic Attribute: 00001801-0000-1000-8000-00805f9b34fb
07:14:48.131 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Service Changed: 00002a05-0000-1000-8000-00805f9b34fb
07:14:48.131 [Binder_4] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Device Information: 0000180a-0000-1000-8000-00805f9b34fb
07:14:48.131 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Serial Number String: 00002a25-0000-1000-8000-00805f9b34fb
07:14:48.131 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Hardware Revision String: 00002a27-0000-1000-8000-00805f9b34fb
07:14:48.131 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Software Revision String: 00002a28-0000-1000-8000-00805f9b34fb
07:14:48.131 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: System ID: 00002a23-0000-1000-8000-00805f9b34fb
07:14:48.131 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: PnP ID: 00002a50-0000-1000-8000-00805f9b34fb
07:14:48.132 [Binder_4] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered unsupported service: (Propr: Xiaomi Weight Service): 00001530-0000-3512-2118-0009af100700
07:14:48.132 [Binder_4] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Alert Notification Service: 00001811-0000-1000-8000-00805f9b34fb
07:14:48.132 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: New Alert: 00002a46-0000-1000-8000-00805f9b34fb
07:14:48.132 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Alert Notification Control Point: 00002a44-0000-1000-8000-00805f9b34fb
07:14:48.132 [Binder_4] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Immediate Alert: 00001802-0000-1000-8000-00805f9b34fb
07:14:48.132 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Alert Level: 00002a06-0000-1000-8000-00805f9b34fb
07:14:48.132 [Binder_4] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Heart Rate: 0000180d-0000-1000-8000-00805f9b34fb
07:14:48.133 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Heart Rate Measurement: 00002a37-0000-1000-8000-00805f9b34fb
07:14:48.133 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Heart Rate Control Point: 00002a39-0000-1000-8000-00805f9b34fb
07:14:48.133 [Binder_4] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Unknown Service: 0000fee0-0000-1000-8000-00805f9b34fb
07:14:48.133 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Current Time: 00002a2b-0000-1000-8000-00805f9b34fb
07:14:48.133 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Unknown Characteristic: 00000001-0000-3512-2118-0009af100700
07:14:48.133 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Unknown Characteristic: 00000002-0000-3512-2118-0009af100700
07:14:48.133 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Unknown Characteristic: 00000003-0000-3512-2118-0009af100700
07:14:48.134 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Peripheral Preferred Connection Parameters: 00002a04-0000-1000-8000-00805f9b34fb
07:14:48.134 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Unknown Characteristic: 00000004-0000-3512-2118-0009af100700
07:14:48.134 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Unknown Characteristic: 00000005-0000-3512-2118-0009af100700
07:14:48.134 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Unknown Characteristic: 00000006-0000-3512-2118-0009af100700
07:14:48.145 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Unknown Characteristic: 00000007-0000-3512-2118-0009af100700
07:14:48.145 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Unknown Characteristic: 00000008-0000-3512-2118-0009af100700
07:14:48.145 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Unknown Characteristic: 00000010-0000-3512-2118-0009af100700
07:14:48.145 [Binder_4] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Unknown Service: 0000fee1-0000-1000-8000-00805f9b34fb
07:14:48.146 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Unknown Characteristic: 00000009-0000-3512-2118-0009af100700
07:14:48.146 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Unknown Characteristic: 0000fedd-0000-1000-8000-00805f9b34fb
07:14:48.146 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Unknown Characteristic: 0000fede-0000-1000-8000-00805f9b34fb
07:14:48.147 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Unknown Characteristic: 0000fedf-0000-1000-8000-00805f9b34fb
07:14:48.147 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Unknown Characteristic: 0000fed0-0000-1000-8000-00805f9b34fb
07:14:48.147 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Unknown Characteristic: 0000fed1-0000-1000-8000-00805f9b34fb
07:14:48.148 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Unknown Characteristic: 0000fed2-0000-1000-8000-00805f9b34fb
07:14:48.148 [Binder_4] INFO  n.f.g.s.b.AbstractBTLEDeviceSupport -     characteristic: Unknown Characteristic: 0000fed3-0000-1000-8000-00805f9b34fb
07:14:48.148 [Binder_4] WARN  n.f.g.s.b.TransactionBuilder - Unable to notify characteristic: null
07:14:48.148 [Binder_4] WARN  n.f.g.s.b.TransactionBuilder - Unable to notify characteristic: null
07:14:48.149 [Binder_4] DEBUG n.f.g.s.b.BtLEQueue - about to add: 7:14:48 AM: Transaction task: Initializing device with 3 actions
07:14:48.150 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - About to run action: 19 October, 7:14 AM: NotifyAction on characteristic: 00000009-0000-3512-2118-0009af100700
07:14:48.153 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.TransactionBuilder - use NOTIFICATION
07:14:48.158 [Binder_4] DEBUG n.f.g.s.b.BtLEQueue - descriptor write: 00002902-0000-1000-8000-00805f9b34fb (success)
07:14:48.159 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - About to run action: 19 October, 7:14 AM: SetDeviceStateAction to INITIALIZING
07:14:48.160 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - About to run action: 19 October, 7:14 AM: WriteAction on characteristic: 00000009-0000-3512-2118-0009af100700
07:14:48.167 [main] INFO  n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: true
07:14:48.199 [Binder_4] DEBUG n.f.g.s.b.BtLEQueue - characteristic write: 00000009-0000-3512-2118-0009af100700 (success)
07:14:48.200 [Binder_4] INFO  n.f.g.s.d.m.MiBand2Support - KEY AES SEND
07:14:48.200 [Binder_4] INFO  n.f.g.s.d.m.MiBand2Support - RECEIVED DATA WITH LENGTH: 2
07:14:48.200 [Binder_4] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0x 2
07:14:48.201 [Binder_4] WARN  n.f.g.s.d.m.MiBand2Support - DATA: 0x 8
07:14:48.480 [Binder_2] DEBUG n.f.g.s.b.BtLEQueue - characteristic changed: 00000009-0000-3512-2118-0009af100700 value:  0x10 0x2 0x1 0xd5 0x5 0xd2 0xe6 0xc7 0x5f 0x74 0x30 0x99 0x19 0xf6 0xda 0x4b 0x33 0x58 0xe4
07:14:48.481 [Binder_2] INFO  n.f.g.s.d.m.MiBand2Support - RECEIVED DATA WITH LENGTH: 19
It did, after updating, I unpaired from mi fit, rebooted my phone and tried again. Unfortunately, the issue came up, ``` 07:13:58.089 [main] INFO n.f.g.Logging - Gadgetbridge version: 0.13.4 07:13:59.833 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.connect 07:13:59.836 [main] INFO n.f.g.s.b.BtLEQueue - Attempting to connect to kBand 07:13:59.838 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - Queue Dispatch Thread started. 07:13:59.842 [main] DEBUG n.f.g.s.b.BtLEQueue - new device connection state: CONNECTING 07:13:59.857 [main] INFO n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: true 07:13:59.881 [main] INFO n.f.g.e.MusicPlaybackReceiver - got metadata changed intent, but nothing changed, ignoring. 07:14:04.215 [main] INFO n.f.g.e.BluetoothConnectReceiver - got connection attempt 07:14:04.225 [Binder_4] DEBUG n.f.g.s.b.BtLEQueue - connection state change, newState: 2 (success) 07:14:04.225 [Binder_4] INFO n.f.g.s.b.BtLEQueue - Connected to GATT server. 07:14:04.225 [Binder_4] DEBUG n.f.g.s.b.BtLEQueue - new device connection state: CONNECTED 07:14:04.238 [main] INFO n.f.g.e.BluetoothConnectReceiver - won't connect to EA:4E:DE:EE:31:59(MI Band 2) 07:14:04.246 [Binder_4] INFO n.f.g.s.b.BtLEQueue - Attempting to start service discovery:true 07:14:04.264 [main] INFO n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: true 07:14:04.286 [Binder_2] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Generic Access: 00001800-0000-1000-8000-00805f9b34fb 07:14:04.286 [Binder_2] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Device Name: 00002a00-0000-1000-8000-00805f9b34fb 07:14:04.286 [Binder_2] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Appearance: 00002a01-0000-1000-8000-00805f9b34fb 07:14:04.287 [Binder_2] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Peripheral Preferred Connection Parameters: 00002a04-0000-1000-8000-00805f9b34fb 07:14:04.287 [Binder_2] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Generic Attribute: 00001801-0000-1000-8000-00805f9b34fb 07:14:04.287 [Binder_2] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Service Changed: 00002a05-0000-1000-8000-00805f9b34fb 07:14:04.287 [Binder_2] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Device Information: 0000180a-0000-1000-8000-00805f9b34fb 07:14:04.287 [Binder_2] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Serial Number String: 00002a25-0000-1000-8000-00805f9b34fb 07:14:04.287 [Binder_2] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Hardware Revision String: 00002a27-0000-1000-8000-00805f9b34fb 07:14:04.287 [Binder_2] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Software Revision String: 00002a28-0000-1000-8000-00805f9b34fb 07:14:04.288 [Binder_2] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: System ID: 00002a23-0000-1000-8000-00805f9b34fb 07:14:04.288 [Binder_2] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: PnP ID: 00002a50-0000-1000-8000-00805f9b34fb 07:14:04.288 [Binder_2] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered unsupported service: (Propr: Xiaomi Weight Service): 00001530-0000-3512-2118-0009af100700 07:14:04.288 [Binder_2] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Alert Notification Service: 00001811-0000-1000-8000-00805f9b34fb 07:14:04.288 [Binder_2] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: New Alert: 00002a46-0000-1000-8000-00805f9b34fb 07:14:04.288 [Binder_2] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Alert Notification Control Point: 00002a44-0000-1000-8000-00805f9b34fb 07:14:04.288 [Binder_2] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Immediate Alert: 00001802-0000-1000-8000-00805f9b34fb 07:14:04.289 [Binder_2] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Alert Level: 00002a06-0000-1000-8000-00805f9b34fb 07:14:04.289 [Binder_2] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Heart Rate: 0000180d-0000-1000-8000-00805f9b34fb 07:14:04.289 [Binder_2] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Heart Rate Measurement: 00002a37-0000-1000-8000-00805f9b34fb 07:14:04.289 [Binder_2] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Heart Rate Control Point: 00002a39-0000-1000-8000-00805f9b34fb 07:14:04.289 [Binder_2] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Unknown Service: 0000fee0-0000-1000-8000-00805f9b34fb 07:14:04.289 [Binder_2] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Current Time: 00002a2b-0000-1000-8000-00805f9b34fb 07:14:04.289 [Binder_2] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000001-0000-3512-2118-0009af100700 07:14:04.290 [Binder_2] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000002-0000-3512-2118-0009af100700 07:14:04.290 [Binder_2] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000003-0000-3512-2118-0009af100700 07:14:04.290 [Binder_2] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Peripheral Preferred Connection Parameters: 00002a04-0000-1000-8000-00805f9b34fb 07:14:04.290 [Binder_2] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000004-0000-3512-2118-0009af100700 07:14:04.290 [Binder_2] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000005-0000-3512-2118-0009af100700 07:14:04.290 [Binder_2] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000006-0000-3512-2118-0009af100700 07:14:04.310 [Binder_2] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000007-0000-3512-2118-0009af100700 07:14:04.310 [Binder_2] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000008-0000-3512-2118-0009af100700 07:14:04.310 [Binder_2] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000010-0000-3512-2118-0009af100700 07:14:04.311 [Binder_2] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Unknown Service: 0000fee1-0000-1000-8000-00805f9b34fb 07:14:04.311 [Binder_2] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000009-0000-3512-2118-0009af100700 07:14:04.311 [Binder_2] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 0000fedd-0000-1000-8000-00805f9b34fb 07:14:04.311 [Binder_2] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 0000fede-0000-1000-8000-00805f9b34fb 07:14:04.311 [Binder_2] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 0000fedf-0000-1000-8000-00805f9b34fb 07:14:04.311 [Binder_2] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 0000fed0-0000-1000-8000-00805f9b34fb 07:14:04.311 [Binder_2] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 0000fed1-0000-1000-8000-00805f9b34fb 07:14:04.312 [Binder_2] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 0000fed2-0000-1000-8000-00805f9b34fb 07:14:04.312 [Binder_2] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 0000fed3-0000-1000-8000-00805f9b34fb 07:14:04.312 [Binder_2] WARN n.f.g.s.b.TransactionBuilder - Unable to notify characteristic: null 07:14:04.312 [Binder_2] WARN n.f.g.s.b.TransactionBuilder - Unable to notify characteristic: null 07:14:04.313 [Binder_2] DEBUG n.f.g.s.b.BtLEQueue - about to add: 7:14:04 AM: Transaction task: Initializing device with 3 actions 07:14:04.314 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - About to run action: 19 October, 7:14 AM: NotifyAction on characteristic: 00000009-0000-3512-2118-0009af100700 07:14:04.315 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.TransactionBuilder - use NOTIFICATION 07:14:04.333 [Binder_2] DEBUG n.f.g.s.b.BtLEQueue - descriptor write: 00002902-0000-1000-8000-00805f9b34fb (success) 07:14:04.334 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - About to run action: 19 October, 7:14 AM: SetDeviceStateAction to INITIALIZING 07:14:04.337 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - About to run action: 19 October, 7:14 AM: WriteAction on characteristic: 00000009-0000-3512-2118-0009af100700 07:14:04.344 [main] INFO n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: true 07:14:04.345 [Binder_2] DEBUG n.f.g.s.b.BtLEQueue - characteristic write: 00000009-0000-3512-2118-0009af100700 (success) 07:14:04.346 [Binder_2] INFO n.f.g.s.d.m.MiBand2Support - KEY AES SEND 07:14:04.346 [Binder_2] INFO n.f.g.s.d.m.MiBand2Support - RECEIVED DATA WITH LENGTH: 2 07:14:04.346 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x 2 07:14:04.346 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x 8 07:14:04.710 [Binder_1] DEBUG n.f.g.s.b.BtLEQueue - characteristic changed: 00000009-0000-3512-2118-0009af100700 value: 0x10 0x2 0x1 0x87 0xcf 0xd4 0xc0 0x99 0xc9 0x96 0xaa 0x8b 0x23 0x38 0xf4 0x5d 0xdd 0xba 0x9e 07:14:04.711 [Binder_1] INFO n.f.g.s.d.m.MiBand2Support - RECEIVED DATA WITH LENGTH: 19 07:14:04.711 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x10 07:14:04.711 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x 2 07:14:04.712 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x 1 07:14:04.712 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x87 07:14:04.712 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0xcf 07:14:04.713 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0xd4 07:14:04.713 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0xc0 07:14:04.713 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x99 07:14:04.714 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0xc9 07:14:04.714 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x96 07:14:04.724 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0xaa 07:14:04.725 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x8b 07:14:04.726 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x23 07:14:04.727 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x38 07:14:04.727 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0xf4 07:14:04.728 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x5d 07:14:04.728 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0xdd 07:14:04.728 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0xba 07:14:04.729 [Binder_1] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x9e 07:14:04.732 [Binder_1] DEBUG n.f.g.s.b.BtLEQueue - about to insert: 7:14:04 AM: Transaction task: Sending the encrypted random key to the band with 2 actions 07:14:04.734 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - About to run action: 19 October, 7:14 AM: WriteAction on characteristic: 00000009-0000-3512-2118-0009af100700 07:14:04.737 [Binder_3] DEBUG n.f.g.s.b.BtLEQueue - characteristic write: 00000009-0000-3512-2118-0009af100700 (success) 07:14:04.738 [Binder_3] INFO n.f.g.s.d.m.MiBand2Support - KEY AES SEND 07:14:04.738 [Binder_3] INFO n.f.g.s.d.m.MiBand2Support - RECEIVED DATA WITH LENGTH: 18 07:14:04.739 [Binder_3] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x 3 07:14:04.739 [Binder_3] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x 8 07:14:04.739 [Binder_3] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x48 07:14:04.739 [Binder_3] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x51 07:14:04.740 [Binder_3] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0xa8 07:14:04.740 [Binder_3] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x76 07:14:04.741 [Binder_3] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x1c 07:14:04.741 [Binder_3] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0xe6 07:14:04.741 [Binder_3] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0xc3 07:14:04.742 [Binder_3] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x8a 07:14:04.742 [Binder_3] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0xf7 07:14:04.742 [Binder_3] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0xf2 07:14:04.742 [Binder_3] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x80 07:14:04.743 [Binder_3] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x79 07:14:04.743 [Binder_3] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x49 07:14:04.744 [Binder_3] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x54 07:14:04.744 [Binder_3] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x5c 07:14:04.744 [Binder_3] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x 7 07:14:04.746 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - About to run action: 19 October, 7:14 AM: WriteAction on characteristic: 00002a2b-0000-1000-8000-00805f9b34fb 07:14:04.810 [Binder_2] DEBUG n.f.g.s.b.BtLEQueue - characteristic changed: 00000009-0000-3512-2118-0009af100700 value: 0x10 0x3 0x4 07:14:04.811 [Binder_2] INFO n.f.g.s.d.m.MiBand2Support - RECEIVED DATA WITH LENGTH: 3 07:14:04.811 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x10 07:14:04.811 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x 3 07:14:04.811 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x 4 07:14:04.812 [Binder_2] INFO n.f.g.s.d.m.MiBand2Support - AUTHENTICATION?? 00000009-0000-3512-2118-0009af100700 07:14:04.812 [Binder_2] INFO n.f.g.s.d.m.MiBand2Support - RECEIVED DATA WITH LENGTH: 3 07:14:04.812 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x10 07:14:04.812 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x 3 07:14:04.812 [Binder_2] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x 4 07:14:04.861 [Binder_4] DEBUG n.f.g.s.b.BtLEQueue - characteristic write: 00002a2b-0000-1000-8000-00805f9b34fb (success) 07:14:34.362 [Binder_1] DEBUG n.f.g.s.b.BtLEQueue - connection state change, newState: 0 (failed: 19) 07:14:34.362 [Binder_1] WARN n.f.g.s.b.BtLEQueue - connection state event with error status 19 07:14:34.363 [Binder_1] INFO n.f.g.s.b.BtLEQueue - Disconnected from GATT server. 07:14:34.363 [Binder_1] DEBUG n.f.g.s.b.BtLEQueue - handleDisconnected: 19 07:14:34.363 [Binder_1] DEBUG n.f.g.s.b.BtLEQueue - internal gatt callback set to null 07:14:34.363 [Binder_1] DEBUG n.f.g.s.b.BtLEQueue - new device connection state: NOT_CONNECTED 07:14:34.377 [Binder_1] DEBUG n.f.g.s.b.BtLEQueue - disconnect() 07:14:34.378 [Binder_1] INFO n.f.g.s.b.BtLEQueue - Disconnecting BtLEQueue from GATT device 07:14:34.412 [main] INFO n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: true 07:14:34.418 [Binder_1] DEBUG n.f.g.s.b.BtLEQueue - new device connection state: NOT_CONNECTED 07:14:34.459 [main] INFO n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: true 07:14:37.665 [main] DEBUG n.f.g.s.DeviceCommunicationService - Service startcommand: nodomain.freeyourgadget.gadgetbridge.devices.action.connect 07:14:37.666 [main] DEBUG n.f.g.s.b.BtLEQueue - disconnect() 07:14:37.667 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - Thread interrupted 07:14:37.668 [GadgetBridge GATT Dispatcher] INFO n.f.g.s.b.BtLEQueue - Queue Dispatch Thread terminated. 07:14:37.673 [main] INFO n.f.g.s.b.BtLEQueue - Attempting to connect to kBand 07:14:37.674 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - Queue Dispatch Thread started. 07:14:37.679 [main] DEBUG n.f.g.s.b.BtLEQueue - new device connection state: CONNECTING 07:14:37.709 [main] INFO n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: true 07:14:48.034 [main] INFO n.f.g.e.BluetoothConnectReceiver - got connection attempt 07:14:48.046 [main] INFO n.f.g.e.BluetoothConnectReceiver - won't connect to EA:4E:DE:EE:31:59(MI Band 2) 07:14:48.052 [Binder_2] DEBUG n.f.g.s.b.BtLEQueue - connection state change, newState: 2 (success) 07:14:48.052 [Binder_2] INFO n.f.g.s.b.BtLEQueue - Connected to GATT server. 07:14:48.052 [Binder_2] DEBUG n.f.g.s.b.BtLEQueue - new device connection state: CONNECTED 07:14:48.066 [Binder_2] INFO n.f.g.s.b.BtLEQueue - Attempting to start service discovery:true 07:14:48.084 [main] INFO n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: true 07:14:48.128 [Binder_4] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Generic Access: 00001800-0000-1000-8000-00805f9b34fb 07:14:48.129 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Device Name: 00002a00-0000-1000-8000-00805f9b34fb 07:14:48.129 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Appearance: 00002a01-0000-1000-8000-00805f9b34fb 07:14:48.129 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Peripheral Preferred Connection Parameters: 00002a04-0000-1000-8000-00805f9b34fb 07:14:48.130 [Binder_4] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Generic Attribute: 00001801-0000-1000-8000-00805f9b34fb 07:14:48.131 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Service Changed: 00002a05-0000-1000-8000-00805f9b34fb 07:14:48.131 [Binder_4] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Device Information: 0000180a-0000-1000-8000-00805f9b34fb 07:14:48.131 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Serial Number String: 00002a25-0000-1000-8000-00805f9b34fb 07:14:48.131 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Hardware Revision String: 00002a27-0000-1000-8000-00805f9b34fb 07:14:48.131 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Software Revision String: 00002a28-0000-1000-8000-00805f9b34fb 07:14:48.131 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: System ID: 00002a23-0000-1000-8000-00805f9b34fb 07:14:48.131 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: PnP ID: 00002a50-0000-1000-8000-00805f9b34fb 07:14:48.132 [Binder_4] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered unsupported service: (Propr: Xiaomi Weight Service): 00001530-0000-3512-2118-0009af100700 07:14:48.132 [Binder_4] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Alert Notification Service: 00001811-0000-1000-8000-00805f9b34fb 07:14:48.132 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: New Alert: 00002a46-0000-1000-8000-00805f9b34fb 07:14:48.132 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Alert Notification Control Point: 00002a44-0000-1000-8000-00805f9b34fb 07:14:48.132 [Binder_4] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Immediate Alert: 00001802-0000-1000-8000-00805f9b34fb 07:14:48.132 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Alert Level: 00002a06-0000-1000-8000-00805f9b34fb 07:14:48.132 [Binder_4] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Heart Rate: 0000180d-0000-1000-8000-00805f9b34fb 07:14:48.133 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Heart Rate Measurement: 00002a37-0000-1000-8000-00805f9b34fb 07:14:48.133 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Heart Rate Control Point: 00002a39-0000-1000-8000-00805f9b34fb 07:14:48.133 [Binder_4] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Unknown Service: 0000fee0-0000-1000-8000-00805f9b34fb 07:14:48.133 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Current Time: 00002a2b-0000-1000-8000-00805f9b34fb 07:14:48.133 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000001-0000-3512-2118-0009af100700 07:14:48.133 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000002-0000-3512-2118-0009af100700 07:14:48.133 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000003-0000-3512-2118-0009af100700 07:14:48.134 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Peripheral Preferred Connection Parameters: 00002a04-0000-1000-8000-00805f9b34fb 07:14:48.134 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000004-0000-3512-2118-0009af100700 07:14:48.134 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000005-0000-3512-2118-0009af100700 07:14:48.134 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000006-0000-3512-2118-0009af100700 07:14:48.145 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000007-0000-3512-2118-0009af100700 07:14:48.145 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000008-0000-3512-2118-0009af100700 07:14:48.145 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000010-0000-3512-2118-0009af100700 07:14:48.145 [Binder_4] DEBUG n.f.g.s.b.AbstractBTLEDeviceSupport - discovered supported service: Unknown Service: 0000fee1-0000-1000-8000-00805f9b34fb 07:14:48.146 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 00000009-0000-3512-2118-0009af100700 07:14:48.146 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 0000fedd-0000-1000-8000-00805f9b34fb 07:14:48.146 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 0000fede-0000-1000-8000-00805f9b34fb 07:14:48.147 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 0000fedf-0000-1000-8000-00805f9b34fb 07:14:48.147 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 0000fed0-0000-1000-8000-00805f9b34fb 07:14:48.147 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 0000fed1-0000-1000-8000-00805f9b34fb 07:14:48.148 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 0000fed2-0000-1000-8000-00805f9b34fb 07:14:48.148 [Binder_4] INFO n.f.g.s.b.AbstractBTLEDeviceSupport - characteristic: Unknown Characteristic: 0000fed3-0000-1000-8000-00805f9b34fb 07:14:48.148 [Binder_4] WARN n.f.g.s.b.TransactionBuilder - Unable to notify characteristic: null 07:14:48.148 [Binder_4] WARN n.f.g.s.b.TransactionBuilder - Unable to notify characteristic: null 07:14:48.149 [Binder_4] DEBUG n.f.g.s.b.BtLEQueue - about to add: 7:14:48 AM: Transaction task: Initializing device with 3 actions 07:14:48.150 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - About to run action: 19 October, 7:14 AM: NotifyAction on characteristic: 00000009-0000-3512-2118-0009af100700 07:14:48.153 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.TransactionBuilder - use NOTIFICATION 07:14:48.158 [Binder_4] DEBUG n.f.g.s.b.BtLEQueue - descriptor write: 00002902-0000-1000-8000-00805f9b34fb (success) 07:14:48.159 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - About to run action: 19 October, 7:14 AM: SetDeviceStateAction to INITIALIZING 07:14:48.160 [GadgetBridge GATT Dispatcher] DEBUG n.f.g.s.b.BtLEQueue - About to run action: 19 October, 7:14 AM: WriteAction on characteristic: 00000009-0000-3512-2118-0009af100700 07:14:48.167 [main] INFO n.f.g.s.DeviceCommunicationService - Setting broadcast receivers to: true 07:14:48.199 [Binder_4] DEBUG n.f.g.s.b.BtLEQueue - characteristic write: 00000009-0000-3512-2118-0009af100700 (success) 07:14:48.200 [Binder_4] INFO n.f.g.s.d.m.MiBand2Support - KEY AES SEND 07:14:48.200 [Binder_4] INFO n.f.g.s.d.m.MiBand2Support - RECEIVED DATA WITH LENGTH: 2 07:14:48.200 [Binder_4] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x 2 07:14:48.201 [Binder_4] WARN n.f.g.s.d.m.MiBand2Support - DATA: 0x 8 07:14:48.480 [Binder_2] DEBUG n.f.g.s.b.BtLEQueue - characteristic changed: 00000009-0000-3512-2118-0009af100700 value: 0x10 0x2 0x1 0xd5 0x5 0xd2 0xe6 0xc7 0x5f 0x74 0x30 0x99 0x19 0xf6 0xda 0x4b 0x33 0x58 0xe4 07:14:48.481 [Binder_2] INFO n.f.g.s.d.m.MiBand2Support - RECEIVED DATA WITH LENGTH: 19 ```
djabi commented 5 years ago (Migrated from github.com)
Owner

I see the same behavior with Nexus 5x/Android 7.0. I don't have access to mi band 2 at the moment but I'll post logs once I get home in few days. I tried all kinds of things - pairing with MiFit, un-pari-ing, removing the band paring from the system configuration, updating the band firmware, rebooting the device, connecting nRF Connect app, etc. No luck so far. MiFit connect and can control the band. I can connect with nRF connect and talk to the band but Gadgetbridge can't successfully connect. It can see the band, start connecting but the connection never completes and it times out in 30 seconds or so.

I see the same behavior with Nexus 5x/Android 7.0. I don't have access to mi band 2 at the moment but I'll post logs once I get home in few days. I tried all kinds of things - pairing with MiFit, un-pari-ing, removing the band paring from the system configuration, updating the band firmware, rebooting the device, connecting nRF Connect app, etc. No luck so far. MiFit connect and can control the band. I can connect with nRF connect and talk to the band but Gadgetbridge can't successfully connect. It can see the band, start connecting but the connection never completes and it times out in 30 seconds or so.
Owner

I don't have an idea why this happens, yet. Might be the different firmware version, might be something else.

Do you remember if firmware was updated before this happened?

nrfConnect cannot keep a stable connection either, right?

Is there an option in MiFit to "free" the band?

I don't have an idea why this happens, yet. Might be the different firmware version, might be something else. Do you remember if firmware was updated before this happened? nrfConnect cannot keep a stable connection either, right? Is there an option in MiFit to "free" the band?
ghost commented 5 years ago (Migrated from github.com)
Poster
Owner

I had MiFit connect to the mi band before I came across this project.
When I did connect it to MiFit for the very first time, it updated the firmware.

I had MiFit connect to the mi band before I came across this project. When I did connect it to MiFit for the very first time, it updated the firmware.
Owner

Hehe, "might fix #408" means "close issue" for github ;-)

Hehe, "might fix #408" means "close issue" for github ;-)
DocLM commented 5 years ago (Migrated from github.com)
Owner

I have the same issue but downgrade to v0.13.4 solve it

I have the same issue but downgrade to v0.13.4 solve it
Owner

Did you try version 0.13.8? That should work.

Did you try version 0.13.8? That should work.
DocLM commented 5 years ago (Migrated from github.com)
Owner

Yes, i tried this morning but it was not working without Mi Fit. I'm on FW 1.0.0.53 and I can confirm that with Gadgetbridge 0.13.4 it works without other apps.

Yes, i tried this morning but it was not working without Mi Fit. I'm on FW 1.0.0.53 and I can confirm that with Gadgetbridge 0.13.4 it works without other apps.
Owner

I pushed a change that might fix the problem.

I pushed a change that might fix the problem.
DocLM commented 5 years ago (Migrated from github.com)
Owner

Thank you, i will try it tomorrow

Thank you, i will try it tomorrow
DocLM commented 5 years ago (Migrated from github.com)
Owner

I confirm that now its working

I confirm that now its working
Owner

Thanks, so, I'll close this. If anyone still has connection problems, please open a new issue, preferably again with a log file.

Thanks, so, I'll close this. If anyone still has connection problems, please open a new issue, preferably again with a log file.
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.