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.

Neighbor Table (router)

Other Parts Discussed in Thread: Z-STACK, CC2531

First, I'm using  Z-Stack Energy 1.1.0 (CC2531).

I need to know if it would be possible to get the Neighbor Table of a specific Router.

Regards,

Manuel

  • As I know, there is no API allow you to do this.
  • Hi Manuel,

    Each node stores its network info in these tables:

    rtgTable[ ]
    AssociatedDevList[ ]
    neighborTable[ ]

    The third one is the one that you want. But, have a look in the others, they have useful network info as well.

    You will need to include the following files to make them all available:
    rtg.h
    nwk_util.h

    The entry type is in nwk_util.h:
    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;

    Do a search for the other's types if you need them. They might not be in this file though.

    Hope that this helps, regards DanO