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.

NV_RESTORE - What does it store?

Other Parts Discussed in Thread: CC2431, CC2430, Z-STACK

Hi using ZStack 1.4.2-1.1.0 and CC2430/CC2431,

I was actually seeing the NV_RESTORE option here and there, but I would actually like to know, what DOES it actually STORE in nv memory? Binding table?! neighbors? ...

THX for the info or better would be a reference to a paper of course! =)

  • I have reviewed the Z-Stack v1.4.3-1.2.1 software documents, but I believe the NV_RESTORE feature was added in v1.4.2-1.1.0 as indicated by the Documents\CC2430\README CC2430 Full.txt file.

    The NV_RESTORE compile option provides the capability of enabling the device to save/restore network state information to/from Non-volatile memory.  This means that devices which have successfully joined a network can "restore the network" (instead of reforming by OTA messages) even after losing power or battery.  This automatic restoration can be enabled by defining NV_RESTORE and/or NV_INIT.  This is taken from the Z-Stack Sample Application For CC2480DB_F8W-2007-0017_.pdf.

  • The Binding table and short address will be stored on all devices. On routing devices, the routing table will also be stored. This way any device can restart into its spot in the network without going through all the network and binding issues.

  • Damn, that was fast, I only got a coffee and two replies... Wow!

    Thank you so guys for the info. That was very helpful for me. Appreciate to give beside the definition also the paper name. THX

  • I just did a little checking on the history of the NV_RESTORE compile option. I went back as far as the 1.3.0 release of Z-Stack (Nov. 2005) and found it being used in the ZDApp.c file. Of course, quite a few changes have been made to ZDApp.c in the last 3 years, but the purpose of NV_RESTORE has remained the same -- to enable the saving/restoration of network configuration parameters to non-volatile memory in the event of device reset.

    Please take a look at section 9.6 in the Z-Stack Developer's Guide for a basic discussion of Non-Volatile Memory. As indicated there, the NV items that are defined by Z-Stack are #defined in the ZComDef.h file. Pay particular attention to the "NWK Layer NV item IDs".

    Hope this helps!

  • Sure it does!

    Thanks for your points. Appreciate your effort. Will have a look at the according .h- and .c-files. THX