Chinaunix首页 | 论坛 | 博客
  • 博客访问: 15318569
  • 博文数量: 2005
  • 博客积分: 11986
  • 博客等级: 上将
  • 技术积分: 22535
  • 用 户 组: 普通用户
  • 注册时间: 2007-05-17 13:56
文章分类

全部博文(2005)

文章存档

2014年(2)

2013年(2)

2012年(16)

2011年(66)

2010年(368)

2009年(743)

2008年(491)

2007年(317)

分类:

2010-01-02 21:07:29

=============获取设备描述符
bRequestType:80
bRequest    :06
wValue      :0100
wIndex      :0000
wLength     :0040 期望长度64字节

usb bus Reset总线复位我的usb设备
=============发出为我的usb设备设置地址指令,我的usb地址被设置为0x04
bRequestType:00
bRequest    :05
wValue      :0004
wIndex      :0000
wLength     :0000

=============获取配置描述符
bRequestType:80
bRequest    :06
wValue      :0200
wIndex      :0000
wLength     :0009 期望长度9字节

=============尝试读取配置描述符0xff长度
bRequestType:80
bRequest    :06
wValue      :0200
wIndex      :0000
wLength     :00ff

=============尝试读取配置描述符0x12长度,不会超时
bRequestType:80
bRequest    :06
wValue      :0200
wIndex      :0000
wLength     :0012

=============尝试读取配置描述符0x09长度,正好
bRequestType:80
bRequest    :06
wValue      :0200
wIndex      :0000
wLength     :0009

=============读取配置描述符总长度0x22
bRequestType:80
bRequest    :06
wValue      :0200
wIndex      :0000
wLength     :0022

=============设置配置,将配置生效,使能cpu上的endpoint端点
bRequestType:00
bRequest    :09
wValue      :0001 将配置数值设置为1
wIndex      :0000
wLength     :0000

=============
bRequestType:00
bRequest    :09
wValue      :0001
wIndex      :0000
wLength     :0000

=============
bRequestType:81 读取接口
bRequest    :06 读取接口描述符
wValue      :2200 读取报告描述符
wIndex      :0000
wLength     :0072

=============
bRequestType:81
bRequest    :06
wValue      :2200
wIndex      :0000
wLength     :0072

============= 读取配置描述符
bRequestType:80
bRequest    :06
wValue      :0200
wIndex      :0000
wLength     :0022

阅读(1473) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~