模拟USB输入 [英] Mocking USB input

查看:134
本文介绍了模拟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天全站免登陆