LibusbK Read Pipe timeout but all the data is received

Pradeepa Senanayake <[email protected]> Thu, 24 Nov 2016 14:18:09 +0530
Newsgroups gmane.comp.lib.libusb.devel.windows
Message-ID <CA+1tQ70hKGTk=LRSq5+sbtFYLJ1k2uqTLBD3-fkJmLhLOr2n0g@mail.gmail.com>
Hello All,

I have been using libusbK with WinUSB for a long time now. Recently we
found out a bug which had slipped away from us and has been in the source
for 2 years.

The issue is, when we call ReadPipe to read a bulk in endpoint sometimes we
get a timeout. When we investigated more we found out that the issue comes
only when our reply data amount is a multiple of 64 bytes.

Nevertheless, when we get a timeout if I checked the transferred byte
amount and the content, it has all the data the device had committed.

I'm a bit perplexed at the moment due to this behavior. We have a STM32F4
IC in the device. It seems like it's committing all the data to the USB
controller properly.

Is there any one who had faced something similar? Or if this is a known
issue can someone suggest a workaround?

Thank you,
Best Regards,
Pradeepa Senanayake.

------------------------------------------------------------------------------

_______________________________________________
Libusb-win32-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel