Author Topic: Composite device HID/WinUSB  (Read 14928 times)

demmel

  • Member
  • ***
  • Posts: 1
Composite device HID/WinUSB
« on: April 25, 2012, 02:55:06 am »
Hi,

we've a working solution with a HID device (LPC24xx/PC17xx) and a appropriate PC Software currently. As using HID is very slow (we've already set the polling interval to 1ms) I want to get the firmware modified to to have a composite HID/WinUSB device. As I myself do not have the skills to program this stuff, I've engaged an external programmer to modify the firmware accordingly and make a simple PC software showing and testing the functionality of the composite device.

Currently the external programmer is in the stage of having finished the firmware modification so I expected to be able to test the modified device with my existing PC software via HID, but I could not connect to the device so far although the composite device was successfully accepted by Windows (but not on my machine).

So some basic questions came into my mind when doing the first tests:

a) When a software looks for HID devices only during enumeration, will it detect the new composite HID/WinUSB device? In other words, can I still use the old PC software until I have a new one?

b) When the composite HID/WinUSB device is connected to a PC without having the appropriate .INF file for the WinUSB part will the HID device be operable? Our customers will possible have the old PC software and connect to a new composite device, if possible anyhow they should be able to operate the device via HID in this case.

c) If an "old" HID-only device is already connected via USB and gets its firmware updated via this PC then, it will be a composite HID/WinUSB device after the device reboots. In fact we send a command to the device to reboot after update. On rebooting the device disconnects temporarily the USB port to force the PC to re-enumerate the USB port. So must we attach a different PID  (the serial number of the device must be the same as before) to the composite HID/WinUSB device as we had for the simple HID device to force the PC to load different drivers for the modified device?

Any help is appreciated.

Best regards
Herbert

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: Composite device HID/WinUSB
« Reply #1 on: April 25, 2012, 10:12:54 am »
yes, yes, and yes

Jan