上位机先读BULK IN,报超时退出->上位机写BULK OUT->上位机再读BULK IN则可以读到fpga取反回传的数据;
而上位机直接写BULK OUT->上位机再读BULK IN却无法读到fpga取反回传的数据,限时超时。
困扰啊,求高人帮忙指点下,谢谢!
1、68013A与FPGA对接,68013A配置为异步Slave FIFO模式。
2、windows驱动基于EZusb老驱动开发,USB驱动读写过程增加了超时退出机制。
Bus hound抓取结果
Phase - Phase Type
CTL USB control transfer
IN Data in transfer
OUT Data out transfer
URB USB request block
Data - Hex dump of the data transferred
Descr - Description of the phase
Cmd... - Position in the captured data
Device Phase Data Description Cmd.Phase.Ofs(rep)
------ ----- ------------------------ ---------------- ------------------
21.0 CTL 40 b3 00 00 00 00 0a 00 VENDOR 1.1.0 1.上位机先读BULK IN,超时
21.0 OUT 00 00 00 00 78 f8 12 00 ....x... 1.2.0
42 18 B. 1.2.8
21.0 URB 50 00 08 00 00 00 00 00 CONTROL TRANSFER 1.3.0
98 53 44 82 20 00 00 00 1.3.8
b0 53 44 82 0a 00 00 00 1.3.16
0a 00 00 00 00 00 00 00 1.3.24
21.6 URB 48 00 09 00 00 00 01 c0 BULK/INT XFER 2.1.0
98 53 44 82 20 00 00 00 2.1.8
f4 27 30 82 03 00 00 00 2.1.16
00 00 00 00 00 00 00 00 2.1.24
21.0 CTL 40 b3 00 00 00 00 0a 00 VENDOR 3.1.0 2.上位机写0X5555(BULK OUT)
21.0 OUT 02 00 00 00 50 fe 12 00 ....P... 3.2.0
bc 29 .) 3.2.8
21.0 URB 50 00 08 00 00 00 00 00 CONTROL TRANSFER 3.3.0
98 53 44 82 20 00 00 00 3.3.8
b0 53 44 82 0a 00 00 00 3.3.16
0a 00 00 00 00 00 00 00 3.3.24
21.2 OUT 55 55 UU 4.1.0
21.2 URB 48 00 09 00 00 00 00 00 BULK/INT XFER 4.2.0
98 53 44 82 20 00 00 00 4.2.8
d4 27 30 82 02 00 00 00 4.2.16
02 00 00 00 00 00 00 00 4.2.24
21.0 CTL 40 b3 00 00 00 00 0a 00 VENDOR 5.1.0 3.再读(BULK IN),FPGA取反0xaaaa,读取ok
21.0 OUT 00 00 00 00 78 f8 12 00 ....x... 5.2.0
42 18 B. 5.2.8
21.0 URB 50 00 08 00 00 00 00 00 CONTROL TRANSFER 5.3.0
98 53 44 82 20 00 00 00 5.3.8
b0 53 44 82 0a 00 00 00 5.3.16
0a 00 00 00 00 00 00 00 5.3.24
21.6 IN aa aa .. 6.1.0
21.6 URB 48 00 09 00 00 00 00 00 BULK/INT XFER 6.2.0
98 53 44 82 20 00 00 00 6.2.8
f4 27 30 82 03 00 00 00 6.2.16
02 00 00 00 00 00 00 00 6.2.24
21.0 CTL 40 b3 00 00 00 00 0a 00 VENDOR 7.1.0 1.上位机直接写0X1111(BULK OUT)
21.0 OUT 02 00 00 00 50 fe 12 00 ....P... 7.2.0
bc 29 .) 7.2.8
21.0 URB 50 00 08 00 00 00 00 00 CONTROL TRANSFER 7.3.0
98 53 44 82 20 00 00 00 7.3.8
b0 53 44 82 0a 00 00 00 7.3.16
0a 00 00 00 00 00 00 00 7.3.24
21.2 OUT 11 11 .. 8.1.0
21.2 URB 48 00 09 00 00 00 00 00 BULK/INT XFER 8.2.0
98 53 44 82 20 00 00 00 8.2.8
d4 27 30 82 02 00 00 00 8.2.16
02 00 00 00 00 00 00 00 8.2.24
21.0 CTL 40 b3 00 00 00 00 0a 00 VENDOR 9.1.0 2.再读(BULK IN),超时退出 error
21.0 OUT 00 00 00 00 78 f8 12 00 ....x... 9.2.0
42 18 B. 9.2.8
21.0 URB 50 00 08 00 00 00 00 00 CONTROL TRANSFER 9.3.0
98 53 44 82 20 00 00 00 9.3.8
b0 53 44 82 0a 00 00 00 9.3.16
0a 00 00 00 00 00 00 00 9.3.24
21.6 URB 48 00 09 00 00 00 01 c0 BULK/INT XFER 10.1.0
98 53 44 82 20 00 00 00 10.1.8
f4 27 30 82 03 00 00 00 10.1.16
00 00 00 00 00 00 00 00 10.1.24 |