This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Error 22 (0x16): GATT CONN TERMINATE LOCAL HOST

Hello,

I'm running custom firmware on a nRF52840 based DK (Rigado BMD-340).

The log from the nRF Connect app is as follows: 

nRF Connect, 2019-09-12
BlueSkyEnergy (E1:83:A1:DF:B5:F0)
D 14:28:03.577 gatt.close()
D 14:28:03.591 wait(200)
V 14:28:03.797 Connecting to E1:83:A1:DF:B5:F0...
D 14:28:03.798 gatt = device.connectGatt(autoConnect = false, TRANSPORT_LE)
D 14:28:06.125 [Broadcast] Action received: android.bluetooth.device.action.BOND_STATE_CHANGED, bond state changed to: BOND_BONDING (11)
D 14:28:06.132 [Callback] Connection state changed with status: 0 and new state: CONNECTED (2)
I 14:28:06.132 Connected to E1:83:A1:DF:B5:F0
D 14:28:06.155 [Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED
D 14:28:06.172 [Broadcast] Action received: android.bluetooth.device.action.PAIRING_REQUEST, pairing variant: PAIRING_VARIANT_CONSENT (3)
D 14:28:36.096 [Broadcast] Action received: android.bluetooth.device.action.BOND_STATE_CHANGED, bond state changed to: BOND_NONE (10)
I 14:28:36.096 Bonding failed
V 14:28:36.118 Discovering services...
D 14:28:36.118 gatt.discoverServices()
D 14:28:36.147 [Callback] Services discovered with status: 0
I 14:28:36.147 Services discovered
V 14:28:36.172 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)
- Service Changed [I] (0x2A05)
Client Characteristic Configuration (0x2902)
Unknown Service (d675132b-91ef-4cfe-a08d-f83006b38821)
- Unknown Characteristic [N R] (0000597c-0000-1000-8000-00805f9b34fb)
Client Characteristic Configuration (0x2902)
Characteristic User Description (0x2901)
- Unknown Characteristic [R WNR] (0000ef30-0000-1000-8000-00805f9b34fb)
Characteristic User Description (0x2901)
- Unknown Characteristic [R] (00007b2b-0000-1000-8000-00805f9b34fb)
Characteristic User Description (0x2901)
- Unknown Characteristic [R W] (00007237-0000-1000-8000-00805f9b34fb)
Characteristic User Description (0x2901)
- Unknown Characteristic [R] (0000d793-0000-1000-8000-00805f9b34fb)
Characteristic User Description (0x2901)
- Unknown Characteristic [N R] (00007092-0000-1000-8000-00805f9b34fb)
Client Characteristic Configuration (0x2902)
Characteristic User Description (0x2901)
- Unknown Characteristic [N R] (00007efb-0000-1000-8000-00805f9b34fb)
Client Characteristic Configuration (0x2902)
D 14:28:36.172 gatt.setCharacteristicNotification(00002a05-0000-1000-8000-00805f9b34fb, true)
D 14:28:36.175 gatt.setCharacteristicNotification(0000597c-0000-1000-8000-00805f9b34fb, true)
D 14:28:36.177 gatt.setCharacteristicNotification(00007092-0000-1000-8000-00805f9b34fb, true)
D 14:28:36.178 gatt.setCharacteristicNotification(00007efb-0000-1000-8000-00805f9b34fb, true)
D 14:28:39.133 [Callback] Connection state changed with status: 22 and new state: DISCONNECTED (0)
E 14:28:39.134 Error 22 (0x16): GATT CONN TERMINATE LOCAL HOST
I 14:28:39.134 Disconnected
D 14:28:39.221 [Broadcast] Action received: android.bluetooth.device.action.ACL_DISCONNECTED

Could anyone help explain the error "Error 22 (0x16): GATT CONN TERMINATE LOCAL HOST"

What might be the cause and I need to proceed?

I have installed the app on Android 7.1.1 on a OnePlus 5 phone.

Thanks

Parents Reply Children
No Data
Related