1.lsusb查看系统的USB设备

$ lsusb
Bus Device : ID : Kingston Technology
Bus Device : ID 1d6b: Linux Foundation 2.0 root hub
Bus Device : ID 0e0f: VMware, Inc.
Bus Device : ID 0e0f: VMware, Inc. Virtual USB Hub
Bus Device : ID 0e0f: VMware, Inc. Virtual Mouse
Bus Device : ID 1d6b: Linux Foundation 1.1 root hub

2.lsusb -t查看系统中的USB拓扑,类似cat /sys/kernel/debug/usb/devices

$ lsusb -t
/: Bus .Port : Dev , Class=root_hub, Driver=uhci_hcd/2p, 12M
|__ Port : Dev , If , Class=Human Interface Device, Driver=usbhid, 12M
|__ Port : Dev , If , Class=Hub, Driver=hub/7p, 12M
|__ Port : Dev , If , Class=Wireless, Driver=btusb, 12M
|__ Port : Dev , If , Class=Wireless, Driver=btusb, 12M
/: Bus .Port : Dev , Class=root_hub, Driver=ehci-pci/6p, 480M
|__ Port : Dev , If , Class=Mass Storage, Driver=usb-storage, 480M

3.lsusb -s <busid:| dev_num>查看对应USB总线上或对应设备的信息,加上-v可以查看详信息

$ lsusb -s :
Bus Device : ID 1d6b: Linux Foundation 2.0 root hub
$ lsusb -s
Bus Device : ID : Kingston Technology

4.lsusb -d只显示指定VID PID设备的详细信息

$ lsusb -d :
Bus Device : ID : Kingston Technology

5.lsusb -v查看系统中USB设备的详细信息

