How to determine the USB port version in Windows?

I am running Windows 7 and Python 3.5. Once the USB drive is connected, my goal is to determine which version of the port (2.0, 3.0, 3.1) is connected and which version of USB is supported by the USB drive. Any thoughts are appreciated.

+4
source share
1 answer

You can watch Microsoft's USBView .

It uses the Windows API to retrieve information about each USB port and each device and displays it. This information includes the speed with which the USB port supports and the speed of the device.

, :

usbview /saveall:usb.txt

, , USB-:

Is Port User Connectable:         yes
Is Port Debug Capable:            no
Companion Port Number:            1
Companion Hub Symbolic Link Name: USB#VID_0451&PID_8046#5&16bdd27b&0&22#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
Protocols Supported:
 USB 1.1:                         yes
 USB 2.0:                         yes
 USB 3.0:                         no

Device Power State:               PowerDeviceD0

       ---===>Device Information<===---
English product name: "Logitech G930 Headset"

ConnectionStatus:
Current Config Value:              0x01  -> Device Bus Speed: Full (is not SuperSpeed or higher capable)
Device Address:                    0x09
Open Pipes:                           1

USBView , MSYS2 , , . Microsoft.

- USBView Python . - USBView - Python Python C.

+1

Source: https://habr.com/ru/post/1669380/


All Articles