Handling multiple boards with the same ID

Hi guys,

I have wired an Arduino Nano with an adxl345 for measuring resonances, now I have the problem, that the Nano uses the same ID as my creality CR10 board. This apparently means that whichever device was connected last is getting mounted at /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0.

With my very limited Linux skills im stuck at this point. Is there a way to assign both MCUs different permament mount points?

Use /dev/serial/by-path instead of by-id. Note that this links the board to the physical USB port, so if you move the board to a different port it will have a different path. As long as you always use the same port for each board the path won’t change.

Thanks for the suggestion.

I have a lot of printers and other USB devices on this computer, so I would like to find a solution that doesn’t rely on using the same port for each device.

Especially with many USB devices and potential collisions, UDEV rules are the way to go.
See Update FAQ.md by mirokymac · Pull Request #4975 · Klipper3d/klipper · GitHub for a short discussion on this topic.