Author Topic: Composite USB HID and audio device  (Read 8290 times)

anthony.carr

  • Member
  • ***
  • Posts: 10
Composite USB HID and audio device
« on: October 04, 2013, 06:09:26 am »
Hi,

I have been developing USB HID products for several years and am familiar with the USB descriptor structure.
I have a requirement to develop a product that includes both an HID and audio device.
I have examples of the descriptors for both devices but I am not certain how to combine the different devices within the one descriptor.
Can anyone point me to or provide an example of how to combine the descriptors?

Thanks,

TC

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: Composite USB HID and audio device
« Reply #1 on: October 04, 2013, 10:38:25 am »
Get the audio function working first. Then add descriptors for the HID interface and increment bNumInterfaces in the configuration descriptor.

Also see:

www.atmel.com/images/doc6436.pdf

anthony.carr

  • Member
  • ***
  • Posts: 10
Re: Composite USB HID and audio device
« Reply #2 on: October 10, 2013, 11:14:59 am »
Thanks Jan.
I have combined the descriptors as you suggested and I now have my audio device and keyboard enumerating.
Many thanks for your advice. :)

anthony.carr

  • Member
  • ***
  • Posts: 10
Re: Composite USB HID and audio device
« Reply #3 on: October 15, 2013, 06:10:18 am »
Hi,

I have integrated the audio and HID devices into one as per Jan's suggestion and everything works on my windows XP system.
I then tested the unit out on Windows Vista and Windows 7 systems and whilst the device enumerates and I can see the devices are installed properly in device manager the audio does not produce any sound.
Device manager states that the audio device is working properly.
Does anyone have any suggestions as to why the audio device does not work on Vista and 7?

Thanks,

TJ

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: Composite USB HID and audio device
« Reply #4 on: October 15, 2013, 10:16:25 am »
These suggestions are pretty general, but:

A protocol analyzer will show if the data is transferring on the bus.

Try the Windows audio troubleshooter.