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.

[参考译文] CC2652R:在 DTM 接收器测试结束时接收到的数据包数量

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

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1226158/cc2652r-number-of-packet-received-at-the-end-of-the-dtm-receiver-test

器件型号:CC2652R

您好!

要使用 HCI_LE_ReceiverTestCmd (),需要在嵌入式应用程序中提供一些其他的 HCI API,以启用 DTM?  

在以 HCI_LE_TestEndCmd ()结束测试时,如何获得接收到的数据包数量?  

谢谢你

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

    尊敬的 Stefano:

    通常这个命令应该启动接收器直接测试模式测试、但是最好从一个 RESET 命令开始: HCIExt_ResetSystemCmd ()

    您可以使用 Bluetooth Tracer 进行分析以查看所有数据包。 但是 HCI_LE_TestEndCmd () 触发名为 HCI_LE_TEST_END 的事件。 在 simple_peripheral.c 中、您可实施一个代码来提供中数据包的数量 SimplePeripheral_processStackMsg () 执行该传递函数  HCI_COMMAND_COMPLETE_EVENT_CODE 消息状态。 您需要为 cmdOpcode =添加大小写 HCI_LE_TEST_END。

    返回参数由以下值组成。

     pMsg->pReturnParam[0]= HCI_Success;

     pMsg->pReturnParam[1]= LO_UINT16( numPackets );

     pMsg->pReturnParam[2]= HI_UINT16( numPackets );

    希望这对您有所帮助、

    此致、