Re: Simulating USB Unplug

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

 



On Mon, 10 Jul 2006, Brian Cavagnolo wrote:

> I'm working on a wireless USB network adapter.  It loads its firmware
> from /lib when plugged in.  I'm hoping that this unplug/plug event can
> be simulated from software somehow to remote-ify my testing.  Google
> doesn't turn up much on this.  Can somebody point me to a doc?

You could get yourself a USB hub with port power switching, and use a 
user-space programme to switch port power off and on. Google for "USB hub 
port power" will get you a sample programme to do exactly this. Keep in 
mind, the software will not notice "hub port power off", it will only 
notice "power on" and then re-enumerate the device.

Thanks
Guennadi
---------------------------------
Guennadi Liakhovetski, Ph.D.
DSA Daten- und Systemtechnik GmbH
Pascalstr. 28
D-52076 Aachen
Germany

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux