This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2340R5: About GAP_PASSKEY_NEEDED_EVENT

Part Number: CC2340R5

I am considering peripheral devices.
I'm using Passkey entry, but I don't really understand the GAP_PASSKEY_NEEDED_EVENT notification.
I couldn't find any mention of this in the Bluetooth Core Spec either.
I would like to know the specifications for this event.
Thank you.

  • Hi,

    Thank you for reaching out. We will look into your question and get back to you as soon as possible. In the meantime, can you clarify what you are attempting to implement regarding passkeys?

    Best Regards,

    Jan

  • Kei,

    As Jan mentioned, it would be useful to understand what you are attempting to implement with the passkeys. To get started though, I would recommend you take a look at the Passcode Entry section in the BLE5-Stack User's Guide. You can also find more information on the GAP_PASSKEY_NEEDED_EVENT in the TI BLE-Stack for Bluetooth API Documentation.

    Thanks,

    Luke

  • Thank you for checking, Jan and Luke.

    While checking the behavior of the peripheral (Display only) and the paired Android App, I feel that I would like to know the timing of GAP_PASSKEY_NEEDED_EVENT.
    There is an event where pairing fails when the Android App inputs the passkey when GAP_PASSKEY_NEEDED_EVENT is not received, and I would like to investigate the event specifications in the first place.

    Thank you.

  • Kei,

    Thanks for that clarification! Could you share which project you are using to see the current behavior as well as the SDK version you have installed?

    My initial recommendation (assuming you are using the simple_peripheral project) to understand the timing of the GAP_PASSKEY_NEEDED_EVENT would be to set breakpoints within the 'gapbondmgr.c' file under the "case GAP_PASSKEY_NEEDED_EVENT" and then utilize debug mode to see each step within the event occurs.

    Best regards,

    Luke

  • Luke,

    SDK version is 7.40.00.64.
    I am using a self-made project, and the configuration is the same as basic_ble.

    This question is: I would like to know the specifications and timing of GAP_PASSKEY_NEEDED_EVENT.
    However, there was no detailed explanation.
    When you make a connection request from an Android app, the passkey input screen is displayed and then you receive GAP_PASSKEY_NEEDED_EVENT. However, immediately after the passkey entry screen appears, I have not yet received the GAP_PASSKEY_NEEDED_EVENT. Therefore, I would like to know the detailed specifications.

    thank you.

  • Kei,

    Could you please translate your this to English and edit your prior response or respond again?

    Thank you,

    Luke

  • Luke,

    sorry. Edited.

    Thank you for your confirmation.

  • Kei,

    No worries, thank you for doing that! Figure 85 (included below for reference), found in the User's Guide, describes the interaction between the GAPBondMgr and the application when passcodes are exchanged.

    If this does not provide the level of detail you are looking for, feel free to reference this similar thread for a bit more clarity. Let me know if there is any further information needed after looking through these items. 

    Best regards,

    Luke

  • Luke,

    thank you. I have also read the User Guide and understand it.
    I would like to know where the GAP_PASSKEY_NEEDED_EVENT described in that diagram is described in the Bluetooth Core Specification.

    For example, GAP_LINK_ESTABLISHED_EVENT is expressed as "Established LL connection" in Figure 2.1: LE pairing phases of the Bluetooth Core Specification.
    However, I looked for GAP_PASSKEY_NEEDED_EVENT in the Bluetooth Core Specification, but my skills were not able to identify it.

  • Kei,

    I will take a look at the Bluetooth Core Specification and see if I can find an answer for you on where the GAP_PASSKEY_NEEDED_EVENT would be found. My initial thought from looking at the figure you mentioned would be either the "Phase 2" box or the one immediately following expressed as "Establishment of encrypted connection with key generated in phase 2". 

    Best regards, 

    Luke

  • Kei,

    Upon reviewing the Bluetooth Core Spec, the HCI_User_Passkey_Request command is the one which correlates to the GAP_PASSKEY_NEEDED_EVENT and as stated before would fall in the Phase 2 block of the diagram you had attached previously. Take a look at section '4.2.13 Passkey Entry' for more detail and a diagram of the authentication. 

    Section 7.2 and subsection 7.2.1 may also be useful to reference for you. 

    Thanks,

    Luke