{"id":205961,"date":"2020-11-29T09:19:35","date_gmt":"2020-11-29T01:19:35","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=205961"},"modified":"2020-11-24T16:19:42","modified_gmt":"2020-11-24T08:19:42","slug":"lsusb-display-usb-info","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/lsusb-display-usb-info.html","title":{"rendered":"lsusb\u547d\u4ee4-\u5728\u7cfb\u7edf\u4e2d\u663e\u793a\u6709\u5173USB\u8bbe\u5907\u4fe1\u606f"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u5728Linux\u4e2d\u6211\u4eec\u4f7f\u7528lsusb\u547d\u4ee4\u5217\u51faUSB\u8bbe\u5907\u53ca\u5176\u5c5e\u6027\uff0clsusb\u7528\u4e8e\u663e\u793a\u7cfb\u7edf\u4e2d\u7684USB\u603b\u7ebf\u53ca\u5176\u8fde\u63a5\u7684\u8bbe\u5907\u4fe1\u606f\u3002\u4e0b\u9762\u4ecb\u7ecd\u5982\u4f55\u5b89\u88c5\u5e76\u4f7f\u7528\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n
\u7cfb\u7edf\u73af\u5883<\/strong><\/div>\n

Centos7<\/p>\n

\u5b89\u88c5usbutils<\/strong><\/div>\n

\u9ed8\u8ba4Centos7\u7cfb\u7edf\u4e2d\u6ca1\u6709lsusb\u547d\u4ee4\uff0c\u6211\u4eec\u9700\u8981\u5b89\u88c5usbutils\u5b89\u88c5\u5305\uff0c\u624d\u80fd\u4f7f\u7528lsusb\uff1a<\/p>\n

\r\n[root@localhost ~]# yum -y install usbutils\r\n<\/pre>\n
\u5217\u51fausb\u8bbe\u5907\u4fe1\u606f<\/strong><\/div>\n

lsusb\u7528\u4e8e\u663e\u793a\u6709\u5173\u7cfb\u7edf\u4e2d\u7684USB\u603b\u7ebf\u53ca\u5176\u8fde\u63a5\u7684\u8bbe\u5907\u7684\u4fe1\u606f\uff0c\u4e0b\u9762\u8fd0\u884clsusb\uff1a<\/p>\n

\r\n[root@localhost ~]# lsusb\r\nBus 001 Device 010: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller\r\nBus 001 Device 055: ID 0951:1665 Kingston Technology Digital DataTraveler SE9 64GB\r\nBus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub\r\nBus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub\r\nBus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse\r\nBus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub\r\n<\/pre>\n

\"\"
\nlsusb\u5c06\u663e\u793a\u7cfb\u7edf\u5185\u90e8\u8fde\u63a5\u7684\u9a71\u52a8\u7a0b\u5e8f\u548c\u8bbe\u5907\u3002<\/p>\n

\u4e0a\u9762\u8f93\u51fa\u5185\u5bb9\u89e3\u91ca\u5982\u4e0b\uff1a
\nBus 001 Device 055: ID 0951:1665 Kingston Technology Digital DataTraveler SE9 64GB<\/strong><\/p>\n

    \n
  • Bus 001<\/code>: \u8868\u793a\u7b2c\u4e00\u4e2ausb\u63a7\u5236\u5668\uff0c\u53ef\u4ee5\u4f7f\u7528lspci|grep USB\u67e5\u770b\u4e3b\u673a\u6709\u51e0\u4e2ausb\u63a7\u5236\u5668<\/li>\n
  • Device 055<\/code>: \u8868\u793a\u7cfb\u7edf\u5206\u914d\u7ed9\u8fd9\u4e2a\u91d1\u58eb\u987f\u5b58\u50a8\u8bbe\u5907\u7684\u8bbe\u5907\u53f7<\/li>\n
  • ID<\/code>: \u8868\u793ausb\u8bbe\u5907\u7684ID<\/li>\n
  • Kingston Technology Digital DataTraveler SE9 64GB<\/code>: \u8868\u793a\u5176\u5236\u9020\u5546\u540d\u79f0\u548c\u8bbe\u5907\u540d\u79f0<\/li>\n<\/ul>\n

    \u6211\u4eec\u8fd8\u770b\u5230\uff0c\u7cfb\u7edf\u4e2d\u8fd8\u9644\u6709USB 2.0 root hub \u9a71\u52a8\u7a0b\u5e8f\u548cUSB 1.1 root hub \u9a71\u52a8\u7a0b\u5e8f\u3002<\/p>\n

    \u4f7f\u7528\u6811\u72b6\u7c7b\u578b\u663e\u793ausb\u4fe1\u606f<\/strong><\/span><\/div>\n

    \u4f7f\u7528-t<\/code>\u9009\u9879\uff0c\u4ee5\u6811\u72b6\u7ed3\u6784\u663e\u793ausb\u4fe1\u606f\uff1a<\/p>\n

    \r\n[root@localhost ~]# lsusb -t\r\n\/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd\/4p, 5000M\r\n\/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd\/4p, 480M\r\n    |__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 480M\r\n\/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd\/2p, 12M\r\n    |__ Port 1: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 12M\r\n    |__ Port 2: Dev 3, If 0, Class=Hub, Driver=hub\/7p, 12M\r\n\/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci\/6p, 480M\r\n<\/pre>\n

    \"\"
    \n\u6570\u5b5712M\u3001480M\u30015000M\u8868\u793aUSB\u7684\u4f20\u8f93\u901f\u5ea6\u3002<\/p>\n

      \n
    • 12M\u8868\u793a12Mbit \/ s\uff0c\u8fd9\u662fUSB 1.0 \/ 1.1\u7c7b\u578b<\/li>\n
    • 480M\u8868\u793a480Mbit \/ s\uff0c\u8fd9\u662fUSB 2.0\u7c7b\u578b<\/li>\n
    • 5000M\u8868\u793a5Gbit \/ s\uff0c\u8fd9\u662fUSB3.0\u7c7b\u578b<\/li>\n<\/ul>\n

      Linux\u4ece\/usr\/share\/hwdata\/usb.ids'\u8bc6\u522bUSB\u8bbe\u5907\u7684\u8be6\u7ec6\u4fe1\u606f\u3002lsusb\u5217\u51fa\u7684vendor\u548cdevice name\u90fd\u662f\u4ece\u8fd9\u4e2a\u6587\u4ef6\u91cc\u9762\u8bc6\u522b\u51fa\u6765\u7684\u3002<\/p>\n

      \u5982\u4f55\u5217\u51faUSB\u8be6\u7ec6\u4fe1\u606f<\/strong><\/div>\n

      \u4f7f\u7528-v<\/code>\u53c2\u6570\u67e5\u770busb\u8be6\u7ec6\u4fe1\u606f\uff1a<\/p>\n

      \r\n[root@localhost ~]# lsusb -v | less\r\n\r\nBus 001 Device 056: ID 0951:1665 Kingston Technology Digital DataTraveler SE9 64GB\r\nDevice Descriptor:\r\n  bLength                18\r\n  bDescriptorType         1\r\n  bcdUSB               2.00\r\n  bDeviceClass            0 (Defined at Interface level)\r\n  bDeviceSubClass         0 \r\n  bDeviceProtocol         0 \r\n  bMaxPacketSize0        64\r\n  idVendor           0x0951 Kingston Technology\r\n  idProduct          0x1665 Digital DataTraveler SE9 64GB\r\n  bcdDevice            1.00\r\n  iManufacturer           1 Kingston\r\n  iProduct                2 DataTraveler 2.0\r\n  iSerial                 3 08606E6B6612FD50771C2A8B\r\n  bNumConfigurations      1\r\n  Configuration Descriptor:\r\n    bLength                 9\r\n    bDescriptorType         2\r\n    wTotalLength           32\r\n    bNumInterfaces          1\r\n    bConfigurationValue     1\r\n    iConfiguration          0 \r\n    bmAttributes         0x80\r\n      (Bus Powered)\r\n    MaxPower              100mA\r\n    Interface Descriptor:\r\n      bLength                 9\r\n      bLength                 9\r\n      bDescriptorType         4\r\n      bInterfaceNumber        0\r\n      bAlternateSetting       0\r\n      bNumEndpoints           2\r\n      bInterfaceClass         8 Mass Storage\r\n      bInterfaceSubClass      6 SCSI\r\n      bInterfaceProtocol     80 Bulk-Only\r\n      iInterface              0 \r\n      Endpoint Descriptor:\r\n        bLength                 7\r\n        bDescriptorType         5\r\n        bEndpointAddress     0x81  EP 1 IN\r\n        bmAttributes            2\r\n          Transfer Type            Bulk\r\n          Synch Type               None\r\n          Usage Type               Data\r\n        wMaxPacketSize     0x0200  1x 512 bytes\r\n        bInterval             255\r\n      Endpoint Descriptor:\r\n        bLength                 7\r\n        bDescriptorType         5\r\n        bEndpointAddress     0x02  EP 2 OUT\r\n        bmAttributes            2\r\n          Transfer Type            Bulk\r\n          Synch Type               None\r\n          Usage Type               Data\r\n        wMaxPacketSize     0x0200  1x 512 bytes\r\n        bInterval             255\r\nDevice Qualifier (for other device speed):\r\n  bLength                10\r\n  bDescriptorType         6\r\n  bcdUSB               2.00\r\n  bDeviceClass            0 (Defined at Interface level)\r\n  bDeviceSubClass         0 \r\n  bDeviceProtocol         0 \r\n  bMaxPacketSize0        64\r\n  bNumConfigurations      1\r\nDevice Status:     0x0000\r\n  (Bus Powered)\r\n<\/pre>\n
      \u67e5\u627e\u8fde\u63a5\u4e86\u591a\u5c11\u4e2aUSB\u8bbe\u5907<\/strong><\/div>\n

      \u67e5\u627e\u94fe\u63a5\u7684\u8bbe\u5907\u6570\u91cf\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e0b\u9762\u547d\u4ee4\u67e5\u627e\uff1a<\/p>\n

      \r\n[root@localhost ~]# find \/dev\/bus\r\n\/dev\/bus\r\n\/dev\/bus\/usb\r\n\/dev\/bus\/usb\/002\r\n\/dev\/bus\/usb\/002\/003\r\n\/dev\/bus\/usb\/002\/002\r\n\/dev\/bus\/usb\/002\/001\r\n\/dev\/bus\/usb\/001\r\n\/dev\/bus\/usb\/001\/056\r\n\/dev\/bus\/usb\/001\/010\r\n\/dev\/bus\/usb\/001\/001\r\n<\/pre>\n

      \"\"
      \n\u7ed3\u5408\u4f7f\u7528lsusb\u547d\u4ee4\u548c-D<\/code>\u53c2\u6570\uff0c\u53ef\u4ee5\u8f93\u51fa\u7279\u5b9a\u8bbe\u5907\u7684\u8be6\u7ec6\u4fe1\u606f\u3002\u4e0b\u9762\u5b9e\u4f8b\u67e5\u770b\u91d1\u58eb\u987f\u5b58\u50a8\u8bbe\u5907\u7684\u8be6\u7ec6\u4fe1\u606f\uff1a
      \n\"\"<\/p>\n

      \r\n[root@localhost ~]# lsusb -D \/dev\/bus\/usb\/001\/056 \r\n<\/pre>\n

      \"\"<\/p>\n

      \u67e5\u627e\u5927\u5bb9\u91cf\u5b58\u50a8\u8bbe\u5907<\/strong><\/div>\n

      lsusb -v<\/code>\u4e3a\u6211\u4eec\u63d0\u4f9b\u4e86\u975e\u5e38\u8be6\u7ec6\u7684\u4fe1\u606f\uff0c\u6211\u4eec\u53ef\u4ee5\u914d\u5408\u4f7f\u7528grep\u547d\u4ee4\u67e5\u627e\u6307\u5b9a\u7684\u4fe1\u606f\uff0c\u4e0b\u9762\u8fc7\u6ee4\u51faidVendor<\/code>\u548cMass Storage<\/code>\uff0c\u6765\u83b7\u53d6\u5927\u5bb9\u91cf\u5b58\u50a8\u8bbe\u5907\uff1a<\/p>\n

      \r\n[root@localhost ~]# lsusb -v |grep -Ei '(idVendor|Mass\\ Storage)'\r\n  idVendor           0x0bda Realtek Semiconductor Corp.\r\n  idVendor           0x0951 Kingston Technology\r\n      bInterfaceClass         8 Mass Storage\r\n  idVendor           0x1d6b Linux Foundation\r\n  idVendor           0x0e0f VMware, Inc.\r\n  idVendor           0x0e0f VMware, Inc.\r\n  idVendor           0x1d6b Linux Foundation\r\n<\/pre>\n

      \"\"
      \n\u53ef\u4ee5\u770b\u5230\u53ea\u6709idVendor\u662fKingston Technology\u7684\u8bbe\u5907\u624d\u662f\u5927\u5bb9\u91cf\u5b58\u50a8\u8bbe\u5907\u3002<\/p>\n

      \u603b\u7ed3<\/strong><\/div>\n

      \u5728Linux\u4e2d\u6211\u4eec\u4f7f\u7528lsusb\u547d\u4ee4\u5217\u51faUSB\u8bbe\u5907\u53ca\u5176\u5c5e\u6027\uff0clsusb\u7528\u4e8e\u663e\u793a\u7cfb\u7edf\u4e2d\u7684USB\u603b\u7ebf\u53ca\u5176\u8fde\u63a5\u7684\u8bbe\u5907\u4fe1\u606f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

      Centos7 \u9ed8\u8ba4Centos7\u7cfb\u7edf\u4e2d\u6ca1\u6709lsusb\u547d\u4ee4\uff0c\u6211\u4eec\u9700\u8981\u5b89\u88c5usbutils\u5b89\u88c5\u5305\uff0c\u624d\u80fd\u4f7f\u7528lsu […]<\/p>\n","protected":false},"author":309,"featured_media":205963,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-205961","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/205961","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/309"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=205961"}],"version-history":[{"count":1,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/205961\/revisions"}],"predecessor-version":[{"id":205970,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/205961\/revisions\/205970"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/205963"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=205961"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=205961"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=205961"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}