如题:zigbee 协议恢复出厂设置使用什么指令?
在basic cluster中有一条指令0x00: Reset to Factory Defaults。但是ZCL规范中有提到:Note that ZigBee networking functionality,bindings, groups, or other persistent data are not affected by this command.
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.
如题:zigbee 协议恢复出厂设置使用什么指令?
在basic cluster中有一条指令0x00: Reset to Factory Defaults。但是ZCL规范中有提到:Note that ZigBee networking functionality,bindings, groups, or other persistent data are not affected by this command.
Z-Stack 3.0 是这样的,调用bdb_resetLocalAction函数,该函数会判断,如果当前设备是router或者end-device,且已经连接网络了,那么就Leave网络;如果是coordinator,那么就把恢复出厂的参数写入NV,然后执行重启,这样重启后会检测指定的NV值,执行初始化操作。
Z-Stack 2.6.x是这样的,调用ZDApp_LeaveReset,参数为TRUE,则恢复出厂之后等待LEAVE_RESET_DELAY时间,然后会重新加入网络,参数为FALSE则重启后为Hold状态,不加入网络