爱宝a-58USB打印机描述符

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


    =========================== USB Port5 ===========================


Connection Status        : 0x01 (Device is connected)

Port Chain               : 1-5


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


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

Device Description       : USB 打印支持

Device Path              : \\?\usb#vid_0416&pid_7103#5&20c67efd&0&5#{a5dcbf10-6530-11d2-901f-00c04fb951ed}

Device ID                : USB\VID_0416&PID_7103\5&20C67EFD&0&5

Hardware IDs             : USB\VID_0416&PID_7103&REV_0001 USB\VID_0416&PID_7103

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

Driver                   : C:\Windows\system32\DRIVERS\usbprint.sys (Version: 6.1.7600.16385  Date: 2009-07-14)

Driver Inf               : C:\Windows\inf\usbprint.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                  : usbprint

Enumerator               : USB

Location Info            : Port_#0005.Hub_#0001

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

Container ID             : {f969b9bb-d609-11e6-a868-005056c00008}

Manufacturer Info        : Microsoft

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                  : 5

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

 Child Device 1          : 没有连接打印机

  Device ID              : USBPRINT\UNKNOWNPRINTER\6&11AE0112&0&USB003

  Class                  : USB


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

Connection Index         : 0x05 (5)

Connection Status        : 0x01 (DeviceConnected)

Current Config Value     : 0x01

Device Address           : 0x10 (16)

Is Hub                   : 0x00 (no)

Number Of Open Pipes     : 0x02 (2)

Device Bus Speed         : 0x01 (Full-Speed)

Pipe0ScheduleOffset      : 0x00 (0)

Pipe1ScheduleOffset      : 0x00 (0)

Data (HexDump)           : 05 00 00 00 12 01 10 01 00 00 00 40 16 04 03 71   ...........@...q

                           01 00 01 02 00 01 01 01 00 10 00 02 00 00 00 01   ................

                           00 00 00 07 05 02 02 40 00 00 00 00 00 00 07 05   .......@........

                           83 02 40 00 00 00 00 00 00                        ..@......


        ------------------ 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          : 0x40 (64 bytes)

idVendor                 : 0x0416 (Nuvoton Technology Corp.)

idProduct                : 0x7103

bcdDevice                : 0x0001

iManufacturer            : 0x01 (String Descriptor 1)

 Language 0x0409         : "RoadWell"

iProduct                 : 0x02 (String Descriptor 2)

 Language 0x0409         : "RoadWell printer"

iSerialNumber            : 0x00 (No String Descriptor)

bNumConfigurations       : 0x01

Data (HexDump)           : 12 01 10 01 00 00 00 40 16 04 03 71 01 00 01 02   .......@...q....

                           00 01                                             ..


        ------------------ 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                  : 0x12 (18 bytes)

bDescriptorType          : 0x03 (String Descriptor)

Language 0x0409          : "RoadWell"

Data (HexDump)           : 12 03 52 00 6F 00 61 00 64 00 57 00 65 00 6C 00   ..R.o.a.d.W.e.l.

                           6C 00                                             l.

             ------ String Descriptor 2 ------

bLength                  : 0x22 (34 bytes)

bDescriptorType          : 0x03 (String Descriptor)

Language 0x0409          : "RoadWell printer"

Data (HexDump)           : 22 03 52 00 6F 00 61 00 64 00 57 00 65 00 6C 00   ".R.o.a.d.W.e.l.

                           6C 00 20 00 70 00 72 00 69 00 6E 00 74 00 65 00   l. .p.r.i.n.t.e.

                           72 00                                             r.


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

bLength                  : 0x09 (9 bytes)

bDescriptorType          : 0x02 (Configuration Descriptor)

wTotalLength             : 0x0030 (48 bytes)

bNumInterfaces           : 0x01

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)

Data (HexDump)           : 09 02 30 00 01 01 00 A0 32 09 04 00 00 01 07 01   ..0.....2.......

                           01 00 07 05 02 02 40 00 00 09 04 00 01 02 07 01   ......@.........

                           02 00 07 05 02 02 40 00 00 07 05 83 02 40 00 00   ......@......@..


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

bLength                  : 0x09 (9 bytes)

bDescriptorType          : 0x04 (Interface Descriptor)

bInterfaceNumber         : 0x00

bAlternateSetting        : 0x00

bNumEndpoints            : 0x01 (1 Endpoint)

bInterfaceClass          : 0x07 (Printer)

bInterfaceSubClass       : 0x01

bInterfaceProtocol       : 0x01

iInterface               : 0x00 (No String Descriptor)

Data (HexDump)           : 09 04 00 00 01 07 01 01 00                        .........


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

bLength                  : 0x07 (7 bytes)

bDescriptorType          : 0x05 (Endpoint Descriptor)

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

bmAttributes             : 0x02 (TransferType=Bulk)

wMaxPacketSize           : 0x0040 (64 bytes)

bInterval                : 0x00 (ignored)

Data (HexDump)           : 07 05 02 02 40 00 00                              ....@..


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

bLength                  : 0x09 (9 bytes)

bDescriptorType          : 0x04 (Interface Descriptor)

bInterfaceNumber         : 0x00

bAlternateSetting        : 0x01

bNumEndpoints            : 0x02 (2 Endpoints)

bInterfaceClass          : 0x07 (Printer)

bInterfaceSubClass       : 0x01

bInterfaceProtocol       : 0x02

