This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

What would happen if bonded peer data is corrupted?

Hi Nordic,

I am using SDK 12.3.0, S130 2.0.1 and PCA10028 nrf51 DK.

I would like to know what would happen in the following situation.

During central and peripheral pairing & bonding process by peer manager (especially during writing peer data into FDS), the power is cut.

I assume the bonded peer data would be corrupted. When the device is power up again, how do I know the data is corrupted and what should I do if the data is corrupted?

Thank you.

Parents Reply
  • I am using ble_app_hrs_c as example for peer manager. From what I see in the code, fds_gc() is only called once when PM_EVT_STORAGE_FULL event is triggered. And I know calling pm_peers_delete() does not free the space.

    Should I call fds_gc() every time I delete a bonding or following the example only called in PM_EVT_STORAGE_FULL event? Or put fds_gc() in main and perform garbage collection every start up?

Children
Related