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

NRF51822: Bonds not saving with SDK5.1.0

I am finding that bonds are not saved to flash when using the latest SDK and S110 SoftDevice.

To test this, I am using the HTS example code, and the Master Dongle. I open Master Control Panel, and [Start Discovery] to list the advertising device.

First, I [select device], then do [Service discovery], [Bond], and [Enable services]. The temperature service starts notifying.

I then click [Disconnect] and [Back] and repeat the process. The bond is still in nRF51822 RAM, so temperature notifies fine.

I then click [Disconnect] and [Back], CYCLE POWER, and repeat the process. Temperature does not notify, the bond is not made since the nRF51822 looses it on power cycle.

I then click [Disconnect] and [Back] and then click [Delete bond info] and repeat. A new bond is created, and temperature is notifying again.

I am using: SDK 5.1.0 S110 6.0.0 production

When using old SDK and S110 (prior to pstorage) the Bond persists over power cycle.

Parents
  • Okay, my investigation shows that bonds are written to the flash, but they don't seem to be loaded after the bond manager is initalised after a power cycle.

    m_centrals_in_db_count is zero

    however, the flash (page 254) contains:

    
    ffffffff 00000000 00030000 f0960c09 7f85a695 af05078c 461907a2 a2a3af6c |
    2ec80020 ead43ed4 624a8a25 ee066541 3a009d83 23db544d 000000d0 00000000 |
    f0960000 f9020000 ec738ddf 00000069 ffffffff ffffffff ffffffff ffffffff |
    ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff |
    ...
    ...
    ...
    
    
Reply
  • Okay, my investigation shows that bonds are written to the flash, but they don't seem to be loaded after the bond manager is initalised after a power cycle.

    m_centrals_in_db_count is zero

    however, the flash (page 254) contains:

    
    ffffffff 00000000 00030000 f0960c09 7f85a695 af05078c 461907a2 a2a3af6c |
    2ec80020 ead43ed4 624a8a25 ee066541 3a009d83 23db544d 000000d0 00000000 |
    f0960000 f9020000 ec738ddf 00000069 ffffffff ffffffff ffffffff ffffffff |
    ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff |
    ...
    ...
    ...
    
    
Children
No Data
Related