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

Phone Disconnect after 30s multirole LESC example

Hello,

SDK 15.2, SD 6.1.0 with PCA10056 1.0.0, 2018.20. 
nRF Connect App v4.22.3. Pixel XL. 

I'm running into an issue with my application where the phone disconnects after 30s even after a successful pairing and bonding.

Using the ble_app_multirole_lesc_s140_pca10056 example, I can successfully pair, but after 30 seconds there is a disconnect: PERIPHERAL: Disconnected, handle 1, reason 0x13.

This issue seems most similar to this https://devzone.nordicsemi.com/f/nordic-q-a/46345/central-device-disconnects-ble-connection-after-30-seconds/183173#183173 forum post, however, the solution does not prevent this from happening. 

In my actual application I get a LL_TERMINATE_IND at the time of disconnect.

Attached is a sniffer log and the nRF Connect verbose log.

Any help would be extremely appreciated,

Jeff

 

nRF Connect, 2019-05-03
NordicLESCApp (D4:BC:F8:83:7F:87)
I	09:00:01.772	[Server] Server started
V	09:00:01.805	Current Time Service (0x1805)
- Current Time [N R] (0x2A2B)
Client Characteristic Configuration (0x2902)
- Local Time Information [R] (0x2A0F)
V	09:00:02.123	Connecting to D4:BC:F8:83:7F:87...
D	09:00:02.129	gatt = device.connectGatt(autoConnect = false, TRANSPORT_LE, preferred PHY = LE 1M)
D	09:00:02.686	[Server callback] Connection state changed with status: 0 and new state: CONNECTED (2)
I	09:00:02.686	[Server] Device with address D4:BC:F8:83:7F:87 connected
D	09:00:02.691	[Callback] Connection state changed with status: 0 and new state: CONNECTED (2)
I	09:00:02.691	Connected to D4:BC:F8:83:7F:87
D	09:00:02.768	[Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED
D	09:00:02.819	[Broadcast] Action received: android.bluetooth.device.action.BOND_STATE_CHANGED, bond state changed to: BOND_BONDING (11)
D	09:00:02.819	[Broadcast] Action received: android.bluetooth.device.action.PAIRING_REQUEST, pairing variant: PAIRING_VARIANT_CONSENT (3)
I	09:00:03.128	Connection parameters updated (interval: 7.5ms, latency: 0, timeout: 5000ms)
I	09:00:03.555	Connection parameters updated (interval: 45.0ms, latency: 0, timeout: 5000ms)
D	09:00:06.101	[Broadcast] Action received: android.bluetooth.device.action.PAIRING_REQUEST, pairing variant: PAIRING_VARIANT_PASSKEY_CONFIRMATION (2)
I	09:00:08.079	Connection parameters updated (interval: 30.0ms, latency: 0, timeout: 500ms)
D	09:00:12.019	[Broadcast] Action received: android.bluetooth.device.action.BOND_STATE_CHANGED, bond state changed to: BOND_BONDED (12)
I	09:00:12.019	Device bonded
D	09:00:12.119	wait(1600ms)
V	09:00:13.720	Discovering services...
D	09:00:13.720	gatt.discoverServices()
D	09:00:13.768	[Callback] Services discovered with status: 0
I	09:00:13.769	Services discovered
V	09:00:13.785	Generic Access (0x1800)
- Device Name [R W] (0x2A00)
- Appearance [R] (0x2A01)
- Peripheral Preferred Connection Parameters [R] (0x2A04)
- Central Address Resolution [R] (0x2AA6)
Generic Attribute (0x1801)
Heart Rate (0x180D)
- Heart Rate Measurement [N] (0x2A37)
Client Characteristic Configuration (0x2902)
- Body Sensor Location [R] (0x2A38)
D	09:00:13.789	gatt.setCharacteristicNotification(00002a37-0000-1000-8000-00805f9b34fb, true)
D	09:00:32.680	[Server callback] Connection state changed with status: 0 and new state: DISCONNECTED (0)
I	09:00:32.680	[Server] Device disconnected
D	09:00:32.745	[Callback] Connection state changed with status: 22 and new state: DISCONNECTED (0)
D	09:00:32.745	[Broadcast] Action received: android.bluetooth.device.action.ACL_DISCONNECTED
E	09:00:32.746	Error 22 (0x16): GATT CONN TERMINATE LOCAL HOST
I	09:00:32.746	Disconnected

LESC_Disconnect.pcapng

Related