Linux hints
In Linux the DeviceAPI looks for HID devices through the hidraw driver.
When attached to a machine, udev typically creates device nodes such as /dev/hidraw*.
The user running the DeviceAPI needs access permissions to these device nodes.
Otherwise communication fails.
One way to do that is to add a udev rules such as
to gives read and write permissions to all users.
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0666"
To make the rule only apply to devices with the vendor ID 0x22c9, useKERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0666",
ATTRS{idVendor}==
"22c9"
Udev rules are to be put into /etc/udev/rules.d/. See man udev(7) for more info.
See also: USB-HID with Linux