按照論壇上的貼子修改的程序,程序如附件所示,用串口取到的消息如下: Ch375 init ... init successed! Set device mode done! 外置固件從機(jī)模式 InterruptStatus:07 中斷狀態(tài),此時(shí)表示USB總線復(fù)位 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號(hào)命令的ep0_in事務(wù) 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] ---設(shè)置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 設(shè)備描述符已經(jīng)傳完了,接著復(fù)位了 InterruptStatus:00 EP0_OUT InterruptStatus:07 ------------下面開始又重復(fù)一次,三次過后,電腦提示無法識(shí)別
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
-----這就提示無法識(shí)別了,從現(xiàn)象來看,好像電腦這邊為什么會(huì)老是復(fù)位呢?另外EP0_OUT和SETUP之間有什么關(guān)系呢,總之還請做過CH375外置從機(jī)程序的同行們指點(diǎn)一下,翻來復(fù)去都測一周多了,先謝謝了。