저는 Ubuntu 18.04 LTS PC에서 작업하고 있습니다. 특정 USB 장치 ID와 일치하는 USB 장치 이름을 찾아야 합니다. USB 장치 인터페이스를 나열하는 명령을 실행하면 lsusb
다음과 같은 결과가 나타납니다.
Bus 002 Device 004: ID 03f0:231d Hewlett-Packard Broadcom 2070 Bluetooth Combo
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 04f2:1452 Chicony Electronics Co., Ltd
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 138a:003c Validity Sensors, Inc. VFS471 Fingerprint Reader
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
파일 시스템에서 해당 장치 이름을 찾기 위해 다음 명령을 실행했습니다.
/etc/udev/rules.d$ ls -l /sys/bus/usb/devices/
그리고 얻다:
lrwxrwxrwx 1 root root 0 May 20 20:24 1-0:1.0 -> ../../../devices/pci0000:00/0000:00:1a.0/usb1/1-0:1.0
lrwxrwxrwx 1 root root 0 May 20 20:24 1-1 -> ../../../devices/pci0000:00/0000:00:1a.0/usb1/1-1
lrwxrwxrwx 1 root root 0 May 20 20:24 1-1.1 -> ../../../devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1
lrwxrwxrwx 1 root root 0 May 20 20:24 1-1:1.0 -> ../../../devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1:1.0
lrwxrwxrwx 1 root root 0 May 20 20:24 1-1.1:1.0 -> ../../../devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0
lrwxrwxrwx 1 root root 0 May 20 20:24 2-0:1.0 -> ../../../devices/pci0000:00/0000:00:1d.0/usb2/2-0:1.0
lrwxrwxrwx 1 root root 0 May 20 20:24 2-1 -> ../../../devices/pci0000:00/0000:00:1d.0/usb2/2-1
lrwxrwxrwx 1 root root 0 May 20 20:24 2-1:1.0 -> ../../../devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1:1.0
lrwxrwxrwx 1 root root 0 May 20 20:24 2-1.6 -> ../../../devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6
lrwxrwxrwx 1 root root 0 May 20 20:24 2-1.6:1.0 -> ../../../devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.0
lrwxrwxrwx 1 root root 0 May 20 20:24 2-1.6:1.1 -> ../../../devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.1
lrwxrwxrwx 1 root root 0 May 20 20:24 2-1.6:1.2 -> ../../../devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.2
lrwxrwxrwx 1 root root 0 May 20 20:24 2-1.6:1.3 -> ../../../devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.3
lrwxrwxrwx 1 root root 0 May 20 20:24 3-0:1.0 -> ../../../devices/pci0000:00/0000:00:1c.7/0000:26:00.0/usb3/3-0:1.0
lrwxrwxrwx 1 root root 0 May 20 20:24 3-1 -> ../../../devices/pci0000:00/0000:00:1c.7/0000:26:00.0/usb3/3-1
lrwxrwxrwx 1 root root 0 May 20 20:24 3-1:1.0 -> ../../../devices/pci0000:00/0000:00:1c.7/0000:26:00.0/usb3/3-1/3-1:1.0
lrwxrwxrwx 1 root root 0 May 20 20:24 3-1:1.1 -> ../../../devices/pci0000:00/0000:00:1c.7/0000:26:00.0/usb3/3-1/3-1:1.1
lrwxrwxrwx 1 root root 0 May 20 20:24 3-1:1.2 -> ../../../devices/pci0000:00/0000:00:1c.7/0000:26:00.0/usb3/3-1/3-1:1.2
lrwxrwxrwx 1 root root 0 May 20 20:24 4-0:1.0 -> ../../../devices/pci0000:00/0000:00:1c.7/0000:26:00.0/usb4/4-0:1.0
lrwxrwxrwx 1 root root 0 May 20 20:24 usb1 -> ../../../devices/pci0000:00/0000:00:1a.0/usb1
lrwxrwxrwx 1 root root 0 May 20 20:24 usb2 -> ../../../devices/pci0000:00/0000:00:1d.0/usb2
lrwxrwxrwx 1 root root 0 May 20 20:24 usb3 -> ../../../devices/pci0000:00/0000:00:1c.7/0000:26:00.0/usb3
lrwxrwxrwx 1 root root 0 May 20 20:24 usb4 -> ../../../devices/pci0000:00/0000:00:1c.7/0000:26:00.0/usb4
보시다시피,위 두 명령의 출력에 나열된 장치 ID 간에 일치하는 항목이 없습니다.. 여기에 부정확한 내용이 있나요? 일치하는 장치 ID와 해당 장치 이름을 어떻게 찾나요?