30 Ocak 2019 Çarşamba

lsusb komutu

Giriş
Açıklaması şöyle.
lsusb is a utility for displaying information about USB buses in the system and the devices connected to them.
USB Kablosu
Açıklaması şöyle.
Classic USB had 4 wires. Power, Ground, data+ and data-. Power will be 5V when present (with some tolerance). Ground is defined as zero Volts. Data+ and Data- are often 3.3V signals, but they are not required to be.
Power Kablosundaki Voltaj
Açıklaması şöyle.
For versions 1 and 2 of USB The spec says 5V +/- 5%, so you should design to accept 4.75V to 5.25V.

USB Version 3.something introduces the availability of increased voltages (up to 20V). but a device has to explicitly request increased voltage, else they just get the same Approximately 5V.
USB Hızı
Açıklaması şöyle.
USB is defined at several data rates.

- 12 Mbps is called "Full Speed"
- 480 Mbps is called "High Speed"
- 5 Gbps is called "SuperSpeed"
- 10 Gbps is called "SuperSpeed+"

A USB product marketed as "High Speed" should be conforming to at least the USB 2.0 specification, and capable of carrying a 480 Mbps USB High Speed signal.

Örnek
Şöyle yaparız.
$ lsusb
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 0421:0802 Nokia Mobile Phones CA-42 Phone Parent
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
-t seçeneği
Ağaç şeklinde çıktı verir. Şöyle yaparız.
sudo lsusb -t|less
Çıktı olarak şunu alırız.
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/6p, 480M
        |__ Port 1: Dev 3, If 0, Class=hub, Driver=hub/3p, 480M
            |__ Port 1: Dev 6, If 0, Class=HID, Driver=usbhid, 1.5M

Hiç yorum yok:

Yorum Gönder