I know this question has been asked many times but I cannot make it work. I have a FTDI serial-usb converter. I have generated 10-fhss-usb.rules
in /etc/udev/rules.d/
:
SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ATTRS{serial}=="FTTA5DMA", SYMLINK+="fhss", GROUP="dialout", MODE="0777", RUN+="echo USB CONNECTED!"
I have also added my user to dialout
group:
sudo usermod -a -G dialout $USER
and groups $USER
returns:
jvgomez : jvgomez adm dialout sudo plugdev lpadmin sambashare
(The plugdev group was created following another post) Now, when I connect the USB, running ls -al
I can see:
$ ls -al /dev/fhss
lrwxrwxrwx 1 root root 7 Jun 4 17:13 /dev/fhss -> ttyUSB0
$ ls -al /dev/ttyUSB0
crw-rw-r-- 1 root dialout 188, 0 Jun 4 17:13 /dev/ttyUSB0
The echo USB CONNECTED!
message is never displayed. And when I use screen /dev/fhss/
it immediately says [screen is terminating]
. To make it work, I sill have to run chmod
$ sudo chmod a+rwx /dev/fhss
And now:
$ ls -al /dev/ttyUSB0
crwxrwxrwx 1 root dialout 188, 0 Jun 4 17:13 /dev/ttyUSB0
1) What am I missing? I still have to run chmod which is what I am trying to avoid.
2) What is the difference between using SUBSYSTEM=="tty"
and SUBSYSTEM=="usb"
?
Any help is welcome!
EDIT: adding NAME="my_device" as proposed in Usb udev rule never worked for me didn't change anything.
NAME="my_device"
). I cannot tell what I did to make it work, I cannot remember, sorry!