请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:LP-EM-CC2340R5 主题中讨论的其他器件:CC2340R5
工具与软件:
如何在示例 CCS 中检索最后一次接收的 RSSI
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.
工具与软件:
如何在示例 CCS 中检索最后一次接收的 RSSI
rfPacketRx_LP_EM_CC2340R5_nortos_ticlang
你好
该值始终为127 =-0dBm
我们是否应在初始化中允许 RSSI?
如果是、如何?
添加了示例
/*提交命令*/
RCL_Command_Submit (rclHandle、&R rclPacketRxCmdGenericRx);
RSSI=RCL_readRssi ();
/*在命令完成时挂起*/
RCL_Command_pend (&R rclPacketRxCmdGenericRx);
谢谢你
由于接收器未启用或填充 RSSI 值、RSSI 在此时可能无效。
如果您在 while 循环中读取该值、则在短时间后应该会看到有效(非127)值。
您是否可以尝试等待一些延迟?
可表示为:
/* Submit command */
RCL_Command_submit(rclHandle, &rclPacketRxCmdGenericRx);
usleep(1000); // wait 1msec
rssi=RCL_readRssi();
/* Pend on command completion */
RCL_Command_pend(&rclPacketRxCmdGenericRx);