Re: simulate usb device
Alan Stern <[email protected]>
| Newsgroups | gmane.linux.usb.devel |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 17 Dec 2007, Ricardo Kirkner wrote: > Hello, > > I am trying to find out if it would be possible to simulate a usb device > in linux. I have a device that I want to simulate by software (I want to > make the device appear under /proc even though it is not actually > connected), in order to be able to develop software that uses that > device on hosts that don't have that hardware connected. > > This would also enable to debug the firmware and/or to develop the > firmware before actually having the physical device available. > > Is this possible to do? How should I approach this problem? It is possible, although probably not the way you have in mind. See http://www.linux-usb.org/gadget/ especially the part about dummy_hcd. If you have a Linux gadget driver for your peripheral, then you can test it under dummy_hcd without using any peripheral hardware. But if all you have is firmware for some peripheral controller chip, then you would have to write an interpreter or emulator for the firmware and stick it inside a gadget driver. Overall this probably would be harder and more error-prone than simply waiting for the physical device to become available. Alan Stern ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel