Author Topic: Detect WinUSB pending read  (Read 8792 times)

lcpoon

  • Frequent Contributor
  • ****
  • Posts: 58
Detect WinUSB pending read
« on: June 05, 2015, 05:16:19 am »
How to use VB.net to detect if the WinUSB device is pending for read?

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: Detect WinUSB pending read
« Reply #1 on: June 05, 2015, 09:31:16 am »
My .NET example WinUSB code is here:

http://janaxelson.com/winusb.htm

There is no way to detect in advance if a device has data to send. Just try a read and time out if no data.