Chinaunix首页 | 论坛 | 博客
  • 博客访问: 796500
  • 博文数量: 172
  • 博客积分: 3836
  • 博客等级: 中校
  • 技术积分: 1988
  • 用 户 组: 普通用户
  • 注册时间: 2011-02-10 14:59
文章分类

全部博文(172)

文章存档

2014年(2)

2013年(1)

2012年(28)

2011年(141)

分类: LINUX

2011-09-13 09:26:47

lsusb输出内容:
root@ubunut# lsusb
Bus 008 Device 003: ID 413c:2003 Dell Computer Corp. Keyboard
Bus 008 Device 002: ID 192f:0416 Avago Technologies, Pte.
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
第一个字段:Bus 007 USB主控器号,007号USB主控器上只接了一个设备,008则接了3个。通过命令 lspci | grep -i usb 可以知道总共有7个USB主控器:
root@ubuntu# lspci | grep USB
00:1a.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06)
00:1a.1 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06)
00:1a.2 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06)
00:1a.7 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
00:1d.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06)
00:1d.1 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06)
00:1d.2 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06)
00:1d.7 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)

第二个字段:Device 001 总线上的设备序列号,在一个总线上这个序列号是唯一的。 第三个字段:ID 1d6b:0001 供应商和产品ID,“1d6b”代表“Linux Foundation”,“0001”代表“1.1 root hub”。查询链接: 第四个字段:Linux Foundation 1.1 root hub 供应商和产品ID的字符串表示形式

获得图一Chicony网络摄像头的设备类和ID:

$ lsusb -s 001:002 -v | grep bDeviceClass
bDeviceClass          239 Miscellaneous Device        // 239转换成十六进制为EF,Miscellaneous Device为杂项设备

参考:

lspci输出内容:
第一个字段:00:00.0 :.,具体参考-s参数 第二个字段:Host bridge 设备类,数字表示形式可以通过-n参数获得,这里的Host bridge即为0600,如下图。查询对照:。
第三个字段:Intel Corporation 供应商,数字形式通过-n参数获得,这里的Intel Corporation即为8086。查询对照:。 第四个字段:Mobile PM965/GM965/GL960 Memory Controller Hub 产品ID,此字符串即为2a00。

参考:


来自: http://hi.baidu.com/aprilus/blog/item/f9061d91eaef2f81a877a465.html

阅读(1137) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~