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.

[参考译文] CC2642R:在简单中央代码中进行 RSSI 值测量

Guru**** 649970 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1180254/cc2642r-rssi-value-measurement-in-simple-central-code

器件型号:CC2642R

尊敬的团队:

在这里、我可以检查简单中央代码中的 RSSI 值。

我的要求是读取 RSSI 值并存储到另一个变量中、然后传输到数据包中。  

此致、

Shrikant K

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    Shrikant、您好、

    开箱即用的 simple_central 示例包含定期读取连接 RSSI 的时钟事件。 这是通过调用 HCI_ReadRssiCmd 来完成的。 调用此 API 的要求是您已经处于连接中、因为 RSSI 取自连接事件回调。

    您还可以使用 GAP_RegisterConnEventCb() API 注册回调。 您将在 lastRssi 下找到传递到 GAP_ConnEventRpt_t 结构的 RSSI。 有关使用此 API 的示例、您可以检查 simple_peripheral。

    希望这对您有所帮助。