您好!
要使用 HCI_LE_ReceiverTestCmd (),需要在嵌入式应用程序中提供一些其他的 HCI API,以启用 DTM?
在以 HCI_LE_TestEndCmd ()结束测试时,如何获得接收到的数据包数量?
谢谢你
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.
您好!
要使用 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 );
希望这对您有所帮助、
此致、