darrylb123 / usbrelay

Control usb relay - based on hidapi
GNU General Public License v2.0
315 stars 98 forks source link

Integration USBRelay8 in to linuxcnc #116

Open pklepko opened 2 months ago

pklepko commented 2 months ago

hello, I am trying integrate USBRelay9 in to linuxcnc. There is HAL module named "hal_input" that is able integrate any HID device that is listed in /proc/bus/input/devices. When I plug this USBRelay8 in computer it is shown as /dev/hidraw2 , I can use utility "usbrelay" . Device is also not listed in /dev/input But device is not listed /proc/bus/input/devices. To be listed there it should be declared as HID device driving LEDs like CapsLock, or Numlock leds in classic keyboard.

Is it possible create specific udev rule for this device that there will be loaded udev handler "leds" ?