hidapi icon indicating copy to clipboard operation
hidapi copied to clipboard

Can't Get Input / Output Feature Report Buffer Size in Win10

Open viclin920 opened this issue 8 years ago • 2 comments

Hi all,

I'm working on Win10 64bit with USB2.0 HID (Consumer Devices). I got a problem when I set output feature report buffer size over than 8,191 bytes in our device, the report from caps.OutputReportByteLength always shows 0 The API I use is as below shows:

HID_API_EXPORT hid_device * HID_API_CALL hid_open_path(const char *path) { ... nt_res = HidP_GetCaps(pp_data, &caps); if (nt_res != HIDP_STATUS_SUCCESS) { register_error(dev, "HidP_GetCaps"); goto err_pp_data; } dev->output_report_length = caps.OutputReportByteLength; dev->input_report_length = caps.InputReportByteLength; ... }

Does anyone know what the problem is? Thanks.

viclin920 avatar Oct 27 '17 10:10 viclin920

See if you have winusb as the driver instead of hidusb. You can use zadig to check.

ulao avatar Jan 31 '18 15:01 ulao

Hi ulao, Thank you for your reply. I checked the hidusb driver is used by default.

any suggestion?

viclin920 avatar Sep 05 '18 07:09 viclin920