CC2530作为设备节点,需要知道当前有没有加入协调器
1.他第入网的时候是不是会进这个函数?ZDO_JoinConfirmCB
2.正常工作的时候,把协调器断电,2530节点会进入哪个函数?我想掉线的时候弄个LED闪烁指示
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.
CC2530作为设备节点,需要知道当前有没有加入协调器
1.他第入网的时候是不是会进这个函数?ZDO_JoinConfirmCB
2.正常工作的时候,把协调器断电,2530节点会进入哪个函数?我想掉线的时候弄个LED闪烁指示
DEV_INIT, // Initialized - not connected to anything DEV_NWK_DISC, // Discovering PAN's to join DEV_NWK_JOINING, // Joining a PAN DEV_NWK_SEC_REJOIN_CURR_CHANNEL, // ReJoining a PAN in secure mode scanning in current channel, only for end devices DEV_END_DEVICE_UNAUTH, // Joined but not yet authenticated by trust center DEV_END_DEVICE, // Started as device after authentication DEV_NWK_ORPHAN, // Device has lost information about its parent.. DEV_NWK_BACKOFF, // Device is waiting before trying to rejoin DEV_NWK_SEC_REJOIN_ALL_CHANNEL, // ReJoining a PAN in secure mode scanning in all channels, only for end devices DEV_NWK_TC_REJOIN_CURR_CHANNEL, // ReJoining a PAN in Trust center mode scanning in current channel, only for end devices DEV_NWK_TC_REJOIN_ALL_CHANNEL 你掉线状态为 DEV_NWK_ORPHAN 后面会进入DEV_END_DEVICE或者DEV_INIT,你去读置顶贴,ZDO_STATE_CHANGE代表状态变化,有不同的状态。