如题,对协调器进行操作,不通过终端,便可获取协调器所管理的终端数量以及对应的短地址?急求!!!
Viki Shi:
请参考此帖VV的答案: https://www.deyisupport.com/question_answer/wireless_connectivity/zigbee/f/104/t/88181.aspx
Yue TANG:
是协调器自己管理的终端吗? 全网的,参考VV那个
static void CheckAddr(void) { for (uint8 x=0;x<NWK_MAX_DEVICES;x++) { byte nr = AssociatedDevList[x].nodeRelation; if (nr == CHILD_RFD) {
//终端节点地址,数量可在此统计
//AssociatedDevList[x].shortAddr }}}
typedef struct{ uint16 shortAddr; // Short address of associated device uint16 addrIdx; // Index from the address manager byte nodeRelation; byte devStatus; // bitmap of various status values byte assocCnt; byte age; linkInfo_t linkInfo; aging_end_device_t endDev; uint32 timeoutCounter; bool keepaliveRcv;} associated_devices_t;
TI中文支持网