Static names for serial USB devices on Linux
Friday, September 10, 2021
Today’s BLOG entry is about a simple hack that can make your life easier when working with serial USB devices under Linux (Ubuntu/Debian). Every time a device is attached, an automatically generated device name is assigned to it by the OS (e.g. /dev/ttyUSB1). When you work a lot with embedded devices, using their serial USB devices for developing and testing, it could be a real pain to always change their names in a terminal program or some config files. Especially when using multiple devices concurrent, connecting and disconnecting them in different order, creates a device name lottery and very quickly you no longer know which device is connected to which device name.