Skip to content

Instantly share code, notes, and snippets.

@franz-ms-muc
Created February 7, 2023 23:46
Show Gist options
  • Save franz-ms-muc/5839752fcf1f79250394b13c7016491c to your computer and use it in GitHub Desktop.
Save franz-ms-muc/5839752fcf1f79250394b13c7016491c to your computer and use it in GitHub Desktop.
=========================== USB Port3 ===========================
Connection Status : 0x01 (Device is connected)
Port Chain : 1-3
Properties : 0x01
IsUserConnectable : yes
PortIsDebugCapable : no
PortHasMultiCompanions : no
PortConnectorIsTypeC : no
ConnectionIndex : 0x03 (Port 3)
CompanionIndex : 0
CompanionHubSymLnk : USB#ROOT_HUB30#4&2add795c&0&0#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
CompanionPortNumber : 0x0E (Port 14)
-> CompanionPortChain : 1-14
========================== Summary =========================
Vendor ID : 0x303A (Espressif Incorporated)
Product ID : 0x4002
USB Version : 2.0 -> but Device is Full-Speed only
Port maximum Speed : High-Speed (Companion Port 1-14 supports SuperSpeed)
Device maximum Speed : Full-Speed
Device Connection Speed : Full-Speed
Self powered : no
Demanded Current : 100 mA
Used Endpoints : 3
======================== USB Device ========================
+++++++++++++++++ Device Information ++++++++++++++++++
Device Description : USB-Massenspeichergerät
Device Path : \\?\USB#VID_303A&PID_4002#123456#{a5dcbf10-6530-11d2-901f-00c04fb951ed} (GUID_DEVINTERFACE_USB_DEVICE)
Kernel Name : \Device\USBPDO-14
Device ID : USB\VID_303A&PID_4002\123456
Hardware IDs : USB\VID_303A&PID_4002&REV_0100 USB\VID_303A&PID_4002
Driver KeyName : {36fc9e60-c465-11cf-8056-444553540000}\0059 (GUID_DEVCLASS_USB)
Driver : \SystemRoot\System32\drivers\USBSTOR.SYS (Version: 10.0.19041.1949 Date: 2022-09-14)
Driver Inf : C:\Windows\inf\usbstor.inf
Legacy BusType : PNPBus
Class : USB
Class GUID : {36fc9e60-c465-11cf-8056-444553540000} (GUID_DEVCLASS_USB)
Service : USBSTOR
Enumerator : USB
Location Info : Port_#0003.Hub_#0001
Location IDs : PCIROOT(0)#PCI(1400)#USBROOT(0)#USB(3), ACPI(_SB_)#ACPI(PC00)#ACPI(XHCI)#ACPI(RHUB)#ACPI(HS03)
Container ID : {84c7793b-ae4b-5027-ab7e-999a4287ae8b}
Manufacturer Info : Kompatibles USB-Speichergerät
Capabilities : 0x94 (Removable, UniqueID, SurpriseRemovalOK)
Status : 0x0180600A (DN_DRIVER_LOADED, DN_STARTED, DN_DISABLEABLE, DN_REMOVABLE, DN_NT_ENUMERATOR, DN_NT_DRIVER)
Problem Code : 0
Address : 3
HcDisableSelectiveSuspend: 0
EnableSelectiveSuspend : 0
SelectiveSuspendEnabled : 0
EnhancedPowerMgmtEnabled : 0
IdleInWorkingState : 0
WakeFromSleepState : 0
Power State : D0 (supported: D0, D1, D2, D3, wake from D0, wake from D1, wake from D2)
Child Device 1 : TinyUSB Flash Storage USB Device (Laufwerk) (Disk2)
Device Path : \\?\USBSTOR#Disk&Ven_TinyUSB&Prod_Flash_Storage&Rev_0.1#123456&0#{53f56307-b6bf-11d0-94f2-00a0c91efb8b} (GUID_DEVINTERFACE_DISK)
Kernel Name : \Device\000001a1
Device ID : USBSTOR\DISK&VEN_TINYUSB&PROD_FLASH_STORAGE&REV_0.1\123456&0
Class : DiskDrive
Driver KeyName : {4d36e967-e325-11ce-bfc1-08002be10318}\0025 (GUID_DEVCLASS_DISKDRIVE)
Service : disk
+++++++++++++++++ Registry USB Flags +++++++++++++++++
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\303A40020100
osvc : REG_BINARY 00 00
---------------- Connection Information ---------------
Connection Index : 0x03 (Port 3)
Connection Status : 0x01 (DeviceConnected)
Current Config Value : 0x01 (Configuration 1)
Device Address : 0x11 (17)
Is Hub : 0x00 (no)
Device Bus Speed : 0x01 (Full-Speed)
Number Of Open Pipes : 0x02 (2 pipes to data endpoints)
Pipe[0] : EndpointID=1 Direction=OUT ScheduleOffset=0 Type=Bulk wMaxPacketSize=0x40 bInterval=0
Pipe[1] : EndpointID=1 Direction=IN ScheduleOffset=0 Type=Bulk wMaxPacketSize=0x40 bInterval=0
Data (HexDump) : 03 00 00 00 12 01 00 02 EF 02 01 40 3A 30 02 40 ...........@:0.@
00 01 01 02 03 01 01 01 00 11 00 02 00 00 00 01 ................
00 00 00 07 05 01 02 40 00 00 00 00 00 00 07 05 .......@........
81 02 40 00 00 00 00 00 00 ..@......
--------------- Connection Information V2 -------------
Connection Index : 0x03 (3)
Length : 0x10 (16 bytes)
SupportedUsbProtocols : 0x03
Usb110 : 1 (yes, port supports USB 1.1)
Usb200 : 1 (yes, port supports USB 2.0)
Usb300 : 0 (no, port not supports USB 3.0) -> but Companion Port 1-14 does
ReservedMBZ : 0x00
Flags : 0x00
DevIsOpAtSsOrHigher : 0 (Device is not operating at SuperSpeed or higher)
DevIsSsCapOrHigher : 0 (Device is not SuperSpeed capable or higher)
DevIsOpAtSsPlusOrHigher : 0 (Device is not operating at SuperSpeedPlus or higher)
DevIsSsPlusCapOrHigher : 0 (Device is not SuperSpeedPlus capable or higher)
ReservedMBZ : 0x00
Data (HexDump) : 03 00 00 00 10 00 00 00 03 00 00 00 00 00 00 00 ................
---------------------- Device Descriptor ----------------------
bLength : 0x12 (18 bytes)
bDescriptorType : 0x01 (Device Descriptor)
bcdUSB : 0x200 (USB Version 2.0) -> but device is Full-Speed only
bDeviceClass : 0xEF (Miscellaneous)
bDeviceSubClass : 0x02
bDeviceProtocol : 0x01 (IAD - Interface Association Descriptor)
bMaxPacketSize0 : 0x40 (64 bytes)
idVendor : 0x303A (Espressif Incorporated)
idProduct : 0x4002
bcdDevice : 0x0100
iManufacturer : 0x01 (String Descriptor 1)
Language 0x0409 : "TinyUSB"
iProduct : 0x02 (String Descriptor 2)
Language 0x0409 : "TinyUSB Device"
iSerialNumber : 0x03 (String Descriptor 3)
Language 0x0409 : "123456"
bNumConfigurations : 0x01 (1 Configuration)
Data (HexDump) : 12 01 00 02 EF 02 01 40 3A 30 02 40 00 01 01 02 .......@:0.@....
03 01 ..
------------------ Configuration Descriptor -------------------
bLength : 0x09 (9 bytes)
bDescriptorType : 0x02 (Configuration Descriptor)
wTotalLength : 0x0020 (32 bytes)
bNumInterfaces : 0x01 (1 Interface)
bConfigurationValue : 0x01 (Configuration 1)
iConfiguration : 0x00 (No String Descriptor)
bmAttributes : 0xA0
D7: Reserved, set 1 : 0x01
D6: Self Powered : 0x00 (no)
D5: Remote Wakeup : 0x01 (yes)
D4..0: Reserved, set 0 : 0x00
MaxPower : 0x32 (100 mA)
Data (HexDump) : 09 02 20 00 01 01 00 A0 32 09 04 00 00 02 08 06 .. .....2.......
50 00 07 05 01 02 40 00 00 07 05 81 02 40 00 00 P.....@......@..
---------------- Interface Descriptor -----------------
bLength : 0x09 (9 bytes)
bDescriptorType : 0x04 (Interface Descriptor)
bInterfaceNumber : 0x00 (Interface 0)
bAlternateSetting : 0x00
bNumEndpoints : 0x02 (2 Endpoints)
bInterfaceClass : 0x08 (Mass Storage)
bInterfaceSubClass : 0x06 (SCSI transparent command set)
bInterfaceProtocol : 0x50 (Bulk-Only Transport)
iInterface : 0x00 (No String Descriptor)
Data (HexDump) : 09 04 00 00 02 08 06 50 00 .......P.
----------------- Endpoint Descriptor -----------------
bLength : 0x07 (7 bytes)
bDescriptorType : 0x05 (Endpoint Descriptor)
bEndpointAddress : 0x01 (Direction=OUT EndpointID=1)
bmAttributes : 0x02 (TransferType=Bulk)
wMaxPacketSize : 0x0040 (64 bytes)
bInterval : 0x00 (ignored)
Data (HexDump) : 07 05 01 02 40 00 00 ....@..
----------------- Endpoint Descriptor -----------------
bLength : 0x07 (7 bytes)
bDescriptorType : 0x05 (Endpoint Descriptor)
bEndpointAddress : 0x81 (Direction=IN EndpointID=1)
bmAttributes : 0x02 (TransferType=Bulk)
wMaxPacketSize : 0x0040 (64 bytes)
bInterval : 0x00 (ignored)
Data (HexDump) : 07 05 81 02 40 00 00 ....@..
----------------- Device Qualifier Descriptor -----------------
Error : ERROR_GEN_FAILURE (because the device is Full-Speed only)
-------------------- String Descriptors -------------------
------ String Descriptor 0 ------
bLength : 0x04 (4 bytes)
bDescriptorType : 0x03 (String Descriptor)
Language ID[0] : 0x0409 (English - United States)
Data (HexDump) : 04 03 09 04 ....
------ String Descriptor 1 ------
bLength : 0x10 (16 bytes)
bDescriptorType : 0x03 (String Descriptor)
Language 0x0409 : "TinyUSB"
Data (HexDump) : 10 03 54 00 69 00 6E 00 79 00 55 00 53 00 42 00 ..T.i.n.y.U.S.B.
------ String Descriptor 2 ------
bLength : 0x1E (30 bytes)
bDescriptorType : 0x03 (String Descriptor)
Language 0x0409 : "TinyUSB Device"
Data (HexDump) : 1E 03 54 00 69 00 6E 00 79 00 55 00 53 00 42 00 ..T.i.n.y.U.S.B.
20 00 44 00 65 00 76 00 69 00 63 00 65 00 .D.e.v.i.c.e.
------ String Descriptor 3 ------
bLength : 0x0E (14 bytes)
bDescriptorType : 0x03 (String Descriptor)
Language 0x0409 : "123456"
Data (HexDump) : 0E 03 31 00 32 00 33 00 34 00 35 00 36 00 ..1.2.3.4.5.6.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment