Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

PM_CONN_SEC_ERROR_PIN_OR_KEY_MISSING and Handling Peer Deletion in nRF5 SDK

Hi Nordic Team
I am working on a BLE application using the nRF5 SDK 17.1.0 with Peer Manager configured for Security Mode 1 Level 4. I am encountering an issue related to peer reconnection and secure pairing under the following circumstances:

  1. The Android app user deletes the pairing information. On re-connection it ask for pairing,the device is bonded again on another re connection, the device encounters the error PM_CONN_SEC_ERROR_PIN_OR_KEY_MISSING.
  2. Attempts to read the MAC address of the client device result in BLE_GAP_ADDR_TYPE_RANDOM_PRIVATE_RESOLVABLE, making it challenging to identify the exact peer.

Request for Assistance:

  • How can I delete the specific peer associated with the connecting client in this scenario using the nRF5 SDK?
  • If peer-specific deletion is not feasible, can you suggest an alternative solution to handle this situation effectively while maintaining security?
Related