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

Mesh node on off state save using FDS

Hi,

Currently we're developing RGB bulb which has mesh feature (nRF52832). So this done by using nRF5 SDK 15.2.0 and Mesh SDK 3.0.

We're able to control all three channels. Now we need to store each channel RGB value into Flash storage. To do that we're planing to use FDS module.

But we're having a problem with initiating FDS module with mesh. Is there a way to initiate both simultenously

Parents
  • Hi,

    We need to store color every time it changed from app. Otherwise in case of power failure we're not able to recover it. 

    And there are limited number of writing cycles in flash memory. So simply it can exceed.

    That is the reason we choose FDS, because it has wear leveling feature.

    So can we use Flash manager library to do the same thing ?

    And is there any example on how to use flash manager library ?

  • We do have wear leveling protection with the flash manager library. You can find this in the documentation of flash manager: 


    Defragmentation

    Due to limitations in the flash hardware, replacing handles in the flash manager means writing a completely new entry at the end of the existing entries and then invalidating the old entry. This will eventually cause the flash area to fill up with invalid entries, which prevents adding or replacing more entries. When this happens, the invalid entries must be removed and the page rebuilt with only the valid entries that are present. This process is called defragmentation. 

    How often do you have the light changing ? 

Reply
  • We do have wear leveling protection with the flash manager library. You can find this in the documentation of flash manager: 


    Defragmentation

    Due to limitations in the flash hardware, replacing handles in the flash manager means writing a completely new entry at the end of the existing entries and then invalidating the old entry. This will eventually cause the flash area to fill up with invalid entries, which prevents adding or replacing more entries. When this happens, the invalid entries must be removed and the page rebuilt with only the valid entries that are present. This process is called defragmentation. 

    How often do you have the light changing ? 

Children
Related