WINUSB枚举过程实例

//1.标准请求:获取设备描述符
Handle setup packet : 80, 6, 0, 1, 0, 0, 40, 0
std dev req 6
Get desc 1: 64bytes
//2.标准请求:设置设备地址
Handle setup packet : 0, 5, 9, 0, 0, 0, 0, 0
std dev req 5
Set address 9
//3.标准请求:获取设备描述符
Handle setup packet : 80, 6, 0, 1, 0, 0, 12, 0
std dev req 6
Get desc 1: 18bytes
//4.标准请求:获取配置描述符
Handle setup packet : 80, 6, 0, 2, 0, 0, FF, 0
std dev req 6
Get desc 2: 255bytes
get config 64/255bytes
sending a zero length packet
//5.标准请求:获取 OS 字符串描述符 EE
Handle setup packet : 80, 6, EE, 3, 0, 0, 12, 0
std dev req 6
Get desc 3: 18bytes
 12 3 4D 0 53 0 46 0 54 0 31 0 30 0 30 0 1 0
//6.标准请求:获取字符串描述符 3
Handle setup packet : 80, 6, 3, 3, 9, 4, FF, 0
std dev req 6
Get desc 3: 255bytes
 20 3 32 0 41 0 34 0 39 0 38 0 37 0 36 0 44 0 39 0 43 0 43 0 31 0 41 0 41 0 34 0
//7.标准请求:获取字符串描述符 0
Handle setup packet : 80, 6, 0, 3, 0, 0, FF, 0
std dev req 6
Get desc 3: 255bytes
 4 3 9 4
//8.标准请求:获取字符串描述符 2
Handle setup packet : 80, 6, 2, 3, 9, 4, FF, 0
std dev req 6
Get desc 3: 255bytes
 16 3 46 0 4F 0 54 0 52 0 49 0 43 0 2D 0 55 0 53 0 42 0
//9.标准请求:获取设备描述符
Handle setup packet : 80, 6, 0, 1, 0, 0, 12, 0
std dev req 6
Get desc 1: 18bytes
//10.标准请求:获取配置描述符
Handle setup packet : 80, 6, 0, 2, 0, 0, 9, 0
std dev req 6
Get desc 2: 9bytes
get config 64/9bytes
//11.标准请求:获取配置描述符
Handle setup packet : 80, 6, 0, 2, 0, 0, 40, 0
std dev req 6
Get desc 2: 64bytes
get config 64/64bytes
sending a zero length packet
//12.标准请求:设置配置 1
Handle setup packet : 0, 9, 1, 0, 0, 0, 0, 0
std dev req 9
Configuration 1 requested
I: Setting configuration 1
//13.厂商请求:获取设备状态 —— OS Extended Compat ID -- 0x0004
Handle setup packet : C0, 1, 0, 0, 4, 0, 10, 0
vendor request 1
get vendor req 88/16bytes
 58 0 0 0 0 1 4 0 3 0 0 0 0 0 0 0
//14.厂商请求:获取设备状态 —— OS Extended Compat ID -- 0x0004
Handle setup packet : C0, 1, 0, 0, 4, 0, 58, 0
vendor request 1
get vendor req 88/88bytes
 58 0 0 0 0 1 4 0 3 0 0 0 0 0 0 0 0 1 57 49 4E 55 53 42 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 57 49 4E 55 53 42 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 1 57 49 4E 55 53 42 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
//15.标准请求:获取字符串描述符 5
Handle setup packet : 80, 6, 5, 3, 9, 4, 4, 0
std dev req 6
Get desc 3: 4bytes
 22 3 46 0
 //16.标准请求:获取字符串描述符 5
Handle setup packet : 80, 6, 5, 3, 9, 4, 22, 0
std dev req 6
Get desc 3: 34bytes
 22 3 46 0 4F 0 54 0 52 0 49 0 43 0 2D 0 53 0 54 0 52 0 45 0 41 0 4D 0 2D 0 49 0 52 0
 //17.厂商请求:接口0状态 —— OS Extended Properties -- 0x0005
Handle setup packet : C1, 1, 0, 0, 5, 0, A, 0
vendor request 1
get interface req 142/10bytes
 8E 0 0 0 0 1 5 0 1 0
 //18.厂商请求:接口0状态 —— OS Extended Properties -- 0x0005
