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.

cc2560 could actively pairing to remote device at link key loss

Other Parts Discussed in Thread: CC2560

Dear TI:
For GAP authentication-link key request level, if the link key has not stored (maybe flash write failed), the remote devices (phone/pc..) shall go through the pairing procedure in order to change the link key.

But some device will go pairing procedure again, but some device not. for the not re-pairing devices, the cc2560 could actively re-pairing to these remote devices with MAC address?

best regards,
Shihyin

  • Hello Shihyin,

    I am sorry but I am not sure I follow up your question. The devices use the MAC addresses to generate the link key (and get paired). Once they are paired, they don't need to go through this process again. Instead, they take the already generated link key for authentication. Please note that this link key generation process sometimes is transparent to the user depending on the features of the two devices and the pairing mechanism that is used.

    Regards,

    Miguel

  • Dear Miguel:

    Basically, the generated link key is stored in flash at M3.

    But, if the flash is damaged, the stored link key will be miss at power on again. In this scenario, the missing link key information will cause the remote paired device(ex: phone) has failed authentication with CC2560. In the state, some device will request to pair again, but some can't.

    For these can't re-pair devices, CC2560 could actively re-pair request to these devices?

    Has anyone CC2560's API function to support actively re-pair to remote device via MAC address?

    best regards,

    Shihyin

  • Hello Shihyin,

    I would like to make sure that I understand the case.

    Phone A and Stellaris have link key.

    Stellaris loses the link key.

    Phone A still has the link key.

    Now some phones cannot connect to the device, but some phones can.

    If this is the case, then the phones that are able to connect are able to do so as their application correctly deletes the link key once the authentication fails. 

    The other phones that do not work, will not and the sequence will be repeated every time.

    You may try the following two options:

    1. Delete the pairing manually on the phone.

    2. Initiate "GAP_Initiate_Bonding" on the Stellaris application. You can get more information on this from the API document but it only initiates the bonding procedure (general or dedicated) to a remote device. This may force the remote phone to update the link key if it cooperates. 

    Hope this helps.

    Best Regards,

    Stonestreet One.