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 and building libusb in Linux #486

Open Bobrov88 opened 10 months ago

Bobrov88 commented 10 months ago

Hi! I have 2 questions:

  1. I try to send bytes to scanner connecting as HID-device. But hid_write() dosn't send bytes to it, giving a number as a result of successful sending. I say about Linux. In Windows I send bytes with windows.h functions and have success, that means scanner to be OK. Why?
  2. Maybe, hidapi.h I use can't send bytes to scanner, and I must use libusb. Then I ask: how to connect lbusb correctly, what name to be included into #include

Thanx!

Youw commented 10 months ago

Please see #468 and consider closing this issue.