Installation
This release is published to npm and can be installed via below command.
$ npm install --save @orosound/hid
Pre-requisite
Linux
Udev rules
To be able to communicate with Orosound devices with non-root privileges it is required to create a udev rule. You need admin rights to write inside /etc/udev/rules.d
directory. The udev rule file can be downloaded with the following command :
$ curl -sL -o /etc/udev/rules.d/81-hidraw-permissions.rules https://orosound.link/assets/udev/81-hidraw-permissions.rules
$ curl -sL -o /etc/udev/rules.d/99-usb-permissions.rules https://orosound.link/assets/udev/99-usb-permissions.rules
You can the reload udev rules :
$ udevadm control --reload-rules && udevadm trigger
Alternatively, you can simply reboot linux.
$ reboot