After the USB mouse is inserted, the output of the execution Lsusb is as follows:
-----------------------------------------
Bus 005 Device 001:id 0000:0000
Bus 001 Device 001:id 0000:0000
Bus 004 Device 001:id 0000:0000
Bus 003 Device 001:id 0000:0000
Bus 002 Device 006:id 15d9:0a37
Bus 002 Device 001:id 0000:0000
Content interpretation:
-----------------------------------------
Bus 005
Represents a fifth USB host controller (a total of 5 USB host controllers on the machine-can be viewed via command Lspci | grep USB)
Device 006
Indicates the device number (Devnum) that the system assigns to the USB mouse, and you can see that the mouse is plugged into the second USB host controller
006 Usb_device.devnum
/sys/devices/pci0000:00/0000:00:1d.1/usb2/2-2/devnum
ID 15d9:0a37
Indicates the ID of the USB device (this ID is set by the chip manufacturer to uniquely represent the device)
15D9 Usb_device_descriptor.idvendor
0a37 usb_device_descriptor.idproduct
/sys/devices/pci0000:00/0000:00:1d.1/usb2/2-2/idvendor
Bus 002 Device 006:id 15d9:0a37
Bus 002 Device 001:id 0000:0000
Indicates that two devices are connected to the NO. 002 USB host Controller:
One is the USB root hub--001
One is a USB mouse--006
Description
LSUSB command is a learning USB drive development, know the USB device Assistant, recommended everyone to use, if your development board or product no LSUSB command can be transplanted one, put into the file system.
This blog is reproduced from http://hi.baidu.com/zengzhaonong/blog/item/ade3e9241f04f5318744f98c.html