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.

CC1352P: How to get RSSI of the environment(jamming detection)

Part Number: CC1352P
Other Parts Discussed in Thread: CC1120

Tool/software:

Hi,

Our gateway will check RSSI of the environment every two seconds. We use cc1120 before and now we try to replace it by cc1352P. When we use CC1120, we can get RSSI by reading register directly(no matter the signal is packet mode or continuous mode) but we do no know how to do it with CC1352P. I try to use RF_getRssi(my program is showing below) but it does not work with packet mode and I get the same rssi when I change the TX Power(studio 7). Please tell us how to do it with CC1352P

SDK version : simplelink_cc13xx_cc26xx_sdk_6_40_00_13

cmdHandle = RF_postCmd(rfHandle, (RF_Op*)&RF_cmdRxTest, RF_PriorityNormal, NULL, 0);

rssi_value = RF_GET_RSSI_ERROR_VAL;

do
{
CPUdelay(12000); //delay 1msec
rssi_value = RF_getRssi(rfHandle);
} while (rssi_value == RF_GET_RSSI_ERROR_VAL);

RF_cancelCmd(rfHandle, cmdHandle, 0);

  • To get an RSSI value, the radio must first be put in RX mode.

    You can do this by for example posting the CMD_RX_TEST first, and then wait for the RX command to be active (status = 2) before trying to read the RSSI

    SIri