我正在使用"simplelink_cc13xx_cc26xx_sdk_5_40_00_40"的示例源。
我想使用 BTool 测量中央设备和外设之间的延迟。
我认为可以使用 Ping 来测量它、但我应该如何使用 BTool 执行 Ping?
如果有其他方法可以使用 BTool 测量延迟、请告诉我。
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.
我正在使用"simplelink_cc13xx_cc26xx_sdk_5_40_00_40"的示例源。
我想使用 BTool 测量中央设备和外设之间的延迟。
我认为可以使用 Ping 来测量它、但我应该如何使用 BTool 执行 Ping?
如果有其他方法可以使用 BTool 测量延迟、请告诉我。
嗨、Shigehiro、
我不确定 HCI API 是否存在这样的函数。 延迟通常是所选连接间隔的函数、至少是一个函数。
我希望 BTool 中打印的时间戳足以满足您的测试要求。 另一种测试方法是在接收到命令时在应用程序中进行 GPIO 切换(例如、写入特征)、并在写入特征的应用程序中放置单独的 GPIO 进行切换。 只需对 simple_central 和 simple_peripheral 进行极少的修改即可完成此操作、并且您可以测量两个 GPIO 切换之间的时间。 这与使用时间戳类似、它更精确、但也更努力。