Hi all,
I have a SampleLight and SampleRemote from the Z-Stack lighting 1.0.1, and paired the remote to the light with touchlink. This works. On both modules the MT_ZDO_FUNC and ZDO_FUNC_CB is enabled.The remote is the device that is connected to Z-TOOL.
The thing that baffles me is that the DstAddr and the NWKAddrOfInterest MUST be the same, otherwise I get:
1. DstAddr = 2, NWKAddrOfInterest = 1:
ZDO_SIMPLE_DESC_REQ_SRSP Success and ZDO_STATE_CHANGE_IND Invalid parameter (0x02)
Another strange thing here: why is ZDO_STATE_CHANGE_IND value 0x02 suddenly not that which is defined in devstates_t (ZDApp.h, 176)? There, 0x02 is defined as DEV_NWK_DISC.
2. DstAddr = 1, NWKAddrOfInterest = 2:
ZDO_SIMPLE_DESC_REQ_SRSP Success and ZDO_STATE_CHANGE_IND FAIL (0x01), again this should be DEV_INIT according to devStates_t in ZDApp.h.
I'm probably missing some thing simple, at least I hope so. Maybe somebody can explain why DstAddr and NWKAddrOfInterest are required anyway, if they always have to be the same? And what about the ZDO_STATE_CHANGE_IND return type?
Thanks a lot,
Br,
Sjef.
The same goes for the other commands