views:

1811

answers:

3

I need to create a application that will allow a Windows PC (XP/Vista) to emulate a thumbdrive. That is, when the PC is plugged into either another Windows system, or in this case, a piece of hardware that allows for USB thumbdrives to be plugged in, a folder on the computer looks like a giant thumbdrive. Any thoughts on where a guy would start to investigate this?

Update (more specific description): I need to connect my PC to one of the newer multifuction devices that support scanning to a USB thumbdrive that is inserted into the front of the device. These units do not support WIA or TWAIN via the rear USB connector that you'd typically use for connectivity to a PC.

+1  A: 

Most USB controllers in regular pc's dont have the possibility to function as an USB slave. So I'd start with investigating what kind of hardware you're going to use.

Another way to go: there are USB Link cables to link up 2 pc's over USB, maybe that's usable for you?

thijs
"USB Link cables" basically are 2 USB-to-Ethernet adapters with Cat5 between them. Therefore, you need two USB masters on each side.
MSalters
that could be good because his "Client device" is a PC (which normally plays the role of master) and his host device is the scanner (which has a master chipset to be able to read from USB) But the scanner probably doesn't like that kind of cable anyway....
thijs
A: 

You cannot do this in an application. At the lowest level, the USB ports on your computer are controlled by an Host Controller Interface. This chip will manage up to 127 slave USB devices. You would need to seriously reprogram this chip before it implements the slave side of the USB protocol. Of course, at that point any USB hub in your PC will break down - those 8 USB ports you probably have are usually implemented by 2 smart USB hubs connecting to both USB1 and USB2 host controllers. Next, your USB keyboard and mouse will stop working.

MSalters
A: 

This is an exact idea I've also been researching. Such app can spring new life into legacy PCs and greater effectiveness to the massive HDs of today. Even if the hardware circuitry in legacy equipment has limitations this still is a great spec for future PC designs.

Keith Davis San Antonio, TX.