Loose-Info.com
Last Update 2014/03/11
TOP - Unix系OS - Linux - lsusb(8)

USBバスに関する情報を表示します。

lsusb オプション1 オプション1(任意) -v デバイスについて詳細情報を表示 -s -s [[bus]:][デバイス番号] 指定したバスやデバイス番号のデバイスを表示 -d -d [vendor]:[product] 指定されたベンダーとプロダクトIDのデバイスを表示 -D -D ファイルパス1 「/dev/bus/usb/001/001」のようなファイルパスで指定されたデバイスを表示 -V バージョン情報を出力

※ オプションなどは個人的に重要と考えられるものを記述しており、記載の無いものは、manページや関連書籍などを参照願います。
※ 実行例の記述は、不要と考えられる部分の削除などの修正を行ったものを掲載しています。
※ 実行例の実行環境はUbuntu 12.10です。

(例) オプションなし
$ lsusb

実行結果
Bus 001 Device 003: ID 0411:0110 BUFFALO INC. (formerly MelCo., Inc.) Bus 003 Device 002: ID 0a5c:2110 Broadcom Corp. Bluetooth Controller Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 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 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

(例) オプション -v
$ lsusb -v

実行結果
Bus 001 Device 003: ID 0411:0110 BUFFALO INC. (formerly MelCo., Inc.) Couldn't open device, some information will be missing Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x0411 BUFFALO INC. (formerly MelCo., Inc.) idProduct 0x0110 bcdDevice 40.00 iManufacturer 1 iProduct 2 iSerial 3 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 32 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0x80 (Bus Powered) MaxPower 200mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 8 Mass Storage bInterfaceSubClass 6 SCSI bInterfaceProtocol 80 Bulk-Only iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 255 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x02 EP 2 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 255 Bus 003 Device 002: ID 0a5c:2110 Broadcom Corp. Bluetooth Controller Couldn't open device, some information will be missing Device Descriptor: : : --- 以下、全USBデバイスに関して同様に出力 ---

(例) オプション -s バスのみ指定
$ lsusb -s 3:

実行結果
Bus 003 Device 002: ID 0a5c:2110 Broadcom Corp. Bluetooth Controller Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

(例)オプション -s バス、デバイス番号指定
$ lsusb -s 3:2

実行結果
Bus 003 Device 002: ID 0a5c:2110 Broadcom Corp. Bluetooth Controller

(例) オプション -d ベンダーIDのみ指定
$ lsusb -d 411:

実行結果
Bus 001 Device 003: ID 0411:0110 BUFFALO INC. (formerly MelCo., Inc.)

(例)オプション -d プロダクトIDのみ指定
$ lsusb -d :2110

実行結果
Bus 003 Device 002: ID 0a5c:2110 Broadcom Corp. Bluetooth Controller

(例)オプション -D
$ lsusb -D /dev/bus/usb/001/003

実行結果
Device: ID 0411:0110 BUFFALO INC. (formerly MelCo., Inc.) Couldn't open device, some information will be missing Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x0411 BUFFALO INC. (formerly MelCo., Inc.) idProduct 0x0110 bcdDevice 40.00 iManufacturer 1 iProduct 2 iSerial 3 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 32 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0x80 (Bus Powered) MaxPower 200mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 8 Mass Storage bInterfaceSubClass 6 SCSI bInterfaceProtocol 80 Bulk-Only iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 255 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x02 EP 2 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 255

(例)オプション -V
$ lsusb -V

実行結果
lsusb (usbutils) 005