HidD_SetOutputReport failing with error code 31 and 121

HidD_SetOutputReport API failing because of timeout after some restarts(*5*)(*10*)Hello,

(*10*)I’m lately operating on migrating a application with Win 7 embedded OS to Win 10. In our gadget, there’s a custom designed keyboard and we’re writing/updating it the use of Home windows API “HidD_SetOutputReport”,(*7*)again and again all through operations in our gadget. After migration to Win 10, now and again after I restarted the gadget(OS restart) this API were given failed because of timeout which inflicting a 5 2nd lengthen.

(*10*)The mistake code i get is 121. It says ERROR_SEM_TIMEOUT(The semaphore timeout duration has expired.)

(*10*)Information about our OS: Home windows 10 Endeavor 2021 LTSB – OS Construct: 14393.2189, Model 1607

(*10*)Please percentage any inputs?

(*10*)I’ve shared the similar question beneath additionally however but to search out the foundation reason behind this factor.

(*10*)HidD_SetOutputReport API failing with some lengthen

(*10*)Thank you & Regards

(*10*)Sandeep N