Other Parts Discussed in Thread: CC2530
Hello,
I am working on cc2530zdk and using zstack 2.5.1
I made following changes to files extracted from swrc147c to get RSSI value.
- changes to the DemoSensor
void zb_ReceiveDataIndication( uint16 source, uint16 command, uint16 len, uint8 *pData )
{
afIncomingMSGPacket_t *MSGpkt = (afIncomingMSGPacket_t *)osal_msg_receive(RSSI_ID);
abc=MSGpkt->rssi;
}
- and following changes to DemoCollector file.
#define RSSI_ID 4
#define NUM_OUT_CMD_COLLECTOR 3
const cId_t zb_OutCmdList[NUM_OUT_CMD_COLLECTOR] =
{
SENSOR_REPORT_CMD_ID,
DUMMY_REPORT_CMD_ID,
RSSI_ID
};
But, when i burn the programs in cc2530 and see the result using zigbee sensor monitor, its showing only "00" value.
I also checked packets using packet sniffer and its also showing "00" only.
It means RSSI values are not sent over packets.
How do i achieve it then? What further changes should me made?
Thank You