Bus  Device : ID : Kingston Technology
Device Descriptor:
bLength
bDescriptorType
bcdUSB 2.00
bDeviceClass (Defined at Interface level)
bDeviceSubClass
bDeviceProtocol
bMaxPacketSize0
idVendor 0x0951 Kingston Technology
idProduct 0x1666
bcdDevice 0.01
iManufacturer
iProduct
iSerial
bNumConfigurations
Configuration Descriptor:
bLength
bDescriptorType
wTotalLength
bNumInterfaces
bConfigurationValue
iConfiguration
bmAttributes 0x80
(Bus Powered)
MaxPower 74mA
Interface Descriptor:
bLength
bDescriptorType
bInterfaceNumber
bAlternateSetting
bNumEndpoints
bInterfaceClass Mass Storage
bInterfaceSubClass SCSI
bInterfaceProtocol Bulk-Only
iInterface
Endpoint Descriptor:
bLength
bDescriptorType
bEndpointAddress 0x81 EP IN
bmAttributes
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x bytes
bInterval
bMaxBurst
Endpoint Descriptor:
bLength
bDescriptorType
bEndpointAddress 0x02 EP OUT
bmAttributes
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x bytes
bInterval
bMaxBurst Bus Device : ID 1d6b: Linux Foundation 2.0 root hub
Device Descriptor:
bLength
bDescriptorType
bcdUSB 2.00
bDeviceClass Hub
bDeviceSubClass Unused
bDeviceProtocol Full speed (or root) hub
bMaxPacketSize0
idVendor 0x1d6b Linux Foundation
idProduct 0x0002 2.0 root hub
bcdDevice 4.02
iManufacturer
iProduct
iSerial
bNumConfigurations
Configuration Descriptor:
bLength
bDescriptorType
wTotalLength
bNumInterfaces
bConfigurationValue
iConfiguration
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength
bDescriptorType
bInterfaceNumber
bAlternateSetting
bNumEndpoints
bInterfaceClass Hub
bInterfaceSubClass Unused
bInterfaceProtocol Full speed (or root) hub
iInterface
Endpoint Descriptor:
bLength
bDescriptorType
bEndpointAddress 0x81 EP IN
bmAttributes
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0004 1x bytes
bInterval Bus Device : ID 0e0f: VMware, Inc.
Device Descriptor:
bLength
bDescriptorType
bcdUSB 2.00
bDeviceClass Wireless
bDeviceSubClass Radio Frequency
bDeviceProtocol Bluetooth
bMaxPacketSize0
idVendor 0x0e0f VMware, Inc.
idProduct 0x0008
bcdDevice 1.00
iManufacturer
iProduct
iSerial
bNumConfigurations
Configuration Descriptor:
bLength
bDescriptorType
wTotalLength
bNumInterfaces
bConfigurationValue
iConfiguration
bmAttributes 0xc0
Self Powered
MaxPower 0mA
Interface Descriptor:
bLength
bDescriptorType
bInterfaceNumber
bAlternateSetting
bNumEndpoints
bInterfaceClass Wireless
bInterfaceSubClass Radio Frequency
bInterfaceProtocol Bluetooth
iInterface
Endpoint Descriptor:
bLength
bDescriptorType
bEndpointAddress 0x81 EP IN
bmAttributes
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0010 1x bytes
bInterval
Endpoint Descriptor:
bLength
bDescriptorType
bEndpointAddress 0x02 EP OUT
bmAttributes
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x bytes
bInterval
Endpoint Descriptor:
bLength
bDescriptorType
bEndpointAddress 0x82 EP IN
bmAttributes
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x bytes
bInterval
Interface Descriptor:
bLength
bDescriptorType
bInterfaceNumber
bAlternateSetting
bNumEndpoints
bInterfaceClass Wireless
bInterfaceSubClass Radio Frequency
bInterfaceProtocol Bluetooth
iInterface
Endpoint Descriptor:
bLength
bDescriptorType
bEndpointAddress 0x03 EP OUT
bmAttributes
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0000 1x bytes
bInterval
Endpoint Descriptor:
bLength
bDescriptorType
bEndpointAddress 0x83 EP IN
bmAttributes
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0000 1x bytes
bInterval
Interface Descriptor:
bLength
bDescriptorType
bInterfaceNumber
bAlternateSetting
bNumEndpoints
bInterfaceClass Wireless
bInterfaceSubClass Radio Frequency
bInterfaceProtocol Bluetooth
iInterface
Endpoint Descriptor:
bLength
bDescriptorType
bEndpointAddress 0x03 EP OUT
bmAttributes
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0009 1x bytes
bInterval
Endpoint Descriptor:
bLength
bDescriptorType
bEndpointAddress 0x83 EP IN
bmAttributes
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0009 1x bytes
bInterval
Interface Descriptor:
bLength
bDescriptorType
bInterfaceNumber
bAlternateSetting
bNumEndpoints
bInterfaceClass Wireless
bInterfaceSubClass Radio Frequency
bInterfaceProtocol Bluetooth
iInterface
Endpoint Descriptor:
bLength
bDescriptorType
bEndpointAddress 0x03 EP OUT
bmAttributes
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0011 1x bytes
bInterval
Endpoint Descriptor:
bLength
bDescriptorType
bEndpointAddress 0x83 EP IN
bmAttributes
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0011 1x bytes
bInterval
Interface Descriptor:
bLength
bDescriptorType
bInterfaceNumber
bAlternateSetting
bNumEndpoints
bInterfaceClass Wireless
bInterfaceSubClass Radio Frequency
bInterfaceProtocol Bluetooth
iInterface
Endpoint Descriptor:
bLength
bDescriptorType
bEndpointAddress 0x03 EP OUT
bmAttributes
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0019 1x bytes
bInterval
Endpoint Descriptor:
bLength
bDescriptorType
bEndpointAddress 0x83 EP IN
bmAttributes
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0019 1x bytes
bInterval
Interface Descriptor:
bLength
bDescriptorType
bInterfaceNumber
bAlternateSetting
bNumEndpoints
bInterfaceClass Wireless
bInterfaceSubClass Radio Frequency
bInterfaceProtocol Bluetooth
iInterface
Endpoint Descriptor:
bLength
bDescriptorType
bEndpointAddress 0x03 EP OUT
bmAttributes
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0021 1x bytes
bInterval
Endpoint Descriptor:
bLength
bDescriptorType
bEndpointAddress 0x83 EP IN
bmAttributes
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0021 1x bytes
bInterval
Interface Descriptor:
bLength
bDescriptorType
bInterfaceNumber
bAlternateSetting
bNumEndpoints
bInterfaceClass Wireless
bInterfaceSubClass Radio Frequency
bInterfaceProtocol Bluetooth
iInterface
Endpoint Descriptor:
bLength
bDescriptorType
bEndpointAddress 0x03 EP OUT
bmAttributes
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0031 1x bytes
bInterval
Endpoint Descriptor:
bLength
bDescriptorType
bEndpointAddress 0x83 EP IN
bmAttributes
Transfer Type Isochronous
Synch Type None
Usage Type Data
wMaxPacketSize 0x0031 1x bytes
bInterval Bus Device : ID 0e0f: VMware, Inc. Virtual USB Hub
Device Descriptor:
bLength
bDescriptorType
bcdUSB 1.10
bDeviceClass Hub
bDeviceSubClass Unused
bDeviceProtocol Full speed (or root) hub
bMaxPacketSize0
idVendor 0x0e0f VMware, Inc.
idProduct 0x0002 Virtual USB Hub
bcdDevice 1.00
iManufacturer
iProduct
iSerial
bNumConfigurations
Configuration Descriptor:
bLength
bDescriptorType
wTotalLength
bNumInterfaces
bConfigurationValue
iConfiguration
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength
bDescriptorType
bInterfaceNumber
bAlternateSetting
bNumEndpoints
bInterfaceClass Hub
bInterfaceSubClass Unused
bInterfaceProtocol Full speed (or root) hub
iInterface
Endpoint Descriptor:
bLength
bDescriptorType
bEndpointAddress 0x81 EP IN
bmAttributes
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0001 1x bytes
bInterval Bus Device : ID 0e0f: VMware, Inc. Virtual Mouse
Device Descriptor:
bLength
bDescriptorType
bcdUSB 1.10
bDeviceClass (Defined at Interface level)
bDeviceSubClass
bDeviceProtocol
bMaxPacketSize0
idVendor 0x0e0f VMware, Inc.
idProduct 0x0003 Virtual Mouse
bcdDevice 1.03
iManufacturer
iProduct
iSerial
bNumConfigurations
Configuration Descriptor:
bLength
bDescriptorType
wTotalLength
bNumInterfaces
bConfigurationValue
iConfiguration
bmAttributes 0xc0
Self Powered
MaxPower 0mA
Interface Descriptor:
bLength
bDescriptorType
bInterfaceNumber
bAlternateSetting
bNumEndpoints
bInterfaceClass Human Interface Device
bInterfaceSubClass Boot Interface Subclass
bInterfaceProtocol Mouse
iInterface
HID Device Descriptor:
bLength
bDescriptorType
bcdHID 1.10
bCountryCode Not supported
bNumDescriptors
bDescriptorType Report
wDescriptorLength
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength
bDescriptorType
bEndpointAddress 0x81 EP IN
bmAttributes
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x bytes
bInterval Bus Device : ID 1d6b: Linux Foundation 1.1 root hub
Device Descriptor:
bLength
bDescriptorType
bcdUSB 1.10
bDeviceClass Hub
bDeviceSubClass Unused
bDeviceProtocol Full speed (or root) hub
bMaxPacketSize0
idVendor 0x1d6b Linux Foundation
idProduct 0x0001 1.1 root hub
bcdDevice 4.02
iManufacturer
iProduct
iSerial
bNumConfigurations
Configuration Descriptor:
bLength
bDescriptorType
wTotalLength
bNumInterfaces
bConfigurationValue
iConfiguration
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength
bDescriptorType
bInterfaceNumber
bAlternateSetting
bNumEndpoints
bInterfaceClass Hub
bInterfaceSubClass Unused
bInterfaceProtocol Full speed (or root) hub
iInterface
Endpoint Descriptor:
bLength
bDescriptorType
bEndpointAddress 0x81 EP IN
bmAttributes
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0002 1x bytes
bInterval

