This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

White-list with "Just works" simple pairing

Hello, 

We use nRF52832 with SDK-11 as peripheral in our project. We want to utilize white-list feature to limit the connection establishment. I have studied HID Mouse example, and the example uses MITM protection. It would trigger the pairing request in remote device, and if we want to clear the white-list limitation, we not only need to remove the white-list in our device, but also un-pairing the device in remote part.

I wonder if we could use "Just works" simple pairing with white-list to avoid this. Currently, we enable the white-list feature by writing a specific value to the characteristic of our device.

Any advice and suggestions will be appreciated.

Parents Reply Children
  • Hi, Kenneth

    Thanks for your kindly reply. So, you mean that even if we use non-MITM pairing/bonding procedure, which is "Just works" simple pairing, we still could have white-list feature working correctly, but we need to use peer manager instead of ble device manager. Is this correct ?

    Because the example projects in SDK use MITM pairing/bonding procedure, we are not sure if we could replace it with non-MITM pairing/bonding procedure. The MITM pairing/bonding procedure would result in the unfriendly user experience when we need to do un-pairing in iOS application.

    Thank you.

  • This will also work with device manager. I do not understand why you say the HID mouse example is using MITM, the define is:

    #define SEC_PARAM_MITM                  0                                           /**< Man In The Middle protection not required. */

    Maybe what you mean is that you only want to pair, but not bond? Then that is controlled by:

    #define SEC_PARAM_BOND                  1                                           /**< Perform bonding. */

  • Hi, Kenneth

    I apologize for mixing the MITM, pairing, and bonding. Maybe, as you said, I should ask if I could use white-list with pairing only and WITHOUT encryption and bonding.

    Thank you

  • I don't expect you will be able to do that. Pairing is mainly used for a temporary connection with encryption, while bonding is intended for long time persistent connection with identity and key exchange. You would not need to have any identity exchange for a temporary connection.

Related