PSoC4 central Bonding example

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

cross mob
JiSi_2146306
Level 1
Level 1
5 replies posted 5 questions asked First reply posted

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 Solution
lock attach
Attachments are accessible only for community members.
Yugandhar
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 5 likes given

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.

View solution in original post

0 Likes
1 Reply