Use the LSUSB command to view USB devices in your system

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.