If you're using several USB serial adapters on a linux machine, you may have found that their /dev/ names change after a reboot. This can be frustrating if each serial port is plugged into a specific device and you want to always access it using the same /dev/ name.
Fortunately, udev rules exist that allow you to symlink a serial device to a name, persistently. Udev rules are very powerful and support lots of tweaking, but for now I will cover the basics of assigning a USB serial device a static name.
First of all you will need to identify your USB serial adapters vendor id, and its product id. Fortunately the lsusb command makes this nice and easy.
First of all, run lsusb-
You should see a list of all your USB devices, each showing the VendorID:ProductID. Lookout for the USB-Serial adapter-
Then create a new udev rule file for your usb serial devices-
Add something like the following, ensuring your Vendor and Product ID's match those shown in lsusb. The SYMLINK section allows you to set the permanent name. I've chosen to call mine NextionDisplay-
Reboot your machine, and you should see your device's name in the /dev/ directory-
I hope that helps!