Other Parts Discussed in Thread: CC2640
Hi
I having problem with pairings and encryption after power cycle.
My set up:
CC2640R2
sdk_1_00_00_22
Just works pairing
uint8 pairMode = GAPBOND_PAIRING_MODE_WAIT_FOR_REQ;
uint8 mitm = FALSE;
uint8 ioCap = GAPBOND_IO_CAP_NO_INPUT_NO_OUTPUT;
uint8 bonding = TRUE;
uint8 autoSyncWhitelist = TRUE;
uint8 secureConnection = GAPBOND_SECURE_CONNECTION_NONE;
I build stack with this setting OSAL_SNV=1
Pairing and encryption works fine but after a power cycle of chip it seems like chip has forgotten about the encryption keys of pairing.
When I look on the air sniffer log I see that cc2640 sends LL_REJECT_IND with errorCode: PIN or Key missing. ( see frame 7707 in attached air sniffer)
If I ask the BLE stack of number of paired devices it says 1 (GAPBondMgr_GetParameter( GAPBOND_BOND_COUNT, &numPaired );) , so it has saved something at least.
Reconnecting without powercycle chip works fine and no new pairing is made everything seems saved.
My question is.
Is there any settings to get bondmanager to save encryption Keys, as is saves paired devices in Flash?
According to documentation everything should be handled by the stack an application shouldn't need to do anything to get this to work.