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.

CC2640R2F Multi-role pairing failed as the Central Role

Hi:

I met a question.

I have a peripheral device,and it's pairMode is GAPBOND_PAIRING_MODE_INITIATE.

I use the multi-role example to test,and the pairMode is GAPBOND_PAIRING_MODE_WAIT_FOR_REQ,when 

the multi-role connect with the peripheral,the pairing process is abnormal.

once connected,I do not enter the passcode,the display shows that paired and bond success.

Besides,I check the same result by multi-role example in different sdk from sdk2.20 to sdk 4.30。

Generally,if the multi-role received the Security request from the peripheral,then receive the start pairing status event from the protocol stack,

But the multi-role Directly paired successfully,and without entering the pairing code process。

I don't know why。

The multi-role pairing paramters are as follows:

uint8_t pairMode = GAPBOND_PAIRING_MODE_WAIT_FOR_REQ;
uint8_t mitm = TRUE;
uint8_t ioCap = DEFAULT_IO_CAPABILITIES;//GAPBOND_IO_CAP_DISPLAY_ONLY;
uint8_t bonding = TRUE;
// 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);

The peripheral pairing paramters are as follows:

uint8_t pairMode =GAPBOND_PAIRING_MODE_INITIATE;
uint8_t mitm = TRUE;
uint8_t ioCap = DEFAULT_IO_CAPABILITIES;//GAPBOND_IO_CAP_KEYBOARD_DISPLAY
uint8_t bonding = TRUE;

// 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);

Thanks for your suggestions!!