Author Topic: Windows 10 and WriteFile  (Read 9883 times)

peterm

  • Member
  • ***
  • Posts: 1
Windows 10 and WriteFile
« on: November 04, 2016, 08:56:56 am »
We developed a USB HID device about 15yrs ago, and it has had no problems communication with the various Windows OSs until the change from windows 8 to windows 10. Now, when the computer software calls WriteFile function, the program hangs, no report from the WriteFile function, just frozen. The hardware for the HID device is USBN9603 (which TI is making obsolete) interface chip to a microprocessor. Any thought on what has changed from windows 8 to 10 that would cause this issue and if there is a solution would be helpful.

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: Windows 10 and WriteFile
« Reply #1 on: November 04, 2016, 10:24:53 am »
I don't know of any specific change in the Windows 10 drivers that would cause this.

Use a protocol analyzer or whatever debugging tools you have to find out if the PC is sending the report on the bus. If not, look at your call to WriteFile. (Show it here if you wish.) If the report is going out on the bus, to try to isolate the problem, look at the device end to determine if the endpoint is receiving the received data and responding with NAK or nothing.

I'm assuming the reports are directed to an interrupt OUT endpoint. If the device has no interrupt OUT endpoint, the reports would be directed to the control endpoint and the request would time out after 5 seconds.