按照论坛上的贴子修改的程序,程序如附件所示,用串口取到的消息如下: Ch375 init ... init successed! Set device mode done! 外置固件从机模式 InterruptStatus:07 中断状态,此时表示USB总线复位 InterruptStatus:07 InterruptStatus:07 InterruptStatus:07 InterruptStatus:07 InterruptStatus:07 InterruptStatus:0c [80] [06] [00] [01] [00] [00] [40] [00] 收到setup包 12 01 10 01 00 00 00 08 InterruptStatus:08 6EP0_IN 表示6号命令的ep0_in事务 8f 05 80 93 00 02 00 00 InterruptStatus:00 EP0_OUT InterruptStatus:00 EP0_OUT InterruptStatus:00 EP0_OUT InterruptStatus:00 EP0_OUT InterruptStatus:0c [00] [05] [38] [00] [00] [00] [00] [00] ---设置USB新地址 InterruptStatus:08 5EP0_IN new adderss:56 InterruptStatus:0c [80] [06] [00] [01] [00] [00] [12] [00] ---重新请求描述符 12 01 10 01 00 00 00 08 InterruptStatus:08 6EP0_IN 8f 05 80 93 00 02 00 00 InterruptStatus:08 6EP0_IN 00 01 InterruptStatus:08 6EP0_IN 设备描述符已经传完了,接着复位了 InterruptStatus:00 EP0_OUT InterruptStatus:07 ------------下面开始又重复一次,三次过后,电脑提示无法识别
InterruptStatus:07 InterruptStatus:07 InterruptStatus:07 InterruptStatus:07 InterruptStatus:07 InterruptStatus:07 InterruptStatus:07 InterruptStatus:07 InterruptStatus:0c [80] [06] [00] [01] [00] [00] [40] [00] 12 01 10 01 00 00 00 08 InterruptStatus:08 6EP0_IN 8f 05 80 93 00 02 00 00 InterruptStatus:00 EP0_OUT InterruptStatus:00 EP0_OUT InterruptStatus:00 EP0_OUT InterruptStatus:0c [00] [05] [39] [00] [00] [00] [00] [00] InterruptStatus:08 5EP0_IN new adderss:57 InterruptStatus:0c [80] [06] [00] [01] [00] [00] [12] [00] 12 01 10 01 00 00 00 08 InterruptStatus:08 6EP0_IN 8f 05 80 93 00 02 00 00 InterruptStatus:08 6EP0_IN 00 01 InterruptStatus:08 6EP0_IN InterruptStatus:00 EP0_OUT InterruptStatus:07 InterruptStatus:07 InterruptStatus:07 InterruptStatus:07 InterruptStatus:07 InterruptStatus:07 InterruptStatus:07 InterruptStatus:07 InterruptStatus:07 InterruptStatus:0c [80] [06] [00] [01] [00] [00] [40] [00] 12 01 10 01 00 00 00 08 InterruptStatus:08 6EP0_IN 8f 05 80 93 00 02 00 00 InterruptStatus:00 EP0_OUT InterruptStatus:00 EP0_OUT InterruptStatus:00 EP0_OUT InterruptStatus:00 EP0_OUT InterruptStatus:00 EP0_OUT InterruptStatus:0c [00] [05] [3a] [00] [00] [00] [00] [00] InterruptStatus:08 5EP0_IN new adderss:58 InterruptStatus:0c [80] [06] [00] [01] [00] [00] [12] [00] 12 01 10 01 00 00 00 08 InterruptStatus:08 6EP0_IN 8f 05 80 93 00 02 00 00 InterruptStatus:08 6EP0_IN 00 01 InterruptStatus:08 6EP0_IN InterruptStatus:00 EP0_OUT
-----这就提示无法识别了,从现象来看,好像电脑这边为什么会老是复位呢?另外EP0_OUT和SETUP之间有什么关系呢,总之还请做过CH375外置从机程序的同行们指点一下,翻来复去都测一周多了,先谢谢了。