I was following this tutorial to setup access to Flir Boson camera serial port from userspace:
The camera installs as /dev/ttyACM0
and in the tutorial there's a .rules
file you're supposed to download and copy to: /etc/udev/rules.d/
. And then reboot.
This is the content of the file:
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="09cb", OWNER="nvidia", MODE="0777", GROUP="nvidia"
But it does not work for me. Even after reboot, my application still requires sudo
to be able to communicate with the camera.
Now it seems to me, that the tutorial assumes you have a certain username, in this case possibly "nvidia". So I also tried to change OWNER to my actual username, but that does not help either.
A part of the problem may be that I don't really understand what OWNER and GROUP fields are exactly for, I am only guessing. Of course I have been trying to Google that, but for some reason, I am obviously not able to phrase the query correctly.
This is nVidia Jetson Xavier NX with JetpackSDK 4.6, which is in fact Ubuntu 18.04.
Thanks!
udev
rules in place, reboot and connect the camera. What doesls -al /dev/ttyACM0
show? This will help us ID the groups to add your user to in order to access the device. – Thomas Ward Dec 01 '21 at 20:37crw-rw---- 1 root dialout 166, 0 pro 2 17:58 /dev/ttyACM0
Also I am not sure what exactly do you mean by the question if I am able to access the camera. The camera feed works well, but that's not what ttyACM0 is for. It is a serial port that can be used to send some control comands, like changing color modes, brightness, autofocus interval and things like that. – Aros Dec 02 '21 at 17:02