4路USB按键 USB描述符

    本文地址:http://www.tongxinmao.com/Article/Detail/id/391

      =========================== USB Port3 ===========================


    Connection Status        : 0x01 (Device is connected)

    Port Chain               : 1-3-3


          ======================== USB Device ========================


            +++++++++++++++++ Device Information ++++++++++++++++++

    Device Description       : USB Composite Device

    Device Path              : \\.\usb#vid_2704&pid_2018#6&2d1d0d8&0&3#{a5dcbf10-6530-11d2-901f-00c04fb951ed}

    Device ID                : USB\VID_2704&PID_2018\6&2D1D0D8&0&3

    Hardware IDs             : USB\VID_2704&PID_2018&REV_1100 USB\VID_2704&PID_2018

    Driver KeyName           : {36fc9e60-c465-11cf-8056-444553540000}\0024 (GUID_DEVCLASS_USB)

    Driver Inf               : C:\Windows\inf\usb.inf

    Legacy BusType           : PNPBus

    Class                    : USB

    Class GUID               : {36fc9e60-c465-11cf-8056-444553540000} (GUID_DEVCLASS_USB)

    Interface GUID           : {a5dcbf10-6530-11d2-901f-00c04fb951ed} (GUID_DEVINTERFACE_USB_DEVICE)

    Service                  : usbccgp

    Enumerator               : USB

    Location Info            : Port_#0003.Hub_#0002

    Location IDs             : PCIROOT(0)#PCI(1400)#USBROOT(0)#USB(3)#USB(3)

    Container ID             : {082bec1a-f3e4-11e9-a49c-0080d0ab9b35}

    Manufacturer Info        : (标准 USB 主控制器)

    Capabilities             : 0x84 (Removable, SurpriseRemovalOK)

    Status                   : 0x0180600A (DN_DRIVER_LOADED, DN_STARTED, DN_DISABLEABLE, DN_REMOVABLE, DN_NT_ENUMERATOR, DN_NT_DRIVER)

    Problem Code             : 0

    Address                  : 3

    Power State              : D0 (supported: D0, D1, D2, D3, wake from D0, wake from D1, wake from D2)


            ---------------- Connection Information ---------------

    Connection Index         : 0x03 (3)

    Connection Status        : 0x01 (DeviceConnected)

    Current Config Value     : 0x01

    Device Address           : 0x1B (27)

    Is Hub                   : 0x00 (no)

    Number Of Open Pipes     : 0x03 (3)

    Device Bus Speed         : 0x01 (Full-Speed)

    Pipe0ScheduleOffset      : 0x00 (0)

    Pipe1ScheduleOffset      : 0x00 (0)

    Pipe2ScheduleOffset      : 0x00 (0)


            ------------------ Device Descriptor ------------------

    bLength                  : 0x12 (18 bytes)

    bDescriptorType          : 0x01 (Device Descriptor)

    bcdUSB                   : 0x110 (USB Version 1.10)

    bDeviceClass             : 0x00 (defined by the interface descriptors)

    bDeviceSubClass          : 0x00

    bDeviceProtocol          : 0x00

    bMaxPacketSize0          : 0x08 (8 bytes)

    idVendor                 : 0x2704

    idProduct                : 0x2018

    bcdDevice                : 0x1100

    iManufacturer            : 0x00 (No String Descriptor)

    iProduct                 : 0x00 (No String Descriptor)

    iSerialNumber            : 0x00 (No String Descriptor)

    bNumConfigurations       : 0x01


          ---------------- Configuration Descriptor -----------------

    bLength                  : 0x09 (9 bytes)

    bDescriptorType          : 0x02 (Configuration Descriptor)

    wTotalLength             : 0x0069 (105 bytes)

    bNumInterfaces           : 0x03

    bConfigurationValue      : 0x01

    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)


            ---------------- Interface Descriptor -----------------

    bLength                  : 0x09 (9 bytes)

    bDescriptorType          : 0x04 (Interface Descriptor)

    bInterfaceNumber         : 0x01

    bAlternateSetting        : 0x00

    bNumEndpoints            : 0x01 (1 Endpoint)

    bInterfaceClass          : 0x03 (HID - Human Interface Device)

    bInterfaceSubClass       : 0x02 (reserved)

    bInterfaceProtocol       : 0x02 (Mouse)

    iInterface               : 0x00 (No String Descriptor)


            ------------------- HID Descriptor --------------------

    bLength                  : 0x09 (9 bytes)

    bDescriptorType          : 0x21 (HID Descriptor)

    bcdHID                   : 0x0110 (HID Version 1.10)

    bCountryCode             : 0x21 (33 = US)

    bNumDescriptors          : 0x01

    Descriptor 1:

    bDescriptorType          : 0x22 (Class=Report)

    wDescriptorLength        : 0x003A (58 bytes)

      05 01             Usage Page (Generic Desktop Controls)

      09 02             Usage (Mouse)

      A1 01             Collection (Application)

      09 01               Usage (Pointer)

      A1 00               Collection (Physical)

      05 09                 Usage Page (Buttons)

      19 01                 Usage Minimum (1)

      29 03                 Usage Maximum (3)

      15 00                 Logical Minimum (0)

      25 01                 Logical Maximum (1)

      95 03                 Report Count (3)

      75 01                 Report Size (1)

      81 02                 Input (Var)

      95 01                 Report Count (1)

      75 05                 Report Size (5)

      81 03                 Input (Const, Var)

      05 01                 Usage Page (Generic Desktop Controls)

      09 30                 Usage (Direction-X)

      09 31                 Usage (Direction-Y)

      09 38                 Usage (Wheel)

      15 81                 Logical Minimum (-127)

      25 7F                 Logical Maximum (127)

      75 08                 Report Size (8)

      95 03                 Report Count (3)

      81 06                 Input (Var, Rel)

      95 02                 Report Count (2)

      75 08                 Report Size (8)

      81 03                 Input (Const, Var)

      C0                  End Collection

      C0                End Collection


            ----------------- Endpoint Descriptor -----------------

    bLength                  : 0x07 (7 bytes)

    bDescriptorType          : 0x05 (Endpoint Descriptor)

    bEndpointAddress         : 0x82 (Direction=IN EndpointID=2)

    bmAttributes             : 0x03 (TransferType=Interrupt)

    wMaxPacketSize           : 0x0006 (6 bytes)

    bInterval                : 0x01 (1 ms)


            ----------------- Endpoint Descriptor -----------------

    bLength                  : 0x07 (7 bytes)

    bDescriptorType          : 0x05 (Endpoint Descriptor)

    bEndpointAddress         : 0x02 (Direction=OUT EndpointID=2)

    bmAttributes             : 0x03 (TransferType=Interrupt)

    wMaxPacketSize           : 0x0040 (64 bytes)

    bInterval                : 0x01 (1 ms)


            ---------------- Interface Descriptor -----------------

    bLength                  : 0x09 (9 bytes)

    bDescriptorType          : 0x04 (Interface Descriptor)

    bInterfaceNumber         : 0x00

    bAlternateSetting        : 0x00

    bNumEndpoints            : 0x01 (1 Endpoint)

    bInterfaceClass          : 0x03 (HID - Human Interface Device)

    bInterfaceSubClass       : 0x01 (Boot Interface)

    bInterfaceProtocol       : 0x01 (Keyboard)

    iInterface               : 0x00 (No String Descriptor)


            ------------------- HID Descriptor --------------------

    bLength                  : 0x09 (9 bytes)

    bDescriptorType          : 0x21 (HID Descriptor)

    bcdHID                   : 0x0111 (HID Version 1.11)

    bCountryCode             : 0x00 (00 = not localized)

    bNumDescriptors          : 0x01

    Descriptor 1:

    bDescriptorType          : 0x22 (Class=Report)

    wDescriptorLength        : 0x0041 (65 bytes)

      05 01             Usage Page (Generic Desktop Controls)

      09 06             Usage (Keyboard)

      A1 01             Collection (Application)

      05 07               Usage Page (Keyboard)

      19 E0               Usage Minimum (-32)

      29 E7               Usage Maximum (-25)

      15 00               Logical Minimum (0)

      25 01               Logical Maximum (1)

      95 08               Report Count (8)

      75 01               Report Size (1)

      81 02               Input (Var)

      95 08               Report Count (8)

      75 01               Report Size (1)

      81 01               Input (Const)

      05 08               Usage Page (LEDs)

      19 01               Usage Minimum (1)

      29 03               Usage Maximum (3)

      95 03               Report Count (3)

      75 01               Report Size (1)

      91 02               Output (Var)

      95 01               Report Count (1)

      75 05               Report Size (5)

      91 01               Output (Const)

      05 07               Usage Page (Keyboard)

      19 00               Usage Minimum (0)

      2A FF 00            Usage Maximum (255)

      15 00               Logical Minimum (0)

      26 FF 00            Logical Maximum (255)

      95 06               Report Count (6)

      75 08               Report Size (8)

      81 00               Input ()

      C0                End Collection


            ----------------- Endpoint Descriptor -----------------

    bLength                  : 0x07 (7 bytes)

    bDescriptorType          : 0x05 (Endpoint Descriptor)

    bEndpointAddress         : 0x81 (Direction=IN EndpointID=1)

    bmAttributes             : 0x03 (TransferType=Interrupt)

    wMaxPacketSize           : 0x0008 (8 bytes)

    bInterval                : 0x01 (1 ms)


            ----------------- Endpoint Descriptor -----------------

    bLength                  : 0x07 (7 bytes)

    bDescriptorType          : 0x05 (Endpoint Descriptor)

    bEndpointAddress         : 0x01 (Direction=OUT EndpointID=1)

    bmAttributes             : 0x03 (TransferType=Interrupt)

    wMaxPacketSize           : 0x0040 (64 bytes)

    bInterval                : 0x01 (1 ms)


            ---------------- Interface Descriptor -----------------

    bLength                  : 0x09 (9 bytes)

    bDescriptorType          : 0x04 (Interface Descriptor)

    bInterfaceNumber         : 0x02

    bAlternateSetting        : 0x00

    bNumEndpoints            : 0x01 (1 Endpoint)

    bInterfaceClass          : 0x03 (HID - Human Interface Device)

    bInterfaceSubClass       : 0x00 (None)

    bInterfaceProtocol       : 0x00 (None)

    iInterface               : 0x05 (String Descriptor 5)


            ------------------- HID Descriptor --------------------

    bLength                  : 0x09 (9 bytes)

    bDescriptorType          : 0x21 (HID Descriptor)

    bcdHID                   : 0x0100 (HID Version 1.00)

    bCountryCode             : 0x00 (00 = not localized)

    bNumDescriptors          : 0x01

    Descriptor 1:

    bDescriptorType          : 0x22 (Class=Report)

    wDescriptorLength        : 0x0022 (34 bytes)

      06 00 FF          Usage Page (unk)

      09 01             Usage (0x01)

      A1 01             Collection (Application)

      09 02               Usage (0x02)

      15 00               Logical Minimum (0)

      26 00 FF            Logical Maximum (-256)

      75 08               Report Size (8)

      95 08               Report Count (8)

      81 06               Input (Var, Rel)

      09 02               Usage (0x02)

      15 00               Logical Minimum (0)

      26 00 FF            Logical Maximum (-256)

      75 08               Report Size (8)

      95 08               Report Count (8)

      91 06               Output (Var, Rel)

      C0                End Collection


            ----------------- Endpoint Descriptor -----------------

    bLength                  : 0x07 (7 bytes)

    bDescriptorType          : 0x05 (Endpoint Descriptor)

    bEndpointAddress         : 0x83 (Direction=IN EndpointID=3)

    bmAttributes             : 0x03 (TransferType=Interrupt)

    wMaxPacketSize           : 0x0040 (64 bytes)

    bInterval                : 0x01 (1 ms)


            ----------------- Endpoint Descriptor -----------------

    bLength                  : 0x07 (7 bytes)

    bDescriptorType          : 0x05 (Endpoint Descriptor)

    bEndpointAddress         : 0x03 (Direction=OUT EndpointID=3)

    bmAttributes             : 0x03 (TransferType=Interrupt)

    wMaxPacketSize           : 0x0040 (64 bytes)

    bInterval                : 0x01 (1 ms)


    上一篇:PHP多进程,信号 模拟
    下一篇:NB-IoT芯片原厂及其型号