How to simulate a USB plug?

Posted by Nicolas Delvaux on Ask Ubuntu See other posts from Ask Ubuntu or by Nicolas Delvaux
Published on 2012-12-06T13:45:48Z Indexed on 2012/12/07 17:37 UTC
Read the original article Hit count: 211

I have an app that implements some automations when an USB key is plugged.

While developing, I have to test it in a specific environment (derivative from Debian Squeeze).
The app subscribe to HAL events via DBUS.
The problem is: my desk is on the third floor while my test machines are in the basement.

I would really like to have a way to simulate a USB plug.

  • usbip does not work on Ubuntu.
  • I can't manage to use the g_mass_storage module on Ubuntu (I lack the dummy_hcd module) and in Debian.

Maybe it is possible to simulate a dbus call?

My work station is on Ubuntu 12.04.

© Ask Ubuntu or respective owner

Related posts about usb

Related posts about application-development