none
[USB HID Device] - Which protocol should be my choice? RRS feed

  • Question

  • Dear all,

    I am working on a customized USB audio device on which an HID device is necessary for buttons.

    Here, in configuration descriptor, which protocol should be my choice, a standard keyboard, mouse or other type devices?

    Could you show me suggestions? Andy comments are welcome. Thank you very much in advance.

    #Detailed information of my buttons on the audio device:

    There buttons: speaker Volume up, speaker volume down and microphone mute

    For volume up and down, I want these buttons to control master volume of speaker in Windows.

    Many Thanks,

    Audleyswood

    Monday, September 5, 2016 6:54 AM

All replies

  • Hi Audley,

    I don't think anyone on these forums can answer this for you.  You should leverage the HID Specification and HID standards to choose the best answer for your usage.

    I would probably start here http://www.usb.org/developers/hidpage/ but there are probably other resources available as well.

    Sincerely,

    IoTGirl

    Tuesday, October 11, 2016 5:28 PM
    Moderator
  • I would use Keyboard HID descriptors and connect your buttons to VK_VOLUME_UP, etc. Look up the correct key codes for those functions. If you generate your keyboard map like that you probably don't have to do anything else.

    Good luck,

    Michel Verhagen, eMVP
    Check out my blog: https://guruce.com/blog

    GuruCE
    Microsoft Embedded Partner
    NXP Proven Partner
    https://guruce.com
    Consultancy, training and development services.

    Interested in WEC on i.MX6?
    Get the only 100% stable and best performing i.MX6 BSP for WEC7 and WEC2013 here: https://guruce.com/imx6

    Tuesday, October 11, 2016 6:06 PM
    Moderator