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如何通过协调器,获取终端的短地址?亦及时调取协调器的路由表!

如题,对协调器进行操作,不通过终端,便可获取协调器所管理的终端数量以及对应的短地址?急求!!!

  • 请参考此帖VV的答案: https://www.deyisupport.com/question_answer/wireless_connectivity/zigbee/f/104/t/88181.aspx

  • 是协调器自己管理的终端吗? 全网的,参考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;