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.

How to close Secure Simple Pairing in HOGPDemo using SetPairabilityMode command?



Hi,

I am using TIVA M4+CC256XB and working on HOGPDemo.

In the HOGPDemo, 

“SetPairabilityMode 0” Attempts to set the Local Device’s Pairability Mode to Non-Pairable.

“SetPairabilityMode 1” Attempts to set the Local Device’s Pairability Mode to Pairable(Secure Simple Pairing).

But, in some Demos like HIDDemo( NO LE), there is three parameters in SetPairabilityMode command:

"SetPairabilityMode 0" Attempts to set the Pairability Mode of the Local Device to Non-Pairable. 
"SetPairabilityMode 1" Attempts to set the Pairability Mode of the Local Device to Pairable(PIN Code). 
"SetPairabilityMode 2" Attempts to set the Pairability Mode of the Local Device to Secure Simple Pairing.

I'm trying to change the Secure Simple Pairing in HOGPDemo to PIN Code paring.

I have replaced the SetLEPairabilityMode() function with the SetPairabilityMode() in HIDDemo.c   which has three parameters: 

pmNonPairableMode,pmPairableMode,pmPairableMode_EnableSecureSimplePairing;

but there is no difference between pmPairableMode and pmPairableMode_EnableSecureSimplePairing, they are both Secure Simple Pairing mode.

When I turn to ChangePairingParameters command, the paring is failed directly without an PassKeyResponse when using ChangeSimplePairingParameters 3 0.

Does someone know how to change the Secure Simple Pairing in HOGPDemo to PIN Code paring?

Thanks!