cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4 MCU

New Contributor II

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
Reply
1 Solution
Moderator
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
Moderator
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

New Contributor II

Hello Sayani,

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

Regards,
David

0 Likes
Reply