虚拟USB设备的安装和仿真 [英] Installation and emulation of virtual USB Device

查看:657
本文介绍了虚拟USB设备的安装和仿真的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经阅读了创建虚拟USB设备

I already read Creating a Virtual USB Device and Virtual USB device about creating a virtual USB Device. I am familiar with the Plug and Play handling by Windows as well as the driver mechanism.

到目前为止,我了解到我首先必须创建另一个用于虚拟USB设备的设备驱动程序.但是我仍然对虚拟设备到底是什么一无所知.如何控制虚拟设备的行为?

So far I understood that first of all I would have to create another device driver which is used for the virtual USB device. But I am still lost on the point what actually is the virtual device. How would I control the behaviour of my virtual device?

背景:我开发了一个软件,该软件充当API和USB驱动程序之间的通信层. USB设备的行为对我来说是众所周知的.我什至可以提供整个固件.出于质量检查的原因,我想在没有整个系统错误的情况下测试我的软件,或者在另一方面轻松实施错误以查看软件的反应.但是什么样的软件可以将这种行为实现为虚拟设备?

Background: I develop a software which acts as a communication layer between an API and the USB driver. The behaviour of the USB device is well known to me. I even could provide the whole firmware. For reasons of QA, I would like to test my software without the bugs of the whole system or on the other hand easily implement errors to see how the software reacts. But what kind of software could implement this behaviour as virtual device?

欢迎任何文档/说明!

推荐答案

我使用USB/IP项目在Python中模拟USB设备.也许它可以帮助您创建虚拟USB设备: http://breaking -the-system.blogspot.com/2014/08/emulating-usb-devices-in-python-with-no.html

I used the USB/IP project to emulate USB devices in Python. Maybe it can help you to create your virtual USB devices: http://breaking-the-system.blogspot.com/2014/08/emulating-usb-devices-in-python-with-no.html

这篇关于虚拟USB设备的安装和仿真的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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