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.

z-stack 3.0.x,End Device在关联失败时存在风险,是否需要更正?



End Device在关联时,发起Associate Request后的490毫秒(macPib.ResponseWaitTime=32)会向父节点自动发送以ext-Address为源地址的MAC Data Request命令,而此时因为使用过NLME_SetPollRate( zgRejoinPollRate ),会触发两次MAC Data Request。

更正方式:在函数bdb_joinProcess中,调用NLME_JoinRequest后就立即设置NLME_SetPollRate( zgRejoinPollRate ),会造成以上现象。建议把设置NLME_SetPollRate( zgRejoinPollRate )移动至ZDO_JoinConfirmCB,在关联成功之后再设置Data Poll去获取Network Key。