Handle setup packet : C1, 1, 0, 0, 5, 0, 8E, 0
vendor request 1
get interface req 142/142bytes
 8E 0 0 0 0 1 5 0 1 0 84 0 0 0 1 0 0 0 28 0 44 0 65 0 76 0 69 0 63 0 65 0 49 0 6E 0 74 0 65 0 72 0 66 0 61 0 63 0 65 0 47 0 55 0 49 0 44 0 0 0 4E 0 0 0 7B 0 41 0 35 0 38 0 30 0 44 0 41 0 46 0 42 0 2D 0 34 0 43 0 35 0 35 0 2D 0 34 0 46 0 42 0 45 0 2D 0 42 0 32 0 34 0 36 0 2D 0 43 0 36 0 44 0 43 0 39 0 46 0 37 0 43 0 32 0 33 0 33 0 37 0 7D 0 0 0
//19.标准请求:获取字符串描述符 4
Handle setup packet : 80, 6, 4, 3, 9, 4, 4, 0
std dev req 6
Get desc 3: 4bytes
 18 3 46 0
 //20.标准请求:获取字符串描述符 4
Handle setup packet : 80, 6, 4, 3, 9, 4, 18, 0
std dev req 6
Get desc 3: 24bytes
 18 3 46 0 4F 0 54 0 52 0 49 0 43 0 2D 0 52 0 45 0 53 0 54 0
 //21.厂商请求:接口1状态 —— OS Extended Properties -- 0x0005
Handle setup packet : C1, 1, 1, 0, 5, 0, A, 0
vendor request 1
get interface req 142/10bytes
 8E 0 0 0 0 1 5 0 1 0
 //22.厂商请求:接口1状态 —— OS Extended Properties -- 0x0005
Handle setup packet : C1, 1, 1, 0, 5, 0, 8E, 0
vendor request 1
get interface req 142/142bytes
 8E 0 0 0 0 1 5 0 1 0 84 0 0 0 1 0 0 0 28 0 44 0 65 0 76 0 69 0 63 0 65 0 49 0 6E 0 74 0 65 0 72 0 66 0 61 0 63 0 65 0 47 0 55 0 49 0 44 0 0 0 4E 0 0 0 7B 0 46 0 37 0 30 0 32 0 34 0 32 0 43 0 37 0 2D 0 46 0 42 0 32 0 35 0 2D 0 34 0 34 0 33 0 42 0 2D 0 39 0 45 0 37 0 45 0 2D 0 41 0 34 0 32 0 36 0 30 0 46 0 33 0 37 0 33 0 39 0 38 0 32 0 7D 0 0 0
//23.标准请求:获取字符串描述符 6
Handle setup packet : 80, 6, 6, 3, 9, 4, 4, 0
std dev req 6
Get desc 3: 4bytes
 22 3 46 0
//24.标准请求:获取字符串描述符 6
Handle setup packet : 80, 6, 6, 3, 9, 4, 22, 0
std dev req 6
Get desc 3: 34bytes
 22 3 46 0 4F 0 54 0 52 0 49 0 43 0 2D 0 53 0 54 0 52 0 45 0 41 0 4D 0 2D 0 56 0 4C 0
//25.厂商请求:接口2状态 —— OS Extended Properties -- 0x0005
Handle setup packet : C1, 1, 2, 0, 5, 0, A, 0
vendor request 1
get interface req 142/10bytes
 8E 0 0 0 0 1 5 0 1 0
//26.厂商请求:接口2状态 —— OS Extended Properties -- 0x0005
Handle setup packet : C1, 1, 2, 0, 5, 0, 8E, 0
vendor request 1
get interface req 142/142bytes
 8E 0 0 0 0 1 5 0 1 0 84 0 0 0 1 0 0 0 28 0 44 0 65 0 76 0 69 0 63 0 65 0 49 0 6E 0 74 0 65 0 72 0 66 0 61 0 63 0 65 0 47 0 55 0 49 0 44 0 0 0 4E 0 0 0 7B 0 34 0 37 0 34 0 33 0 38 0 65 0 30 0 39 0 2D 0 61 0 33 0 30 0 39 0 2D 0 34 0 33 0 31 0 63 0 2D 0 38 0 64 0 36 0 65 0 2D 0 63 0 37 0 30 0 62 0 66 0 32 0 34 0 65 0 62 0 66 0 37 0 62 0 7D 0 0 0
//27.标准请求:获取状态
Handle setup packet : 80, 0, 0, 0, 0, 0, 2, 0
std dev req 0
//28.标准请求:获取状态
Handle setup packet : 80, 0, 0, 0, 0, 0, 2, 0
std dev req 0
//29.标准请求:获取状态
Handle setup packet : 80, 0, 0, 0, 0, 0, 2, 0
std dev req 0
usb reconnection, xusb_driver_state = XUSB_DRIVER_CONNECTED, stream_ep_tx_is_available = 1

 

WINUSB枚举过程实例

上一篇:AcWing 2068. 整数拼接


下一篇:未能找到路径“E:\HRPNEW\HRP\SpecialDev\NSYYJZ.WebApi\bin\roslyn\csc.exe”的一部分。