Replies: 4 comments 2 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
|
how do you identify there is an error? hid_read returns < 0? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
read timeout and hid_read returns =0
… 在 2026年3月16日,06:14,Ihor Dutchak ***@***.***> 写道:
hid_read returns < 0
|
Beta Was this translation helpful? Give feedback.
1 reply
-
|
you remind me, i get the reason:the special zero length packet.Hidapi works well 在 2026年3月18日,01:38,Ihor Dutchak ***@***.***> 写道:
hid_read returns =0
Is not an error - that is an indication that there is no data.
fail even set timeout =2000
Do you mean you use hid_read_timeout specifying last parameter as 2000?
What version of HIDAPI?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
i self-defined a host-client protocol over usb hid, found the issue describled in title.
![Uploading cut.png…]()
if i insert a delay between write and read, it works well.
Is there any other method but delay that could boost the communication?
Beta Was this translation helpful? Give feedback.
All reactions