Rename USB to 4 printers with the same idvendor and idproduct

I have 4 printers connected via USB on a raspberry pi 4 being 2 Ender3V2, FLSUN Q5 and QQS. All with Marlin. I already found out which USB ports they are connected to but I can't renew them.
The idvendor and idproduct is the same and idserial is 0 for the 4 printers, at least I didn't find a different number in searches.

My /etc/udev/rules.d/99-usb-serial.rules file have:
SUBSYSTEM=="tty", ATTRS{devpath}=="1.2:1.0", SYMLINK+="ENDER3-N"
SUBSYSTEM=="tty", ATTRS{devpath}=="1.1.2:1.0", SYMLINK+="ENDER3"
SUBSYSTEM=="tty", ATTRS{devpath}=="1.3:1.0", SYMLINK+="QQS"
SUBSYSTEM=="tty", ATTRS{devpath}=="1.1.3:1.0", SYMLINK+="Q5"

Another informations:
root@octopi:/home/pi# ls -l /dev/ttyUSB*
crw-rw---- 1 root dialout 188, 0 May 5 02:46 /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 1 May 5 02:46 /dev/ttyUSB1
crw-rw---- 1 root dialout 188, 2 May 5 02:46 /dev/ttyUSB2
crw-rw---- 1 root dialout 188, 3 May 5 02:31 /dev/ttyUSB3

root@octopi:/home/pi# ls -la /dev/serial/by-path/
total 0
drwxr-xr-x 2 root root 120 May 5 02:47 .
drwxr-xr-x 4 root root 80 May 4 18:26 ..
lrwxrwxrwx 1 root root 13 May 4 19:07 platform-3f980000.usb-usb-0:1.1.2:1.0-port0 -> ../../ttyUSB1
lrwxrwxrwx 1 root root 13 May 5 00:45 platform-3f980000.usb-usb-0:1.1.3:1.0-port0 -> ../../ttyUSB0
lrwxrwxrwx 1 root root 13 May 5 02:47 platform-3f980000.usb-usb-0:1.2:1.0-port0 -> ../../ttyUSB3
lrwxrwxrwx 1 root root 13 May 5 00:45 platform-3f980000.usb-usb-0:1.3:1.0-port0 -> ../../ttyUSB2

