Hi!
I'm trying to get a persistent serial port mapping for my three usb-serial devices, following the turorial- I can make it work nicely for 2 out of my 3 devices. But I guess I need some help with the third - it is not quite identical, so should I treat it differently? Its my focuser (home made, Arduino)
When I connect it, dmesg says:
[ 237.028014] usb 1-1.3.1: new full-speed USB device number 10 using dwc_otg
[ 237.151224] usb 1-1.3.1: New USB device found, idVendor=1a86, idProduct=7523
[ 237.151249] usb 1-1.3.1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 237.151262] usb 1-1.3.1: Product: USB2.0-Serial
[ 237.152383] ch341 1-1.3.1:1.0: ch341-uart converter detected
And:
pi@raspberry:/lib/udev/rules.s$ udevadm info -a -n /dev/ttyUSB2 | grep '{serial}' | head -n1
ATTRS{serial}=="3f980000.usb"
I have the following in my /lib/udev/rules.s/99-observatory.rules file:
# Focuser
dmesg still says:
[ 472.580964] usb 1-1.3.1: new full-speed USB device number 19 using dwc_otg
[ 472.704110] usb 1-1.3.1: New USB device found, idVendor=1a86, idProduct=7523
[ 472.704131] usb 1-1.3.1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 472.704144] usb 1-1.3.1: Product: USB2.0-Serial
[ 472.705138] ch341 1-1.3.1:1.0: ch341-uart converter detected
[ 472.709122] usb 1-1.3.1: ch341-uart converter now attached to ttyUSB2
so 2 of my 3 devices have dedicated nodes:
pi@raspberry:~$ ls -l /dev | grep USB
lrwxrwxrwx 1 root root 7 sep 5 14:07 mount -> ttyUSB0
lrwxrwxrwx 1 root root 7 sep 5 14:07 shutter -> ttyUSB1
crw-rw-rw- 1 root dialout 188, 0 sep 5 14:07 ttyUSB0
crw-rw-rw- 1 root dialout 188, 1 sep 5 14:07 ttyUSB1
crw-rw---- 1 root dialout 188, 2 sep 5 14:07 ttyUSB2
what is the rule filename? I presume you restarted your Pi after the change to the rules file? Your other devices have different VID:PIDs? All of this in one file or multiple files?
/me quietly fixes the typo in the tutorial! Glad it's working for you now. I actually plan to make this udev rules mess a thing of the past, I will _try_ to make an addon to INDI Web Manager where you get to assign the names via the web GUI. Don't hold your breath though, this might take a while.