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_write failed #471

Closed arilink closed 2 years ago

arilink commented 2 years ago

I used Hidapi to create a project for two-way communication with HID, now I can read the messages sent from the device to the computer normally and can use Bughound to send data to the device, but when I try to call hid_write to send a message to the device it returns the value Always -1 Failed to send my device's report ID is 1. I also set the first bit of the data packet to 1, but I still can't send data successfully. Why?

Youw commented 2 years ago

Please see #468 and close this ticket, if you may.

arilink commented 2 years ago

This question is sloved , thankyou