My apologies for an overly broad question. I am having trouble with a finicky USB HID device when the host computer enters and resumes from sleep while the device is attached and being communicated with. I was hoping you may have some advice in how to narrow my field of search.
The behavior appears to be dependent on the exact host that is connected. On one laptop, the first read from the device returns what looks to be part of the negotiation packets from enumeration. This behavior does not reproduce on my machine, so I do not have clearer information yet. On my desktop (Win 7 x64), I get AccessViolationExceptions in the calls to read, write, and enumerate. Similar issues happen on Macintosh. The code pinvokes the hidapi library.
What is a good first step towards narrowing this search? What specific information can I provide that would be helpful? I have access to external USB analyzer, but I do not have good access to the innards of the device. To change device behavior, I will need to prove what is going on before the firmware team will respond.
Thank You