udev rules
usblcom.rules 文件内容 SUBSYSTEMS=="usb",KERNELS=="1-1.2", ATTRS{idProduct}=="6001", ATTRS{idVendor}=="0403", MODE:="0777", SYMLINK+="usbl_china" $sudo cp usblcom.rules /etc/udev/rules.d $lsusb pi@raspberrypi:~ $ ls -l /sys/class/tty/ttyU* lrwxrwxrwx 1 root root 0 Aug 18 19:16 /sys/class/tty/ttyUSB0 -> ../../devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/ttyUSB0/tty/ttyUSB0 lrwxrwxrwx 1 root root 0 Aug 18 19:16 /sys/class/tty/ttyUSB1 -> ../../devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0/ttyUSB1/tty/ttyUSB1 $ udevadm info -q path -a /dev/ttyUSB1 来源: CSDN 作者: powerfit 链接: