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.

neighbour table

Other Parts Discussed in Thread: CC2530

hello,

    I'm using th CC2530 and the Zstack 2.4.0.    

   My question is thata  I don't know how to get or access the neighbour table based on the Zstack code,for example ,the number of the devices and the addresses

    I'v looking for the NIB ,but none,

   Can you help me ?

  • Hi,

    in your ZStack version, the neighbor table is defined into "components/stack/nwk/nwk_util.h". You can look directly to lines ~430 to ~460. You should find :

    // Neighbor table entry
    typedef struct
    {
      uint16  neighborAddress;
      uint8   neighborExtAddr[Z_EXTADDR_LEN];
      uint16  panId;
      uint8   age;          // number of nwkLinkStatusPeriod since last link status
      linkInfo_t linkInfo;
    } neighborEntry_t;

    extern neighborEntry_t  neighborTable[];

    and other functions. You may find what you're looking for.

    Hope this helps,

    Yoann Hilairet