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

Timeout condtion for passkey based pairing

Hi All, I am using s110 v7 soft device , and SDK: 6.1. I have implemented static passkey based pairing.
I would like to terminate the connection if central unable to sends the passkey to the peripheral in a predefined time/ sends the wrong key.

I will be tankful if someone give info, to impalement timeout condition for passkey entry.

Thanks & Regards, Raju

  • Please see this MSC.

    After 30 seconds (by Bluetooth spec) a BLE_GAP_EVT_AUTH_STATUS event will be sent to application.

    The auth_status in the ble_gap_evt_auth_status_t struct will tell you the reason for the failed pairing, for timeout it will be BLE_GAP_SEC_STATUS_TIMEOUT.

    If the wrong passkey is provided I guess you will get BLE_GAP_SEC_STATUS_PASSKEY_ENTRY_FAILED.

    You can use this to trigger disconnection.

Related