Announcements
Community Announcement : Welcome to the NEW Cypress Developer Community.
cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4

JiSi_2146306
New Contributor

Hi, 

I am referring to the below examples to test BLE Bonding between two pioneer kits.

https://github.com/Infineon/PSoC-4-BLE/blob/master/100_Projects_in_100_Days/Day015_Bonding/BLE_Bondi...

https://github.com/Infineon/PSoC-4-BLE/blob/master/100_Projects_in_100_Days/Day011_Central_Observer/...

Individually the examples work fine. But my requirement is: One pioneer kit should act as a BLE central and will connect to another pioneer kit that is acting as BLE peripheral. BLE peripheral is having below security requirements.

JiSi_2146306_0-1632552235251.png

Connection with the peripheral using the Cysmart app works as expected. But how can I tweak the code on central to work with a peripheral with the above GAP settings?  Is there an example available for it?

I also have a requirement where I want to restrict the peripheral to be pared/bonded with just one central at a time.

 

Regards

0 Likes
1 Reply
Yugandhar
Moderator
Moderator

Hello,

Please refer to the attached zip file which has two projects central and peripheral. Once the devices are connected, pairing and bonding will occurs. Both the projects have the security features enabled.
Once your device got paired and bonded then for the second device you can check the bonded device list using CyBle_GapGetBondedDevicesList() api. If bonding devices count is more than one then don't store the bonding data, otherwise you can store the bonding data of your central device.
Please refer to the API description in BLE component datasheet for more information.

Thanks,
P Yugandhar.

0 Likes