Retrieve Currently Set CyBle_GapFixAuthPassKey

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
MaMc_3367101
Level 3
Level 3
10 replies posted 5 replies posted 5 sign-ins

We have a device in the field that didn't properly call CyBle_GapFixAuthPassKey for the default passkey in STACK_ON. We can't pair with the device in the scenario where a user cancels the OTA half way through, unpairs from the device, then tries to pair again to finish the OTA. (Our device requires pairing for all attributes so pairing is required in the Bootloader).

Is there a way I can see what the currentl CyBle_GapFixAuthPassKey has been set to? My fear is it's null which isn't possible to type in on a mobile device.

0 Likes
1 Solution
Yugandhar
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 5 likes given

Hello,

In the event CYBLE_EVT_GAP_PASSKEY_DISPLAY_REQUEST the device will displays the passkey value during the pairing procedure where we can see the current passkey value which was set.

In the API CyBle_GapFixAuthPassKey(uint8 isFixed, uint32 fixedPassKey), if 'isFixed' parameter value is one then the fixed passkey value (valid passkey value should be (<=999999)) will be set otherwise SMP will generate random passkey value instead of using the fixed passkey.

Thanks,

P Yugandhar.

View solution in original post

0 Likes
1 Reply
Yugandhar
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 5 likes given

Hello,

In the event CYBLE_EVT_GAP_PASSKEY_DISPLAY_REQUEST the device will displays the passkey value during the pairing procedure where we can see the current passkey value which was set.

In the API CyBle_GapFixAuthPassKey(uint8 isFixed, uint32 fixedPassKey), if 'isFixed' parameter value is one then the fixed passkey value (valid passkey value should be (<=999999)) will be set otherwise SMP will generate random passkey value instead of using the fixed passkey.

Thanks,

P Yugandhar.

0 Likes