need longer timeout with send_feature_report() for libusb under Windows #670
Labels
No labels
3rdparty
Android
API
Author does not respond
bsd
bug
build system/CI
ci-virtual-device
CMake
Contributions Welcome
Core
dependencies
device-specific
documentation
don't_merge
duplicate
enhancement
Example
Haiku
hidraw
hotplug
info required
invalid
libusb
macOS
Misc
Not an issue
question
Release
Test
Test GUI
Windows
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-libusb/hidapi#670
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi, could please someone give a hint: is it possible to increase timeout for send_feature_report() on Windows? I have the device, which takes a more than 5 sec sometimes for response. Thanks.
As of this moment that is not possible.
Theoretically it could have been be possible, but it would require 2 things:
hid_send_feature_reportto switch fromHidD_SetFeatureto usingDeviceIoControldirectly;That is astucally weird from system design POV. If that is your device and you know for a fact that by setting a specific feature your device needs to perform a long-going operation, that is advisable not to perform that action directly during the
send_feature_reporthandling, but rather immediately acknowledge that the operation has started, and send the result later in some async matter (e.g. using the interrupt input report).I any case I don't see much point keeping this ticket opened for now, unless someone volunteers to design the API and implement the change.
Hi @Youw , sorry for my late answer. And thanks for the reply.