cancel
Showing results for 
Search instead for 
Did you mean: 

ModusToolbox Bluetooth SDK

RaJa_4826186
New Contributor

hi,

we want to do the PIN pairing with mobile application on 423054.

we couldn't find any example code for pin based pairing, so we are facing difficulty to do the same.

PIN will be fixed and if user wants they can change and we have no user interface whatsoever, hence the need for each device to have the same PIN.

 

Thanks & Regards

Rahul

0 Likes
1 Solution
SheetalJ
Moderator
Moderator

Hi Rahul,

I suppose you are using CYW20719 based CYBT-423054 module. Note there is no way to set a fixed passkey for pairing. The passkey is generated randomly by firmware. For more information on passkey based pairing, please go through https://github.com/cypresssemiconductorco/CypressAcademy_BT101_Files/blob/master/PDFs/WBT101-04B-BLE... and related exercises.

One way is, if the peer device is any third party device which can have a fixed passkey , in that case we can use IO capability of 20719 as keyboard and instead of entering the passkey manually , you can use API wiced_bt_dev_pass_key_req_reply and send the known passkey as reply. This will work.

 

View solution in original post

0 Likes
1 Reply
SheetalJ
Moderator
Moderator

Hi Rahul,

I suppose you are using CYW20719 based CYBT-423054 module. Note there is no way to set a fixed passkey for pairing. The passkey is generated randomly by firmware. For more information on passkey based pairing, please go through https://github.com/cypresssemiconductorco/CypressAcademy_BT101_Files/blob/master/PDFs/WBT101-04B-BLE... and related exercises.

One way is, if the peer device is any third party device which can have a fixed passkey , in that case we can use IO capability of 20719 as keyboard and instead of entering the passkey manually , you can use API wiced_bt_dev_pass_key_req_reply and send the known passkey as reply. This will work.

 

View solution in original post

0 Likes