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.

Problem extracting RSSI from Z-Stack

Hi all,

I'm making some mods to the Z-Stack example GenericApp, and there are a couple of things that don't make sense to me.

1. In the system event processing code, there is a MSGpkt variable of type afIncomingMSGPacket_t that passes in system events.  I would like to know the RSSI value associated with messages moving between an end device and the coordinator.  I thought that this could best be achieved by sending some kind of Zigbee level request to the coordinator, and then acting on the response callback and analysing the afIncomingMSGPacket_t packet structure, i.e.

 

case ZDO_CB_MSG

nwkRSSI = MSGpkt->rssi

This always gives nwkRSSI = 0x00

Whereas if I send an application level message to the end device, this does seem to work, i.e.

 

 

case AF_INCOMING_MSG_CMD

nwkRSSI = MSGpkt->rssi

This always gives what looks to be a plausible value for the RSSI.

I'm curious to know why there is a difference, and also whether there is a better way to get the RSSI.