iInterface               : 0x00 (No String Descriptor)

Data (HexDump)           : 09 04 00 01 02 07 01 02 00                        .........


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

bLength                  : 0x07 (7 bytes)

bDescriptorType          : 0x05 (Endpoint Descriptor)

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

bmAttributes             : 0x02 (TransferType=Bulk)

wMaxPacketSize           : 0x0040 (64 bytes)

bInterval                : 0x00 (ignored)

Data (HexDump)           : 07 05 02 02 40 00 00                              ....@..


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

bLength                  : 0x07 (7 bytes)

bDescriptorType          : 0x05 (Endpoint Descriptor)

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

bmAttributes             : 0x02 (TransferType=Bulk)

wMaxPacketSize           : 0x0040 (64 bytes)

bInterval                : 0x00 (ignored)

Data (HexDump)           : 07 05 83 02 40 00 00                              ....@..



经过kl采集机后:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
        ---------------- Connection Information ---------------
Connection Index         : 0x08 (8)
Connection Status        : 0x01 (DeviceConnected)
Current Config Value     : 0x01
Device Address           : 0x08 (8)
Is Hub                   : 0x00 (no)
Number Of Open Pipes     : 0x02 (2)
Device Bus Speed         : 0x01 (Full-Speed)
Pipe0ScheduleOffset      : 0x00 (0)
Pipe1ScheduleOffset      : 0x00 (0)
Data (HexDump)           : 08 00 00 00 12 01 10 01 00 00 00 40 16 04 03 71   ...........@...q
                           01 00 01 02 00 01 01 01 00 08 00 02 00 00 00 01   ................
                           00 00 00 07 05 82 02 40 00 00 00 00 00 00 07 05   .......@........
                           01 02 40 00 00 00 00 00 00                        ..@......
 
        ------------------ 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          : 0x40 (64 bytes)
idVendor                 : 0x0416 (Nuvoton Technology Corp.)
idProduct                : 0x7103
bcdDevice                : 0x0001
iManufacturer            : 0x01 (String Descriptor 1)
 Language 0x0409         : "RoadWell"
iProduct                 : 0x02 (String Descriptor 2)
 Language 0x0409         : "RoadWell printer"
iSerialNumber            : 0x00 (No String Descriptor)
bNumConfigurations       : 0x01
Data (HexDump)           : 12 01 10 01 00 00 00 40 16 04 03 71 01 00 01 02   .......@...q....
                           00 01                                             ..
 
        ------------------ 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                  : 0x12 (18 bytes)
bDescriptorType          : 0x03 (String Descriptor)
Language 0x0409          : "RoadWell"
Data (HexDump)           : 12 03 52 00 6F 00 61 00 64 00 57 00 65 00 6C 00   ..R.o.a.d.W.e.l.
                           6C 00                                             l.
             ------ String Descriptor 2 ------
bLength                  : 0x22 (34 bytes)
bDescriptorType          : 0x03 (String Descriptor)
Language 0x0409          : "RoadWell printer"
Data (HexDump)           : 22 03 52 00 6F 00 61 00 64 00 57 00 65 00 6C 00   ".R.o.a.d.W.e.l.
                           6C 00 20 00 70 00 72 00 69 00 6E 00 74 00 65 00   l. .p.r.i.n.t.e.
                           72 00                                             r.
 
      ---------------- Configuration Descriptor -----------------
bLength                  : 0x09 (9 bytes)
bDescriptorType          : 0x02 (Configuration Descriptor)
wTotalLength             : 0x0020 (32 bytes)
bNumInterfaces           : 0x01
bConfigurationValue      : 0x01
iConfiguration           : 0x00 (No String Descriptor)
bmAttributes             : 0xC0
 D7: Reserved, set 1     : 0x01
 D6: Self Powered        : 0x01 (yes)
 D5: Remote Wakeup       : 0x00 (no)
 D4..0: Reserved, set 0  : 0x00
MaxPower                 : 0x01 (2 mA)
Data (HexDump)           : 09 02 20 00 01 01 00 C0 01 09 04 00 00 02 07 01   .. .............
                           02 00 07 05 82 02 40 00 00 07 05 01 02 40 00 00   ......@......@..
 
        ---------------- Interface Descriptor -----------------
bLength                  : 0x09 (9 bytes)
bDescriptorType          : 0x04 (Interface Descriptor)
bInterfaceNumber         : 0x00
bAlternateSetting        : 0x00
bNumEndpoints            : 0x02 (2 Endpoints)
bInterfaceClass          : 0x07 (Printer)
bInterfaceSubClass       : 0x01
bInterfaceProtocol       : 0x02
iInterface               : 0x00 (No String Descriptor)
Data (HexDump)           : 09 04 00 00 02 07 01 02 00                        .........
 
        ----------------- Endpoint Descriptor -----------------
bLength                  : 0x07 (7 bytes)
bDescriptorType          : 0x05 (Endpoint Descriptor)
bEndpointAddress         : 0x82 (Direction=IN EndpointID=2)
bmAttributes             : 0x02 (TransferType=Bulk)
wMaxPacketSize           : 0x0040 (64 bytes)
bInterval                : 0x00 (ignored)
Data (HexDump)           : 07 05 82 02 40 00 00                              ....@..
 
        ----------------- 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                              ....@..


上一篇:PHP基于共享内存的顺序号发生器
下一篇:微信JSSDK 网页扫二维码