Open ntn888 opened 11 months ago
atribua perfeições ao grupo de dispositivos, essa permissão é uma falta de permissão a seu usuário, no caso adicione seu usuário ao grupo tty
@ntn888 you need to add yourself to the group your distro uses for serial ports. Example under debian (lines starting with $ indicate commands you must enter into a shell or terminal program):
run sudo dmesg -w
and then attach device:
$ sudo dmesg -w
[ 3803.735577] usb 5-2.3.3.4: new full-speed USB device number 21 using xhci_hcd
[ 3803.904699] usb 5-2.3.3.4: New USB device found, idVendor=16c0, idProduct=27dd, bcdDevice= 0.10
[ 3803.904704] usb 5-2.3.3.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3803.904706] usb 5-2.3.3.4: Product: vitaly.codes/ula
[ 3803.904707] usb 5-2.3.3.4: Manufacturer: Ferris & Co
[ 3803.904708] usb 5-2.3.3.4: SerialNumber: _ula_
[ 3803.950739] cdc_acm 5-2.3.3.4:1.0: ttyACM1: USB ACM device
device name is "ttyACM1"
$ ls /dev/ttyACM1 -la
crw-rw---- 1 root dialout 166, 0 Jul 8 18:02 /dev/ttyACM1
the group owning the serial port is "dialout"
$ echo $USER
nine
my username is nine, so add myself to the dialout group:
$ sudo usermod -a -G dialout nine
and then log out and back in again so that your permissions are correct for all applications
I'm on Arch. I can use the device if I
sudo
. I also tried installing udev rules as follows (provided by sigrok package). However to no effect. Is there anything I need to include here?