Other Parts Discussed in Thread: CC2340R5
Tool/software:
how to retrieve the RSSI of the last reception in the example CCS
rfPacketRx_LP_EM_CC2340R5_nortos_ticlang
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.
Tool/software:
how to retrieve the RSSI of the last reception in the example CCS
rfPacketRx_LP_EM_CC2340R5_nortos_ticlang
hello
the value is always 127 = -0 dbm
should we allow RSSI in the init?
if yes how ?
example
/* Submit command */
RCL_Command_submit(rclHandle, &rclPacketRxCmdGenericRx);
rssi=RCL_readRssi();
/* Pend on command completion */
RCL_Command_pend(&rclPacketRxCmdGenericRx);
thank you
The RSSI may not be valid at that point due to receiver not fulling started or populating the RSSI value.
If you read it in a while loop, you should see valid (non-127) value after short time.
Can you try waiting some delay?
Something like:
/* Submit command */ RCL_Command_submit(rclHandle, &rclPacketRxCmdGenericRx); usleep(1000); // wait 1msec rssi=RCL_readRssi(); /* Pend on command completion */ RCL_Command_pend(&rclPacketRxCmdGenericRx);