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.

Numeric Comparison Timeout



I want to do Numeric Comparison

I am using the simplelink_cc13x2_26x2_sdk_5_10_00_48.

Suppose the GAPBOND_PAIRING_STATE_COMPLETE event notifies with status bleTimeout  without executing GAPBondMgr_PasscodeRsp () during Numeric Comparison.

At this time, if I execute GAPBondMgr_Pair () again, blePairingTimedOut (0x1C) will be returned. How should I perform the recovery process to prevent the error from being returned from GAPBondMgr_Pair ()?

 

Best Regards.

  • Hi Hiroki,

    If this happens, you may have to restart your connection process. You might consider terminating the connection if blePairingTImedOut returns, which will let you restart the pairing process. I am not aware of any error-handling for this specific use case, but I'll have a colleague chime in too.

    Best,

    Nate

  • Thank you for your reply.

    I want to restart the pairing process while keeping the BLE connection, is that impossible?

    Best Regards.

  • Hi Hiroki-san,

    Actually, if a pairing procedure times-out, it is not allowed to initiate a new one. 

    Quoting BLUETOOTH CORE SPECIFICATION Version 5.3 | Vol 3, Part H, §3.4, "If the Security Manager Timer reaches 30 seconds, the procedure shall be considered to have failed, and the local higher layer shall be notified. No further SMP commands shall be sent over the L2CAP Security Manager Channel. A new Pairing process shall only be performed when a new physical link has been established."

    The only option I see would be to terminate the link and establish a new one.

    I hope this will help,

    Best regards,