我在节点添加NV_RESTORE,在应用中,我想把这个节点从这个网络拿到另外的网络中去,那么我需要擦除掉NV_RESTORE保存的信息,再重新加入新的网络。请问我该如何处理,能不能在这个处理的过程不用复位芯片。
Susan Yang:
对此 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的
VV:
回复 Susan Yang:
@Wu wu,
在提问之前可以先在Deyisupport,e2e, baidu, google上搜索下,可能你碰到的问题其他人也碰到过,已经有相关的解答过程了.
这样对于你来说也是事半功倍的效果。
谢谢!