Windows 10: HidD_SetOutputReport failing with error code 31 and 121

Discus and support HidD_SetOutputReport failing with error code 31 and 121 in Windows 10 Drivers and Hardware to solve the problem; Hello Everyone,I was developing a custom HID application for sending and receiving reports from an HID device. I was able to successfully develop the... Discussion in 'Windows 10 Drivers and Hardware' started by Jkr3, Apr 27, 2021.

  1. Jkr3 Win User

    HidD_SetOutputReport failing with error code 31 and 121


    Hello Everyone,I was developing a custom HID application for sending and receiving reports from an HID device. I was able to successfully develop the project and could communicate with the HID device correctly on a Windows 10 PC. But recently, I found that on a PC with windows 10 OS version 16299, the API HidD_SetOutputReport was failing. The error codes obtained on using GetLastError was either 31 or 121. I know that 31 refers to GENERAL_FAILURE and 121 refers to semaphore timeout. Currently, we have tested the application on the following Windows 10 PCs:1. 10.0.15063 - The Ap

    :)
     

  2. error code 31

    Hi Roderick,

    To resolve the error code that you encountered, we recommend that you check this support page article:
    Error codes in Device Manager in Windows. Please refer to
    Code 31: "This device is not working properly" section and follow the suggested troubleshooting steps.

    Feel free to post back if you need more help.
     
    Jennifer Cha, Apr 27, 2021
    #2
  3. HidD_SetOutputReport API failing due to timeout after some restarts

    Hi,

    I am currently working on migrating a application with Win 7 embedded OS to Win 10. In our system, there is a customized keyboard and we are writing/updating it using Windows API "HidD_SetOutputReport",
    many times during operations in our system. After migration to Win 10, sometimes when I restarted the system(OS restart) this API got failed due to timeout which causing a 5 second delay.

    The error code i am getting is 121. It says ERROR_SEM_TIMEOUT(The semaphore timeout period has expired.)

    Details about our OS: Windows 10 Enterprise 2016 LTSB - OS Build: 14393.2189, Version 1607

    Please share any inputs?

    I have shared the same query below also but yet to find the root cause of this issue.

    HidD_SetOutputReport API failing with some delay

    Thanks & Regards

    Sandeep N
     
    SandeepNayathil, Apr 27, 2021
    #3
  4. meloneum Win User

    HidD_SetOutputReport failing with error code 31 and 121

    BIOS error codes

    So I have motherboard with installed small LED screen, which presents BIOS error codes.

    Where can I find a list of those errors. And I don't mean beep codes, but the "number" codes.

    Ex after installing sound card, the motherboard startup fails with the code 15.

    Example picture of code is here.
     
    meloneum, Apr 27, 2021
    #4
Thema:

HidD_SetOutputReport failing with error code 31 and 121

Loading...
  1. HidD_SetOutputReport failing with error code 31 and 121 - Similar Threads - HidD_SetOutputReport failing error

  2. Windows driver code 31 error

    in Windows 10 Gaming
    Windows driver code 31 error: I have a problem with the drivers. Windows does not see my phone i can not transfer files. I tried what i can. I tried deleting and uninstalling drivers, updating etc. I don not want to reset my pc so please help me. thanks...
  3. Windows driver code 31 error

    in Windows 10 Software and Apps
    Windows driver code 31 error: I have a problem with the drivers. Windows does not see my phone i can not transfer files. I tried what i can. I tried deleting and uninstalling drivers, updating etc. I don not want to reset my pc so please help me. thanks...
  4. Code 31

    in Windows 10 Drivers and Hardware
    Code 31: My gpu in device manager has a triangle and it is saying code 31 object name not found. I have tried uninstall and install both device and the newest drivers from Nvidia site still can't fix it. ***Moved from Gaming and Xbox /Hardware and network/Other***...
  5. code 31

    in Windows 10 Gaming
    code 31: Game is very laggy and when I check on device manager under graphics I saw graphics device driver error code 31. Need help to fix this one.Thanks, https://answers.microsoft.com/en-us/windows/forum/all/code-31/93f92415-34d1-47de-80f6-3e93daae59b1
  6. code 31

    in Windows 10 Software and Apps
    code 31: Game is very laggy and when I check on device manager under graphics I saw graphics device driver error code 31. Need help to fix this one.Thanks, https://answers.microsoft.com/en-us/windows/forum/all/code-31/93f92415-34d1-47de-80f6-3e93daae59b1
  7. code 31

    in Windows 10 Drivers and Hardware
    code 31: Game is very laggy and when I check on device manager under graphics I saw graphics device driver error code 31. Need help to fix this one.Thanks, https://answers.microsoft.com/en-us/windows/forum/all/code-31/93f92415-34d1-47de-80f6-3e93daae59b1
  8. Wireless bluetooth error code 31

    in Windows 10 Drivers and Hardware
    Wireless bluetooth error code 31: I was recently looking around my pc, when I noticed in the device manager, That my intel wireless bluetooth wasn't working and showing error code 31. This has been this way ever since I 've had my pc, but I never really bothered to look into it until now. I've already tried...
  9. Im having error code 31.

    in Windows 10 Drivers and Hardware
    Im having error code 31.: Microsoft Basic Display Adapter: This device is not working properly because Windows cannot load the drivers required for this device. Code 31 The driver trying to start is not the same as the driver for the POSTed display adapter. Please help....
  10. code 31 error

    in Windows 10 Drivers and Hardware
    code 31 error: Hi, I am on windows 10. After a sudden shut down, when I restarted computer I had lost permission for everything. I worked out how to get permission back for Microsoft word and pictures. The problem is I cannot connect a device such as my camera, ipad and touchpad. It comes...