This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2541: Problem facing with bonding

Part Number: CC2541


Hello ,

I am facing problem while bonding to some android phones and also, when I remove the pair manually from all the phones. It won't bond again unless I erase all the bonds from CC2541 (GAPBondMgr_SetParameter() with GAPBOND_ERASE_ALLBONDS). Maximum number of bonds allowed now is 10 and in application I am deleting the oldest bond when it exceeds 10. This is working fine and I believe this is not related to the existing problem. SO my question is Why is the bonding not happening with the CC2541 ?

I am attaching the sniffer logs here:

nRF Connect, 2021-10-02
WirelessONE-000PCT (B0:B1:13:85:DD:88)
D 14:35:29.397 gatt.close()
D 14:35:29.402 wait(200)
V 14:35:29.608 Connecting to B0:B1:13:85:DD:88...
D 14:35:29.609 gatt = device.connectGatt(autoConnect = false, TRANSPORT_LE)
D 14:35:30.565 [Broadcast] Action received: android.bluetooth.device.action.BOND_STATE_CHANGED, bond state changed to: BOND_BONDING (11)
D 14:35:30.566 [Broadcast] Action received: android.bluetooth.device.action.PAIRING_REQUEST, pairing variant: PAIRING_VARIANT_CONSENT (3)
D 14:35:30.588 [Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED
D 14:35:30.609 [Callback] Connection state changed with status: 0 and new state: CONNECTED (2)
I 14:35:30.609 Connected to B0:B1:13:85:DD:88
D 14:36:00.890 [Broadcast] Action received: android.bluetooth.device.action.BOND_STATE_CHANGED, bond state changed to: BOND_NONE (10)
I 14:36:00.890 Bonding failed
V 14:36:00.906 Discovering services...
D 14:36:00.906 gatt.discoverServices()
D 14:36:00.974 [Callback] Services discovered with status: 0
I 14:36:00.974 Services discovered
V 14:36:01.018 Generic Access (0x1800)
- Device Name [R] (0x2A00)
- Appearance [R] (0x2A01)
- Peripheral Privacy Flag [R] (0x2A02)
- Reconnection Address [W] (0x2A03)
- Peripheral Preferred Connection Parameters [R] (0x2A04)
Generic Attribute (0x1801)
- Service Changed [I] (0x2A05)
   Client Characteristic Configuration (0x2902)
Device Information (0x180A)
- System ID [R] (0x2A23)
- Model Number String [R] (0x2A24)
- Serial Number String [R] (0x2A25)
- Firmware Revision String [R] (0x2A26)
- Hardware Revision String [R] (0x2A27)
- Software Revision String [R] (0x2A28)
- Manufacturer Name String [R] (0x2A29)
- IEEE 11073-20601 Regulatory Certification Data List [R] (0x2A2A)
- PnP ID [R] (0x2A50)
Unknown Service (0000fa00-0000-1000-8000-00805f9b34fb)
- Unknown Characteristic [R W] (0000fa01-0000-1000-8000-00805f9b34fb)
- Unknown Characteristic [N WNR] (0000fa02-0000-1000-8000-00805f9b34fb)
   Client Characteristic Configuration (0x2902)
Unknown Service (0000fb00-0000-1000-8000-00805f9b34fb)
- Unknown Characteristic [N R] (0000fb01-0000-1000-8000-00805f9b34fb)
   Client Characteristic Configuration (0x2902)
- Unknown Characteristic [R W] (0000fb02-0000-1000-8000-00805f9b34fb)
- Unknown Characteristic [N W] (0000fb03-0000-1000-8000-00805f9b34fb)
   Client Characteristic Configuration (0x2902)
- Unknown Characteristic [N R] (0000fb04-0000-1000-8000-00805f9b34fb)
   Client Characteristic Configuration (0x2902)
- Unknown Characteristic [W] (0000fb05-0000-1000-8000-00805f9b34fb)
- Unknown Characteristic [W] (0000fb06-0000-1000-8000-00805f9b34fb)
- Unknown Characteristic [R W] (0000fb07-0000-1000-8000-00805f9b34fb)
- Unknown Characteristic [R] (0000fb08-0000-1000-8000-00805f9b34fb)
- Unknown Characteristic [N R W] (0000fb09-0000-1000-8000-00805f9b34fb)
   Client Characteristic Configuration (0x2902)
- Unknown Characteristic [N R] (0000fb0a-0000-1000-8000-00805f9b34fb)
   Client Characteristic Configuration (0x2902)
Unknown Service (0000fc00-0000-1000-8000-00805f9b34fb)
- Unknown Characteristic [R W] (0000fc10-0000-1000-8000-00805f9b34fb)
- Unknown Characteristic [R W] (0000fc13-0000-1000-8000-00805f9b34fb)
- Unknown Characteristic [R W] (0000fc14-0000-1000-8000-00805f9b34fb)
- Unknown Characteristic [R W] (0000fc16-0000-1000-8000-00805f9b34fb)
- Unknown Characteristic [R W] (0000fc18-0000-1000-8000-00805f9b34fb)
- Unknown Characteristic [R W] (0000fc1a-0000-1000-8000-00805f9b34fb)
- Unknown Characteristic [R W] (0000fc2e-0000-1000-8000-00805f9b34fb)
- Unknown Characteristic [R W] (0000fc42-0000-1000-8000-00805f9b34fb)
Unknown Service (0000fe00-0000-1000-8000-00805f9b34fb)
- Unknown Characteristic [N R W] (0000fe01-0000-1000-8000-00805f9b34fb)
   Client Characteristic Configuration (0x2902)
- Unknown Characteristic [R W] (0000fe02-0000-1000-8000-00805f9b34fb)
- Unknown Characteristic [N R W] (0000fe03-0000-1000-8000-00805f9b34fb)
   Client Characteristic Configuration (0x2902)
- Unknown Characteristic [R W] (0000fe04-0000-1000-8000-00805f9b34fb)
- Unknown Characteristic [R W] (0000fe05-0000-1000-8000-00805f9b34fb)
- Unknown Characteristic [R W] (0000fe06-0000-1000-8000-00805f9b34fb)
D 14:36:01.018 gatt.setCharacteristicNotification(00002a05-0000-1000-8000-00805f9b34fb, true)
D 14:36:01.020 gatt.setCharacteristicNotification(0000fa02-0000-1000-8000-00805f9b34fb, true)
D 14:36:01.022 gatt.setCharacteristicNotification(0000fb01-0000-1000-8000-00805f9b34fb, true)
D 14:36:01.025 gatt.setCharacteristicNotification(0000fb03-0000-1000-8000-00805f9b34fb, true)
D 14:36:01.027 gatt.setCharacteristicNotification(0000fb04-0000-1000-8000-00805f9b34fb, true)
D 14:36:01.030 gatt.setCharacteristicNotification(0000fb09-0000-1000-8000-00805f9b34fb, true)
D 14:36:01.032 gatt.setCharacteristicNotification(0000fb0a-0000-1000-8000-00805f9b34fb, true)
D 14:36:01.034 gatt.setCharacteristicNotification(0000fe01-0000-1000-8000-00805f9b34fb, true)
D 14:36:01.037 gatt.setCharacteristicNotification(0000fe03-0000-1000-8000-00805f9b34fb, true)
I 14:36:01.181 Notification received from 0000fb01-0000-1000-8000-00805f9b34fb, value: (0x) 00-00-00
A 14:36:01.181 "(0x) 00-00-00" received
I 14:36:01.421 Notification received from 0000fb01-0000-1000-8000-00805f9b34fb, value: (0x) 00-00-00
A 14:36:01.421 "(0x) 00-00-00" received
I 14:36:01.665 Notification received from 0000fb01-0000-1000-8000-00805f9b34fb, value: (0x) 00-00-00
A 14:36:01.665 "(0x) 00-00-00" received
I 14:36:01.909 Notification received from 0000fb01-0000-1000-8000-00805f9b34fb, value: (0x) 00-00-00
A 14:36:01.909 "(0x) 00-00-00" received
I 14:36:02.206 Notification received from 0000fb01-0000-1000-8000-00805f9b34fb, value: (0x) 00-00-00
A 14:36:02.206 "(0x) 00-00-00" received
I 14:36:02.505 Notification received from 0000fb01-0000-1000-8000-00805f9b34fb, value: (0x) 00-00-00
A 14:36:02.505 "(0x) 00-00-00" received
I 14:36:02.689 Notification received from 0000fb01-0000-1000-8000-00805f9b34fb, value: (0x) 00-00-00
A 14:36:02.689 "(0x) 00-00-00" received
I 14:36:02.932 Notification received from 0000fb01-0000-1000-8000-00805f9b34fb, value: (0x) 00-00-00
A 14:36:02.932 "(0x) 00-00-00" received
I 14:36:03.176 Notification received from 0000fb01-0000-1000-8000-00805f9b34fb, value: (0x) 00-00-00
A 14:36:03.176 "(0x) 00-00-00" received
I 14:36:03.471 Notification received from 0000fb01-0000-1000-8000-00805f9b34fb, value: (0x) 00-00-00
A 14:36:03.471 "(0x) 00-00-00" received
I 14:36:03.664 Notification received from 0000fb01-0000-1000-8000-00805f9b34fb, value: (0x) 00-00-00
A 14:36:03.664 "(0x) 00-00-00" received
D 14:36:03.916 [Callback] Connection state changed with status: 22 and new state: DISCONNECTED (0)
E 14:36:03.916 Error 22 (0x16): GATT CONN TERMINATE LOCAL HOST
I 14:36:03.916 Disconnected
D 14:36:04.115 [Broadcast] Action received: android.bluetooth.device.action.ACL_DISCONNECTED
D 14:36:09.624 gatt.close()
D 14:36:09.629 wait(200)
V 14:36:09.836 Connecting to B0:B1:13:85:DD:88...
D 14:36:09.836 gatt = device.connectGatt(autoConnect = false, TRANSPORT_LE)
D 14:36:10.448 [Callback] Connection state changed with status: 133 and new state: DISCONNECTED (0)
E 14:36:10.449 Error 133 (0x85): GATT ERROR
I 14:36:10.449 Disconnected
D 14:36:42.457 gatt.close()
D 14:36:42.462 wait(200)
V 14:36:42.668 Connecting to B0:B1:13:85:DD:88...
D 14:36:42.668 gatt = device.connectGatt(autoConnect = false, TRANSPORT_LE)
D 14:36:44.432 [Callback] Connection state changed with status: 133 and new state: DISCONNECTED (0)
E 14:36:44.433 Error 133 (0x85): GATT ERROR
I 14:36:44.433 Disconnected