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 Mesh 1.0.0 CC2538工程无法收到“Device_annce”消息

Other Parts Discussed in Thread: Z-STACK, CC2538

协议栈:Z-Stack Mesh 1.0.0

处理器:CC2538

问题:如题,Z-Stack Mesh 1.0.0 的CC2538工程无法收到“Device_annce”消息。我在任务初始化函数中已加入“ZDO_RegisterForZDOMsg( Gateway_TaskID, Device_annce );”。抓包看到了入网节点广播半径为30的“Device Anouncement”消息。

  • 首先不知道你做的什么更改,正确的方式为:
    先注册 ZDO_RegisterForZDOMsg(task_id, Device_annce);" 在初始化.

    在xxxx_ProcessZDOMsgs中处理
    ZDO_DeviceAnnce_t devAnnce;

    if ( pMsg->clusterID == Device_annce )
    ZDO_ParseDeviceAnnce( pMsg, &devAnnce );
    建议你直接用例程试一下。