阅读:1246回复:3
usb setup package
本人获得的USB上电时得到的SETUP数据包,请为我分析分析。
在传输过程中,没有数据错误。 第一个SETUP数据包 00 05 05 00 00 00 00 00: byte0: (00) host to device byte1: (05) set device address 第二个SETUP数据包 80 06 00 01 00 00 12 00 byte0: (80) device to host byte1: (06) get device desription byte2: (00) wValueL byte3: (01) wValueH the descriptor type is device 问题1:从USB文档资料中得知device descriptor type有三种: device, configuration and string.但其type是否为: device=1, configuration=2, string=3 byte4-5:(00,00) wIndex byte6-7:(12) package length 12(hex)=18 第三个SETUP的数据包 12 01 00 01 00 00 00 08 b4 04 12 01 02 01 01 02 00 01 byte0:(12)数据长度18字节 byte1:(01)device descriptor byte2-3:(00 01) USB spc release number byte4:(0)class code, reset to \'0\' byte5:(0)subclass, if class is \'0\' subclass must be \'0\' byte6:(0) protocol code byte7:(08)maximum dada size for endpoint0 byte8-9:(B4 04)Vendor ID byte10-11:(12 01)Product ID byet12-13:(02 01)Device release number byte14:(01) Index for manufacture byte15:(02)Product byte16:(00) serial number byte17:(01) number of possible configurations 第三个SETUP数据包 80 06 00 02 00 00 09 00 第四个SETUP数据包 80 06 00 02 00 00 FF 00 09 02 12 00 01 01 04 80 32 09 04 00 00 00 FF 00 00 00 第五个SETUP数据包 80 06 00 03 00 00 FF 00 04 03 09 04 问题:byte6-7:(FF 00)何意? 第六个SETUP数据包 80 06 02 03 09 04 FF 00 问题: byte2-3:(02 03) wValue为何意,对下个数据包有何影响? byte4-5:(09 04) wIndex对下个数据有和影响? 特别是出现了byte6-7(FF 00)为何意, 与wValue and wIndex 有关系吗? 12 03 55 00 6B 00 65 00 79 00 31 00 30 00 30 00 38 00 第七个SETUP数据包 与第五个是一样的 第八个SETUP数据包 与第六个是一样的 问题:在发送过程中没有错误, 为何五六两个SETUP数据包发送两次? 多谢各位帮助了。 |
|
沙发#
发布于:2004-04-24 17:04
请问在哪可以买到cy7c63723的开发工具?
|
|
板凳#
发布于:2004-04-25 00:02
对于在枚举过程中HOST怎么发命令是HOST的事情。只要不会在枚举过程中出现BUS RESET,那么都是正常的。不管他重复发多少遍都是正常的。你只管应答就是了。HOST不会按照教科书第一条发什么,第二条发什么,一切以HOST为主动的。
|
|
地板#
发布于:2004-04-25 08:37
usb的协议 看看协议啊 :mad: :mad: :mad:
|
|
|