I would like to power cycle an USB device through software on Windows.
I am doing development on a small USB power microcontroller. This chip will revert to native b
There is a simple solution to this on Windows if you buy this external USB hub. It has an undocumented feature that cycles power to all connected USB devices whenever the hub is "enabled" in Windows Device Manager. You can do this manually:
You can also do this programmatically from any Windows application that is running with administrator priveledges. Here is an example in C#.
I have successfully used this technique to cycle power to USB devices that were "locked up". It sure beats physically unplugging devices, especially on remote or unmanned PCs.