On Linux, if you have more than one USB TTY device, the USB port name (/dev/ttyUSBx
) changes every time one is plugged in, and there's no easy way to know the new name without going and looking through dmesg. It's trivial to set up a udev rule that creates a custom symlink so that my Arduino's FTDI can always be accessed through e.g., /dev/ttyArduino
, and this is the standard procedure for persistent access to USB devices.
However, I can't make the IDE accept anything other than the /dev/ttyUSBx
names. Even directly editing preferences.txt
is ignored.
Is there any way to instruct the IDE to use custom port names in order to access the Arduino through a symlink or other persistent name?