Open janvda opened 5 years ago
I got this fixed by running node-red as root user.
I got same issues
I had the same problem, it was because the /dev/hidraw*
devices are not accessible by the user that is running Node-RED. You can run as root, but you can also change the permissions of the /dev/hidraw*
entries as follows:
Add the following to: /etc/udev/rules.d/51-my-device.rules
(of course modify to suit your own device)
KERNEL=="hidraw*", ATTRS{idVendor}=="1910", ATTRS{idProduct}=="1020", MODE="0666", GROUP="plugdev"
Now activate the settings (or reboot):
sudo udevadm control --reload-rules
# remove and re-insert USB device
# check permissions
ls -l /dev/hidraw*
I don't manage to receive events from a HIDdevice using the HIDdevice node. I am getting error
[HIDdevice:9440089.c9998f8] TypeError: Cannot read property 'on' of undefined
Here below you see what is logged in my node-red log file (FYI: i am running node-red in docker container using balena on a raspberry pi 3B)FYI: the
getHIDdevices
node seems to be working as it is returning the following:and based on this I have set the properties of my
HIDConfig
node as followsVID = 2362
PID = 9488
but when deploying my flow the following issues are seen:disconnected