Universal Serial Bus (USB) is an interface to establish communication between devices and a host controller (usually personal computer). Nowdays USB has replaced a variety of earlier PC interfaces (such as RS-232 serial, parallel port, and even FireWire). Due to the ability to supply power to the preipheral devices USB is often used as a .
An USB system architecture consists of a host controller, a USB ports, and multiple connected devices. Additional USB hubs may be included allowing branching into a tree structure with up to five tier levels. USB can connect computer peripherals such as mice, keyboards, , PDA, mobile phones, printers, personal media players, Media Transfer Protocol (MTP) devices, flash drives, GPS, Network Adapters, and external hard drives325经典版游戏. For many of those devices, USB has become the standard connection method.
USB interface aimed to remove the need for adding expansion cards into the computer's PCI or PCI-Express325经典版游戏 bus, and improve plug-and-play capabilities by allowing devices to be hot swapped or added to the system without rebooting the computer.
There are several types of USB connectors. The connector mounted on the host or device is called the receptacle, and the connector attached to the cable is called the plug. The original USB specification detailed Standard-A and Standard-B plugs and receptacles. Nowdays there are 7 USB connectors known: Standard-A, Standard-B, Mini-A, Mini-B , , . and are slightly different: standard USB uses 4 pins while Mini-USB and Micro-USB uses 5 pins in connector. The additional pin is used as an attached device presence indicator.
USB is a serial bus. It uses 4 shielded wires: two for power (+5v & GND) and two for differential data signals (labelled as D+ and D- in pinout). NRZI (Non Return to Zero Invert) encoding scheme used to send data with a sync field to synchronise the host and receiver clocks. In USB data cable Data+ and Data- signals are transmitted on a twisted pair. No termination needed. Half-duplex differential signaling helps to combat the effects of electromagnetic noise on longer lines. Contrary to popular belief, D+ and D- operate together; they are not separate simplex connections. USB 2.0 provides for a maximum cable length of 5 meters for devices running at Hi Speed.
univeral serial bus supports control, interrupt, bulk and isochronous transfer modes.
there are some major usb versions known nowdays:
- released in 1996.
- Specifies data rates of 1.5 Mbit/s (Low-Bandwidth, is mostly used for Human Input Devices (HID) such as keyboards, mouses, joysticks and often the buttons on higher speed devices such as printers or scanners) and 12 Mbit/s (Full-Bandwidth).
- nowadays is still used used by some devices that don't need faster data transfer rates.
- released in 2000
- in addition to USB 1.0 adds signaling rate of 480 Mbit/s (Hi-Speed)
- compatible with USB 1.0, but some hardware designed for USB 2.0 may not work with USB 1.0 host controllers.
- released in 2008
- added transmission rates up to 5 Gbit/s (SuperSpeed)
- USB 3.1 released in 2013 added SuperSpeed+ transmission rate up to 10 Gbit/s
- USB 3.2 released in 2017 added SuperSpeed+ transmission rate up to 20 Gbit/s and multi-link modes
325经典版游戏usb 1.0 and usb 2.0 shares same connector pinout, and features new connectors with their own pinouts.
325经典版游戏an usb device must indicate its speed by pulling either the d+ or d- line high to 3.3 volts. these pull up resistors at the device end will also be used by the host or hub to detect the presence of a device connected to its port. without a pull up resistor, usb assumes there is nothing connected to the bus.
325经典版游戏in order to help user to identify maximum speed of device, a usb device often specifies its speed on its cover with one of the usb special marketing logos.
when the new device first plugs in, the host enumerates it and loads the device driver necessary to run it. the loading of the appropriate driver is done using a pid/vid (product id/vendor id) combination supplied by attached hardware. the usb host controllers has their own specifications: uhci (universal host controller interface), ohci (open host controller interface) with usb 1.1, ehci (enhanced host controller interface) is used with usb 2.0.
the usb connector provides a single 5 volt wire from which connected usb devices may power themselves. a given segment of the bus is specified to deliver up to 500 ma. this is often enough to power several devices, although this budget must be shared among all devices downstream of an unpowered hub. a bus-powered device may use as much of that power as allowed by the port it is plugged into.
325经典版游戏bus-powered hubs can continue to distribute the bus provided power to connected devices but the usb specification only allows for a single level of bus-powered devices from a bus-powered hub. this disallows connection of a bus-powered hub to another bus-powered hub. many hubs include external power supplies which will power devices connected through them without taking power from the bus. devices that need more than 500 ma or higher than 5 volts must provide their own power.
325经典版游戏when usb devices (including hubs) are first connected they are interrogated by the host controller, which enquires of each their maximum power requirements. however, seems that any load connected to usb port may be treated by operating system as device. the host operating system typically keeps track of the power requirements of the usb network and may warn the computer's operator when a given segment requires more power than is available and may shut down devices in order to keep power consumption within the available resource.
|Low-power device||100 mA||5 V||0.50 W|
|Low-power SuperSpeed (USB 3.0) device||150 mA||5 V||0.75 W|
|High-power device||500 mA||5 V||2.5 W|
|High-power SuperSpeed (USB 3.0) device||900 mA||5 V||4.5 W|
|Battery Charging (BC) 1.2||1.5 A||5 V||7.5 W|
|Type-C||1.5 A||5 V||7.5 W|
|3 A||5 V||15 W|
|Power Delivery 2.0 Micro-USB||3 A||20 V||60 W|
|Power Delivery 2.0 Type-A/B/C||5 A||20 V||100 W|
to recognize battery charging, a dedicated charging port places a resistance not exceeding 200 ω across the d+ and d− terminals.
Dedicated charger mode:
325经典版游戏a simple usb charger should incorporate 200 ohm resistor between d+ and d- wires (sometimes shortcircuit d+ and d- together is enough). the device will then not attempt to transmit or receive data, but can draw up to 1.8a, if the supply can provide it.
325经典版游戏supplied voltage by a host or a powered hub ports is between 4.75 v and 5.25 v. maximum voltage drop for bus-powered hubs is 0.35 v from its host or hub to the hubs output port. all hubs and functions must be able to send configuration data at 4.4 v, but only low-power functions need to be working at this voltage. normal operational voltage for functions is minimum 4.75 v.
325经典版游戏shield should only be connected to ground at the host. no device should connect shield to ground.
Data: 28 AWG twisted
Power: 28 AWG - 20 AWG non-twisted
Data: 28 AWG non-twisted
325经典版游戏 Power: 28 AWG - 20 AWG non-twisted
|Power Gauge||Max length|