1. lsusb 查看设备
2. udevadm info -a -n /dev/ttyUSB* (最后指定具体设备信息)
如:udevadm info -a -n /dev/ttyS0
3. ls -l /dev |grep ttyUSB
sudo vim /etc/udev/rules.d/com_port.rules
ACTION=="add",KERNELS=="1-1:1.0",SUBSYSTEMS=="usb",MODE:="0777",SYMLINK+="COM1"
ACTION=="add",KERNELS=="1-2:1.0",SUBSYSTEMS=="usb",MODE:="0777",SYMLINK+="COM2"
ACTION=="add",KERNELS=="1-3:1.0",SUBSYSTEMS=="usb",MODE:="0777",SYMLINK+="COM3"
ACTION=="add",KERNELS=="1-4:1.0",SUBSYSTEMS=="usb",MODE:="0777",SYMLINK+="COM4"
ACTION=="add",KERNELS=="1-5:1.0",SUBSYSTEMS=="usb",MODE:="0777",SYMLINK+="COM5"
ACTION=="add",KERNELS=="1-6:1.0",SUBSYSTEMS=="usb",MODE:="0777",SYMLINK+="COM6"
ACTION=="add",KERNELS=="1-7:1.0",SUBSYSTEMS=="usb",MODE:="0777",SYMLINK+="COM7"
ACTION=="add",KERNELS=="1-8:1.0",SUBSYSTEMS=="usb",MODE:="0777",SYMLINK+="COM8"
ACTION=="add",KERNELS=="1-9:1.0",SUBSYSTEMS=="usb",MODE:="0777",SYMLINK+="COM9"
ACTION=="add",KERNELS=="1-10:1.0",SUBSYSTEMS=="usb",MODE:="0777",SYMLINK+="COM10"
ACTION=="add",KERNELS=="1-4.1:1.0",SUBSYSTEMS=="usb",MODE:="0777",SYMLINK+="COM41"
ACTION=="add",KERNELS=="1-4.2:1.0",SUBSYSTEMS=="usb",MODE:="0777",SYMLINK+="COM42"
ACTION=="add",KERNELS=="1-4.3:1.0",SUBSYSTEMS=="usb",MODE:="0777",SYMLINK+="COM43"
ACTION=="add",KERNELS=="1-4.4:1.0",SUBSYSTEMS=="usb",MODE:="0777",SYMLINK+="COM44"
ACTION=="add",KERNELS=="ttyS1",SUBSYSTEMS=="tty",MODE:="0777",SYMLINK+="ttyS1"