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.

为什么 注册了端点 却收不到ZDO_STATE_CHANGE这个消息

Genius 3030 points

在void APP_Init( uint8 task_id )中的代码:
APP_epDesc.endPoint = APP_ENDPOINT;
APP_epDesc.task_id = &APP_TaskID;
APP_epDesc.simpleDesc
= (SimpleDescriptionFormat_t *)&APP_SimpleDesc;
APP_epDesc.latencyReq = noLatencyReqs;


afRegister( &APP_epDesc );

在uint16 APP_ProcessEvent( uint8 task_id, uint16 events )的代码:

case ZDO_STATE_CHANGE:

但是协调器收不到这个响应,终端可以收到,为什么呢?

  • 端口注册是不会引发ZDO_STATE_CHANGE事件。

    没太明白你的意思,你是说协调器和终端都有这个注册,但是debug的时候协调器从不进入这个ZDO_STATE_CHANGE事件?

    你随便跑个协议栈的例子都一定会看到的