Re: Question on hardware event simulation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 12 May 2014, Anastasija FEDANE wrote:

> Hi,
> 
> I am working on a project to simulate a usb device on a software level
> in Linux environment.

Do you realize that such a simulation already exists in the Linux 
kernel?

>  Do you know if it is possible to simulate a
> hardware event (such as voltage change to emulate the attach/detach
> event for usb, for example)?

It definitely is possible, and the existing simulation does it.

> Maybe there is a better approach? I am a newbie in this kind of
> development, so any advises are highly appreciated.

Take a look at drivers/usb/gadget/dummy_hcd.c.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux