Kenneth,
Your post almost exactly describes what I am experiencing.
I have been fighting this problem for a couple of days now to no avail.
Did you find a solution?
/Steve
Kenneth Adelhorst Andersen wrote:
WinUsb timing issue
25-Nov-09
Hi
We are trying to use WinUsb to communicate with our own hardware device
However, we are experiencing strange timing issues, where regularly the drive
fails to retrieve the reply from the hardware device
The same code works fine with another driver, which is just a build of th
bulk USB driver sample from the DDK
One difference between the two drivers is that WinUsb requires the handle t
be created with the FILE_FLAG_OVERLAPPED attribute, while the other driver i
not. This sounds like a good reason that we would get these timing issues
because that allowes multiple simultaneous pending read and write requests
but in our case we never make a new WinUsb_WritePipe() or WinUsb_ReadPipe(
call before the previous one is complete. We are doing synchronous calls only
Seen from the application side, the WinUsb_ReadPipe() call just fails an
GetLastError() returns 121, which is semaphore timeout, so I guess th
request just times out
Any ideas as to what we can do differently or try to make the communcatio
stable with WinUsb
If you need additional information about our setup etc, please let me know :
/Kenneth
Previous Posts In This Thread:
Submitted via EggHeadCafe - Software Developer Portal of Choice
ASP.NET Application-Page Lifecycle Redux
http://www.eggheadcafe.com/tutorials...ationpage.aspx