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

Get entered passcode

Hello!

I have a custom board with nRF52810 and s132. BLE connection is secured with passcode. it works.

I would like to get exact passcode entered by User if the passcode is wrong. Is it possible and how?

Thanks in advance

Parents Reply
  • Let me clarify it:

    1. I have nRF52840 board with NUS service and BLE connection requires passcode

    2. I connect to the device using lets say iPhone and nRF Connect or Bluefruit app.

    3. iOS asks for passcode, I enter some, lets say `123456`

    4. Right passcode on the device is `654321`

    5. So I get the PM_EVT_CONN_SEC_FAILED event on device side with mesage

    <info> peer_manager_handler: Connection security failed: role: Peripheral, conn_handle: 0x0, procedure: Bonding, error: 132
    
    <warning> peer_manager_handler: Disconnecting conn_handle 0.
    

    6. It is absolutely correct workflow but I would like to know in the firmware, that user entered `123456`, not just that it was wrong.

    Is it possible?

Children
Related