6.此外/var/lib/usbutils/usb.ids还保存了很多设备商的VID信息

$ cat /var/lib/usbutils/usb.ids | grep
Kingston Technology

7.还有一个工具usbview,它用来解析/sys/kernel/debug/usb/devices并以图形的方式显示出来,但是效果并不怎么好。

8.一个类似的工具lspci,可以用于查看系统中pci设备的信息。

参考:

http://www.cnblogs.com/Daniel-G/archive/2013/04/22/3036730.html

https://baike.so.com/doc/5065413-5292797.html

最新文章

  1. H3 BPM让天下没有难用的流程之技术体系
  2. T-SQL 查询XML
  3. 报错:emulator: WARNING: ./android/metrics/metrics_reporter_toolbar.cpp:167: Can&#39;t upload usage metrics: Error
  4. 异步select
  5. nodejs学习之实现简易路由
  6. c#知识总结2
  7. Bad Hair Day_单调栈
  8. Dubbo服务调用的动态代理和负载均衡
  9. When Colon Scripting is comming(JavaScript语法扩充)
  10. Log4J1升级Log4J2
  11. RTX 无法刷新组织架构的处理方法总结
  12. shell的字符串和数字的转化(数字自动做字符串处理,变量名做字符串输出用单引号)
  13. 将二维list某列组成新的list
  14. pac4j探索(一)之buji-pac4j shiro整合Cas实现单点登录
  15. Timer定时执行
  16. [软件研究]对AMH面板的研究
  17. 一道dp[不太好写]
  18. 硬盘读取不了--&gt;&gt;完美解决
  19. 【VC版】如何获取其他进程中ListView控件中的内容
  20. Revit API取得系统族普通族几何信息的方法

热门文章

  1. 最完整的mac安装caffe
  2. Java 从服务器下载文件到本地(页面、后台、配置都有)
  3. Java:将数据库数据导出到Excel (一眼就看会)
  4. python 爬虫之 selenium API
  5. 【转载】非对称加密过程详解(基于RSA非对称加密算法实现)
  6. 关于iOS设备的那些事
  7. mysql存储过程中使用游标
  8. URL组成成分及各部分作用简介及urllib.parse / uri
  9. DevExpress ASP.NET v18.2新功能详解(四)
  10. 强震记录和GPS记录,地震波记录的区别