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.

Obtaining Parent Information

Other Parts Discussed in Thread: Z-STACK

I am using Z-Stack 2.4.0 (PRO disabled).  How may I obtain the following information about an End Device's parent, after it has joined the network?

  • IEEE address
  • Network address
  • LQI

Thanks.

  • Hi Jim,

    From the Z-Stack API:

     

    3.4.2.1.3 NLME_GetCoordShortAddr()

    This function will return the device's parent’s network (short - 16 bit) address. This is NOT the Zigbee Coordinator’s short address (it’s always 0x0000). In MAC terms, the parent is called a coordinator.

     

    3.4.2.1.4 NLME_GetCoordExtAddr()

    This function will get the device's parent’s IEEE (64 bit) address. This is NOT the Zigbee Coordinator’s extended address. In MAC terms, the parent is called a coordinator.

     

     

     

     

     

     

  • Check out the Simple API document:

    C:\Texas Instruments\ZStack-CC2530-2.4.0-1.4.0\Documents\Z-Stack Simple API.pdf

    For LQI, you can't know until the device in question sends a message OA, check out the parameters of an incoming message at the Application layer - when the AF layter sends the AF_INCOMING_MSG_CMD message, you get a "afIncomingMSGPacket_t *pkt" which has RSSI:

    typedef struct
    {
      osal_event_hdr_t hdr;     /* OSAL Message header */
      uint16 groupId;           /* Message's group ID - 0 if not set */
      uint16 clusterId;         /* Message's cluster ID */
      afAddrType_t srcAddr;     /* Source Address, if endpoint is STUBAPS_INTER_PAN_EP,
                                   it's an InterPAN message */
      uint16 macDestAddr;       /* MAC header destination short address */
      uint8 endPoint;           /* destination endpoint */
      uint8 wasBroadcast;       /* TRUE if network destination was a broadcast address */
      uint8 LinkQuality;        /* The link quality of the received data frame */
      uint8 correlation;        /* The raw correlation value of the received data frame */
      int8  rssi;               /* The received RF power in units dBm */
      uint8 SecurityUse;        /* deprecated */
      uint32 timestamp;         /* receipt timestamp from MAC */
      afMSGCommandFormat_t cmd; /* Application Data */
    } afIncomingMSGPacket_t;