Windows PC as a USB thumb emulation device

I need to create an application that allows a Windows PC (XP / Vista) to emulate thumbdrive. That is, when the PC connects to another Windows system, or in this case, hardware is used that allows you to connect USB drives, the folder on the computer looks like a giant finger pointer. Any thoughts on where the guy will start investigating this?

Update (more detailed description): I need to connect my computer to one of the new multifunction devices that support scanning to a USB USB drive that is inserted in the front of the device. These devices do not support WIA or TWAIN through the rear USB connector, which you usually use to connect to a PC.

+6
windows emulation usb
source share
3 answers

You cannot do this in the application. At the lowest level, the USB ports on your computer are controlled by the host controller interface. This chip will drive up to 127 slave USB devices. You will have to seriously reprogram this chip before it implements the slave side of the USB protocol. Of course, at this moment, any USB hub on your PC will break down - these are 8 USB ports, which, probably, you are usually implemented by two intelligent USB hubs that connect to the host controllers USB1 and USB2. Then your USB keyboard and mouse will stop working.

+2
source share

Most USB controllers in a regular PC are not able to function as a USB device. Therefore, I would begin to study what equipment you are going to use.

Another way: are there USB Link cables for connecting 2 pcs via USB, is it possible that they will be useful to you?

+4
source share

Take the MCU with two slave USB devices. Write a simple friction that makes one USB act as a special class of devices and wait until the PC on this USB provides the required data (including the class of devices, of course) for another USB. Write a PC program that connects to a special device (your MCU), loads the storage class and redirects I / O to the highlighted section. Another USB on the MCU will become an emulated storage device.

Some of these codes can be taken from Linux.

+2
source share

All Articles