Hi
I am going through the sensor demo app. I have few confusion as listed below .
1. Which task (or function) writes the NV system 1st time with the defaults values specified at zglobals.h & f8wConfig.cfg file. Will it necessarily write the default parameter values or is it depends on NV_RESTORE flag
2. During start up one should press joystick center to start with a fresh known network state. If this key is pressed It writes the NV system with start up parameters with ZCD_STARTOPT_CLEAR_CONFIG & ZCD_STARTOPT_CLEAR_STATE set. Then zb_SystemReset(); is called.
Does this reset start the execution from very beginning i.e. from the main() . How it is useful for cc2531EMK as specified in the comment.
Secondly when a device powered on doesn't it writes the nvsystem with default configuration parameters every time, if it does whats the necessity of the job.
finally which function reads the startup options & writes the default parameters in the nv system.
3. During start up what are the configuration parameters are required & what are the functions uses it
4. I found in the in the zglobals.h the default value specified for the logical type depends on the ZSTACT_DEVICE _BUILD, does it refer to
what will be the default value for logical type. To set one as a coordinator we need to
press the joystick up, otherwise it will act as a router. That means in this case by default it is started up as a router.How is this performed.
Please provide me the above requested information for a better understanding
thanks & regards
Biprangshu