Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

NRF52 SDK 17.0.2 - BLE app_uart_c example fails trying to discover services

Hello,

I have downloaded the nRF5 SDK v17.0.2 and used the app_uart_c (s140 - pca10056e) example. Then, I modified the scan_init function in main.c to scan by name and also the defines in ble_nus_c.h to make it connect to my peripheral device. The example worked fine. After that, I tried to connect another peripheral with the same name, same services and characteristics, but different NUS_BASE_UUID, so I modified the NUS_BASE_UUID define. The behavior I’m getting is that the device sometimes connects and sometimes does not. When I debug (changing NRF_LOG_DEFAULT_LEVEL to 4), I obtain these messages if the device connects:

<debug> ble_scan: Scanning
<debug> ble_scan: Connecting
<debug> ble_scan: Connection status: 0
<debug> nrf_ble_gatt: Requesting to update ATT MTU to 512 bytes on connection 0x0.
<debug> nrf_ble_gatt: Updating data length to 251 on connection 0x0.
<info> app: Connecting to target 8C:99:D7:DD:9A:87
<debug> nrf_ble_gq: Registering connection handle: 0x0000
<debug> ble_db_disc: Starting discovery of service with UUID 0xFFF0 on connection handle 0x0.
<debug> nrf_ble_gq: Adding item to the request queue
<debug> nrf_ble_gq: GATTC Primary Services Discovery Request
<debug> nrf_ble_gatt: Data length updated to 27 on connection 0x0.
<debug> nrf_ble_gatt: max_rx_octets: 27
<debug> nrf_ble_gatt: max_tx_octets: 27
<debug> nrf_ble_gatt: max_rx_time: 328
<debug> nrf_ble_gatt: max_tx_time: 328
<debug> nrf_ble_gatt: ATT MTU updated to 248 bytes on connection 0x0 (response).
<info> app: ATT MTU exchange completed.
<info> app: Ble NUS max data length set to 0xF5(245)
<debug> nrf_ble_gq: Processing the request queue...
<debug> nrf_ble_gq: GATTC Primary Service Discovery Request
<debug> nrf_ble_gq: SD GATT procedure (2) succeeded on connection handle: 0.
<debug> ble_db_disc: Found service UUID 0xFFF0.
<debug> nrf_ble_gq: Adding item to the request queue
<debug> nrf_ble_gq: GATTC Characteristic Discovery Request
<debug> nrf_ble_gq: SD GATT procedure (3) succeeded on connection handle: 0.
<debug> nrf_ble_gq: Processing the request queue...
<debug> nrf_ble_gq: Adding item to the request queue
<debug> nrf_ble_gq: GATTC Characteristic Discovery Request
<debug> nrf_ble_gq: SD GATT procedure (3) succeeded on connection handle: 0.
<debug> nrf_ble_gq: Processing the request queue...
<debug> nrf_ble_gq: Adding item to the request queue
<debug> nrf_ble_gq: GATTC Characteristic Descriptor Request
<debug> nrf_ble_gq: SD GATT procedure (4) succeeded on connection handle: 0.
<debug> nrf_ble_gq: Processing the request queue...
<debug> ble_db_disc: Discovery of service with UUID 0xFFF0 completed with success on connection handle 0x0.
<info> app: Discovery complete.
<debug> nrf_ble_gq: Adding item to the request queue
<debug> nrf_ble_gq: GATTC Write Request
<debug> nrf_ble_gq: SD GATT procedure (1) succeeded on connection handle: 0.
<info> app: Connected to device with Nordic UART Service.
<debug> nrf_ble_gq: Processing the request queue...
<debug> nrf_ble_gq: Processing the request queue...
<debug> nrf_ble_gq: Processing the request queue...
<info> app: Receiving data.
<info> app:  FD FD FB 00 01 0D 0A   |....... 
<debug> ble_nus_c: Client sending data.
<debug> nrf_ble_gq: Processing the request queue...
<info> app: Receiving data.
<info> app:  FD FD FB 00 01 0D 0A   |....... 
<debug> ble_nus_c: Client sending data.
<debug> nrf_ble_gq: Processing the request queue...
<info> app: Receiving data.
<info> app:  FD FD FB 00 01 0D 0A   |....... 
<debug> ble_nus_c: Client sending data.
<debug> nrf_ble_gq: Processing the request queue...
<info> app: Receiving data.
<info> app:  FD FD FB 00 01 0D 0A   |....... 
<debug> ble_nus_c: Client sending data.
<debug> nrf_ble_gq: Processing the request queue...
<info> app: Receiving data.
<info> app:  FD FD FB 00 02 0D 0A   |....... 
<debug> ble_nus_c: Client sending data.
<debug> nrf_ble_gq: Processing the request queue...
<info> app: Receiving data.
<info> app:  FD FD FB 00 02 0D 0A   |....... 
<debug> ble_nus_c: Client sending data.
<debug> nrf_ble_gq: Processing the request queue...
<info> app: Receiving data.
<info> app:  FD FD FB 00 02 0D 0A   |....... 
<debug> ble_nus_c: Client sending data.
<debug> nrf_ble_gq: Processing the request queue...
<info> app: Receiving data.
<info> app:  FD FD FB 00 02 0D 0A   |....... 
<debug> ble_nus_c: Client sending data.
<debug> nrf_ble_gq: Processing the request queue...
<info> app: Receiving data.
<info> app:  FD FD FB 00 02 0D 0A   |....... 
<debug> ble_nus_c: Client sending data.
<debug> nrf_ble_gq: Processing the request queue...
<info> app: Receiving data.
<info> app:  FD FD FB 00 02 0D 0A   |....... 
<debug> ble_nus_c: Client sending data.
<debug> nrf_ble_gq: Processing the request queue...
<info> app: Receiving data.
<info> app:  FD FD FB 00 03 0D 0A   |....... 
<debug> ble_nus_c: Client sending data.
<debug> nrf_ble_gq: Processing the request queue...
<info> app: Receiving data.
<info> app:  FD FD FB 00 03 0D 0A   |....... 
<debug> ble_nus_c: Client sending data.
<debug> nrf_ble_gq: Processing the request queue...
<info> app: Receiving data.
<info> app:  FD FD FB 00 03 0D 0A   |....... 
<debug> ble_nus_c: Client sending data.
<info> app: Disconnected.
<debug> ble_scan: Scanning
<info> app: Disconnected. conn_handle: 0x0, reason: 0x8

