EndDevice的设备状态变化,除了孤立节点和搜网状态及DEV_END_DEVICE状态,在信号不好的情况下,还会成为什么状态呢?
目前碰到了这样的问题,enddevice设备多次加网后就不能再加入网络了。
case ZDO_STATE_CHANGE:
zclDoorLockControl_NwkState = (devStates_t)(MSGpkt->hdr.status);
// now on the network
if ( (zclDoorLockControl_NwkState == DEV_ZB_COORD) ||
(zclDoorLockControl_NwkState == DEV_ROUTER) ||
(zclDoorLockControl_NwkState == DEV_END_DEVICE) )
{
#ifdef ZCL_EZMODE
zcl_EZModeAction( EZMODE_ACTION_NETWORK_STARTED, NULL );
#endif
zclDoorLockControl_JoinedNetworkMng();
}
else if(zclDoorLockControl_NwkState == DEV_NWK_ORPHAN)
{
HalLedBlink ( HAL_LED_1, 0, 10, 1000 );
}
else if(zclDoorLockControl_NwkState == DEV_NWK_DISC)
{
zclDoorLockControl_DiscoverNetworkMng();
}
break;
以上
VV:
http://www.deyisupport.com/question_answer/wireless_connectivity/zigbee/f/104/t/104629.aspx
希望对你有帮助