I have modified the udev rules file to look like this:
SUBSYSTEM=="tty", ATTRS{idVendor}=="0658", ATTRS{idProduct}=="0200", SYMLINK+="USBzwave", OWNER="zvika", GROUP="zvika", MODE="0777"
Now I get this:
$ ll /dev/ttyACM0
crwxrwxrwx 1 zvika zvika 166, 0 Nov 7 19:56 /dev/ttyACM0
But still not working.
I’ve also tried these:
(before changing permission of ttyACM0):
$ cat /dev/ttyACM0
cat: /dev/ttyACM0: Permission denied
That demonstrates that user zvika doesn’t have permission to read from ttyACM0 (BTW - it’s not saying device doesn't exist, or something similar, like seen in the log file)
And after changing permissions of ttyACM0:
$ cat /dev/ttyACM0
^C
(it behaved just like when root was catting it)
To summarize
When running OH as root, everything works fine.
When trying to cat /dev/ttyACM0 - it’s working (after fixing udev rules).
But when running OH as user - it fails.
What’s next?
How can I debug it?
@chris, maybe you can help?
Thanks