And these ones, if the device does not connect:

<debug> ble_scan: Scanning
<debug> ble_scan: Connecting
<debug> ble_scan: Connection status: 0
<debug> nrf_ble_gatt: Requesting to update ATT MTU to 247 bytes on connection 0x0.
<debug> nrf_ble_gatt: Updating data length to 251 on connection 0x0.
<info> app: Connecting to target 8C:99:D7:DD:9A:87
<debug> nrf_ble_gq: Registering connection handle: 0x0000
<debug> ble_db_disc: Starting discovery of service with UUID 0xFFF0 on connection handle 0x0.
<debug> nrf_ble_gq: Adding item to the request queue
<debug> nrf_ble_gq: GATTC Primary Services Discovery Request
<debug> nrf_ble_gatt: Data length updated to 27 on connection 0x0.
<debug> nrf_ble_gatt: max_rx_octets: 27
<debug> nrf_ble_gatt: max_tx_octets: 27
<debug> nrf_ble_gatt: max_rx_time: 328
<debug> nrf_ble_gatt: max_tx_time: 328
<debug> nrf_ble_gq: Processing the request queue...
<debug> nrf_ble_gq: GATTC Primary Service Discovery Request
<error> nrf_ble_gq: SD GATT procedure (2) failed on connection handle 0 with error: 0x0000000D.
<debug> app: GATT Client Timeout.
<info> app: Disconnected.
<debug> ble_scan: Scanning
<info> app: Disconnected. conn_handle: 0x0, reason: 0x16

The sd_ble_gattc_primary_services_discover function returns a timeout error.

I also have connected both devices to the nRF Connect Android App and they are working fine. Here are some screenshots of the app while scanning the device that is connecting to the DK (left) and the one that is not connecting to it (right).

If I subscribe to the Notify services with the app, I obtain these logs:

The device that always connects to the DK:

