none
HID.dll : How to configure the baudrate of HID port using HID.dll windows driver. RRS feed

  • Question

  • Currently could not locate any API exposed by HID.dll windows driver that can be used to configure the HID Port parameters such as baud rate, parity, etc.. Please let us know how this can be done using HID Drivers provided by windows.

    Have looked into description of the function HidD_SetConfiguration , but not quite helpful.

    Please provide sample code .That can be of great help.

    Thanks in advance....

    Wednesday, February 28, 2018 7:15 AM

All replies

  • no such APIs exist.  are you looking to control the way the device communicates over a serial link or are you using HID to control a serial device over a different type of connection. if you are trying to control a HID device over a serial link this is either set by the HID mini driver the manufacturer or Microsoft wrote or you are writing a driver yourself.  If you are writing a driver yourself, you don't use hid.dll

    What bigger problem are you trying to solve?


    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    Wednesday, February 28, 2018 4:24 PM
  • Hello,

    Please find our answers below.

    no such APIs exist.  are you looking to control the way the device communicates over a serial link or are you using HID to control a serial device over a different type of connection.

    - We are trying to control the way the device communicates over a serial link.

    if you are trying to control a HID device over a serial link this is either set by the HID mini driver the manufacturer or Microsoft wrote or you are writing a driver yourself.  If you are writing a driver yourself, you don't use hid.dll

    - We are using the Microsoft provided driver hid.dll. We are not creating or writing a new driver.

    What bigger problem are you trying to solve?

    - My HID device is communicating at 19200 baud rate. But when I try to connect to that HID device and read the data received at the PC port, what I see is junk data.

    - We could not locate an API in hid.dll that can be used to configure the HID port parameters such as baud rate. So that we can read the data received from the device port at that particular baud rate.


    Thursday, March 1, 2018 4:49 AM
  • what device driver is controlling the HID device? what is its hardware ID? hid.dll is a user mode DLL, it isn't a driver.  

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    Thursday, March 1, 2018 8:37 AM