Hi,
I am using two nRF52833 devices with the nRF5 SDK. They are paired and bonded to each other. Occasionally, I encounter the following error in peer_manager_handler:
Connection security failed: role: Peripheral, conn_handle: 0x0, procedure: Encryption, error: 4102
From my understanding, error 4102 indicates a bonding mismatch — i.e., the stored bonding information on the two sides is inconsistent.
However, the issue can be resolved simply by power-cycling both nRF52833 devices. After restart, the connection and encryption work normally.
Why does error 4102 occur intermittently, and why does a power cycle fix it? Could this be related to improper handling of bonding recovery, flash corruption, or connection context cleanup in the Peer Manager?
Thank you.