This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Is there an API that can get the authentication method?

Hello.
I am developing using nrf52832 (S132 v7.0.1, SDK v17.0.0) as a peripheral device.

I want to know the authentication method of the central device when the connection is established.
Is there an API that can get the authentication method?

Also, when BLE_GAP_EVT_CONNECTED of ble_evt_handler is called, you can see the security parameters by checking "p_ble_evt-> evt-> gap_evt-> params-> sec_params_request-> peer_params".
Is it possible to know the authentication method of the central device by comparing it with the value on the following site and checking the authentication method?

Best regards.

Parents Reply Children
  • Hello.

    No, you can use sd_ble_gap_sec_params_reply() to reply with a error-code and the paring will fail.

    My explanation was strange. I'm sorry.

    The timing when you want information is when a BLE connection is made.
    This is because if the other party's BLE device does not have an authentication method different from yours, you want to disconnect, and if they are the same, you want to perform pairing (bonding). Also, at this time, I would like to know the information on LESC.

    I was able to confirm the authentication method with "BLE_GAP_EVT_SEC_PARAMS_REQUEST", but an event occurred at the timing when the BLE connection was made and pairing (bonding) was performed.
    Therefore, we could only get the information later than we originally wanted.

    Is there a way to get the authentication method faster than "BLE_GAP_EVT_SEC_PARAMS_REQUEST"?

    Best regards.

  • sdi_kei said:
    The timing when you want information is when a BLE connection is made.
    sdi_kei said:
    Is there a way to get the authentication method faster than "BLE_GAP_EVT_SEC_PARAMS_REQUEST"?

    No.If this is a new device that is connecting(that you have no prior bond to), then the information is not known when the device connects.

  • Hello.

    You can only understand the IO function when the pairing request is sent from the other party.
    I was able to understand. Thank you very much.

    Best regards.

Related