dmseg
[ 2.967823] WARN::hcd_init_fiq:497: MPHI regs_base at b8810000
[ 2.972282] dwc_otg 3f980000.usb: DWC OTG Controller
[ 2.974600] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[ 2.976993] dwc_otg 3f980000.usb: irq 89, io mem 0x00000000
[ 2.979317] Init: Port Power? op_state=1
[ 2.981547] Init: Power Port (0)
[ 2.984070] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[ 2.988685] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.991149] usb usb1: Product: DWC OTG Controller
[ 2.993509] usb usb1: Manufacturer: Linux 5.10.103-v7+ dwc_otg_hcd
[ 2.995926] usb usb1: SerialNumber: 3f980000.usb
[ 2.999114] hub 1-0:1.0: USB hub found
[ 3.001563] hub 1-0:1.0: 1 port detected
[ 3.005209] dwc_otg: FIQ enabled
[ 3.005224] dwc_otg: NAK holdoff enabled
[ 3.005247] dwc_otg: FIQ split-transaction FSM enabled
[ 3.005342] Module dwc_common_port init
[ 3.005656] usbcore: registered new interface driver usb-storage
[ 3.008351] mousedev: PS/2 mouse device common for all mice
[ 3.011971] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[ 3.017229] sdhci: Secure Digital Host Controller Interface driver
[ 3.019768] sdhci: Copyright(c) Pierre Ossman
[ 3.022886] mmc-bcm2835 3f300000.mmcnr: could not get clk, deferring probe
[ 3.026171] sdhost-bcm2835 3f202000.mmc: could not get clk, deferring probe
[ 3.028981] sdhci-pltfm: SDHCI platform and OF driver helper
[ 3.033425] ledtrig-cpu: registered to indicate activity on CPUs
[ 3.036475] hid: raw HID events driver (C) Jiri Kosina
[ 3.039223] usbcore: registered new interface driver usbhid
[ 3.041829] usbhid: USB HID core driver
[ 3.049738] Initializing XFRM netlink socket
[ 3.052359] NET: Registered protocol family 17
[ 3.055012] Key type dns_resolver registered
[ 3.058040] Registering SWP/SWPB emulation handler
[ 3.060544] registered taskstats version 1
[ 3.062883] Loading compiled-in X.509 certificates
[ 3.066074] Key type ._fscrypt registered
[ 3.068403] Key type .fscrypt registered
[ 3.070721] Key type fscrypt-provisioning registered
[ 3.084513] uart-pl011 3f201000.serial: cts_event_workaround enabled
[ 3.087033] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 114, base_baud = 0) is a PL011 rev2
[ 3.094086] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[ 3.098337] mmc-bcm2835 3f300000.mmcnr: mmc_debug:0 mmc_debug2:0
[ 3.100811] mmc-bcm2835 3f300000.mmcnr: DMA channel allocated
[ 3.124831] Indeed it is in host mode hprt0 = 00021501
[ 3.151216] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[ 3.155224] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 3.159125] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 3.164242] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[ 3.187395] sdhost: log_buf @ (ptrval) (f4113000)
[ 3.239635] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[ 3.244866] of_cfs_init
[ 3.247087] of_cfs_init: OK
[ 3.265614] Waiting for root device PARTUUID=112b939d-02...
[ 3.284844] mmc1: new high speed SDIO card at address 0001
[ 3.334710] usb 1-1: new high-speed USB device number 2 using dwc_otg
[ 3.337077] Indeed it is in host mode hprt0 = 00001101
[ 3.342409] mmc0: host does not support reading read-only switch, assuming write-enable
[ 3.351398] mmc0: new high speed SDXC card at address aaaa
[ 3.354749] mmcblk0: mmc0:aaaa SB64G 59.5 GiB
[ 3.360662] mmcblk0: p1 p2
[ 3.402689] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 3.407242] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[ 3.419617] devtmpfs: mounted
[ 3.429481] Freeing unused kernel memory: 1024K
[ 3.445200] Run /sbin/init as init process
[ 3.447684] with arguments:
[ 3.447696] /sbin/init
[ 3.447706] with environment:
[ 3.447719] HOME=/
[ 3.447730] TERM=linux
[ 3.575091] usb 1-1: New USB device found, idVendor=0424, idProduct=2514, bcdDevice= b.b3
[ 3.580381] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 3.584044] hub 1-1:1.0: USB hub found
[ 3.586939] hub 1-1:1.0: 4 ports detected
[ 3.904750] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[ 4.035095] usb 1-1.1: New USB device found, idVendor=0424, idProduct=2514, bcdDevice= b.b3
[ 4.040730] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 4.044559] hub 1-1.1:1.0: USB hub found
[ 4.047597] hub 1-1.1:1.0: 3 ports detected
[ 4.051146] systemd[1]: System time before build time, advancing clock.
[ 4.144729] usb 1-1.2: new full-speed USB device number 4 using dwc_otg
[ 4.194816] NET: Registered protocol family 10
[ 4.199109] Segment Routing with IPv6
[ 4.277793] usb 1-1.2: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64
[ 4.283305] usb 1-1.2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 4.286222] usb 1-1.2: Product: USB Serial
[ 4.295259] systemd[1]: systemd 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
[ 4.305443] systemd[1]: Detected architecture arm.
[ 4.374735] usb 1-1.1.2: new full-speed USB device number 5 using dwc_otg
[ 4.384381] systemd[1]: Set hostname to .
[ 4.509273] usb 1-1.1.2: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64
[ 4.525232] usb 1-1.1.2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 4.531486] usb 1-1.1.2: Product: USB Serial
[ 4.604764] usb 1-1.3: new full-speed USB device number 6 using dwc_otg
[ 4.738543] usb 1-1.3: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.63
[ 4.744849] usb 1-1.3: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 4.748010] usb 1-1.3: Product: USB2.0-Serial
[ 4.834781] usb 1-1.1.3: new full-speed USB device number 7 using dwc_otg
[ 4.967931] usb 1-1.1.3: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64
[ 4.973981] usb 1-1.1.3: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 4.979986] usb 1-1.1.3: Product: USB Serial
[ 5.274744] usb 1-1.1.1: new high-speed USB device number 8 using dwc_otg
[ 5.405333] usb 1-1.1.1: New USB device found, idVendor=0424, idProduct=7800, bcdDevice= 3.00
[ 5.409659] random: systemd: uninitialized urandom read (16 bytes read)
[ 5.411337] usb 1-1.1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 5.431077] random: systemd: uninitialized urandom read (16 bytes read)
[ 5.435481] systemd[1]: Listening on fsck to fsckd communication Socket.
[ 5.442631] random: systemd: uninitialized urandom read (16 bytes read)
[ 5.446258] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[ 5.457305] systemd[1]: Listening on udev Control Socket.
[ 5.464290] systemd[1]: Reached target Swap.
[ 5.474403] systemd[1]: Created slice system-getty.slice.
[ 5.482175] systemd[1]: Listening on udev Kernel Socket.
[ 5.490209] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[ 5.686330] lan78xx 1-1.1.1:1.0 (unnamed net_device) (uninitialized): No External EEPROM. Setting MAC Speed
[ 5.730508] lan78xx 1-1.1.1:1.0 (unnamed net_device) (uninitialized): int urb period 64
[ 6.465373] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 6.606917] systemd-journald[114]: Received request to flush runtime journal from PID 1
[ 7.576079] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[ 7.578579] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[ 7.578605] [vc_sm_connected_init]: start
[ 7.579558] [vc_sm_connected_init]: installed successfully
[ 7.606793] mc: Linux media interface: v0.10
[ 7.681745] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[ 7.690586] bcm2835_audio bcm2835_audio: card created with 8 channels
[ 7.730721] videodev: Linux video capture interface: v2.00
[ 7.778056] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[ 7.778119] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[ 7.780765] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[ 7.820573] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned.
[ 7.824516] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[ 7.830187] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[ 7.833529] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13
[ 7.834162] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14
[ 7.835354] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15
[ 7.836520] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16
[ 7.836557] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[ 7.836604] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[ 7.836626] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[ 7.836648] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[ 7.836940] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp
[ 7.849378] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[ 7.849434] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[ 7.968081] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 8.098692] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 8.125204] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid
[ 8.129529] usbcore: registered new interface driver usbserial_generic
[ 8.129614] usbserial: USB Serial support registered for generic
[ 8.162305] usbcore: registered new interface driver ch341
[ 8.162407] usbserial: USB Serial support registered for ch341-uart
[ 8.162523] ch341 1-1.2:1.0: ch341-uart converter detected
[ 8.172264] usb 1-1.2: ch341-uart converter now attached to ttyUSB0
[ 8.173456] ch341 1-1.1.2:1.0: ch341-uart converter detected
[ 8.178452] usb 1-1.1.2: ch341-uart converter now attached to ttyUSB1
[ 8.179196] ch341 1-1.3:1.0: ch341-uart converter detected
[ 8.181461] usb 1-1.3: ch341-uart converter now attached to ttyUSB2
[ 8.181846] ch341 1-1.1.3:1.0: ch341-uart converter detected
[ 8.184066] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[ 8.184087] usb 1-1.1.3: ch341-uart converter now attached to ttyUSB3
[ 8.184128] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[ 8.201987] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[ 8.202067] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[ 8.221564] brcmfmac: F1 signature read @0x18000000=0x15264345
[ 8.222476] bcm2835-codec bcm2835-codec: Device registered as /dev/video18
[ 8.222524] bcm2835-codec bcm2835-codec: Loaded V4L2 image_fx
[ 8.242075] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ 8.243895] usbcore: registered new interface driver brcmfmac
[ 8.569664] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ 8.577573] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Nov 1 2021 00:37:25 version 7.45.241 (1a2f2fa CY) FWID 01-703fd60
[ 10.553493] random: crng init done
[ 10.553523] random: 7 urandom warning(s) missed due to ratelimiting
[ 10.612785] uart-pl011 3f201000.serial: no DMA platform data
[ 10.691934] 8021q: 802.1Q VLAN Support v1.8
[ 11.044792] Adding 102396k swap on /var/swap. Priority:-2 extents:22 across:149172k SSFS
[ 11.160792] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
[ 11.501682] 8021q: adding VLAN 0 to HW filter on device eth0
[ 15.601093] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 16.681894] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 17.611895] ICMPv6: process `dhcpcd' is using deprecated sysctl (syscall) net.ipv6.neigh.eth0.retrans_time - use net.ipv6.neigh.eth0.retrans_time_ms instead
[ 17.686882] Bluetooth: Core ver 2.22
[ 17.687033] NET: Registered protocol family 31
[ 17.687047] Bluetooth: HCI device and connection manager initialized
[ 17.687082] Bluetooth: HCI socket layer initialized
[ 17.687104] Bluetooth: L2CAP socket layer initialized
[ 17.687142] Bluetooth: SCO socket layer initialized
[ 17.702780] Bluetooth: HCI UART driver ver 2.3
[ 17.702799] Bluetooth: HCI UART protocol H4 registered
[ 17.702931] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 17.703779] Bluetooth: HCI UART protocol Broadcom registered
[ 18.015009] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 18.015021] Bluetooth: BNEP filters: protocol multicast
[ 18.015037] Bluetooth: BNEP socket layer initialized
[ 459.056216] ch341-uart ttyUSB3: usb_serial_generic_read_bulk_callback - urb stopped: -32
[ 459.056297] ch341-uart ttyUSB3: usb_serial_generic_read_bulk_callback - urb stopped: -32
[ 459.180054] usb 1-1.1.3: USB disconnect, device number 7
[ 459.180378] usb 1-1.1.3: failed to send control message: -19
[ 459.180874] ch341-uart ttyUSB3: ch341-uart converter now disconnected from ttyUSB3
[ 459.180938] ch341 1-1.1.3:1.0: device disconnected
[ 472.053461] usb 1-1.1.3: new full-speed USB device number 9 using dwc_otg
[ 472.196527] usb 1-1.1.3: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64
[ 472.196543] usb 1-1.1.3: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 472.196550] usb 1-1.1.3: Product: USB Serial
[ 472.198848] ch341 1-1.1.3:1.0: ch341-uart converter detected
[ 472.201472] usb 1-1.1.3: ch341-uart converter now attached to ttyUSB3
[ 533.166091] usb 1-1.1.2: USB disconnect, device number 5
[ 533.166925] ch341-uart ttyUSB1: ch341-uart converter now disconnected from ttyUSB1
[ 533.167028] ch341 1-1.1.2:1.0: device disconnected
[ 1665.751893] usb 1-1.1.2: new full-speed USB device number 10 using dwc_otg
[ 1665.884902] usb 1-1.1.2: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64
[ 1665.884915] usb 1-1.1.2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 1665.884922] usb 1-1.1.2: Product: USB Serial
[ 1665.885703] ch341 1-1.1.2:1.0: ch341-uart converter detected
[ 1665.887780] usb 1-1.1.2: ch341-uart converter now attached to ttyUSB1
[ 1849.776009] usb 1-1.1.2: USB disconnect, device number 10
[ 1849.776547] ch341-uart ttyUSB1: ch341-uart converter now disconnected from ttyUSB1
[ 1849.776627] ch341 1-1.1.2:1.0: device disconnected
[ 1851.612581] usb 1-1.1.2: new full-speed USB device number 11 using dwc_otg
[ 1851.745958] usb 1-1.1.2: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64
[ 1851.745998] usb 1-1.1.2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 1851.746012] usb 1-1.1.2: Product: USB Serial
[ 1851.747327] ch341 1-1.1.2:1.0: ch341-uart converter detected
[ 1851.749651] usb 1-1.1.2: ch341-uart converter now attached to ttyUSB1
[ 1925.553990] usb 1-1.1.2: USB disconnect, device number 11
[ 1925.554532] ch341-uart ttyUSB1: ch341-uart converter now disconnected from ttyUSB1
[ 1925.554588] ch341 1-1.1.2:1.0: device disconnected
[ 1928.672849] usb 1-1.1.2: new full-speed USB device number 12 using dwc_otg
[ 1928.806060] usb 1-1.1.2: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64
[ 1928.806086] usb 1-1.1.2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 1928.806100] usb 1-1.1.2: Product: USB Serial
[ 1928.807410] ch341 1-1.1.2:1.0: ch341-uart converter detected
[ 1928.812049] usb 1-1.1.2: ch341-uart converter now attached to ttyUSB1
[ 2357.684186] usb 1-1.1.2: USB disconnect, device number 12
[ 2357.685835] ch341-uart ttyUSB1: ch341-uart converter now disconnected from ttyUSB1
[ 2357.685950] ch341 1-1.1.2:1.0: device disconnected
[ 2362.586505] usb 1-1.1.2: new full-speed USB device number 13 using dwc_otg
[ 2362.719696] usb 1-1.1.2: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64
[ 2362.719717] usb 1-1.1.2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 2362.719764] usb 1-1.1.2: Product: USB Serial
[ 2362.720927] ch341 1-1.1.2:1.0: ch341-uart converter detected
[ 2362.723556] usb 1-1.1.2: ch341-uart converter now attached to ttyUSB1
[ 2402.230035] usb 1-1.1.2: USB disconnect, device number 13
[ 2402.230625] ch341-uart ttyUSB1: ch341-uart converter now disconnected from ttyUSB1
[ 2402.230681] ch341 1-1.1.2:1.0: device disconnected
[ 2423.777041] usb 1-1.1.2: new full-speed USB device number 14 using dwc_otg
[ 2423.910318] usb 1-1.1.2: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64
[ 2423.910340] usb 1-1.1.2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 2423.910368] usb 1-1.1.2: Product: USB Serial
[ 2423.914300] ch341 1-1.1.2:1.0: ch341-uart converter detected
[ 2423.917693] usb 1-1.1.2: ch341-uart converter now attached to ttyUSB1

this might help. you need to set your udev rules to be based on which port it's plugged into.

1 Like

View the topic of "Create some udev rules for individual printer device names" in following link:

http://thomas-messmer.com/index.php/14-free-knowledge/howtos/79-setting-up-octoprint-for-multiple-printers

Even same idVendor and idProduct, but the website still add into udev rules, you can try to add them into rule.

SUBSYSTEM=="tty", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="7523", ATTRS{devpath}=="1.2:1.0", SYMLINK+="ENDER3-N"
SUBSYSTEM=="tty", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="7523", ATTRS{devpath}=="1.1.2:1.0", SYMLINK+="ENDER3"
SUBSYSTEM=="tty", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="7523", ATTRS{devpath}=="1.3:1.0", SYMLINK+="QQS"
SUBSYSTEM=="tty", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="7523", ATTRS{devpath}=="1.1.3:1.0", SYMLINK+="Q5"

Absolutely, ensure the "devpath" is correct because it's for identify each device.

Morever, only 2 devices are same bcdDevice, so you can use ATTRS(bcdDevice) to identify other 2 printers

After done, you should find out the symbolic link in /dev/tty which you specified in udev rule

Lastly, Octoprint will not get the symbolic link for connection, you need to manual input this "port" into Settings->Serial Connection->Connection->Additional serial ports.
eg. /dev/ENDER3

Hope this help.

2 Likes

This wouldn't be necessary I don't think if the symlinks go to ttyUSB0, ttyUSB1, etc.

FYI, as part of the octoprint_deploy script I have an additional tool for automating the creation of udev rules: octoprint_deploy/udev_rules.sh at ad7628acd5048bac3f9ccf67b5fac27e95822d80 · paukstelis/octoprint_deploy · GitHub

Perfect!!
Problem solved!

SUBSYSTEM=="tty", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="7523", ATTRS{devpath}=="1.1.3", SYMLINK+="ttyQ5"
SUBSYSTEM=="tty", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="7523", ATTRS{devpath}=="1.3", SYMLINK+="ttyQQS"
SUBSYSTEM=="tty", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="7523", ATTRS{devpath}=="1.1.2", SYMLINK+="ttyENDER3"
SUBSYSTEM=="tty", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="7523", ATTRS{devpath}=="1.2", SYMLINK+="ttyENDER3N"

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.