OctoPrint/OctoPrint

[Request] Allow selection of serial port by path od ID

Opened this issue · 1 comments

Is your feature request related to a problem? Please describe.

When I have more than one printer, the order the serial ports show up in depends on which printer is turned on first / happens to boot faster.

Describe the solution you'd like

Also list the content of /dev/serial/by-id and /dev/serial/by-path in the serial devices pop-up menu.

Describe alternatives you've considered

udev rules can change the kernel name, or add a symlink. However, (a) setting up an udev rule requires specialized knowledge, (b) /dev/prusa-xl isn't matched by the serial-devices regexp and requiring an alias to be named /dev/ttyACM-Prusa-XL is a non-obvious additional source of errors.

Additional context

# ls -lrt /dev/serial/by-id/
lrwxrwxrwx 1 root root 13 21. Mär 18:28 usb-Prusa_Research__prusa3d.com__Original_Prusa_XL_10381-0942441633902770-if00 -> ../../ttyACM0
lrwxrwxrwx 1 root root 13 21. Mär 18:28 usb-Prusa_Research__prusa3d.com__Original_Prusa_MK4_10589-3742441633501542-if00 -> ../../ttyACM1
# 

just to point out, if you create udev rules for a symlink like /dev/prusa-xl that custom serial port can be added to OctoPrint's custom serial ports option and then it will be seen/detected.

image