USB
≈ 23 min read
Names in other languages
No names in other languages are held for this entry yet.
Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.
Universal Serial Bus (USB) is an industry standard, developed by USB Implementers Forum (USB-IF), for digital data transmission and power delivery between many types of electronics. It specifies the architecture, in particular the physical interfaces, and communication protocols to and from hosts, such as personal computers, to and from peripheral devices, e.g. displays, keyboards, and mass storage devices, and to and from intermediate hubs, which multiply the number of a host's ports. Introduced in 19961, USB was originally designed to standardize the connection of peripherals to computers, replacing various interfaces such as serial ports, parallel ports, game ports, and Apple Desktop Bus (ADB) ports. Early versions of USB became commonplace on a wide range of devices, such as keyboards, mice, cameras, printers, scanners, flash drives, smartphones, game consoles. USB has since evolved into a standard to replace virtually all common ports on computers, mobile devices, peripherals, power supplies, and various other small electronics. In the latest standard, the USB-C connector replaces many types of connectors for power (up to 240 W), displays (e.g. DisplayPort, HDMI), and many other uses, as well as all previous USB connectors. USB consists of four generations of specifications: USB 1.x, USB 2.0, USB 3.x, and USB4.…
Universal Serial Bus (USB) is an industry standard, developed by USB Implementers Forum (USB-IF), for digital data transmission and power delivery between many types of electronics. It specifies the architecture, in particular the physical interfaces, and communication protocols to and from hosts, such as personal computers, to and from peripheral devices, e.g. displays, keyboards, and mass storage devices, and to and from intermediate hubs, which multiply the number of a host's ports. Introduced in 1996, USB was originally designed to standardize the connection of peripherals to computers, replacing various interfaces such as serial ports, parallel ports, game ports, and Apple Desktop Bus (ADB) ports. Early versions of USB became commonplace on a wide range of devices, such as keyboards, mice, cameras, printers, scanners, flash drives, smartphones, game consoles. USB has since evolved into a standard to replace virtually all common ports on computers, mobile devices, peripherals, power supplies, and various other small electronics. In the latest standard, the USB-C connector replaces many types of connectors for power (up to 240 W), displays (e.g. DisplayPort, HDMI), and many other uses, as well as all previous USB connectors. USB consists of four generations of specifications: USB 1.x, USB 2.0, USB 3.x, and USB4. The USB4 specification enhances the data transfer and power delivery functionality with "a connection-oriented tunneling architecture designed to combine multiple protocols onto a single physical interface so that the total speed and performance of the USB4 Fabric can be dynamically shared." In particular, USB4 supports the tunneling of the Thunderbolt 3 protocols, namely PCI Express (PCIe, load/store interface) and DisplayPort (display interface). USB4 also adds host-to-host interfaces. Each specification sub-version supports different signaling rates from 1.5 and 12 Mbit/s half-duplex in USB 1.0/1.1 to 80 Gbit/s full-duplex in USB4 2.0. USB also provides power to peripheral devices; the latest versions of the standard extend the power delivery limits for battery charging and devices requiring up to 240 watts as defined in USB Power Delivery (USB-PD) Rev. 3.1 V1.1 in 2021. Over the years, USB(-PD) has been adopted as the standard power supply and charging format for many mobile devices, such as mobile phones, reducing the need for proprietary chargers.
Connector type quick reference
Each USB connection is made using two connectors: a receptacle and a plug. Pictures show only receptacles:
Limitations
As with all standards, USB possesses multiple limitations to its design: USB cables are limited in length, as the standard was intended for peripherals on the same tabletop, not between rooms or buildings. However, a USB port can be connected to a gateway that accesses distant devices. USB data transfer rates are slower than those of other interconnects (e.g., ethernet) released in the same timeframe. USB has a strict tree network topology and master/slave protocol for addressing peripheral devices; slave devices cannot interact with one another except via the host, and two hosts cannot communicate over their USB ports directly. Some extension to this limitation is possible through USB On-The-Go, Dual-Role-Devices and protocol bridge. A host cannot broadcast signals to all peripherals at once; each must be addressed individually. While converters exist between certain legacy interfaces and USB, they might not provide a full implementation of the legacy hardware. For example, a USB-to-parallel-port converter might work well with a printer, but not with a scanner that requires bidirectional use of the data pins. For a product developer, using USB requires the implementation of a complex protocol and implies an "intelligent" controller in the peripheral device. Developers of USB devices intended for public sale generally must obtain a USB ID, which requires that they pay a fee to the USB Implementers Forum (USB-IF). Developers of products that use the USB specification must sign an agreement with the USB-IF. Use of the USB logos on the product requires annual fees and membership in the organization.
USB 1.x
Released in January 1996, USB 1.0 specified signaling rates of 1.5 Mbit/s (Low Bandwidth or Low Speed) and 12 Mbit/s (Full Speed). It did not allow for extension cables, due to timing and power limitations. Few USB devices made it to the market until USB 1.1 was released in August 19981. USB 1.1 was the earliest revision that was widely adopted and led to what Microsoft designated the "Legacy-free PC". Neither USB 1.0 nor 1.1 specified a design for any connector smaller than the standard type A or type B. Though many designs for a miniaturized type B connector appeared on many peripherals, conformity to the USB 1.x standard was hampered by treating peripherals that had miniature connectors as though they had a tethered connection (that is: no plug or receptacle at the peripheral end). There was no known miniature type A connector until USB 2.0 (revision 1.01) introduced one.
USB 2.0
USB 2.0 was released in April 20001, adding a higher maximum signaling rate of 480 Mbit/s (maximum theoretical data throughput 53 MByte/s ) named High Speed or High Bandwidth, in addition to the USB 1.x Full Speed signaling rate of 12 Mbit/s (maximum theoretical data throughput 1.2 MByte/s). Various improvements of USB 2.0 includes: USB Selective Suspend was introduced since USB 2.0. USB Over Current Protection was introduced. Modifications to the USB specification have been made via engineering change notices (ECNs). The most important of these ECNs are included into the USB 2.0 specification package available from USB.org: Mini-A and Mini-B Connector Micro-USB Cables and Connectors Specification 1.01 InterChip USB Supplement On-The-Go Supplement 1.3 USB On-The-Go makes it possible for two USB devices to communicate with each other without requiring a separate USB host Battery Charging Specification 1.1 Added support for dedicated chargers, host chargers behavior for devices with dead batteries Battery Charging Specification 1.2: with increased current of 1.5 A on charging ports for unconfigured devices, allowing high-speed communication while having a current up to 1.5 A Link Power Management Addendum ECN, which adds a sleep power state
USB 3.x
The USB 3.0 specification was released on 12 November 2008, with its management transferring from USB 3.0 Promoter Group to the USB Implementers Forum (USB-IF) and announced on 17 November 2008 at the SuperSpeed USB Developers Conference. USB 3.0 adds a new architecture and protocol named SuperSpeed, with associated backward-compatible plugs, receptacles, and cables. SuperSpeed plugs and receptacles are identified with a distinct logo and blue inserts in standard format receptacles. The SuperSpeed architecture provides for an operation mode at a rate of 5.0 Gbit/s, in addition to the three existing operation modes. Its efficiency is dependent on a number of factors including physical symbol encoding and link-level overhead. At a 5 Gbit/s signaling rate with 8b/10b encoding, each byte needs 10 bits to transmit, so the raw throughput is 500 MB/s. When flow control, packet framing and protocol overhead are considered, it is realistic for about two-thirds of the raw throughput, or 330 MB/s to transmit to an application. SuperSpeed's architecture is full-duplex; all earlier implementations, USB 1.0-2.0, are half-duplex, arbitrated by the host. Low-power and high-power devices remain operational with this standard, but devices implementing SuperSpeed can provide an increased current of between 150 mA and 900 mA, by discrete steps of 150 mA. USB 3.0 also introduced the USB Attached SCSI Protocol (UASP), which provides generally faster transfer speeds than the BOT (Bulk-Only-Transfer) protocol. USB 3.1 specification, released in July 20131. First, it preserves USB 3.0's SuperSpeed architecture and protocol and its operation mode is newly named USB 3.1 Gen 1 (previously called USB 3.0, and with USB 3.2 specification finally named USB 3.2 Gen 1x1, and later marketed as USB 5Gbps in 2023) Second, it introduces a distinctively new SuperSpeedPlus architecture and protocol with a second operation mode named as USB 3.1 Gen 2. This doubles the maximum signaling rate to 10 Gbit/s (later finally named USB 3.2 Gen 2x1, since 2023 marketed as USB 10Gbps), while reducing line encoding overhead to just 3% by changing the scheme to 128b/132b while flow control, packet framing and protocol overhead still have a significant impact on real world data rates. USB 3.2 specification, released in September 20171, preserves existing SuperSpeed and SuperSpeedPlus architectures and protocols and their respective operation modes, but introduces two additional SuperSpeedPlus operation modes (USB 3.2 Gen 1×2 and USB 3.2 Gen 2×2) with total signaling rates of 10 and 20 Gbit/s (raw data rates of 1212 and 2424 MB/s), respectively. The increased bandwidth is a result of two-lane operation over the additional wires included in all Full-Featured USB‑C Fabrics (all involved devices, hubs, cables and host).
USB4
The USB4 specification (Version 1.0) was released on 29 August 2019. It is based on the Thunderbolt 3 protocol, defines 20 and 40 Gbit/s signalling rates over USB-C, and allows tunneling of USB 3.2, USB 2.0, PCIe and DisplayPort protocols; Thunderbolt 3 compatibility is optional for USB4 hosts/devices. USB4 Version 2.0 (announced 1 September 2022) adds a new physical layer and higher signalling rates: up to 80 Gbit/s bidirectional, and an asymmetric mode supporting 120/40 Gbit/s (host→device / device→host) for video-heavy use cases. It achieves this using PAM3 signaling and, in many cases, existing passive “40 Gbit/s” USB-C cables; a new 80 Gbit/s active cable category is also defined. Version 2.0 updates tunneling to align with DisplayPort 2.1 and PCIe 4.0, and maintains backward compatibility with USB4 1.0, USB 3.2/2.0, and Thunderbolt 3. Since 2023, the USB-IF recommends consumer-facing product names that reflect signalling rates (e.g., USB 40Gbps, USB 80Gbps), replacing “USB4 v1/v2” in marketing and certification listings.
Version histories
Power-related standards history
System design
A USB system consists of a host with one or more downstream facing ports (DFP), and multiple peripherals, forming a tiered-star topology. Additional USB hubs may be included, allowing up to five tiers. A USB host may have multiple controllers, each with one or more ports. Up to 127 devices may be connected to a single host controller. USB devices are linked in series through hubs. The hub built into the host controller is called the root hub. A USB device may consist of several logical sub-devices that are referred to as device functions. A composite device may provide several functions, for example, a webcam (video device function) with a built-in microphone (audio device function). An alternative to this is a compound device, in which the host assigns each logical device a distinct address and all logical devices connect to a built-in hub that connects to the physical USB cable. USB device communication is based on pipes (logical channels). A pipe connects the host controller to a logical entity within a device, called an endpoint. Because pipes correspond to endpoints, the terms are sometimes used interchangeably. Each USB device can have up to 32 endpoints (16 in and 16 out), though it is rare to have so many. Endpoints are defined and numbered by the device during initialization (the period after physical connection called enumeration) and so are relatively permanent, whereas pipes may be opened and closed. There are two types of pipe: stream and message. A message pipe is bi-directional and is used for control transfers. Message pipes are typically used for short, simple commands to the device, and for status responses from the device, used, for example, by the bus control pipe number 0. A stream pipe is a uni-directional pipe connected to a uni-directional endpoint that transfers data using an isochronous, interrupt, or bulk transfer: Isochronous transfers: At some guaranteed data rate (for fixed-bandwidth streaming data) but with possible data loss (e.g., realtime audio or video) Interrupt transfers: Devices that need guaranteed quick responses (bounded latency) such as pointing devices, mice, and keyboards Bulk transfers: Large sporadic transfers using all remaining available bandwidth, but with no guarantees on bandwidth or latency (e.g., file transfers) When a host starts a data transfer, it sends a TOKEN packet containing an endpoint specified with a tuple of (device_address, endpoint_number). If the transfer is from the host to the endpoint, the host sends an OUT packet (a specialization of a TOKEN packet) with the desired device address and endpoint number. If the data transfer is from the device to the host, the host sends an IN packet instead. If the destination endpoint is a uni-directional endpoint whose manufacturer's designated direction does not match the TOKEN packet (e.g. the manufacturer's designated direction is IN while the TOKEN packet is an OUT packet), the TOKEN packet is ignored. Otherwise, it is accepted and the data transaction can start. A bi-directional endpoint, on the other hand, accepts both IN and OUT packets. Endpoints are grouped into interfaces and each interface is associated with a single device function. An exception to this is endpoint zero, which is used for device configuration and is not associated with any interface. A single device function composed of independently controlled interfaces is called a composite device. A composite device only has a single device address because the host only assigns a device address to a function. When a USB device is first connected to a USB host, the USB device enumeration process is started. The enumeration starts by sending a reset signal to the USB device. The signaling rate of the USB device is determined during the reset signaling. After reset, the USB device's information is read by the host and the device is assigned a unique 7-bit address. If the device is supported by the host, the device drivers needed for communicating with the device are loaded and the device is set to a configured state. If the USB host is restarted, the enumeration process is repeated for all connected devices. The host controller directs traffic flow to devices, so no USB device can transfer any data on the bus without an explicit request from the host controller. In USB 2.0, the host controller polls the bus for traffic, usually in a round-robin fashion. The throughput of each USB port is determined by the slower speed of either the USB port or the USB device connected to the port. High-speed USB 2.0 hubs contain devices called transaction translators that convert between high-speed USB 2.0 buses and full and low speed buses. There may be one translator per hub or per port. Because there are two separate controllers in each USB 3.0 host, USB 3.0 devices transmit and receive at USB 3.0 signaling rates regardless of USB 2.0 or earlier devices connected to that host. Operating signaling rates for earlier devices are set in the legacy manner.
Device classes
The functionality of a USB device is defined by a class code sent to a USB host. This allows the host to load software modules for the device and to support new devices from different manufacturers. Device classes include:
USB mass storage / USB drive
) with a Standard‑A plug (2242) solid-state-drive (SSD) connected into a USB 3.0 adapter connected to computer The USB mass storage device class (MSC or UMS) standardizes connections to storage devices. At first intended for magnetic and optical drives, it has been extended to support flash drives and SD card readers. The ability to boot a write-locked SD card with a USB adapter is particularly advantageous for maintaining the integrity and non-corruptible, pristine state of the booting medium. Though most personal computers since early 2005 can boot from USB mass storage devices, USB is not intended as a primary bus for a computer's internal storage. However, USB has the advantage of allowing hot-swapping, making it useful for mobile peripherals, including drives of various kinds. Several manufacturers offer external portable USB hard disk drives, or empty enclosures for disk drives. These offer performance comparable to internal drives, limited by the number and types of attached USB devices, and by the upper limit of the USB interface. Other competing standards for external drive connectivity include eSATA, ExpressCard, FireWire (IEEE 1394), and most recently Thunderbolt. Another use for USB mass storage devices is the portable execution of software applications (such as web browsers and VoIP clients) with no need to install them on the host computer.
Device Firmware Upgrade mechanism
Device Firmware Upgrade (DFU) is a generic mechanism for upgrading the firmware of USB devices with improved versions provided by their manufacturers, offering (for example) a way to deploy firmware bug fixes. During the firmware upgrade operation, USB devices change their operating mode effectively becoming a PROM programmer. Any class of USB device can implement this capability by following the official DFU specifications. Doing so allows use of DFU-compatible host tools to update the device. DFU is sometimes used as a flash memory programming protocol in microcontrollers with built-in USB bootloader functionality. Examples of devices using DFU include iPod and iPhone.
Connectors
The connectors the USB committee specifies support a number of USB's underlying goals, and reflect lessons learned from the many connectors the computer industry has used. The female connector mounted on the host or device is called the receptacle, and the male connector attached to the cable is called the plug. The official USB specification documents also periodically define the term male to represent the plug, and female to represent the receptacle. The design is intended to make it difficult to insert a USB plug into its receptacle incorrectly. The USB specification requires that the cable plug and receptacle be marked so the user can recognize the proper orientation. The USB-C plug however is reversible. USB cables and small USB devices are held in place by the gripping force from the receptacle, with no screws, clips, or thumb-turns as some connectors use. The distinction of A and B connectors was to enforce the directionality inherent in USB: The single host has Type‑A receptacles and each peripheral device has a single Type‑B receptacle. A hub provides multiple downstream-facing Type‑A receptacles and connects to the host through its single Type‑B receptacle (or a captive cable with a Type‑A plug). A hub may connect to the host either directly or through one or more additional hubs. Prior to Type‑C, USB On-The-Go allowed a device such as a smartphone to take either the host or the peripheral device role, with a single Type‑AB receptacle (Micro‑AB, superseded in 2014, or Mini-AB, deprecated 2007 ) that accepted both Type‑A and Type‑B plugs. USB connector types multiplied as the specification progressed. The original USB specification detailed Standard‑A and Standard‑B plugs and receptacles. These were originally referred to as simply Type‑A and Type‑B; they were renamed Standard out of necessity to distinguish from Mini and later Micro connectors. The data contacts in the Standard plugs are recessed compared to the power and ground contacts so that devices are safely electrically connected before the more delicate data communications circuitry is connected, preventing damage. Some devices operate in different modes depending on whether the data connection is made. Simple power sources do not include data connections, instead shorting the data contacts together, but allow any capable USB device to charge or operate through a standard USB cable. Charging cables provide power connections but not data, though the standard requires at least a USB 2.0 data connection capability. In a non-standard charge-only cable, the data wires are shorted at the device end; otherwise, the device may reject the charger as unsuitable.
Cabling
The USB 1.1 standard specifies that a standard cable can have a maximum length of with devices operating at full speed (12 Mbit/s), and a maximum length of with devices operating at low speed (1.5 Mbit/s). USB 2.0 provides for a maximum cable length of for devices running at high speed (480 Mbit/s). The USB 3.0 standard does not directly specify a maximum cable length, requiring only that all cables meet an electrical specification: for copper cabling with AWG 26 wires the maximum practical length is .
Power
USB host and hub recepticles supply power at a nominal 5 V DC via the V_BUS pin to upstreaming USB devices.
Low-power and high-power devices
This section describes the power distribution model of USB that existed before USB Power Delivery (USB-PD). On devices that do not use BC or PD, USB provides up to 4.5 W through Type-A and Type-B connectors, and up to 15 W through USB-C. All pre-PD USB power is provided at 5 V. For a host providing power to devices, USB has a concept of the unit load. Any device may draw power of one unit, and devices may request more power in these discrete steps. It is not required that the host provide requested power, and a device may not draw more power than negotiated. Low-power devices can draw no more than one unit. All devices must act as low-power devices when starting out as unconfigured. For USB devices up to USB 2.0 a unit load is 100 mA (or 500 mW), while USB 3.0 defines a unit load as 150 mA (750 mW). Full-featured USB-C can support low-power devices with a unit load of 250 mA (or 1250 mW). High-power devices, e.g. typical 2.5-inch hard disk drives, can draw more than one unit. USB up to 2.0 allows a host or hub to provide up to 2.5 W to each device, in five discrete steps of 100 mA, and SuperSpeed devices (USB 3.x) allows a host or a hub to provide up to 4.5 W in six steps of 150 mA. USB-C allows for dual-lane operation of USB 3.x with larger unit load (250 mA; up to 7.5 W). USB-C also allows for Type-C Current as a replacement for USB BC, signaling power availability in a simple way, without needing any data connection. To recognize Battery Charging mode, a dedicated charging port places a resistance not exceeding 200 Ω across the D+ and D− terminals. Shorted or near-shorted data lanes with less than 200 Ω of resistance across the D+ and D− terminals signify a dedicated charging port (DCP) with indefinite charging rates. In addition to standard USB, there is a proprietary high-powered system known as PoweredUSB, developed in the 1990s, and mainly used in point-of-sale terminals such as cash registers.
Related standards
Notes
Text derived from https://en.wikipedia.org/w/index.php?oldid=1378940274 under CC BY-SA 4.0; modifications have been made.
References
2 claims could not be tied to a specific sentence and are listed in the table below instead.
- ↩Wikipedia “USB” release date (×5) · confidence 0.95 revision URL