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.

我想做一个子节点入网时,短地址、MAC地址和简单描述符发送到协调器,如何做?直接用AF_DataRequest()好吗?

我还是更倾向于使用ZDO的命令的。目前知道ZDP_DeviceAnnce()可以把自身的短地址和MAC地址广播,但是如果我要发送简单描述符,怎么做呢?

1、是直接用AF_DataRequest()发送简单描述符好,还是说可以直接发ZDP_SimpleDescRsp()给协调器,不用管协调器有没有发ZDP_SimpleDescReq()?

2、能否不用ZDP_DeviceAnnce(),直接用ZDP_NWKAddrRsp(),而不管协调器有没有发ZDP_NwkAddrReq()呢?不想使用ZDP_DeviceAnnce()的原因是,它是一个广播,会增加网络拥堵。

3、在API手册里,对ZDP_DeviceAnnce()的描述是:“

This function builds and sends a Device_annce command for ZigBee end device to notify other ZigBee devices on
the network that the end device has joined or rejoined the network.

这是否说明ZDP_DeviceAnnce()只能End Device用,而不能在Router上使用呢?