02-21-2011 07:41 AM
Anyone know of a USB hub that has a reset that is controllable through my program?
02-21-2011 09:49 AM
What are you tying to reset? Generally the devices on the far end, or your computer's connection to them, are what seems to hang. Other than that I haven't seen a resetable hub, won't say that they don't exist, just in my searches I've not seen one.
02-21-2011 02:52 PM
Not sure exactly what you're looking for. There's some MS software that allow a software reset of a USB port: http://www.ehow.com/how_6857024_reset-port-power-limits-exceeded.html
If you're looking for a way to reset the power on a powered USB hub, you could drive a relay with digital output or even the serial port.
02-22-2011 07:48 AM
Basically I have a device that does not get closed properly. The only way I can reset it is to unplug it and plug it in. I was hoping for an off the shelf solution. I can design my own also. Shutting the power off to a hub did not work for the one I had. It is not a big problem for me now, just an inconvenience.
02-22-2011 12:27 PM
Depending on what is causing the hang, you may just need to reset the USB port. Windows provides a utility that lets you do this programmatically:
The DevCon command-line utility functions as an alternative to Device Manager
http://support.microsoft.com/kb/311272
One way you could control this with LabVIEW is through the 'System Exec.vi'. However, this would be controlling Windows to reset the port. If the device offers a VISA command to reset the device, that would reset the actual device instead of just the port. For instance, the DAQmx allows you to reset the actual device.
I haven't tried using the DevCon to do this, so if you do try this method let us know how it works.