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

PSoC™ 4

EyGe_3183606
Level 3
10 replies posted 10 questions asked 10 likes given
Level 3

Hello,

We have PSOC 4 BLE CYBLE-224110.

In our project the PSOC acts as a server in BLE and it connects with an android app.

The BLE module is defined in the following manner:

pastedImage_0.png

The android app performs pairing with the PSOC and then a connection is established (no bonding).

It is desired that the PSOC erase in certain cases the pairing information from its memory, disconnect the connection and require the android app to do pairing again.

However, we are unable to find a way to do so. We cannot find any API for erasing pairing information. We are able to disconnect the BLE but then the android app just connects to us without the need to perform pairing again.

However, if we reload the same software over SWD to the PSOC then the android app is required to do pairing again. So there must be a mechanism that could allow us to erase the pairing information on the PSOC that would require the android app to do pairing again. But how?

Thanks,
David

0 Likes
1 Solution
SayaniS_66
Moderator
Moderator 10 likes received First like received
Moderator

Hello David,

The security level 'No authentication, No encryption' selected by you in the GAP Settings tab shows that pairing is not enabled. So, can you elaborate on what type of pairing you are implementing.

Also, the pairing information is stored in the RAM which is volatile. So, the RAM contents are erased only on power cycle or hardware reset. So, if you pair for the first time, the pairing information is stored in the RAM even without implementing bonding. That is why for the second time the device connects to the android app without asking for pairing again.

-Sayani.

View solution in original post

2 Replies
SayaniS_66
Moderator
Moderator 10 likes received First like received
Moderator

Hello David,

The security level 'No authentication, No encryption' selected by you in the GAP Settings tab shows that pairing is not enabled. So, can you elaborate on what type of pairing you are implementing.

Also, the pairing information is stored in the RAM which is volatile. So, the RAM contents are erased only on power cycle or hardware reset. So, if you pair for the first time, the pairing information is stored in the RAM even without implementing bonding. That is why for the second time the device connects to the android app without asking for pairing again.

-Sayani.

EyGe_3183606
Level 3
10 replies posted 10 questions asked 10 likes given
Level 3

Hello Sayani,

Thanks for your response and the clarifications. If I'll have more questions I'll let you know.

Regards,
David

0 Likes