Skip to content

need longer timeout with send_feature_report() for libusb under Linux #493

Open
@elfmimi

Description

Some devices may require much longer timeout when submitting hid_send_feature_report() .

for such devices hid_send_feature_report() just notifies failure with return value of -1 .

I checked that internal error code libusb is reporting is LIBUSB_ERROR_TIMEOUT ( -7 ) .

Changing value here, from 1000 to, say, 5000 does make difference.

1000/*timeout millis*/);

You curious what the device is?
It is USB-HID control capable LCD monitor from EIZO . ex. FlexScan EV2670
Most requests to the monitor, for example a request to change speaker volume, work fine with short timeout .
But one specific request that is to enable or disable picture-by-picture mode only works with long timeout .

So it is better to have a measure to somehow specify custom value for timeout.

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestlibusbRelated to libusb backend

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions