views:

54

answers:

2

Hi all,

Is there any simulation environment that allows to run and test Linux based USB device application on host machine running Linux?

Also same thing for Linux based USB host side applications where one can run and test Linux based host applications with physical/virtual USB devices.

Regards, Mooni

A: 

Yes. See http://stackoverflow.com/questions/1913979/how-to-emulate-usb-devices

wallyk
Tim, If I copy USB device to a bootable image and run it in QEMU, Does QEMU allow me to virtually plug this device to host PC's USB controller port? I don't think so.How can I test this device with some host?
Mooni
A: 

Are you asking if it's possible to use a general purpose PC to simulate a USB device? If so, no, the hardware on, say, your motherboard is not physically capable (in almost all cases) of emulating a USB client device.

dannysauer
Firstly it is not possible to simulate my custom USB device in PC System emulation mode.Secondly QEMU does not provide emulation for any platform with USB function controller which means it is not possible even in non PC emulation of QEMU.
Mooni