This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

BLE Services not discovered in Android

I'm running some stress tests on a nRF52832-based product, with the following setup:

 - SDK 12.0.0

 - SD 3.1.0

 - Compatibility modes 1 and 2 enabled.

The device exposes 6 BLE services (BAS, DID, DFU, Generic Access, Generic Attribute and our own service).

Tests are run from an Android application based on Nordic's BLE library 1.2. Application usually discovers services correctly but every know and then will fail and will discover no services at all (like 1 every 6 times, connection goes well, only no services discovered).

I attached a full trace of the whole procedure. It includes some write/notifications on our own service's characteristics upon BLE connection establishment, which are expected. Apart from that, no other specific BLE activity.

MK101_Test_Application, 2018-07-16
BLE (MK101_BLE)
V 12:38:23.119 Connecting...
D 12:38:23.124 gatt = device.connectGatt(autoConnect = false)
D 12:38:23.258 [Callback] Connection state changed with status: 0 and new state: 2 (CONNECTED)
I 12:38:23.277 Connected to D7:B8:25:14:13:9B
D 12:38:23.285 wait(600)
V 12:38:23.894 Discovering Services...
D 12:38:23.900 gatt.discoverServices()
I 12:38:24.606 Services Discovered status: 0
I 12:38:24.626 Services Discovered gatt: android.bluetooth.BluetoothGatt@399630
I 12:38:24.639 Services Discovered: 6
V 12:38:24.652 Primary service found
A 12:38:24.665 Reading battery level...
V 12:38:24.675 Reading characteristic 00002a19-0000-1000-8000-00805f9b34fb
D 12:38:24.689 gatt.readCharacteristic(00002a19-0000-1000-8000-00805f9b34fb)
I 12:38:24.816 Read Response received from 00002a19-0000-1000-8000-00805f9b34fb, value: (0x) 64
A 12:38:24.823 Battery level received: 100%
D 12:38:24.831 gatt.setCharacteristicNotification(d44bc439-abfd-45a2-b575-925416129601, true)
V 12:38:24.841 Enabling indications for d44bc439-abfd-45a2-b575-925416129601
D 12:38:24.850 gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x02-00)
I 12:38:24.911 Data written to descr. 00002902-0000-1000-8000-00805f9b34fb, value: (0x) 02-00
A 12:38:24.923 Indications enabled
V 12:38:27.445 Writing characteristic d44bc439-abfd-45a2-b575-925416129600 (WRITE REQUEST)
D 12:38:27.460 gatt.writeCharacteristic(d44bc439-abfd-45a2-b575-925416129600)
I 12:38:27.545 Data written to d44bc439-abfd-45a2-b575-925416129600, value: (0x) 07-02-70-01
I 12:38:27.645 Indication received from d44bc439-abfd-45a2-b575-925416129601, value: (0x) 00-1E-00-00-02-08-00-00-04-03-04-00-11-01-12-01-00-51-00-00
I 12:38:27.740 Indication received from d44bc439-abfd-45a2-b575-925416129601, value: (0x) 04-00-00-02-03-05-02-02-08-00-08-00-00
I 12:38:27.837 Indication received from d44bc439-abfd-45a2-b575-925416129601, value: (0x) 0A-04-00-A7-01-00-00
V 12:38:36.238 Disconnecting...
D 12:38:36.244 gatt.disconnect()
D 12:38:36.253 [Callback] Connection state changed with status: 0 and new state: 0 (DISCONNECTED)
I 12:38:36.260 Disconnected
D 12:38:36.270 gatt.close()
V 12:38:38.499 Connecting...
D 12:38:38.512 gatt = device.connectGatt(autoConnect = false)
D 12:38:38.762 [Callback] Connection state changed with status: 0 and new state: 2 (CONNECTED)
I 12:38:38.786 Connected to D7:B8:25:14:13:9B
D 12:38:38.797 wait(600)
V 12:38:39.410 Discovering Services...
D 12:38:39.418 gatt.discoverServices()
I 12:38:39.968 Services Discovered status: 0
I 12:38:39.983 Services Discovered gatt: android.bluetooth.BluetoothGatt@3a2f7fa
I 12:38:39.995 Services Discovered: 6
V 12:38:40.005 Primary service found
A 12:38:40.016 Reading battery level...
V 12:38:40.024 Reading characteristic 00002a19-0000-1000-8000-00805f9b34fb
D 12:38:40.032 gatt.readCharacteristic(00002a19-0000-1000-8000-00805f9b34fb)
I 12:38:40.123 Read Response received from 00002a19-0000-1000-8000-00805f9b34fb, value: (0x) 64
A 12:38:40.131 Battery level received: 100%
D 12:38:40.140 gatt.setCharacteristicNotification(d44bc439-abfd-45a2-b575-925416129601, true)
V 12:38:40.150 Enabling indications for d44bc439-abfd-45a2-b575-925416129601
D 12:38:40.157 gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x02-00)
I 12:38:40.220 Data written to descr. 00002902-0000-1000-8000-00805f9b34fb, value: (0x) 02-00
A 12:38:40.229 Indications enabled
V 12:38:42.743 Writing characteristic d44bc439-abfd-45a2-b575-925416129600 (WRITE REQUEST)
D 12:38:42.753 gatt.writeCharacteristic(d44bc439-abfd-45a2-b575-925416129600)
I 12:38:42.852 Data written to d44bc439-abfd-45a2-b575-925416129600, value: (0x) 07-02-70-01
I 12:38:42.950 Indication received from d44bc439-abfd-45a2-b575-925416129601, value: (0x) 00-1E-00-00-02-08-00-00-04-03-04-00-11-01-12-01-00-51-00-00
I 12:38:43.047 Indication received from d44bc439-abfd-45a2-b575-925416129601, value: (0x) 04-00-00-02-03-05-02-02-08-00-08-00-00
I 12:38:43.144 Indication received from d44bc439-abfd-45a2-b575-925416129601, value: (0x) 0A-04-00-A7-01-00-00
V 12:38:45.266 Disconnecting...
D 12:38:45.276 gatt.disconnect()
D 12:38:45.289 [Callback] Connection state changed with status: 0 and new state: 0 (DISCONNECTED)
I 12:38:45.302 Disconnected
D 12:38:45.314 gatt.close()
V 12:38:47.148 Connecting...
D 12:38:47.159 gatt = device.connectGatt(autoConnect = false)
D 12:38:47.341 [Callback] Connection state changed with status: 0 and new state: 2 (CONNECTED)
I 12:38:47.363 Connected to D7:B8:25:14:13:9B
D 12:38:47.384 wait(600)
V 12:38:48.001 Discovering Services...
D 12:38:48.010 gatt.discoverServices()
I 12:38:48.533 Services Discovered status: 0
I 12:38:48.550 Services Discovered gatt: android.bluetooth.BluetoothGatt@b4ceb23
I 12:38:48.563 Services Discovered: 6
V 12:38:48.574 Primary service found
A 12:38:48.587 Reading battery level...
V 12:38:48.596 Reading characteristic 00002a19-0000-1000-8000-00805f9b34fb
D 12:38:48.605 gatt.readCharacteristic(00002a19-0000-1000-8000-00805f9b34fb)
I 12:38:48.703 Read Response received from 00002a19-0000-1000-8000-00805f9b34fb, value: (0x) 64
A 12:38:48.711 Battery level received: 100%
D 12:38:48.720 gatt.setCharacteristicNotification(d44bc439-abfd-45a2-b575-925416129601, true)
V 12:38:48.730 Enabling indications for d44bc439-abfd-45a2-b575-925416129601
D 12:38:48.738 gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x02-00)
I 12:38:48.800 Data written to descr. 00002902-0000-1000-8000-00805f9b34fb, value: (0x) 02-00
A 12:38:48.808 Indications enabled
V 12:38:51.323 Writing characteristic d44bc439-abfd-45a2-b575-925416129600 (WRITE REQUEST)
D 12:38:51.335 gatt.writeCharacteristic(d44bc439-abfd-45a2-b575-925416129600)
I 12:38:51.432 Data written to d44bc439-abfd-45a2-b575-925416129600, value: (0x) 07-02-70-01
I 12:38:51.530 Indication received from d44bc439-abfd-45a2-b575-925416129601, value: (0x) 00-1E-00-00-02-08-00-00-04-03-04-00-11-01-12-01-00-51-00-00
I 12:38:51.678 Indication received from d44bc439-abfd-45a2-b575-925416129601, value: (0x) 04-00-00-02-03-05-02-02-08-00-08-00-00
I 12:38:51.822 Indication received from d44bc439-abfd-45a2-b575-925416129601, value: (0x) 0A-04-00-A7-01-00-00
V 12:38:53.751 Disconnecting...
D 12:38:53.760 gatt.disconnect()
D 12:38:53.773 [Callback] Connection state changed with status: 0 and new state: 0 (DISCONNECTED)
I 12:38:53.787 Disconnected
D 12:38:53.801 gatt.close()
V 12:38:55.641 Connecting...
D 12:38:55.692 gatt = device.connectGatt(autoConnect = false)
D 12:38:55.873 [Callback] Connection state changed with status: 0 and new state: 2 (CONNECTED)
I 12:38:55.886 Connected to D7:B8:25:14:13:9B
D 12:38:55.897 wait(600)
V 12:38:56.510 Discovering Services...
D 12:38:56.518 gatt.discoverServices()
I 12:38:56.993 Services Discovered status: 0
I 12:38:57.007 Services Discovered gatt: android.bluetooth.BluetoothGatt@137ab38
I 12:38:57.017 Services Discovered: 6
V 12:38:57.030 Primary service found
A 12:38:57.041 Reading battery level...
V 12:38:57.049 Reading characteristic 00002a19-0000-1000-8000-00805f9b34fb
D 12:38:57.057 gatt.readCharacteristic(00002a19-0000-1000-8000-00805f9b34fb)
I 12:38:57.087 Read Response received from 00002a19-0000-1000-8000-00805f9b34fb, value: (0x) 64
A 12:38:57.096 Battery level received: 100%
D 12:38:57.103 gatt.setCharacteristicNotification(d44bc439-abfd-45a2-b575-925416129601, true)
V 12:38:57.112 Enabling indications for d44bc439-abfd-45a2-b575-925416129601
D 12:38:57.120 gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x02-00)
I 12:38:57.185 Data written to descr. 00002902-0000-1000-8000-00805f9b34fb, value: (0x) 02-00
A 12:38:57.193 Indications enabled
V 12:38:59.707 Writing characteristic d44bc439-abfd-45a2-b575-925416129600 (WRITE REQUEST)
D 12:38:59.719 gatt.writeCharacteristic(d44bc439-abfd-45a2-b575-925416129600)
I 12:38:59.818 Data written to d44bc439-abfd-45a2-b575-925416129600, value: (0x) 07-02-70-01
I 12:38:59.914 Indication received from d44bc439-abfd-45a2-b575-925416129601, value: (0x) 00-1E-00-00-02-08-00-00-04-03-04-00-11-01-12-01-00-51-00-00
I 12:39:00.013 Indication received from d44bc439-abfd-45a2-b575-925416129601, value: (0x) 04-00-00-02-03-05-02-02-08-00-08-00-00
I 12:39:00.110 Indication received from d44bc439-abfd-45a2-b575-925416129601, value: (0x) 0A-04-00-A7-01-00-00
V 12:39:02.167 Disconnecting...
D 12:39:02.181 gatt.disconnect()
D 12:39:02.194 [Callback] Connection state changed with status: 0 and new state: 0 (DISCONNECTED)
I 12:39:02.205 Disconnected
D 12:39:02.216 gatt.close()
V 12:39:04.038 Connecting...
D 12:39:04.050 gatt = device.connectGatt(autoConnect = false)
D 12:39:04.258 [Callback] Connection state changed with status: 0 and new state: 2 (CONNECTED)
I 12:39:04.281 Connected to D7:B8:25:14:13:9B
D 12:39:04.293 wait(600)
V 12:39:04.907 Discovering Services...
D 12:39:04.916 gatt.discoverServices()
I 12:39:05.407 Services Discovered status: 0
I 12:39:05.423 Services Discovered gatt: android.bluetooth.BluetoothGatt@ee6a749
I 12:39:05.433 Services Discovered: 6
V 12:39:05.443 Primary service found
A 12:39:05.453 Reading battery level...
V 12:39:05.462 Reading characteristic 00002a19-0000-1000-8000-00805f9b34fb
D 12:39:05.469 gatt.readCharacteristic(00002a19-0000-1000-8000-00805f9b34fb)
I 12:39:05.521 Read Response received from 00002a19-0000-1000-8000-00805f9b34fb, value: (0x) 64
A 12:39:05.529 Battery level received: 100%
D 12:39:05.537 gatt.setCharacteristicNotification(d44bc439-abfd-45a2-b575-925416129601, true)
V 12:39:05.546 Enabling indications for d44bc439-abfd-45a2-b575-925416129601
D 12:39:05.553 gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x02-00)
I 12:39:05.619 Data written to descr. 00002902-0000-1000-8000-00805f9b34fb, value: (0x) 02-00
A 12:39:05.627 Indications enabled
V 12:39:08.141 Writing characteristic d44bc439-abfd-45a2-b575-925416129600 (WRITE REQUEST)
D 12:39:08.153 gatt.writeCharacteristic(d44bc439-abfd-45a2-b575-925416129600)
I 12:39:08.250 Data written to d44bc439-abfd-45a2-b575-925416129600, value: (0x) 07-02-70-01
I 12:39:08.348 Indication received from d44bc439-abfd-45a2-b575-925416129601, value: (0x) 00-1E-00-00-02-08-00-00-04-03-04-00-11-01-12-01-00-51-00-00
I 12:39:08.446 Indication received from d44bc439-abfd-45a2-b575-925416129601, value: (0x) 04-00-00-02-03-05-02-02-08-00-08-00-00
I 12:39:08.641 Indication received from d44bc439-abfd-45a2-b575-925416129601, value: (0x) 0A-04-00-A7-01-00-00
V 12:39:10.633 Disconnecting...
D 12:39:10.647 gatt.disconnect()
D 12:39:10.658 [Callback] Connection state changed with status: 0 and new state: 0 (DISCONNECTED)
I 12:39:10.670 Disconnected
D 12:39:10.681 gatt.close()
V 12:39:12.301 Connecting...
D 12:39:12.312 gatt = device.connectGatt(autoConnect = false)
D 12:39:12.400 [Callback] Connection state changed with status: 0 and new state: 2 (CONNECTED)
I 12:39:12.413 Connected to D7:B8:25:14:13:9B
D 12:39:12.424 wait(600)
V 12:39:13.035 Discovering Services...
D 12:39:13.043 gatt.discoverServices()
I 12:39:13.717 Services Discovered status: 0
I 12:39:13.732 Services Discovered gatt: android.bluetooth.BluetoothGatt@9287326
I 12:39:13.743 Services Discovered: 6
V 12:39:13.753 Primary service found
A 12:39:13.765 Reading battery level...
V 12:39:13.773 Reading characteristic 00002a19-0000-1000-8000-00805f9b34fb
D 12:39:13.781 gatt.readCharacteristic(00002a19-0000-1000-8000-00805f9b34fb)
I 12:39:13.809 Read Response received from 00002a19-0000-1000-8000-00805f9b34fb, value: (0x) 64
A 12:39:13.817 Battery level received: 100%
D 12:39:13.826 gatt.setCharacteristicNotification(d44bc439-abfd-45a2-b575-925416129601, true)
V 12:39:13.836 Enabling indications for d44bc439-abfd-45a2-b575-925416129601
D 12:39:13.844 gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x02-00)
I 12:39:13.907 Data written to descr. 00002902-0000-1000-8000-00805f9b34fb, value: (0x) 02-00
A 12:39:13.915 Indications enabled
V 12:39:16.429 Writing characteristic d44bc439-abfd-45a2-b575-925416129600 (WRITE REQUEST)
D 12:39:16.441 gatt.writeCharacteristic(d44bc439-abfd-45a2-b575-925416129600)
I 12:39:16.587 Data written to d44bc439-abfd-45a2-b575-925416129600, value: (0x) 07-02-70-01
I 12:39:16.636 Indication received from d44bc439-abfd-45a2-b575-925416129601, value: (0x) 00-1E-00-00-02-08-00-00-04-03-04-00-11-01-12-01-00-51-00-00
I 12:39:16.783 Indication received from d44bc439-abfd-45a2-b575-925416129601, value: (0x) 04-00-00-02-03-05-02-02-08-00-08-00-00
I 12:39:16.880 Indication received from d44bc439-abfd-45a2-b575-925416129601, value: (0x) 0A-04-00-A7-01-00-00
V 12:39:19.984 Disconnecting...
D 12:39:20.000 gatt.disconnect()
D 12:39:20.015 [Callback] Connection state changed with status: 0 and new state: 0 (DISCONNECTED)
I 12:39:20.026 Disconnected
D 12:39:20.038 gatt.close()
V 12:39:21.930 Connecting...
D 12:39:21.942 gatt = device.connectGatt(autoConnect = false)
D 12:39:22.102 [Callback] Connection state changed with status: 0 and new state: 2 (CONNECTED)
I 12:39:22.116 Connected to D7:B8:25:14:13:9B
D 12:39:22.127 wait(600)
V 12:39:22.739 Discovering Services...
D 12:39:22.747 gatt.discoverServices()
I 12:39:23.393 Services Discovered status: 0
I 12:39:23.410 Services Discovered gatt: android.bluetooth.BluetoothGatt@243c05f
I 12:39:23.422 Services Discovered: 6
V 12:39:23.431 Primary service found
A 12:39:23.442 Reading battery level...
V 12:39:23.451 Reading characteristic 00002a19-0000-1000-8000-00805f9b34fb
D 12:39:23.459 gatt.readCharacteristic(00002a19-0000-1000-8000-00805f9b34fb)
I 12:39:23.560 Read Response received from 00002a19-0000-1000-8000-00805f9b34fb, value: (0x) 64
A 12:39:23.568 Battery level received: 100%
D 12:39:23.577 gatt.setCharacteristicNotification(d44bc439-abfd-45a2-b575-925416129601, true)
V 12:39:23.587 Enabling indications for d44bc439-abfd-45a2-b575-925416129601
D 12:39:23.594 gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x02-00)
I 12:39:23.657 Data written to descr. 00002902-0000-1000-8000-00805f9b34fb, value: (0x) 02-00
A 12:39:23.665 Indications enabled
V 12:39:26.180 Writing characteristic d44bc439-abfd-45a2-b575-925416129600 (WRITE REQUEST)
D 12:39:26.192 gatt.writeCharacteristic(d44bc439-abfd-45a2-b575-925416129600)
I 12:39:26.288 Data written to d44bc439-abfd-45a2-b575-925416129600, value: (0x) 07-02-70-01
I 12:39:26.483 Indication received from d44bc439-abfd-45a2-b575-925416129601, value: (0x) 00-1E-00-00-02-08-00-00-04-03-04-00-11-01-12-01-00-51-00-00
I 12:39:26.678 Indication received from d44bc439-abfd-45a2-b575-925416129601, value: (0x) 04-00-00-02-03-05-02-02-08-00-08-00-00
I 12:39:26.776 Indication received from d44bc439-abfd-45a2-b575-925416129601, value: (0x) 0A-04-00-A7-01-00-00
V 12:39:28.684 Disconnecting...
D 12:39:28.698 gatt.disconnect()
D 12:39:28.710 [Callback] Connection state changed with status: 0 and new state: 0 (DISCONNECTED)
I 12:39:28.723 Disconnected
D 12:39:28.735 gatt.close()
V 12:39:30.364 Connecting...
D 12:39:30.373 gatt = device.connectGatt(autoConnect = false)
D 12:39:30.632 [Callback] Connection state changed with status: 0 and new state: 2 (CONNECTED)
I 12:39:30.657 Connected to D7:B8:25:14:13:9B
D 12:39:30.668 wait(600)
V 12:39:31.280 Discovering Services...
D 12:39:31.287 gatt.discoverServices()
I 12:39:31.860 Services Discovered status: 0
I 12:39:31.873 Services Discovered gatt: android.bluetooth.BluetoothGatt@2d70344
I 12:39:31.884 Services Discovered: 6
V 12:39:31.894 Primary service found
A 12:39:31.905 Reading battery level...
V 12:39:31.913 Reading characteristic 00002a19-0000-1000-8000-00805f9b34fb
D 12:39:31.920 gatt.readCharacteristic(00002a19-0000-1000-8000-00805f9b34fb)
I 12:39:31.992 Read Response received from 00002a19-0000-1000-8000-00805f9b34fb, value: (0x) 64
A 12:39:31.999 Battery level received: 100%
D 12:39:32.006 gatt.setCharacteristicNotification(d44bc439-abfd-45a2-b575-925416129601, true)
V 12:39:32.014 Enabling indications for d44bc439-abfd-45a2-b575-925416129601
D 12:39:32.020 gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x02-00)
I 12:39:32.090 Data written to descr. 00002902-0000-1000-8000-00805f9b34fb, value: (0x) 02-00
A 12:39:32.096 Indications enabled
V 12:39:34.609 Writing characteristic d44bc439-abfd-45a2-b575-925416129600 (WRITE REQUEST)
D 12:39:34.620 gatt.writeCharacteristic(d44bc439-abfd-45a2-b575-925416129600)
I 12:39:34.771 Data written to d44bc439-abfd-45a2-b575-925416129600, value: (0x) 07-02-70-01
I 12:39:34.821 Indication received from d44bc439-abfd-45a2-b575-925416129601, value: (0x) 00-1E-00-00-02-08-00-00-04-03-04-00-11-01-12-01-00-51-00-00
I 12:39:34.917 Indication received from d44bc439-abfd-45a2-b575-925416129601, value: (0x) 04-00-00-02-03-05-02-02-08-00-08-00-00
I 12:39:35.063 Indication received from d44bc439-abfd-45a2-b575-925416129601, value: (0x) 0A-04-00-A7-01-00-00
V 12:39:36.848 Disconnecting...
D 12:39:36.861 gatt.disconnect()
D 12:39:36.871 [Callback] Connection state changed with status: 0 and new state: 0 (DISCONNECTED)
I 12:39:36.882 Disconnected
D 12:39:36.894 gatt.close()
V 12:39:38.671 Connecting...
D 12:39:38.681 gatt = device.connectGatt(autoConnect = false)
D 12:39:38.822 [Callback] Connection state changed with status: 0 and new state: 2 (CONNECTED)
I 12:39:38.834 Connected to D7:B8:25:14:13:9B
D 12:39:38.844 wait(600)
V 12:39:39.453 Discovering Services...
D 12:39:39.461 gatt.discoverServices()
I 12:39:40.123 Services Discovered status: 0
I 12:39:40.135 Services Discovered gatt: android.bluetooth.BluetoothGatt@9ded3e5
I 12:39:40.143 Services Discovered: 6
V 12:39:40.152 Primary service found
A 12:39:40.160 Reading battery level...
V 12:39:40.167 Reading characteristic 00002a19-0000-1000-8000-00805f9b34fb
D 12:39:40.173 gatt.readCharacteristic(00002a19-0000-1000-8000-00805f9b34fb)
I 12:39:40.193 Read Response received from 00002a19-0000-1000-8000-00805f9b34fb, value: (0x) 64
A 12:39:40.199 Battery level received: 100%
D 12:39:40.206 gatt.setCharacteristicNotification(d44bc439-abfd-45a2-b575-925416129601, true)
V 12:39:40.214 Enabling indications for d44bc439-abfd-45a2-b575-925416129601
D 12:39:40.221 gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x02-00)
I 12:39:40.378 Data written to descr. 00002902-0000-1000-8000-00805f9b34fb, value: (0x) 02-00
A 12:39:40.385 Indications enabled
V 12:39:42.897 Writing characteristic d44bc439-abfd-45a2-b575-925416129600 (WRITE REQUEST)
D 12:39:42.909 gatt.writeCharacteristic(d44bc439-abfd-45a2-b575-925416129600)
I 12:39:43.058 Data written to d44bc439-abfd-45a2-b575-925416129600, value: (0x) 07-02-70-01
I 12:39:43.156 Indication received from d44bc439-abfd-45a2-b575-925416129601, value: (0x) 00-1E-00-00-02-08-00-00-04-03-04-00-11-01-12-01-00-51-00-00
I 12:39:43.400 Indication received from d44bc439-abfd-45a2-b575-925416129601, value: (0x) 04-00-00-02-03-05-02-02-08-00-08-00-00
I 12:39:43.546 Indication received from d44bc439-abfd-45a2-b575-925416129601, value: (0x) 0A-04-00-A7-01-00-00
V 12:39:46.798 Disconnecting...
D 12:39:46.812 gatt.disconnect()
D 12:39:46.825 [Callback] Connection state changed with status: 0 and new state: 0 (DISCONNECTED)
I 12:39:46.834 Disconnected
D 12:39:46.846 gatt.close()
V 12:39:48.469 Connecting...
D 12:39:48.481 gatt = device.connectGatt(autoConnect = false)
D 12:39:48.621 [Callback] Connection state changed with status: 0 and new state: 2 (CONNECTED)
I 12:39:48.634 Connected to D7:B8:25:14:13:9B
D 12:39:48.646 wait(600)
V 12:39:49.258 Discovering Services...
D 12:39:49.265 gatt.discoverServices()
I 12:39:49.958 Services Discovered status: 0
I 12:39:49.971 Services Discovered gatt: android.bluetooth.BluetoothGatt@6b7db12
I 12:39:49.982 Services Discovered: 6
V 12:39:49.991 Primary service found
A 12:39:50.002 Reading battery level...
V 12:39:50.009 Reading characteristic 00002a19-0000-1000-8000-00805f9b34fb
D 12:39:50.017 gatt.readCharacteristic(00002a19-0000-1000-8000-00805f9b34fb)
I 12:39:50.079 Read Response received from 00002a19-0000-1000-8000-00805f9b34fb, value: (0x) 64
A 12:39:50.087 Battery level received: 100%
D 12:39:50.095 gatt.setCharacteristicNotification(d44bc439-abfd-45a2-b575-925416129601, true)
V 12:39:50.105 Enabling indications for d44bc439-abfd-45a2-b575-925416129601
D 12:39:50.112 gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x02-00)
I 12:39:50.176 Data written to descr. 00002902-0000-1000-8000-00805f9b34fb, value: (0x) 02-00
A 12:39:50.184 Indications enabled
V 12:39:52.699 Writing characteristic d44bc439-abfd-45a2-b575-925416129600 (WRITE REQUEST)
D 12:39:52.707 gatt.writeCharacteristic(d44bc439-abfd-45a2-b575-925416129600)
I 12:39:52.808 Data written to d44bc439-abfd-45a2-b575-925416129600, value: (0x) 07-02-70-01
I 12:39:52.906 Indication received from d44bc439-abfd-45a2-b575-925416129601, value: (0x) 00-1E-00-00-02-08-00-00-04-03-04-00-11-01-12-01-00-51-00-00
I 12:39:53.004 Indication received from d44bc439-abfd-45a2-b575-925416129601, value: (0x) 04-00-00-02-03-05-02-02-08-00-08-00-00
I 12:39:53.101 Indication received from d44bc439-abfd-45a2-b575-925416129601, value: (0x) 0A-04-00-A7-01-00-00
V 12:39:55.087 Disconnecting...
D 12:39:55.096 gatt.disconnect()
D 12:39:55.109 [Callback] Connection state changed with status: 0 and new state: 0 (DISCONNECTED)
I 12:39:55.125 Disconnected
D 12:39:55.137 gatt.close()
V 12:39:57.203 Connecting...
D 12:39:57.215 gatt = device.connectGatt(autoConnect = false)
D 12:39:57.786 [Callback] Connection state changed with status: 0 and new state: 2 (CONNECTED)
I 12:39:57.812 Connected to D7:B8:25:14:13:9B
D 12:39:57.851 wait(600)
V 12:39:58.469 Discovering Services...
D 12:39:58.478 gatt.discoverServices()
I 12:39:58.943 Services Discovered status: 0
I 12:39:58.954 Services Discovered gatt: android.bluetooth.BluetoothGatt@a1adb5b
I 12:39:58.965 Services Discovered: 6
V 12:39:58.974 Primary service found
A 12:39:58.985 Reading battery level...
V 12:39:58.992 Reading characteristic 00002a19-0000-1000-8000-00805f9b34fb
D 12:39:58.999 gatt.readCharacteristic(00002a19-0000-1000-8000-00805f9b34fb)
I 12:39:59.019 Read Response received from 00002a19-0000-1000-8000-00805f9b34fb, value: (0x) 64
A 12:39:59.027 Battery level received: 100%
D 12:39:59.034 gatt.setCharacteristicNotification(d44bc439-abfd-45a2-b575-925416129601, true)
V 12:39:59.045 Enabling indications for d44bc439-abfd-45a2-b575-925416129601
D 12:39:59.057 gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x02-00)
I 12:39:59.146 Data written to descr. 00002902-0000-1000-8000-00805f9b34fb, value: (0x) 02-00
A 12:39:59.153 Indications enabled
V 12:40:01.669 Writing characteristic d44bc439-abfd-45a2-b575-925416129600 (WRITE REQUEST)
D 12:40:01.681 gatt.writeCharacteristic(d44bc439-abfd-45a2-b575-925416129600)
I 12:40:01.827 Data written to d44bc439-abfd-45a2-b575-925416129600, value: (0x) 07-02-70-01
I 12:40:01.925 Indication received from d44bc439-abfd-45a2-b575-925416129601, value: (0x) 00-1E-00-00-02-08-00-00-04-03-04-00-11-01-12-01-00-51-00-00
I 12:40:02.022 Indication received from d44bc439-abfd-45a2-b575-925416129601, value: (0x) 04-00-00-02-03-05-02-02-08-00-08-00-00
I 12:40:02.169 Indication received from d44bc439-abfd-45a2-b575-925416129601, value: (0x) 0A-04-00-A7-01-00-00
V 12:40:04.437 Disconnecting...
D 12:40:04.452 gatt.disconnect()
D 12:40:04.464 [Callback] Connection state changed with status: 0 and new state: 0 (DISCONNECTED)
I 12:40:04.473 Disconnected
D 12:40:04.484 gatt.close()
V 12:40:06.087 Connecting...
D 12:40:06.100 gatt = device.connectGatt(autoConnect = false)
D 12:40:06.269 [Callback] Connection state changed with status: 0 and new state: 2 (CONNECTED)
I 12:40:06.283 Connected to D7:B8:25:14:13:9B
D 12:40:06.293 wait(600)
V 12:40:06.906 Discovering Services...
D 12:40:06.914 gatt.discoverServices()
I 12:40:07.516 Services Discovered status: 0
I 12:40:07.532 Services Discovered gatt: android.bluetooth.BluetoothGatt@1702610
I 12:40:07.542 Services Discovered: 6
V 12:40:07.553 Primary service found
A 12:40:07.563 Reading battery level...
V 12:40:07.572 Reading characteristic 00002a19-0000-1000-8000-00805f9b34fb
D 12:40:07.579 gatt.readCharacteristic(00002a19-0000-1000-8000-00805f9b34fb)
I 12:40:07.678 Read Response received from 00002a19-0000-1000-8000-00805f9b34fb, value: (0x) 64
A 12:40:07.686 Battery level received: 100%
D 12:40:07.695 gatt.setCharacteristicNotification(d44bc439-abfd-45a2-b575-925416129601, true)
V 12:40:07.705 Enabling indications for d44bc439-abfd-45a2-b575-925416129601
D 12:40:07.713 gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x02-00)
I 12:40:07.823 Data written to descr. 00002902-0000-1000-8000-00805f9b34fb, value: (0x) 02-00
A 12:40:07.831 Indications enabled
V 12:40:10.344 Writing characteristic d44bc439-abfd-45a2-b575-925416129600 (WRITE REQUEST)
D 12:40:10.358 gatt.writeCharacteristic(d44bc439-abfd-45a2-b575-925416129600)
I 12:40:10.456 Data written to d44bc439-abfd-45a2-b575-925416129600, value: (0x) 07-02-70-01
I 12:40:10.554 Indication received from d44bc439-abfd-45a2-b575-925416129601, value: (0x) 00-1E-00-00-02-08-00-00-04-03-04-00-11-01-12-01-00-51-00-00
I 12:40:10.651 Indication received from d44bc439-abfd-45a2-b575-925416129601, value: (0x) 04-00-00-02-03-05-02-02-08-00-08-00-00
I 12:40:10.749 Indication received from d44bc439-abfd-45a2-b575-925416129601, value: (0x) 0A-04-00-A7-01-00-00
V 12:40:12.687 Disconnecting...
D 12:40:12.701 gatt.disconnect()
D 12:40:12.715 [Callback] Connection state changed with status: 0 and new state: 0 (DISCONNECTED)
I 12:40:12.727 Disconnected
D 12:40:12.740 gatt.close()
V 12:40:14.323 Connecting...
D 12:40:14.335 gatt = device.connectGatt(autoConnect = false)
D 12:40:14.460 [Callback] Connection state changed with status: 0 and new state: 2 (CONNECTED)
I 12:40:14.473 Connected to D7:B8:25:14:13:9B
D 12:40:14.484 wait(600)
V 12:40:15.096 Discovering Services...
D 12:40:15.104 gatt.discoverServices()
I 12:40:15.750 Services Discovered status: 0
I 12:40:15.766 Services Discovered gatt: android.bluetooth.BluetoothGatt@fe78c41
I 12:40:15.775 Services Discovered: 6
V 12:40:15.786 Primary service found
A 12:40:15.796 Reading battery level...
V 12:40:15.804 Reading characteristic 00002a19-0000-1000-8000-00805f9b34fb
D 12:40:15.811 gatt.readCharacteristic(00002a19-0000-1000-8000-00805f9b34fb)
I 12:40:15.868 Read Response received from 00002a19-0000-1000-8000-00805f9b34fb, value: (0x) 64
A 12:40:15.876 Battery level received: 100%
D 12:40:15.884 gatt.setCharacteristicNotification(d44bc439-abfd-45a2-b575-925416129601, true)
V 12:40:15.892 Enabling indications for d44bc439-abfd-45a2-b575-925416129601
D 12:40:15.900 gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x02-00)
I 12:40:15.965 Data written to descr. 00002902-0000-1000-8000-00805f9b34fb, value: (0x) 02-00
A 12:40:15.974 Indications enabled
V 12:40:18.487 Writing characteristic d44bc439-abfd-45a2-b575-925416129600 (WRITE REQUEST)
D 12:40:18.498 gatt.writeCharacteristic(d44bc439-abfd-45a2-b575-925416129600)
I 12:40:18.597 Data written to d44bc439-abfd-45a2-b575-925416129600, value: (0x) 07-02-70-01
I 12:40:18.695 Indication received from d44bc439-abfd-45a2-b575-925416129601, value: (0x) 00-1E-00-00-02-08-00-00-04-03-04-00-11-01-12-01-00-51-00-00
I 12:40:18.793 Indication received from d44bc439-abfd-45a2-b575-925416129601, value: (0x) 04-00-00-02-03-05-02-02-08-00-08-00-00
I 12:40:18.890 Indication received from d44bc439-abfd-45a2-b575-925416129601, value: (0x) 0A-04-00-A7-01-00-00
V 12:40:20.907 Disconnecting...
D 12:40:20.916 gatt.disconnect()
D 12:40:20.935 [Callback] Connection state changed with status: 0 and new state: 0 (DISCONNECTED)
I 12:40:20.944 Disconnected
D 12:40:20.956 gatt.close()
V 12:40:23.021 Connecting...
D 12:40:23.034 gatt = device.connectGatt(autoConnect = false)
D 12:40:23.051 [Callback] Connection state changed with status: 0 and new state: 2 (CONNECTED)
I 12:40:23.063 Connected to D7:B8:25:14:13:9B
D 12:40:23.072 wait(600)
V 12:40:23.684 Discovering Services...
D 12:40:23.693 gatt.discoverServices()
I 12:40:23.704 Services Discovered status: 0
I 12:40:23.714 Services Discovered gatt: android.bluetooth.BluetoothGatt@5ce9bbe
I 12:40:23.725 Services Discovered: 0
W 12:40:23.735 Device is not supported, trying to reconnect

Is this behaviour expected? Is there any way to tackle this other than retry BLE connection?

Parents Reply Children
Related