PSoC4 BLE : Setting of bonding

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

cross mob
MiNe_85951
Level 7
Level 7
Distributor - TED (Japan)
50 likes received 500 replies posted 50 solutions authored

Hi,

We are developing equipment using PSoC4 BLE.

The device under development is often turned off due to low power.

So I have the following questions:

(1)
In other words, between the device and the iOS application,
BLE reconnection must be done frequently.
Is there a way to make that reconnection easy and smooth?

(2)
Is it possible to solve the above by setting BLE to Bonding?
Gap settings-> Security-> bondhing requirement (Bonding)

(3)
Do you have a sample project that you can check with CySmart?

Regards,

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

Hello,

Whenever the device turned ON, BLE will be started(if CyBle_Start() function is called) and CYBLE_EVT_STACK_ON event will be generated, if you call CyBle_GappStartAdvertisement() function in that event then device starts advertising (Cysmart App can scan and connect to that device). Please refer to the 'BLE_FindMe' code example in the PSoC Creator.

If you are doing the Pairing process (i.e., two devices are authenticated, encrypted and exchanges secured data over the BLE interface) then bonding can be used, in which the keys and the identity information exchanged during the pairing process are saved. After devices are bonded, they do not have to go through the pairing process again when reconnected.
Please refer to the Day015_Bonding example project from the GitHub for more information on bonding.

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,

Whenever the device turned ON, BLE will be started(if CyBle_Start() function is called) and CYBLE_EVT_STACK_ON event will be generated, if you call CyBle_GappStartAdvertisement() function in that event then device starts advertising (Cysmart App can scan and connect to that device). Please refer to the 'BLE_FindMe' code example in the PSoC Creator.

If you are doing the Pairing process (i.e., two devices are authenticated, encrypted and exchanges secured data over the BLE interface) then bonding can be used, in which the keys and the identity information exchanged during the pairing process are saved. After devices are bonded, they do not have to go through the pairing process again when reconnected.
Please refer to the Day015_Bonding example project from the GitHub for more information on bonding.

Thanks,
P Yugandhar.

0 Likes