1. 查看usb设备编号
1a86:7523
1a86: usb_device_descriptor.idVendor
7523: usb_device_descriptor.idProduct
lsusb
udevadm info --name=/dev/ttyACMx --attribute-walk
2. 创建文件,在位置: /etc/udev/rules.d,文件名称: 51-usb.rules
SUBSYSTEMS=="usb", ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="0053", GROUP="users", MODE="0666"
3. 查看绑定状态:
ls -l /dev |grep ttyUSB