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.

Query regarding beacon list

Hi,

I am using Anaren A2530E24C module with Anaren ZNP firmware preloaded in it.

I have 7 Coordinator and 5 routers in my network. When I call ZDO_NWK_DISCOVERY_REQ from one of my router, I get response with ZDO_BEACON_NOTIFY_IND. In response I found surround beacon (network) list and each beacon has 21 byte data. In my stack I have network list limit up to 10.

Suggest me Solution for below mentioned query:

(1) Sometimes I found more than one beacon with same PAN ID in beacon list. I think that beacon may be another router in network. If my thinking is right than I can’t get my entire Coordinator network list.

(2) Sometime I get only 2 beacons or sometime 5-6 beacons.Why It’s random?

Can you suggest me how can I get my all surrounding network list without duplication.

Regards,

Ronak Jain

  • ronak jain said:
    In my stack I have network list limit up to 10.

    Which define are you referring to here? NWK_MAX_DEVICE_LIST? This is not related to the amount beacon responses, only devices in that devices device list.

    ronak jain said:
    (1) Sometimes I found more than one beacon with same PAN ID in beacon list. I think that beacon may be another router in network.

    Yes correct, all routers and Coordinators within radio range will respond with a beacon, regardless if they are on the same PAN or not.

    ronak jain said:
    If my thinking is right than I can’t get my entire Coordinator network list.

    Why would this be? Each beacon received by ZNP will cause it to send a MT_ZDO_BEACON_NOTIFY_IND containing the following structure which describes the beacon:

    {
    uint16 sourceAddr;
    uint16 panID;
    uint8 logicalChannel;
    uint8 permitJoining;
    uint8 routerCapacity;
    uint8 deviceCapacity;
    uint8 protocolVersion;
    uint8 stackProfile ;
    uint8 LQI ;
    uint8 depth ;
    uint8 updateID;
    uint8 extendedPanID[Z_EXTADDR_LEN];
    } NLME_beaconInd_t;

    The MT_ZDO_NWK_DISCOVERY_CNF will then indicate the end of the discovery.

    ronak jain said:
    Sometime I get only 2 beacons or sometime 5-6 beacons.Why It’s random?

    It could be that the devices can not get access to the channel to respond within the scan duration, try increasing the scan duration (param in the ZDO_NWK_DISCOVERY_REQ) to give devices longer to respond. Alternatively it could be that the host is not reading the UART fast enough and the UART TX buffer is overflowing dropping MT_ZDO_BEACON_NOTIFY_IND messages. Do you see any FCS failures, indicating corrupted (truncated) messages?

    Regards,

    TC.

  • FYI, you may want to look at this:
    https://git.ti.com/znp-host-framework/znp-host-framework

    As well as helping with Host implementation, running the command line example in Linux/Cygwin may help to prototype and debug with ZNP.