模拟 USB 输入 [英] Mocking USB input

查看:27
本文介绍了模拟 USB 输入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的产品包含一些定制硬件,可通过 USB 连接到 PC.我们已经开始研究自动测试,但到目前为止我找不到可以记录/重放通用 USB 输入的工具.

Our product includes some custom hardware, that connects to a PC via USB. We've started looking into automatic testing, but so far I'm unable to find a tool that can record/replay generic USB input.

有人知道这样的工具吗?
(而且 - 最好是可以编写脚本 - 测试必须在 GUI 交互自定义硬件操作之间交替)

Does anyone know of such a tool?
(And - it would be best if it's somehow scriptable - testing would have to alternate between GUI interaction and custom hardware manipulation)

推荐答案

硬件解决方案,

是否要生成 USB 流量.好久没用了,不过CATC协议分析器也能产生流量.http://www.lecroy.com/tm/products/ProtocolAnalyzers/usbtt.asp?menuid=67当然,您可以编写脚本来生成这些流量......

Do you want to generate USB traffic. It's long since I used it, but the CATC protocol analyzer can also generate traffic. http://www.lecroy.com/tm/products/ProtocolAnalyzers/usbtt.asp?menuid=67 And off course, you can write scripts to generate these traffic ...

软件解决方案,

编写自己的应用程序将数据包发送到USB总线驱动程序,并检查usbview(Windows DDK附带)源代码.您可以将数据直接发送到任何 USB 管道.这比较便宜,但比硬件解决方案有点困难......

Write your own application to send packets to the USB bus driver, and also check the usbview (shipped with Windows DDK) source code. You can send data directly to any USB pipe. This is less expensive, but a bit difficult than the hardware solution ...

HTH

这篇关于模拟 USB 输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