Please take the trace of USB traffic(using USB traffic analyzers like CATC) and post it here so that we can have a look at it.
Thanks for your reply. Besides, what's a CATC? An instrument or some kind of software?
I just made a simple test:
press any key...
The BulkIn XferData immediately failed. I think there are two possible reasons: (a)EP6 stalled; (b)EP6 do not have enough data. Is it right?
Then after the test above, I just do
again. And it returns 1, the empty flag also changed.
So, can I say EP6 works well, the XferData() goes wrong?
I am try to start two new threads for BulkIn, one failed, start another, hope it worked.
I just changed a powersupply, and the problem solved...
Should find this at the very start...