This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Power down feature of the BLE Mesh

Hi, There. I am preparing to program a Mesh application based on nrf52840. The application supports the recovery from the points of power off. 

So, I have a question. It will storage all info on the power-off point? ANd it will resume from the point, like intermittent computing?

Parents
  • Hi, 

    All our examples can recover from a power reset. Except if you select PERSISTENT_STORAGE  = 0. 

    It stores everything, netkey, devkey, appkey, IV Index. The sequence number is stored in a block.  The reason is that if we store the sequence number every time it changes, it will wear out the flash, so we store the sequence number in the block, everytime you booting up, you use the next block.  
    It will storage all info on the power-off point?

     What do you mean by the "power-off point"? Is it as I mentioned above we can recover from a power reset, soft reset, etc?

    -Amanda H

  • Hi Amanda,

    1. Can it store the packets that send it again? 

    2. What's the difference between power off then on and reset?

    Kind regards,

    Gaosheng

  • Hi, 

    lgs said:
    1. Can it store the packets that send it again? 

    No, see the previous answer.  

     

    lgs said:
    2. What's the difference between power off then on and reset?

     For recovery of netkey, devkey, appkey, IV Index, it is the same. 

    -Amanda

  • Hi Amanda,

    There is a difference between power-off/on and reset. 

    In Mesh beaconing example, when the transmission count gets to 100, I use the advertiser_disable() function to stop it.  I reset the boards, it runs normally. But, when I try to turn-off/on, it will appear some memory problems.

    So, I am confused about it.

  • Hi, 

    Not 100 % clear what you means, but I guess you get one type of behavior when pressing the reset button on the board, and another type of behavior when they turn the on/off switch off and on again? Which does sound a bit strange, if you ask me, as that should not really give a difference. Do you mean a soft reset from code?

    What kind of memory problems are you having, and what board? Is it nRF52840DK or custom board? Is it possible reproduced on nRF52840DK?

    -Amanda
Reply
  • Hi, 

    Not 100 % clear what you means, but I guess you get one type of behavior when pressing the reset button on the board, and another type of behavior when they turn the on/off switch off and on again? Which does sound a bit strange, if you ask me, as that should not really give a difference. Do you mean a soft reset from code?

    What kind of memory problems are you having, and what board? Is it nRF52840DK or custom board? Is it possible reproduced on nRF52840DK?

    -Amanda
Children
Related