在 TivaC 器件上使用 TI-RTOS 时、我正在寻找任何 USB 基准测试。 我明确对 CDC 感兴趣。
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.
在 TivaC 器件上使用 TI-RTOS 时、我正在寻找任何 USB 基准测试。 我明确对 CDC 感兴趣。
以下内容提供了一组比较 Tiva (TM4C123GH6PGM)上目标和主机的 USB CDC 读取速度的基准。 使用了三种不同的主机操作系统:Windows 7 64位、VM Ware Ubuntu 12.04、Ubuntu 10.04
在 Windows 主机上,使用了一个利用 Windows API 的 C 程序来接收和发送 USB 批量传输,而在 Linux 上则使用了 Python 脚本。 在主机和目标上发送和接收了各种大小为1000个缓冲区的数据包。 TX 测试用例:usbserialdevice.c 将不同大小的数据包从目标发送到主机、主机将在主机读取数据包并记录完成过程所需时间的时间戳。
RX 测试用例:C 程序或 Python 脚本将从主机向目标发送各种大小为1000个缓冲区的数据包。 程序 usbserialdevice.c 将读取传入的数据包并记录完成过程所需时间的时间戳。 使用 ROV 记录两个器件上的 CPU 负载、在所有传输中大约为2%+/- 7%。
下面的 zipfile 包含 python 脚本、Windows 主机端以及目标端示例。 若要重现以下结果、请运行目标示例(usbserialdevice.c)、然后运行主机端代码(python 脚本或具有 Windows API 的 C 程序)、结果将显示在控制台上、并保存到 log.txt 中、您可以指定位置。
/cfs-file/__key/communityserver-discussions-components-files/908/USB_5F00_Benchmarking.zip
TX Windows 7 | TX Ubuntu 12.04 | TX Ubuntu 10.04 | RX Windows 7 | Rx Ubuntu 12.04 | Rx Ubuntu 10.04 | |
数据包大小(字节) | ||||||
32 | 415.584 | 243.502. | 389.412 | 196.525 | 228.399 | 381.562 |
64 | 450.704. | 277.228 | 436.261 | 398.472 | 345.019 | 456.994 |
128 | 468.864 | 285.304. | 465.191. | 412.031 | 409.509 | 455.582 |
256 | 477.611. | 307.854 | 480.158 | 448.775 | 431.198 | 453.101. |
512 | 499.025 | 325.965 | 502.431 | 458.966 | 438.269. | 454.862 |
1024 | 500.000 | 291.601 | 492.011 | 462.923 | 446.423 | 447.446 |