Programatically getting USB power draw of a device?
In Windows, it is possible to view a Power tab for a USB hub in Device Manager that lists information such as whether the hub is self-powered and the total power available.
Is this information available pro开发者_StackOverflowgramatically, either in Windows (perhaps WMI?) or Linux? I've looked in MSDN with little success so far.
Linux:
lsusb -v | grep MaxPower
I think WMI is going to be your best bet here. I'm not familar with exactly what you want, but I'd start with the Win32_VoltageProbe class.
精彩评论