sudo nano /etc/udev/rules.d/99-com.rules
在文件末尾加入下面内容
KERNEL=="ttyUSB*",KERNELS=="1-1.2",MODE:="0777",SYMLINK+="device2"
KERNEL=="ttyUSB*",KERNELS=="1-1.3",MODE:="0777",SYMLINK+="device3"
KERNEL=="ttyUSB*",KERNELS=="1-1.1.2",MODE:="0777",SYMLINK+="device4"
KERNEL=="ttyUSB*",KERNELS=="1-1.1.3",MODE:="0777",SYMLINK+="device5"
sudo /etc/init.d/udev restart
sudo reboot
ls -l /dev |grep ttyUSB
设置之前:
设置之后: