Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Virtual USB device for Windows?

I'm investigating options available for creating a virtual USB device (say, a keyboard or a mass storage device), so to emulate its function as needed and to allow a userspace app to emulate its insertion/removal at will.

What I am not clear about is how to go about the emulation of insertion/removal. It seems that one option is to emulate a (virtual) USB hub and have it fake the device arrival/departure events (and I would also supply the device driver for my virtual USB device and that's where my device logic will reside).

I know my way around Windows kernel (having written NDIS miniport drivers), not afraid of SoftICE, but USB is not my domain, just starting out with it.

Am I on the right track with the virtual hub approach? If so, is developing virtual hub drivers supported by WDK (it doesn't seem to be)?

Any other options?

--

(Edit) Forgot to mention - I am aware of DSF, but it is not supported on W8.

like image 654
Angstrom Avatar asked Dec 15 '13 21:12

Angstrom


People also ask

Is there a virtual USB?

Virtual USB (vUSB) is a mobile (app) debugging tool that simulates connecting a Sauce Labs real device directly to your local machine with a USB cable.

What is a virtual USB device?

USB virtualization (AKA a virtual USB) is when a physical USB device can be accessed and managed by another remote computer. This remote computer, and the computer physically connected to the USB, share the same network.

How do I get my USB to show up on a virtual machine?

Within settings, browse to the USB tab and click the Add button on the very right of the window. Select the USB device that you wish to use from the list. Once done, click OK to save changes and exit. Now go back into your VM window, and from the Host options, select Device > Usb Devices > “your USB device.”


1 Answers

I don't know if you are aware, but Microsoft released to Win10 the UDE (USB device emulation).

In the section Write a UDE client driver they describe exactly what you want.

like image 163
Luiz Vaz Avatar answered Sep 30 '22 14:09

Luiz Vaz