Multiple PINs for connecting to different Bluetooth devices

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

cross mob
deonc_3697476
Level 2
Level 2
First like given

Is there a way for my program to store and try multiple PINs? For example if I know the PINs for two devices but the PINS are different I need to store and try two PINs when the CYW20719 tries to connect to the two devices.

0 Likes
1 Solution
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

Yes, you can store different link_keys in your device. Please refer to the demo/hci_audio_gateway in the WICED SDK. In the hci_control.c file, keys of different device are stored to the NVRAM. Please check the event BTM_PAIRED_DEVICE_LINK_KEYS_UPDATE_EVT and BTM_PAIRED_DEVICE_LINK_KEYS_REQUEST_EVT for details.

View solution in original post

1 Reply
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

Yes, you can store different link_keys in your device. Please refer to the demo/hci_audio_gateway in the WICED SDK. In the hci_control.c file, keys of different device are stored to the NVRAM. Please check the event BTM_PAIRED_DEVICE_LINK_KEYS_UPDATE_EVT and BTM_PAIRED_DEVICE_LINK_KEYS_REQUEST_EVT for details.