Fixed ttyUSB*
From Waveshare Wiki
- 1. Use lsusb to check whether the current USB device can be recognized. I want to bind the USB module to prevent the device USB port from changing after the system restarts, causing the dial-up script to report an error.
- 2. Enter ls /dev | grep ttyUSB to view the number of USB devices mounted in the current system. Use the dmesg | grep ttyUSB command to view the specific hardware devices corresponding to the current USB devices. You can see that USB0-USB3 are bound to the cellular network card.
- 3. I want to bind the cellular network card module to USB2 so enter udevadm info /dev/ttyUSB2
You can get the detailed information of the current device, focus on the ID_PATH of the red line below
- 4.Enter sudo nano /etc/udev/rules.d/99-com.rules to edit the 99-com.rules file. Add the following content at the end of the file. ID_PATH fills in the ID at the horizontal line in the above picture. SYMLINK is the USB3 you want to add. The renamed field, the example screenshot is as follows:
SUBSYSTEM=="tty", ENV{ID_PATH}=="platform-3f980000.usb-usb-0:1.5:1.3", SYMLINK+="aaaaaa"
- 5. Save and restart the system
- 6. After restarting, enter udevadm info /dev/aaaaaa. You can see that USB2 has been bound to the aaaaaa name!