协调器设置周期性发送事件后不能收信息,为什么呢?求指导
case ZDO_STATE_CHANGE:
HalLedSet(HAL_LED_ALL , HAL_LED_MODE_ON);//关掉LED,板子是ACTIVE_LOW
SampleApp_NwkState = (devStates_t)(MSGpkt->hdr.status);
if ( (SampleApp_NwkState == DEV_ZB_COORD) )
{
osal_start_timerEx( SampleApp_TaskID,
SAMPLEAPP_SEND_TOPOLOGY_MSG_EVT,
SAMPLEAPP_SEND_TOPOLOGY_MSG_TIMEOUT );
}
else
{
}
if ( //(SampleApp_NwkState == DEV_ZB_COORD) ||
//(SampleApp_NwkState == DEV_ROUTER) ||
(SampleApp_NwkState == DEV_END_DEVICE) )
{
// Start sending the periodic message in a regular interval.
osal_start_timerEx( SampleApp_TaskID,
SAMPLEAPP_SEND_PERIODIC_MSG_EVT,
SAMPLEAPP_SEND_PERIODIC_MSG_TIMEOUT );
}
else
在状态改变后面设置 协调器 触发周期性发送事件: if ( (SampleApp_NwkState == DEV_ZB_COORD) )
{
osal_start_timerEx( SampleApp_TaskID,
SAMPLEAPP_SEND_TOPOLOGY_MSG_EVT,
SAMPLEAPP_SEND_TOPOLOGY_MSG_TIMEOUT );
}
else
{
},这样后,协调器能收发信息,但是不能收信息,请问为什么?
问题补充:是可以发信息,但不能收信息
收信息是在event loop收信息的地方处理的,对方有发出数据来吗?