hidapi icon indicating copy to clipboard operation
hidapi copied to clipboard

Cannot list all devices (Ubuntu 15.04, ASUS)

Open LuisDa opened this issue 10 years ago • 5 comments

Hello.

I have downloaded and installed all hidapi libraries, my computer is an Asus laptop with Ubuntu 15.04. When I run the hidtest-hidraw and hidtest-libusb examples (also with root user), only the mouse is listed. I connect an Arduino UNO board, a pendrive, and the program does not recognize them at all.

How can I solve this problem? I would like to be able to develop C or C++ programs that can communicate with my Arduino or with other USB devices.

Thanks.

LuisDa avatar Nov 05 '15 23:11 LuisDa

Permissions?

Also, many devices are blacklisted from hidraw.

signal11 avatar Nov 06 '15 02:11 signal11

BTW, arduino and USB thumb drives are not HID devices and won't show up in hidapi.

signal11 avatar Nov 07 '15 15:11 signal11

Hi!

Thanks for your reply :-) .

As you mentioned, I have discovered that Arduino boards are not HID devices, neither external storage disks and pendrives. I have discovered it later (I am kind newbie using HID API).

Regards,

Luisda.

LuisDa avatar Nov 08 '15 00:11 LuisDa

Arduino boards can act as HID device. See RawHID and (on the dev tree) the feature report keyboard example. https://github.com/NicoHood/HID

I am currently developing an ambilight via a keyboard feature request. Also see this: https://github.com/arduino/Arduino/pull/4105

NicoHood avatar Nov 08 '15 00:11 NicoHood

Are POS printers HID devices also?

Sharofiddin avatar Feb 22 '19 06:02 Sharofiddin