Raspberry Pi_Eng_14.2.1 “lsusb” Command – Confirm USB Device


Published Book on Amazon


All of IOT Starting with the Latest Raspberry Pi from Beginner to Advanced – Volume 1
All of IOT Starting with the Latest Raspberry Pi from Beginner to Advanced – Volume 2


출판된 한글판 도서


최신 라즈베리파이(Raspberry Pi)로 시작하는 사물인터넷(IOT)의 모든 것 – 초보에서 고급까지 (상)
최신 라즈베리파이(Raspberry Pi)로 시작하는 사물인터넷(IOT)의 모든 것 – 초보에서 고급까지 (하)


Original Book Contents


14.2   USB Device

 

14.2.1  "lsusb" Command Confirm USB Device

 

You can use the "lsusb" command to see what USB devices are installed in Raspberry Pi system.

 

[Command Format]

lsusb  [ options ]

 

[Command Overview]  

   This shows information about the USB devices installed in the system.

   User privilege          -- Normal user.

 

[Detail Description]

   "lsusb" is a tool that shows information about USB and USB connected devices in the system.

 

[Main Option]

-h, --help

Display a help message and exit.  

-v, --verbose

Tells lsusb to be verbose and display detailed information about the devices shown. This includes configuration descriptors for the device's current speed. Class descriptors will be shown, when available, for USB device classes including hub, audio, HID, communications, and chipcard.

It displays the detail information about the specific USB devices.

-D device

 

Do not scan the /dev/bus/usb directory, instead display only information about the device whose device file is given. The device file should be something like /dev/bus/usb/001/001. This option displays detailed information like the v option; you must be root to do this.

-s [[bus]:][devnum]

 

Show only devices in specified bus and/or devnum. Both ID's are given in decimal and may be omitted.

-t

Tells lsusb to dump the physical USB device hierarchy as a tree. This overrides the v option.

 

[Used Example]

The screen below is to displays the usb device without installing any USB deivices on Raspberry Pi system.

 

pi@raspberrypi ~ $ lsusb

Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.

 

The following is to display again the USB device list after USB Wi-Fi LAN adapter, USB Keyboard & Mouse switch, and USB flash memory. You can see that WLAN adapter device is added to Device 011, Keyboard & Mouse switch device is added to Device 016, and Flash memory is newly added to Device 009.

 

pi@raspberrypi ~ $ lsusb

Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.

Bus 001 Device 011: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter

Bus 001 Device 016: ID 045e:008a Microsoft Corp. Wireless Keyboard and Mouse

Bus 001 Device 009: ID 0718:0431 Imation Corp.