Linux, WL1831MODGBMOCR, using Bluetopia PM
I have a BLE Peripheral device implementation that supports bonding. Is there a way to erase bonding information of the bonded remote devices?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Linux, WL1831MODGBMOCR, using Bluetopia PM
I have a BLE Peripheral device implementation that supports bonding. Is there a way to erase bonding information of the bonded remote devices?
Hi Hieu,
The Bluetopia PM (platform manager) uses abstraction on top of the stack. The PM stores/restores the CCCD automatically in the BTPMLECFG.btc file.
For example, you will find the CCCD of a bonded device stored in the BTPMLECFG.bts in the following format.
[GATM]
…
CC-{BD_ADDR of the bonded device}={CCCD}
…
There is no need to manually store, change or delete the CCCD of a bonded device from the application. Thus, there is no application level API for this task. But if you need to for debug purposes, you can delete the CCCD manually from the BTPMLECFG.btc file.
Hope this helps!
Hello Vihang,
For our application we have a requirement to delete bond information of the remote device base on the device address.
What is the implication of manually editing the BTPMLECFG.btc to remove bonding information of specific remote devices while SS1BTPM is running?
Or should the SS1BTPM application be terminated before the .btc file is edited?
Can you provide a description of the format of the BTPMLEFCFG.btc file to help us remove specific remote device bonding information from the file?
Regards,
Hieu
Hieu,
Hieu Pham55 said:For our application we have a requirement to delete bond information of the remote device base on the device address.
I do not see any reason for this. Why not just unpair the device at this point? Why specifically just delete the bond information?
Hieu Pham55 said:What is the implication of manually editing the BTPMLECFG.btc to remove bonding information of specific remote devices while SS1BTPM is running?
Or should the SS1BTPM application be terminated before the .btc file is edited?
It would be best to have the SS1BTPM daemon terminated before editing the BTPMLECFG.btc. Since the daemon uses this file, manually editing the BTPMLECFG.btc while the the SS1BTPM is running may create a race condition that could result in errors from the platform manager.
Hieu Pham55 said:Can you provide a description of the format of the BTPMLEFCFG.btc file to help us remove specific remote device bonding information from the file?
The BTPMLECFG.btc is a text file that you can open with a text editor. As mentioned above, the lines starting with the "CC-" prefix contains the CCCD.
Best regards,
Vihang