我在节点添加NV_RESTORE,在应用中,我想把这个节点从这个网络拿到另外的网络中去,那么我需要擦除掉NV_RESTORE保存的信息,再重新加入新的网络。请问我该如何处理,能不能在这个处理的过程不用复位芯片。
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,在应用中,我想把这个节点从这个网络拿到另外的网络中去,那么我需要擦除掉NV_RESTORE保存的信息,再重新加入新的网络。请问我该如何处理,能不能在这个处理的过程不用复位芯片。
对此 TI有一段说明
application wants to delete the stored NV information It just needs to set the ZCD_NV_STARTUP_OPTION as explained below and do a reset.
"If the application would like to force a "new" join, the application should set the ZCD_STARTOPT_DEFAULT_NETWORK_STATE bit in the ZCD_NV_STARTUP_OPTION NV item before calling this function. "New" join means to not restore the network state of the device. Use zgWriteStartupOptions() to set these options
zGlobals.c中有这个函数
uint8 zgWriteStartupOptions( uint8 action, uint8 bitOptions ) //修改ZCD_NV_STARTUP_OPTION的