Installation and emulation of virtual USB Device

人走茶凉 提交于 2020-02-01 06:33:45

问题


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.

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?

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?

Any documentations / instructions are welcome!


回答1:


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



来源:https://stackoverflow.com/questions/17062939/installation-and-emulation-of-virtual-usb-device

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!