Other Parts Discussed in Thread: Z-STACK
Hi everyone
as Zigbee HA profile noting the return to factory defaults ,but it is so vague
Return to Factory Defaults
In support of a return to factory default capability,
HA devices shall implement the ZDO Management Leave server service.
When invoked with a unicast address and the DeviceAddress set to NULL=0x00000000, the device shall implement a NWK Leave.
When invoked with a broadcast address and the DeviceAddress set to NULL=0x00000000, the device shall wait the broadcast timeout period to
allow the message to propagate through network, then the device shall implement a NWK Leave.
Prior to execution of the NWK Leave in either case, processing in the device shall ensure all operating parameters are reset to allow a reset to factory
defaults.
1. what is the mean of DeviceAddress set to NULL=0x00000000 ?? which DeviceAddress?
2. does it mean a factory reset motion should include ZDO Management Leave (ZDP_MgmtLeaveReq() ) and NWK Leave( NLME_LeaveReq( )) ?
what is the different of them?
3. where define the broadcast timeout ? how long is it ?
4. unicast to who? if the ZED want to leave the network ,who should be tell? if the device isn't working, how could ZED make sure its leave request will send to the one it wanted?
5. as excute ZDP_MgmtLeaveReq(), it seems that the device should wait a moment before do MT_SysReset(); or it will be failed to sendout the leaving request .