Part Number: CC2640R2F
Hi team,
Here's an issue from the customer may need your help:
SDK 4.30is used. The customer would like to implement: CC2640R2 is a slave that initiates a pairing request from the client/cell phone when the slave is connected. The client side pops up a pairing box and does not need to enter a pairing PIN, just click confirm to pair with bond.
The pairing code is as follows:
{
uint8_t pairMode = GAPBOND_PAIRING_MODE_INITIATE;
uint8_t mitm = TRUE;
uint8_t ioCap =GAPBOND_IO_CAP_NO_INPUT_NO_OUTPUT;
uint8_t bonding = TRUE;
uint8_t replaceBonds = FALSE;
// Set pairing mode
GAPBondMgr_SetParameter(GAPBOND_PAIRING_MODE, sizeof(uint8_t), &pairMode);
// Set authentication requirements
GAPBondMgr_SetParameter(GAPBOND_MITM_PROTECTION, sizeof(uint8_t), &mitm);
// Set I/O capabilities
GAPBondMgr_SetParameter(GAPBOND_IO_CAPABILITIES, sizeof(uint8_t), &ioCap);
// Set bonding requirements
GAPBondMgr_SetParameter(GAPBOND_BONDING_ENABLED, sizeof(uint8_t), &bonding);
// Set bond list LRU
GAPBondMgr_SetParameter(GAPBOND_LRU_BOND_REPLACEMENT, sizeof(uint8_t), &replaceBonds);
// Register and start Bond Manager
VOID GAPBondMgr_Register(&multi_role_BondMgrCBs);
}
After the hex is generated, the phone pops up a pairing pop-up as below when the slave is connected with the phone:

After clicking Pair, it fails and the host side terminate is disconnected:

So the customer would like to know how to pair the slave device setup without entering a PIN? Could you help check this case? Thanks.
Best Regards,
Cherry