开发者

Programatically getting USB power draw of a device?

开发者 https://www.devze.com 2022-12-14 03:22 出处:网络
In Windows, it is possible to view a Power tab for a USB hub in Device Manager that listsinformation such as whether the hub is self-powered and the total power available.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消