PORTS Forum
Ports and Interfaces => USB => Topic started by: lcpoon on October 18, 2013, 09:55:10 am
-
Is that possible to check if the device is pending for read before we call ReadDataViaBulkTransfer() or SendViaBulkTransfers()?
Due to certain reason, I need to set the pipeTimeout = 0. In this case, if the device is pending for read and SendViaBulkTransfers() is being called, the program will hang forever.
-
Use asynchronous reads that signal when data is available. I have example code here:
http://www.janaxelson.com/winusb.htm