nRF Connect, 2021-09-03
JPD-HA120 (B2:B2:E9:12:41:E8)
V	14:33:41.748	Connecting to B2:B2:E9:12:41:E8...
D	14:33:41.748	gatt = device.connectGatt(autoConnect = true, TRANSPORT_LE, preferred PHY = LE 1M)
D	14:33:42.290	[Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED
D	14:33:42.315	[Callback] Connection state changed with status: 0 and new state: CONNECTED (2)
I	14:33:42.315	Connected to B2:B2:E9:12:41:E8
V	14:33:42.345	Discovering services...
D	14:33:42.345	gatt.discoverServices()
I	14:33:42.755	Connection parameters updated (interval: 7.5ms, latency: 0, timeout: 5000ms)
D	14:33:42.826	[Callback] Services discovered with status: 0
I	14:33:42.826	Services discovered
V	14:33:42.831	Generic Access (0x1800)
Unknown Service (0000fff0-0000-1000-8000-00805f9b34fb)
- Unknown Characteristic [N] (0000fff1-0000-1000-8000-00805f9b34fb)
   Client Characteristic Configuration (0x2902)
- Unknown Characteristic [W] (0000fff2-0000-1000-8000-00805f9b34fb)
D	14:33:42.831	gatt.setCharacteristicNotification(0000fff1-0000-1000-8000-00805f9b34fb, true)
I	14:33:42.942	Connection parameters updated (interval: 47.5ms, latency: 0, timeout: 5000ms)
V	14:33:44.295	Enabling notifications for 0000fff1-0000-1000-8000-00805f9b34fb
D	14:33:44.295	gatt.setCharacteristicNotification(0000fff1-0000-1000-8000-00805f9b34fb, true)
D	14:33:44.296	gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x0100)
I	14:33:44.510	Data written to descr. 00002902-0000-1000-8000-00805f9b34fb, value: (0x) 01-00
A	14:33:44.510	"Notifications enabled" sent
V	14:33:44.517	Notifications enabled for 0000fff1-0000-1000-8000-00805f9b34fb
I	14:33:44.701	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-1E-0D-0A
A	14:33:44.701	"(0x) FD-FD-FB-00-1E-0D-0A" received
I	14:33:45.414	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-22-0D-0A
A	14:33:45.414	"(0x) FD-FD-FB-00-22-0D-0A" received
I	14:33:45.815	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-1D-0D-0A
A	14:33:45.815	"(0x) FD-FD-FB-00-1D-0D-0A" received
I	14:33:46.433	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-21-0D-0A
A	14:33:46.433	"(0x) FD-FD-FB-00-21-0D-0A" received
I	14:33:46.860	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-26-0D-0A
A	14:33:46.860	"(0x) FD-FD-FB-00-26-0D-0A" received
I	14:33:47.430	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-2A-0D-0A
A	14:33:47.430	"(0x) FD-FD-FB-00-2A-0D-0A" received
I	14:33:47.952	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-2B-0D-0A
A	14:33:47.952	"(0x) FD-FD-FB-00-2B-0D-0A" received
I	14:33:48.570	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-32-0D-0A
A	14:33:48.570	"(0x) FD-FD-FB-00-32-0D-0A" received
I	14:33:49.044	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-41-0D-0A
A	14:33:49.044	"(0x) FD-FD-FB-00-41-0D-0A" received
I	14:33:49.567	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-35-0D-0A
A	14:33:49.567	"(0x) FD-FD-FB-00-35-0D-0A" received
I	14:33:50.137	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-40-0D-0A
A	14:33:50.137	"(0x) FD-FD-FB-00-40-0D-0A" received
I	14:33:50.660	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-4A-0D-0A
A	14:33:50.660	"(0x) FD-FD-FB-00-4A-0D-0A" received
I	14:33:51.181	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-53-0D-0A
A	14:33:51.181	"(0x) FD-FD-FB-00-53-0D-0A" received
I	14:33:51.753	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-5C-0D-0A
A	14:33:51.753	"(0x) FD-FD-FB-00-5C-0D-0A" received
I	14:33:52.418	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-67-0D-0A
A	14:33:52.418	"(0x) FD-FD-FB-00-67-0D-0A" received
I	14:33:52.798	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-72-0D-0A
A	14:33:52.798	"(0x) FD-FD-FB-00-72-0D-0A" received
I	14:33:53.557	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-7D-0D-0A
A	14:33:53.557	"(0x) FD-FD-FB-00-7D-0D-0A" received
I	14:33:53.890	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-88-0D-0A
A	14:33:53.890	"(0x) FD-FD-FB-00-88-0D-0A" received
I	14:33:54.697	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-92-0D-0A
A	14:33:54.698	"(0x) FD-FD-FB-00-92-0D-0A" received
I	14:33:54.983	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-9C-0D-0A
A	14:33:54.983	"(0x) FD-FD-FB-00-9C-0D-0A" received
I	14:33:55.648	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-A1-0D-0A
A	14:33:55.648	"(0x) FD-FD-FB-00-A1-0D-0A" received
I	14:33:56.074	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-9B-0D-0A
A	14:33:56.074	"(0x) FD-FD-FB-00-9B-0D-0A" received
I	14:33:56.692	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-97-0D-0A
A	14:33:56.692	"(0x) FD-FD-FB-00-97-0D-0A" received
I	14:33:57.120	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-94-0D-0A
A	14:33:57.120	"(0x) FD-FD-FB-00-94-0D-0A" received
I	14:33:57.784	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-92-0D-0A
A	14:33:57.784	"(0x) FD-FD-FB-00-92-0D-0A" received
I	14:33:58.212	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-8E-0D-0A
A	14:33:58.212	"(0x) FD-FD-FB-00-8E-0D-0A" received
I	14:33:58.783	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-8C-0D-0A
A	14:33:58.783	"(0x) FD-FD-FB-00-8C-0D-0A" received
I	14:33:59.304	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-89-0D-0A
A	14:33:59.304	"(0x) FD-FD-FB-00-89-0D-0A" received
I	14:33:59.826	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-86-0D-0A
A	14:33:59.826	"(0x) FD-FD-FB-00-86-0D-0A" received
I	14:34:00.397	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-84-0D-0A
A	14:34:00.397	"(0x) FD-FD-FB-00-84-0D-0A" received
I	14:34:00.899	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-81-0D-0A
A	14:34:00.899	"(0x) FD-FD-FB-00-81-0D-0A" received
I	14:34:01.421	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-7F-0D-0A
A	14:34:01.421	"(0x) FD-FD-FB-00-7F-0D-0A" received
I	14:34:02.012	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-7D-0D-0A
A	14:34:02.012	"(0x) FD-FD-FB-00-7D-0D-0A" received
I	14:34:02.725	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-7B-0D-0A
A	14:34:02.725	"(0x) FD-FD-FB-00-7B-0D-0A" received
I	14:34:03.057	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-79-0D-0A
A	14:34:03.057	"(0x) FD-FD-FB-00-79-0D-0A" received
I	14:34:03.722	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-76-0D-0A
A	14:34:03.722	"(0x) FD-FD-FB-00-76-0D-0A" received
I	14:34:04.150	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-75-0D-0A
A	14:34:04.150	"(0x) FD-FD-FB-00-75-0D-0A" received
I	14:34:04.815	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-74-0D-0A
A	14:34:04.815	"(0x) FD-FD-FB-00-74-0D-0A" received
I	14:34:05.242	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-71-0D-0A
A	14:34:05.242	"(0x) FD-FD-FB-00-71-0D-0A" received
I	14:34:05.860	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-6F-0D-0A
A	14:34:05.860	"(0x) FD-FD-FB-00-6F-0D-0A" received
I	14:34:06.334	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-6E-0D-0A
A	14:34:06.334	"(0x) FD-FD-FB-00-6E-0D-0A" received
I	14:34:06.905	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-6C-0D-0A
A	14:34:06.905	"(0x) FD-FD-FB-00-6C-0D-0A" received
I	14:34:07.380	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-6B-0D-0A
A	14:34:07.380	"(0x) FD-FD-FB-00-6B-0D-0A" received
I	14:34:07.998	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-68-0D-0A
A	14:34:07.998	"(0x) FD-FD-FB-00-68-0D-0A" received
I	14:34:08.472	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-67-0D-0A
A	14:34:08.472	"(0x) FD-FD-FB-00-67-0D-0A" received
I	14:34:09.042	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-65-0D-0A
A	14:34:09.042	"(0x) FD-FD-FB-00-65-0D-0A" received
I	14:34:09.564	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-64-0D-0A
A	14:34:09.564	"(0x) FD-FD-FB-00-64-0D-0A" received
I	14:34:10.088	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-63-0D-0A
A	14:34:10.088	"(0x) FD-FD-FB-00-63-0D-0A" received
I	14:34:10.657	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-61-0D-0A
A	14:34:10.657	"(0x) FD-FD-FB-00-61-0D-0A" received
I	14:34:11.180	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-60-0D-0A
A	14:34:11.180	"(0x) FD-FD-FB-00-60-0D-0A" received
I	14:34:11.702	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-5E-0D-0A
A	14:34:11.702	"(0x) FD-FD-FB-00-5E-0D-0A" received
I	14:34:12.272	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-5D-0D-0A
A	14:34:12.272	"(0x) FD-FD-FB-00-5D-0D-0A" received
I	14:34:12.938	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-5C-0D-0A
A	14:34:12.938	"(0x) FD-FD-FB-00-5C-0D-0A" received
I	14:34:13.365	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-5A-0D-0A
A	14:34:13.365	"(0x) FD-FD-FB-00-5A-0D-0A" received
I	14:34:13.981	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-5A-0D-0A
A	14:34:13.981	"(0x) FD-FD-FB-00-5A-0D-0A" received
I	14:34:14.409	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-59-0D-0A
A	14:34:14.409	"(0x) FD-FD-FB-00-59-0D-0A" received
I	14:34:15.026	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-57-0D-0A
A	14:34:15.026	"(0x) FD-FD-FB-00-57-0D-0A" received
I	14:34:15.502	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-57-0D-0A
A	14:34:15.502	"(0x) FD-FD-FB-00-57-0D-0A" received
I	14:34:16.025	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-55-0D-0A
A	14:34:16.025	"(0x) FD-FD-FB-00-55-0D-0A" received
I	14:34:16.594	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-55-0D-0A
A	14:34:16.594	"(0x) FD-FD-FB-00-55-0D-0A" received
I	14:34:17.191	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-54-0D-0A
A	14:34:17.191	"(0x) FD-FD-FB-00-54-0D-0A" received
I	14:34:17.618	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-53-0D-0A
A	14:34:17.618	"(0x) FD-FD-FB-00-53-0D-0A" received
I	14:34:18.210	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-51-0D-0A
A	14:34:18.210	"(0x) FD-FD-FB-00-51-0D-0A" received
I	14:34:18.732	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-50-0D-0A
A	14:34:18.732	"(0x) FD-FD-FB-00-50-0D-0A" received
I	14:34:19.302	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-51-0D-0A
A	14:34:19.302	"(0x) FD-FD-FB-00-51-0D-0A" received
I	14:34:19.824	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-4F-0D-0A
A	14:34:19.824	"(0x) FD-FD-FB-00-4F-0D-0A" received
I	14:34:20.346	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-4F-0D-0A
A	14:34:20.346	"(0x) FD-FD-FB-00-4F-0D-0A" received
I	14:34:21.012	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-4E-0D-0A
A	14:34:21.012	"(0x) FD-FD-FB-00-4E-0D-0A" received
I	14:34:21.440	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-4D-0D-0A
A	14:34:21.440	"(0x) FD-FD-FB-00-4D-0D-0A" received
I	14:34:21.962	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-4B-0D-0A
A	14:34:21.962	"(0x) FD-FD-FB-00-4B-0D-0A" received
I	14:34:22.532	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-4B-0D-0A
A	14:34:22.532	"(0x) FD-FD-FB-00-4B-0D-0A" received
I	14:34:23.197	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-4B-0D-0A
A	14:34:23.198	"(0x) FD-FD-FB-00-4B-0D-0A" received
I	14:34:23.577	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-49-0D-0A
A	14:34:23.578	"(0x) FD-FD-FB-00-49-0D-0A" received
I	14:34:24.243	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-49-0D-0A
A	14:34:24.243	"(0x) FD-FD-FB-00-49-0D-0A" received
I	14:34:24.670	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-49-0D-0A
A	14:34:24.670	"(0x) FD-FD-FB-00-49-0D-0A" received
I	14:34:25.335	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-47-0D-0A
A	14:34:25.335	"(0x) FD-FD-FB-00-47-0D-0A" received
I	14:34:25.761	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-47-0D-0A
A	14:34:25.761	"(0x) FD-FD-FB-00-47-0D-0A" received
I	14:34:26.380	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-46-0D-0A
A	14:34:26.380	"(0x) FD-FD-FB-00-46-0D-0A" received
I	14:34:26.855	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-46-0D-0A
A	14:34:26.855	"(0x) FD-FD-FB-00-46-0D-0A" received
I	14:34:27.424	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-45-0D-0A
A	14:34:27.424	"(0x) FD-FD-FB-00-45-0D-0A" received
I	14:34:27.900	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-44-0D-0A
A	14:34:27.900	"(0x) FD-FD-FB-00-44-0D-0A" received
I	14:34:27.926	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FC-7D-48-43-0D-0A
A	14:34:27.926	"(0x) FD-FD-FC-7D-48-43-0D-0A" received
D	14:35:03.387	[Callback] Connection state changed with status: 8 and new state: DISCONNECTED (0)
E	14:35:03.387	Error 8 (0x8): GATT CONN TIMEOUT
I	14:35:03.387	Disconnected
D	14:35:03.443	[Broadcast] Action received: android.bluetooth.device.action.ACL_DISCONNECTED

The device that sometimes connects fine and sometimes the connection fails:

nRF Connect, 2021-09-03
JPD-HA120 (87:9A:DD:D7:99:8C)
V	14:26:59.518	Connecting to 87:9A:DD:D7:99:8C...
D	14:26:59.518	gatt = device.connectGatt(autoConnect = true, TRANSPORT_LE, preferred PHY = LE 1M)
D	14:27:00.021	[Callback] Connection state changed with status: 0 and new state: CONNECTED (2)
I	14:27:00.022	Connected to 87:9A:DD:D7:99:8C
D	14:27:00.026	[Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED
V	14:27:00.055	Discovering services...
D	14:27:00.055	gatt.discoverServices()
I	14:27:00.481	Connection parameters updated (interval: 7.5ms, latency: 0, timeout: 5000ms)
D	14:27:00.551	[Callback] Services discovered with status: 0
I	14:27:00.551	Services discovered
V	14:27:00.559	Generic Access (0x1800)
- Device Name [R] (0x2A00)
Unknown Service (0000fff0-0000-1000-8000-00805f9b34fb)
- Unknown Characteristic [W WNR] (0000fff2-0000-1000-8000-00805f9b34fb)
- Unknown Characteristic [N] (0000fff1-0000-1000-8000-00805f9b34fb)
   Client Characteristic Configuration (0x2902)
D	14:27:00.560	gatt.setCharacteristicNotification(0000fff1-0000-1000-8000-00805f9b34fb, true)
I	14:27:00.669	Connection parameters updated (interval: 47.5ms, latency: 0, timeout: 5000ms)
V	14:27:03.605	Enabling notifications for 0000fff1-0000-1000-8000-00805f9b34fb
D	14:27:03.605	gatt.setCharacteristicNotification(0000fff1-0000-1000-8000-00805f9b34fb, true)
D	14:27:03.606	gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x0100)
I	14:27:03.711	Data written to descr. 00002902-0000-1000-8000-00805f9b34fb, value: (0x) 01-00
A	14:27:03.711	"Notifications enabled" sent
V	14:27:03.726	Notifications enabled for 0000fff1-0000-1000-8000-00805f9b34fb
I	14:27:03.899	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-64-0D-0A
A	14:27:03.899	"(0x) FD-FD-FB-00-64-0D-0A" received
I	14:27:04.199	Connection parameters updated (interval: 30.0ms, latency: 0, timeout: 6000ms)
I	14:27:04.466	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-56-0D-0A
A	14:27:04.466	"(0x) FD-FD-FB-00-56-0D-0A" received
I	14:27:05.086	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-4E-0D-0A
A	14:27:05.086	"(0x) FD-FD-FB-00-4E-0D-0A" received
I	14:27:05.566	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-4D-0D-0A
A	14:27:05.566	"(0x) FD-FD-FB-00-4D-0D-0A" received
I	14:27:06.112	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-59-0D-0A
A	14:27:06.112	"(0x) FD-FD-FB-00-59-0D-0A" received
I	14:27:06.646	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-5F-0D-0A
A	14:27:06.647	"(0x) FD-FD-FB-00-5F-0D-0A" received
I	14:27:07.192	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-69-0D-0A
A	14:27:07.192	"(0x) FD-FD-FB-00-69-0D-0A" received
I	14:27:07.727	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-72-0D-0A
A	14:27:07.727	"(0x) FD-FD-FB-00-72-0D-0A" received
I	14:27:08.301	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-7A-0D-0A
A	14:27:08.301	"(0x) FD-FD-FB-00-7A-0D-0A" received
I	14:27:08.808	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-84-0D-0A
A	14:27:08.808	"(0x) FD-FD-FB-00-84-0D-0A" received
I	14:27:09.355	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-8D-0D-0A
A	14:27:09.355	"(0x) FD-FD-FB-00-8D-0D-0A" received
I	14:27:09.887	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-96-0D-0A
A	14:27:09.887	"(0x) FD-FD-FB-00-96-0D-0A" received
I	14:27:10.432	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-9E-0D-0A
A	14:27:10.433	"(0x) FD-FD-FB-00-9E-0D-0A" received
I	14:27:11.029	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-9F-0D-0A
A	14:27:11.029	"(0x) FD-FD-FB-00-9F-0D-0A" received
I	14:27:11.513	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-9A-0D-0A
A	14:27:11.513	"(0x) FD-FD-FB-00-9A-0D-0A" received
I	14:27:12.074	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-96-0D-0A
A	14:27:12.074	"(0x) FD-FD-FB-00-96-0D-0A" received
I	14:27:12.593	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-93-0D-0A
A	14:27:12.593	"(0x) FD-FD-FB-00-93-0D-0A" received
I	14:27:13.183	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-8F-0D-0A
A	14:27:13.183	"(0x) FD-FD-FB-00-8F-0D-0A" received
I	14:27:13.669	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-8C-0D-0A
A	14:27:13.669	"(0x) FD-FD-FB-00-8C-0D-0A" received
I	14:27:14.269	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-89-0D-0A
A	14:27:14.269	"(0x) FD-FD-FB-00-89-0D-0A" received
I	14:27:14.752	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-87-0D-0A
A	14:27:14.752	"(0x) FD-FD-FB-00-87-0D-0A" received
I	14:27:15.290	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-84-0D-0A
A	14:27:15.290	"(0x) FD-FD-FB-00-84-0D-0A" received
I	14:27:15.831	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-83-0D-0A
A	14:27:15.831	"(0x) FD-FD-FB-00-83-0D-0A" received
I	14:27:16.365	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-7F-0D-0A
A	14:27:16.365	"(0x) FD-FD-FB-00-7F-0D-0A" received
I	14:27:16.910	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-7E-0D-0A
A	14:27:16.910	"(0x) FD-FD-FB-00-7E-0D-0A" received
I	14:27:17.447	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-7B-0D-0A
A	14:27:17.447	"(0x) FD-FD-FB-00-7B-0D-0A" received
I	14:27:17.992	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-79-0D-0A
A	14:27:17.992	"(0x) FD-FD-FB-00-79-0D-0A" received
I	14:27:18.524	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-77-0D-0A
A	14:27:18.524	"(0x) FD-FD-FB-00-77-0D-0A" received
I	14:27:19.072	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-75-0D-0A
A	14:27:19.072	"(0x) FD-FD-FB-00-75-0D-0A" received
I	14:27:19.605	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-74-0D-0A
A	14:27:19.606	"(0x) FD-FD-FB-00-74-0D-0A" received
I	14:27:20.150	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-70-0D-0A
A	14:27:20.150	"(0x) FD-FD-FB-00-70-0D-0A" received
I	14:27:20.689	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-70-0D-0A
A	14:27:20.689	"(0x) FD-FD-FB-00-70-0D-0A" received
I	14:27:21.294	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-6D-0D-0A
A	14:27:21.294	"(0x) FD-FD-FB-00-6D-0D-0A" received
I	14:27:21.764	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-6C-0D-0A
A	14:27:21.764	"(0x) FD-FD-FB-00-6C-0D-0A" received
I	14:27:22.341	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-69-0D-0A
A	14:27:22.342	"(0x) FD-FD-FB-00-69-0D-0A" received
I	14:27:22.850	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-69-0D-0A
A	14:27:22.850	"(0x) FD-FD-FB-00-69-0D-0A" received
I	14:27:23.419	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-66-0D-0A
A	14:27:23.419	"(0x) FD-FD-FB-00-66-0D-0A" received
I	14:27:23.925	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-64-0D-0A
A	14:27:23.925	"(0x) FD-FD-FB-00-64-0D-0A" received
I	14:27:24.535	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-62-0D-0A
A	14:27:24.535	"(0x) FD-FD-FB-00-62-0D-0A" received
I	14:27:25.008	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-62-0D-0A
A	14:27:25.008	"(0x) FD-FD-FB-00-62-0D-0A" received
I	14:27:25.551	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-60-0D-0A
A	14:27:25.551	"(0x) FD-FD-FB-00-60-0D-0A" received
I	14:27:26.090	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-60-0D-0A
A	14:27:26.090	"(0x) FD-FD-FB-00-60-0D-0A" received
I	14:27:26.632	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-5D-0D-0A
A	14:27:26.632	"(0x) FD-FD-FB-00-5D-0D-0A" received
I	14:27:27.165	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-5D-0D-0A
A	14:27:27.165	"(0x) FD-FD-FB-00-5D-0D-0A" received
I	14:27:27.708	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-5A-0D-0A
A	14:27:27.708	"(0x) FD-FD-FB-00-5A-0D-0A" received
I	14:27:28.249	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-5A-0D-0A
A	14:27:28.250	"(0x) FD-FD-FB-00-5A-0D-0A" received
I	14:27:28.792	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-5A-0D-0A
A	14:27:28.792	"(0x) FD-FD-FB-00-5A-0D-0A" received
I	14:27:29.357	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-57-0D-0A
A	14:27:29.357	"(0x) FD-FD-FB-00-57-0D-0A" received
I	14:27:29.878	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-58-0D-0A
A	14:27:29.878	"(0x) FD-FD-FB-00-58-0D-0A" received
I	14:27:30.404	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-56-0D-0A
A	14:27:30.404	"(0x) FD-FD-FB-00-56-0D-0A" received
I	14:27:30.952	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-56-0D-0A
A	14:27:30.952	"(0x) FD-FD-FB-00-56-0D-0A" received
I	14:27:31.551	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-53-0D-0A
A	14:27:31.551	"(0x) FD-FD-FB-00-53-0D-0A" received
I	14:27:32.032	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-52-0D-0A
A	14:27:32.032	"(0x) FD-FD-FB-00-52-0D-0A" received
I	14:27:32.594	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-51-0D-0A
A	14:27:32.594	"(0x) FD-FD-FB-00-51-0D-0A" received
I	14:27:33.112	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-51-0D-0A
A	14:27:33.112	"(0x) FD-FD-FB-00-51-0D-0A" received
I	14:27:33.647	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-4F-0D-0A
A	14:27:33.647	"(0x) FD-FD-FB-00-4F-0D-0A" received
I	14:27:34.191	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-50-0D-0A
A	14:27:34.191	"(0x) FD-FD-FB-00-50-0D-0A" received
I	14:27:34.762	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-4D-0D-0A
A	14:27:34.762	"(0x) FD-FD-FB-00-4D-0D-0A" received
I	14:27:35.274	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-4D-0D-0A
A	14:27:35.274	"(0x) FD-FD-FB-00-4D-0D-0A" received
I	14:27:35.804	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-4B-0D-0A
A	14:27:35.805	"(0x) FD-FD-FB-00-4B-0D-0A" received
I	14:27:36.353	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-4B-0D-0A
A	14:27:36.353	"(0x) FD-FD-FB-00-4B-0D-0A" received
I	14:27:36.919	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-49-0D-0A
A	14:27:36.919	"(0x) FD-FD-FB-00-49-0D-0A" received
I	14:27:37.432	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-4A-0D-0A
A	14:27:37.432	"(0x) FD-FD-FB-00-4A-0D-0A" received
I	14:27:37.995	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-48-0D-0A
A	14:27:37.995	"(0x) FD-FD-FB-00-48-0D-0A" received
I	14:27:38.507	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-48-0D-0A
A	14:27:38.507	"(0x) FD-FD-FB-00-48-0D-0A" received
I	14:27:39.044	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-47-0D-0A
A	14:27:39.044	"(0x) FD-FD-FB-00-47-0D-0A" received
I	14:27:39.592	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-46-0D-0A
A	14:27:39.592	"(0x) FD-FD-FB-00-46-0D-0A" received
I	14:27:40.128	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-46-0D-0A
A	14:27:40.129	"(0x) FD-FD-FB-00-46-0D-0A" received
I	14:27:40.734	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-44-0D-0A
A	14:27:40.734	"(0x) FD-FD-FB-00-44-0D-0A" received
I	14:27:41.206	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-43-0D-0A
A	14:27:41.206	"(0x) FD-FD-FB-00-43-0D-0A" received
I	14:27:41.749	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-43-0D-0A
A	14:27:41.749	"(0x) FD-FD-FB-00-43-0D-0A" received
I	14:27:42.289	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-41-0D-0A
A	14:27:42.289	"(0x) FD-FD-FB-00-41-0D-0A" received
I	14:27:42.828	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-41-0D-0A
A	14:27:42.828	"(0x) FD-FD-FB-00-41-0D-0A" received
I	14:27:43.368	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FB-00-41-0D-0A
A	14:27:43.368	"(0x) FD-FD-FB-00-41-0D-0A" received
I	14:27:43.732	Notification received from 0000fff1-0000-1000-8000-00805f9b34fb, value: (0x) FD-FD-FC-7C-4A-3B-0D-0A
A	14:27:43.732	"(0x) FD-FD-FC-7C-4A-3B-0D-0A" received
D	14:28:20.010	[Callback] Connection state changed with status: 8 and new state: DISCONNECTED (0)
E	14:28:20.010	Error 8 (0x8): GATT CONN TIMEOUT
I	14:28:20.010	Disconnected
D	14:28:20.094	[Broadcast] Action received: android.bluetooth.device.action.ACL_DISCONNECTED



Is anything I missed or any change I need to do?

Thanks in advance for any help.

 

  • Hi,

    so I modified the NUS_BASE_UUID define

    1) Was this done for the central and the peripheral?

    Here are some screenshots of the app while scanning the device that is connecting to the DK (left) and the one that is not connecting to it (right).

    2) Do you use the Nordic UART service on these peripherals? (I don't see the 128-bit NUS UUID being advertised.)

    3)

    I also don't see this in the log from the failing device:

    "<debug> nrf_ble_gatt: ATT MTU updated to 248 bytes on connection 0x0 (response)."

    Could you try to set NRF_SDH_BLE_GATT_MAX_MTU_SIZE in sdk_config.h to 23 , and see if that changes anything.

Related