Author Topic: Windows 7 SP1 & HID Example  (Read 10750 times)

anthony.carr

  • Member
  • ***
  • Posts: 10
Windows 7 SP1 & HID Example
« on: June 25, 2014, 12:25:13 pm »
Hi.
I developed an application based upon the HID example (Visual Studio version).
This works fine on most systems (Windows XP, Vista, 7) but I am now having problems with Windows 7 SP1.
The application no longer works. It appears something has changed in the HID drivers.
Has anyone else come across this problem and have any ideas on what has changed or how to get round the problem?
Thanks
TJ

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: Windows 7 SP1 & HID Example
« Reply #1 on: June 25, 2014, 03:12:05 pm »
If you mean the latest version of my example code here:

http://janaxelson.com/hidpage.htm#MyExampleCode

it runs for me on Windows 8.

What problem are you seeing?

anthony.carr

  • Member
  • ***
  • Posts: 10
Re: Windows 7 SP1 & HID Example
« Reply #2 on: June 26, 2014, 03:37:41 am »
Hello Jan,
Thank you for your response.
I don't know what version of the example I based it upon as it was some time ago I developed the application.
I will compare the latest example with my application.

What happens is the FindTheHid() function cannot locate the device when it is connected.

I am experiencing some other problems with Windows 7 SP1 as well where the USB HID driver does not always start properly when the device is plugged in.
It appears to be a variety of problems with the device looking like it has installed properly but cannot get any HID packets from the device.
Other time I get "This device cannot start. (Code 10)" occassionally and device manager flagging an error with the device.
I don't get any of these issues with earlier versions of windows.
I have tried Windows 8 as yet.

Many thanks,

TJ

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: Windows 7 SP1 & HID Example
« Reply #3 on: June 26, 2014, 10:56:17 am »
Verify that the device enumerated successfully. (Check Device Manager.)

Use breakpoints to see if the Find the Hid routine detects the Vendor ID and Product ID.

The newer versions of my examples have many improvements, most documented in the readme file.