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