开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