I am building a system that needs to handle broken devices that may or may not have a working USB plug. Would like to know if can ask USB subsystem if a port is drawing power or not.
If you really want to do that you will have to dig deep:
http://www.usb.org/developers - all relevant USB standards documents
http://www.beyondlogic.org/usbnutshell/usb1.shtml - some usefull information
http://www.libusb.org/ - a library to handle USB at a very low level
http://www.acpi.info/DOWNLOADS/ACPIspec40a.pdf - ACPI could provide some help
http://msdn.microsoft.com/en-us/library/aa394504%28v=VS.85%29.aspx - WMI class to access USB related info
for a non-development solution and/or check when debugging:
http://www.devicedriverfinder.com/blog/device-drivers/how-to-check-usb-power-usage
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With