signal11 / hidapi

A Simple library for communicating with USB and Bluetooth HID devices on Linux, Mac, and Windows.
http://www.signal11.us/oss/hidapi/
Other
2.46k stars 901 forks source link

hid_read hang in linux, but hid_write and hid_read work fine in window10 #459

Closed Rockyhoon closed 4 years ago

Rockyhoon commented 4 years ago

I've tried both libusb/hid.c and linux/hid.c, when I run hidtest.cpp, it hangs on at hid_read(), if I hid_set_nonblocking(handle, 0). And I've set device permission by the method provided in /udev directory. The whole system works fine in window10. Now I am desperate. Any suggestion is appreciated!

Youw commented 4 years ago

NOTE: #373

Suggest to close in favor of https://github.com/libusb/hidapi/issues/170

Rockyhoon commented 4 years ago

OK, I've already post on that repo