Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you see programmatically how much amperage a USB device is requesting in windows?

Tags:

c#

.net

windows

usb

I don't necessarily need to see real time plots or anything but as I understand it if you attach a USB device it gets like 100 mA then after some negotiation it will bump the power up to 300 mA or 500 mA so on and so forth till the device stops requesting.

Does anyone know of anyway to see all the USB ports on a machine and what they are "allowed" to output?

edit update:

in windows preferably using a .net language

like image 858
Crash893 Avatar asked Feb 23 '10 18:02

Crash893


People also ask

How do I check the power output of a USB cable?

Plug the USB multimeter into your port. The multimeter requires no external power, so as you plug it into the port it automatically turns on. You can see the results on your screen, it is just that simple. Voltage is measured in Volts (V), so you the results ending with V i.e 5V or something like it.

How USB devices are detected?

Devices are identified by descriptors. Once the USB host has established a USB device is connected, and at what speed it should communicate, then the host will reset the USB device and attempt to read the descriptors to identify the USB device using a default address.

How do I check my USB voltage on Windows 10?

To do that launch Device Manager by Win + X > Device Manager. Expand Universal Serial Bus controller, right-click on “USB Root Hub” or “Generic USB Hub”, and click Properties. Go to the Details tab and from the Property section select Power data. Now, you can see the Power Output of your USB Port from there.


2 Answers

It must be available somewhere because if (in XP) you go to device manager and select one of the USB Root Hubs theer is a power tab in the properties dialog that details the power that has been requested by the devices plugged into each of the ports.

I am not a windows programmer so I do not know how to find this out programatically.

like image 54
uɐɪ Avatar answered Sep 28 '22 18:09

uɐɪ


Shot in the dark, but if this data is anywhere, it'll be in WMI, or you might be able to get the info from an ETW trace of usbhub/usbport.

like image 31
Ana Betts Avatar answered Sep 28 '22 19:09

Ana Betts