lsusb 和 sys 文件系统列出的 USB 设备不匹配

lsusb 和 sys 文件系统列出的 USB 设备不匹配

我在 Ubuntu 18.04 LTS PC 上工作。我需要找出与特定 USB 设备 ID 匹配的 USB 设备名称。当我运行lsusb命令来列出 USB 设备接口时,以下是我得到的输出:

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 以及相应的设备名称?

相关内容