Certified USB logo
|Designer||Compaq, DEC, IBM, Intel, Microsoft, NEC, and Nortel|
|Produced||Since May 1996|
|Superseded||Serial port, parallel port, game port, Apple Desktop Bus, PS/2 port, and MagSafe|
|Length||2–5 m (6 ft 7 in–16 ft 5 in) (by category)|
|Signal||5 V DC|
|Data signal||Packet data, defined by specifications|
|Bitrate||1.5; 12; 480; 5,000; 10,000; 20,000 Mbit/s (depending on mode)|
|The type-A plug (left) and type-B plug (right)|
|Pin 1||VBUS (+5 V)|
USB, short for Universal Serial Bus, is an industry standard that was developed to define cables, connectors and protocols for connection, communication, and power supply between personal computers and their peripheral devices. 
There has been three generations of USB specifications:
- USB 1.x
- USB 2.0, with multiple updates and additions
- USB 3.x
Released in 1996, the USB standard is currently maintained by the USB Implementers Forum (USB IF).
- 1 Overview
- 2 History
- 3 System design
- 4 Device classes
- 5 Connectors
- 6 Cabling
- 7 Power
- 8 Signaling
- 9 Protocol layer
- 10 Transactions
- 11 Audio streaming
- 12 Comparisons with other connection methods
- 13 Interoperability
- 14 Related standards
- 15 See also
- 16 References
- 17 Further reading
- 18 External links
USB was designed to standardize the connection of computer peripherals (including keyboards, pointing devices, digital cameras, printers, portable media players, disk drives and network adapters) to personal computers, both to communicate and to supply electric power. It has largely replaced interfaces such as serial ports and parallel ports, and has become commonplace on a wide range of devices. USB connectors have replaced other types for battery chargers of portable devices.
Receptacle (socket) identification
This section is intended to allow fast identification of USB receptacles (sockets) on equipment. Further diagrams and discussion of plugs and receptacles can be found in Connectors.
|60 MB/s||625 MB/s
|Standard||Type A||Type A
|Type B||Type B
|Micro||Micro A. Rare?
Similar to Micro B
|Micro AB||Micro AB
Similar to USB 3.0
|Full Duplex||Type C|
The Universal Serial Bus was developed to simplify and improve the interface between personal computers and peripheral devices, when compared with previously existing standard or ad-hoc proprietary interfaces. 
From the computer user's perspective, the USB interface improved ease of use in several ways. The USB interface is self-configuring, so the user need not adjust settings on the device and interface for speed or data format, or configure interrupts, input/output addresses, or direct memory access channels.  USB connectors are standardized at the host, so any peripheral can use any available socket. USB takes full advantage of the additional processing power that can be economically put into peripheral devices so that they can manage themselves; USB devices often do not have user-adjustable interface settings. The USB interface is "hot pluggable", meaning devices can be exchanged without rebooting the host computer. Small devices can be powered directly from the USB interface, displacing extra power supply cables. Because use of the USB logos is only permitted after compliance testing, the user can have confidence that a USB device will work as expected without extensive interaction with settings and configuration; the USB interface defines protocols for recovery from common errors, improving reliability over previous interfaces.  Installation of a device relying on the USB standard requires minimal operator action. When a device is plugged into a port on a running personal computer system, it is either entirely automatically configured using existing device drivers, or the system prompts the user to locate a driver which is then installed and configured automatically.
For hardware manufacturers and software developers, the USB standard eliminates the requirement to develop proprietary interfaces to new peripherals. The wide range of transfer speeds available from a USB interface suits devices ranging from keyboards and mice up to streaming video interfaces. A USB interface can be designed to provide the best available latency for time-critical functions, or can be set up to do background transfers of bulk data with little impact on system resources. The USB interface is generalized with no signal lines dedicated to only one function of one device. 
USB cables are limited in length, as the standard was meant to connect to peripherals on the same table-top, not between rooms or between buildings. However, a USB port can be connected to a gateway that accesses distant devices. USB has a strict "tree" topology and "master-slave" protocol for addressing peripheral devices; peripheral 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. A host cannot "broadcast" signals to all peripherals at once, each must be addressed individually. Some very high speed peripheral devices require sustained speeds not available in the USB standard.  While converters exist between certain "legacy" interfaces and USB, they may not provide full implementation of the legacy hardware; for example, a USB to parallel port converter may work well with a printer, but not with a scanner that requires bi-directional use of the data pins.
For a product developer, use of USB requires 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 a fee paid to the Implementers' Forum. Developers of products that use the USB specification must sign an agreement with Implementer's Forum. Use of the USB logos on the product require annual fees and membership in the organization. 
A group of seven companies began the development of USB in 1994: Compaq, DEC, IBM, Intel, Microsoft, NEC, and Nortel. The goal was to make it fundamentally easier to connect external devices to PCs by replacing the multitude of connectors at the back of PCs, addressing the usability issues of existing interfaces, and simplifying software configuration of all devices connected to USB, as well as permitting greater data rates for external devices. A team including Ajay Bhatt worked on the standard at Intel; the first integrated circuits supporting USB were produced by Intel in 1995.
The original USB 1.0 specification, which was introduced in January 1996, defined data transfer rates of 1.5 Mbit/s Low Speed and 12 Mbit/s Full Speed. Microsoft Windows 95, OSR 2.1 provided OEM support for the devices. The first widely used version of USB was 1.1, which was released in September 1998. The 12 Mbit/s data rate was intended for higher-speed devices such as disk drives, and the lower 1.5 Mbit/s rate for low data rate devices such as joysticks. Apple Inc.'s iMac was the first mainstream product with USB and the iMac's success popularized USB itself. Following Apple's design decision to remove all legacy ports from the iMac, many PC manufacturers began building legacy-free PCs, which led to the broader PC market using USB as a standard.
The USB 2.0 specification was released in April 2000 and was ratified by the USB Implementers Forum (USB-IF) at the end of 2001. Hewlett-Packard, Intel, Lucent Technologies (now Nokia), NEC, and Philips jointly led the initiative to develop a higher data transfer rate, with the resulting specification achieving 480 Mbit/s, 40 times as fast as the original USB 1.1 specification.
The USB 3.0 specification was published on 12 November 2008. Its main goals were to increase the data transfer rate (up to 5 Gbit/s), decrease power consumption, increase power output, and be backward compatible with USB 2.0. USB 3.0 includes a new, higher speed bus called SuperSpeed in parallel with the USB 2.0 bus. For this reason, the new version is also called SuperSpeed. The first USB 3.0 equipped devices were presented in January 2010.
The USB 3.1 specification was published in July 2013.
In December 2014, USB-IF submitted USB 3.1, USB Power Delivery 2.0 and USB Type-C specifications to the IEC (TC 100 – Audio, video and multimedia systems and equipment) for inclusion in the international standard IEC 62680 Universal Serial Bus interfaces for data and power, which is currently based on USB 2.0.
The USB 3.2 specification was published in September 2017.
Version history 
|Release name||Release date||Maximum transfer rate||Note|
|USB 0.8||December 1994||Prerelease|
|USB 0.9||April 1995||Prerelease|
|USB 0.99||August 1995||Prerelease|
|USB 1.0-RC||November 1995||Release Candidate|
|USB 1.0||January 1996||Full Speed (12 Mbit/s)|
|USB 1.1||August 1998||Full Speed (12 Mbit/s)|
|USB 2.0||April 2000||High Speed (480 Mbit/s)|
|USB 3.0||November 2008||SuperSpeed (5 Gbit/s)||Also referred to as USB 3.1 Gen 1 and USB 3.2 Gen 1x1|
|USB 3.1||July 2013||SuperSpeed+ (10 Gbit/s)||Also referred to as USB 3.1 Gen 2  and USB 3.2 Gen 2x1|
|USB 3.2||September 2017||SuperSpeed+ (20 Gbit/s)||Includes new USB 3.2 Gen 1x2 and USB 3.2 Gen 2x2 multi-link modes [not in citation given]|
|Release name||Release date||Max. power||Note|
|USB Battery Charging 1.0||2007-03-08||5 V, 1.5 A|
|USB Battery Charging 1.1||2009-04-15|
|USB Battery Charging 1.2||2010-12-07||5 V, 5 A|
|USB Power Delivery revision 1.0 (version 1.0)||2012-07-05||20 V, 5 A||Using FSK protocol over bus power (VBUS)|
|USB Power Delivery revision 1.0 (version 1.3)||2014-03-11|
|USB Type-C 1.0||2014-08-11||5 V, 3 A||New connector and cable specification|
|USB Power Delivery revision 2.0 (version 1.0)||2014-08-11||20 V, 5 A||Using BMC protocol over communication channel (CC) on type-C cables.|
|USB Type-C 1.1||2015-04-03||5 V, 3 A|
|USB Power Delivery revision 2.0 (version 1.1)||2015-05-07||20 V, 5 A|
|USB Power Delivery revision 2.0 (version 1.2)||2016-03-25||20 V, 5 A|
|USB Power Delivery revision 3.0 (version 1.1)||2017-01-12||20 V, 5 A|
Released in January 1996, USB 1.0 specified data rates of 1.5 Mbit/s (Low Bandwidth or Low Speed) and 12 Mbit/s (Full Speed). It did not allow for extension cables or pass-through monitors, due to timing and power limitations. Few USB devices made it to the market until USB 1.1 was released in August 1998. 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 miniaturised type B connector appeared on many peripherals, conformance to the USB 1.x standard was fudged by treating peripherals that had miniature connectors as though they had a tethered connection (that is: no plug or socket at the peripheral end). There was no known miniature type A connector until USB 2.0 (rev 1.01) introduced one.
USB 2.0 was released in April 2000, adding a higher maximum signaling rate of 480 Mbit/s (High Speed or High Bandwidth), in addition to the USB 1.x Full Speed signaling rate of 12 Mbit/s. Due to bus access constraints, the effective throughput of the High Speed signaling rate is limited to 280 Mbit/s or 35 MB/s.
Modifications to the USB specification have been made via Engineering Change Notices (ECN). The most important of these ECNs are included into the USB 2.0 specification package available from USB.org:
Some of the most significant items included in the change notices include:
- 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 and allowing a maximum current of 5 A.
- Link Power Management Addendum ECN which adds a sleep power state.
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 SuperSpeed transfer mode, 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 bus provides for a transfer mode at a nominal rate of 5.0 Gbit/s, in addition to the three existing transfer modes. Its efficiency is dependent on a number of factors including physical symbol encoding and link level overhead. At a 5 Gbit/s (625 Mbyte/s) signaling rate with 8b/10b encoding, the raw throughput is 500 Mbyte/s. When flow control, packet framing and protocol overhead are considered, it is realistic for 400 Mbyte/s (3.2 Gbit/s) or more to be delivered to an application. Communication is full-duplex in SuperSpeed transfer mode; earlier modes are half-duplex, arbitrated by the host.
Low-power and high-power devices remain operational with this standard, but devices using SuperSpeed can take advantage of increased available current of between 150 mA and 900 mA, respectively.
USB 3.1, released in July 2013, preserves the existing SuperSpeed transfer rate under a new label USB 3.1 Gen 1, and introduces a new SuperSpeed+ transfer mode, USB 3.1 Gen 2 with the maximum data signaling rate to 10 Gbit/s (1250 MB/s, twice the rate of USB 3.0), which reduces line encoding overhead to just 3% by changing the encoding scheme to 128b/132b
USB 3.2, released in September 2017, preserves existing USB 3.1 SuperSpeed and SuperSpeed+ data modes but introduces two new SuperSpeed+ transfer modes over the USB-C connector with data rates of 10 and 20 Gbit/s (1250 and 2500 MB/s). The increase in bandwidth is a result of multi-lane operation over existing wires that were intended for flip-flop capabilities of the Type-C connector.
A USB system consists of a host with one or more downstream ports, 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 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 compound device, in which the host assigns each logical device a distinctive 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 is a connection from the host controller to a logical entity, found on a device, and named an endpoint. Because pipes correspond to endpoints, the terms are sometimes used interchangeably. A USB device could have up to 32 endpoints (16 IN, 16 OUT), though it is rare to have so many. An endpoint is defined and numbered by the device during initialization (the period after physical connection called "enumeration") and so is relatively permanent, whereas a pipe 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 a status response, 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 (often, but not necessarily, as fast as possible) 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 data 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 data rates regardless of USB 2.0 or earlier devices connected to that host. Operating data rates for earlier devices are set in the legacy manner.
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:
|Class||Usage||Description||Examples, or exception|
|00h||Device||Unspecified||Device class is unspecified, interface descriptors are used to determine needed drivers|
|01h||Interface||Audio||Speaker, microphone, sound card, MIDI|
|02h||Both||Communications and CDC Control||Modem, Ethernet adapter, Wi-Fi adapter, RS232 serial adapter. Used together with class 0Ah (below)|
|03h||Interface||Human interface device (HID)||Keyboard, mouse, joystick|
|05h||Interface||Physical Interface Device (PID)||Force feedback joystick|
|06h||Interface||Image (PTP/MTP)||Webcam, scanner|
|07h||Interface||Printer||Laser printer, inkjet printer, CNC machine|
|08h||Interface||Mass storage (MSC or UMS)||USB flash drive, memory card reader, digital audio player, digital camera, external drive|
|09h||Device||USB hub||Full bandwidth hub|
|0Ah||Interface||CDC-Data||Used together with class 02h (above)|
|0Bh||Interface||Smart Card||USB smart card reader|
|0Dh||Interface||Content security||Fingerprint reader|
|0Fh||Interface||Personal healthcare device class (PHDC)||Pulse monitor (watch)|
|10h||Interface||Audio/Video (AV)||Webcam, TV|
|11h||Device||Billboard||Describes USB Type-C alternate modes supported by device|
|DCh||Both||Diagnostic Device||USB compliance testing device|
|E0h||Interface||Wireless Controller||Bluetooth adapter, Microsoft RNDIS|
|FEh||Interface||Application-specific||IrDA Bridge, Test & Measurement Class (USBTMC), USB DFU (Device Firmware Upgrade)|
|FFh||Both||Vendor-specific||Indicates that a device needs vendor-specific drivers|
USB mass storage / USB drive
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. It has also been extended to support a wide variety of novel devices as many systems can be controlled with the familiar metaphor of file manipulation within directories. The process of making a novel device look like a familiar device is also known as extension. 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 mid-2004 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.
First conceived and still used today for optical storage devices (CD-RW drives, DVD drives, etc.), 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 current 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.
Media Transfer Protocol
Media Transfer Protocol (MTP) was designed by Microsoft to give higher-level access to a device's filesystem than USB mass storage, at the level of files rather than disk blocks. It also has optional DRM features. MTP was designed for use with portable media players, but it has since been adopted as the primary storage access protocol of the Android operating system from the version 4.1 Jelly Bean as well as Windows Phone 8 (Windows Phone 7 devices had used the Zune protocol—an evolution of MTP). The primary reason for this is that MTP does not require exclusive access to the storage device the way UMS does, alleviating potential problems should an Android program request the storage while it is attached to a computer. The main drawback is that MTP is not as well supported outside of Windows operating systems.
Human interface devices
USB mice and keyboards can usually be used with older computers that have PS/2 connectors with the aid of a small USB-to-PS/2 adapter. For mice and keyboards with dual-protocol support, an adaptor that contains no logic circuitry may be used: the hardware in the USB keyboard or mouse is designed to detect whether it is connected to a USB or PS/2 port, and communicate using the appropriate protocol. Converters also exist that connect PS/2 keyboards and mice (usually one of each) to a USB port. These devices present two HID endpoints to the system and use a microcontroller to perform bidirectional data translation between the two standards.
Device Firmware Upgrade
Device Firmware Upgrade (DFU) is a vendor- and device-independent 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.
In addition to its intended legitimate purposes, DFU can also be exploited by uploading maliciously crafted firmware that causes USB devices to spoof various other device types; one such exploiting approach is known as BadUSB.
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. T
By design, it is 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 type-C plug 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 other connectors use.
The different A and B plugs prevent accidentally connecting two power sources. However, some of this directed topology is lost with the advent of multi-purpose USB connections (such as USB On-The-Go in smartphones, and USB-powered Wi-Fi routers), which require A-to-A, B-to-B, and sometimes Y/splitter cables.
USB connector types multiplied as the specification progressed. The original USB specification detailed standard-A and standard-B plugs and receptacles.The connectors were different so that users could not connect one computer receptacle to another. The data pins in the standard plugs are recessed compared to the power pins,so that the device can power up before establishing a data connection. Some devices operate in different modes depending on whether the data connection is made. Charging docks supply power and do not include a host device or data pins, allowing any capable USB device to charge or operate from a standard USB cable. Charging cables provide power connections, but not data. In a charge-only cable, the data wires are shorted at the device end, otherwise the device may reject the charger as unsuitable.
The USB 1.1 standard specifies that a standard cable can have a maximum length of 5 metres (16 ft 5 in) with devices operating at full speed (12 Mbit/s), and a maximum length of 3 metres (9 ft 10 in) with devices operating at low speed (1.5 Mbit/s).
USB 2.0 provides for a maximum cable length of 5 metres (16 ft 5 in) 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 3 meters (9.8 ft).
USB supplies power at 5 V ± 5% to power USB downstream devices.
|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[b]||5 V||2.5 W|
|High-power SuperSpeed (USB 3.0) device||900 mA[c]||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[d]||5 A||20 V||100 W|
For Powered USB, see Powered USB.
- Low-speed (LS) and Full-speed (FS) modes use a single data pair, labelled D+ and D−, in half-duplex. Transmitted signal levels are 0.0–0.3 V for logical low, and 2.8–3.6 V for logical high level. The signal lines are not terminated.
- High-speed (HS) mode uses the same wire pair, but with different electrical conventions. Lower signal voltages of −10 to 10 mV for low and 360 to 440 mV for logical high level, and termination of 45 Ω to ground or 90 Ω differential to match the data cable impedance.
- SuperSpeed (SS) adds two additional pairs of shielded twisted wire (and new, mostly compatible expanded connectors). These are dedicated to full-duplex SuperSpeed operation. The half-duplex lines are still used for configuration.
- SuperSpeed+ (SS+) uses increased data rate (Gen 2x1 mode) and/or the additional lane in the Type-C connector (Gen 1x2 and Gen 2x2 mode).
A USB connection is always between a host or hub at the A connector end, and a device or hub's "upstream" port at the other end.
During USB communication, data is transmitted as packets. Initially, all packets are sent from the host via the root hub, and possibly more hubs, to devices. Some of those packets direct a device to send some packets in reply.
The basic transactions of USB are:
- OUT transaction
- IN transaction
- SETUP transaction
- Control transfer exchange
The USB Device Working Group has laid out specifications for audio streaming. Although USB technology wasn't designed with audio streaming in mind, specific standards have been developed and implemented for audio class uses.
The DWG distinguishes two audio device modes specifications: Audio 1.0 specification and Audio 2.0 specification. Three types of devices are defined:
- USB headphone devices
- USB microphone devices
- USB headset devices
Three levels of synchronisation were defined: asynchronous, synchronous, and adaptive.
Comparisons with other connection methods
At first, USB was considered a complement to IEEE 1394 (FireWire) technology, which was designed as a high-bandwidth serial bus that efficiently interconnects peripherals such as disk drives, audio interfaces, and video equipment. In the initial design, USB operated at a far lower data rate and used less sophisticated hardware. It was suitable for small peripherals such as keyboards and pointing devices.
The most significant technical differences between FireWire and USB include:
- USB networks use a tiered-star topology, while IEEE 1394 networks use a tree topology.
- USB 1.0, 1.1, and 2.0 use a "speak-when-spoken-to" protocol, meaning that each peripheral communicates with the host when the host specifically requests it to communicate. USB 3.0 allows for device-initiated communications towards the host. A FireWire device can communicate with any other node at any time, subject to network conditions.
- A USB network relies on a single host at the top of the tree to control the network. All communications are between the host and one peripheral. In a FireWire network, any capable node can control the network.
- USB runs with a 5 V power line, while FireWire in current implementations supplies 12 V and theoretically can supply up to 30 V.
- Standard USB hub ports can provide from the typical 500 mA/2.5 W of current, only 100 mA from non-hub ports. USB 3.0 and USB On-The-Go supply 1.8 A/9.0 W (for dedicated battery charging, 1.5 A/7.5 W full bandwidth or 900 mA/4.5 W high bandwidth), while FireWire can in theory supply up to 60 watts of power, although 10 to 20 watts is more typical.
These and other differences reflect the differing design goals of the two buses: USB was designed for simplicity and low cost, while FireWire was designed for high performance, particularly in time-sensitive applications such as audio and video. Although similar in theoretical maximum transfer rate, FireWire 400 is faster than USB 2.0 high-bandwidth in real-use, especially in high-bandwidth use such as external hard drives. The newer FireWire 800 standard is twice as fast as FireWire 400 and faster than USB 2.0 high-bandwidth both theoretically and practically. However, FireWire's speed advantages rely on low-level techniques such as direct memory access (DMA), which in turn have created opportunities for security exploits such as the DMA attack.
The chipset and drivers used to implement USB and FireWire have a crucial impact on how much of the bandwidth prescribed by the specification is achieved in the real world, along with compatibility with peripherals.
The IEEE 802.3af Power over Ethernet (PoE) standard specifies a more elaborate power negotiation scheme than powered USB. It operates at 48 V DC and can supply more power (up to 12.95 W, PoE+ 25.5 W) over a cable up to 100 meters compared to USB 2.0, which provides 2.5 W with a maximum cable length of 5 meters. This has made PoE popular for VoIP telephones, security cameras, wireless access points, and other networked devices within buildings. However, USB is cheaper than PoE provided that the distance is short and power demand is low.
Ethernet standards require electrical isolation between the networked device (computer, phone, etc.) and the network cable up to 1500 V AC or 2250 V DC for 60 seconds. USB has no such requirement as it was designed for peripherals closely associated with a host computer, and in fact it connects the peripheral and host grounds. This gives Ethernet a significant safety advantage over USB with peripherals such as cable and DSL modems connected to external wiring that can assume hazardous voltages under certain fault conditions.
The USB Device Class Definition for MIDI Devices allows Music Inteface Definition Interface (MIDI) music data to be sent over USB. The MIDI capability is extended to allow up to sixteen simultanous virtual MIDI cables, each of which can carry the usual MIDI sixteen channels and clocks.
USB is competitive for low-cost and physically adjacent devices. However, Power over Ethernet and the MIDI plug standard have an advantage in high-end devices that may have long cables. USB can cause ground loop problems between equipment, because it connects ground references on both transceivers. By contrast, the MIDI plug standard and Ethernet have built-in isolation to 500V or more.
The eSATA connector is a more robust SATA connector, intended for connection to external hard drives and SSDs. eSATA's transfer rate (up to 6 Gbit/s) is similar to that of USB 3.0 (up to 5 Gbit/s on current devices; 10 Gbit/s speeds via USB 3.1, announced on 31 July 2013). A device connected by eSATA appears as an ordinary SATA device, giving both full performance and full compatibility associated with internal drives.
eSATA does not supply power to external devices. This is an increasing disadvantage compared to USB. Even though USB 3.0's 4.5 W is sometimes insufficient to power external hard drives, technology is advancing and external drives gradually need less power, diminishing the eSATA advantage. eSATAp (power over eSATA; aka ESATA/USB) is a connector introduced in 2009 that supplies power to attached devices using a new, backward compatible, connector. On a notebook eSATAp usually supplies only 5 V to power a 2.5-inch HDD/SSD; on a desktop workstation it can additionally supply 12 V to power larger devices including 3.5-inch HDD/SSD and 5.25-inch optical drives.
eSATAp support can be added to a desktop machine in the form of a bracket connecting the motherboard SATA, power, and USB resources.
eSATA, like USB, supports hot plugging, although this might be limited by OS drivers and device firmware.
Thunderbolt combines PCI Express and Mini DisplayPort into a new serial data interface. Original Thunderbolt implementations have two channels, each with a transfer speed of 10 Gbit/s, resulting in an aggregate unidirectional bandwidth of 20 Gbit/s.
Thunderbolt 2 uses link aggregation to combine the two 10 Gbit/s channels into one bi-directional 20 Gbit/s channel.
Various protocol converters are available that convert USB data signals to and from other communications standards.
The USB Implementers Forum is working on a wireless networking standard based on the USB protocol.[when?] Wireless USB is a cable-replacement technology, and uses ultra-wideband wireless technology for data rates of up to 480 Mbit/s.
InterChip USB is a chip-to-chip variant that eliminates the conventional transceivers found in normal USB. The HSIC physical layer uses about 50% less power and 75% less board area compared to USB 2.0.
- "82371FB (PIIX) and 82371SB (PIIX3) PCI ISA IDE Xcelerator" (PDF). Intel. May 1996. Archived (PDF) from the original on 13 March 2016. Retrieved 12 March 2016.
- "USB 'A' Plug Form Factor Revision 1.0" (PDF). USB Implementers Forum. 23 March 2005. p. 1. Archived (PDF) from the original on 19 May 2017. Retrieved 4 June 2017.
Body length is fully 12 mm in width by 4.5 mm in height with no deviations
- "USB deserves more support", Business, Boston Globe Online, Simson, 31 December 1995, archived from the original on 6 April 2012, retrieved 12 December 2011
- Jan Axelson, USB Complete: The Developer's Guide, Fifth Edition, Lakeview Research LLC, 2015 ,ISBN 1931448280, pages 1-7
- https://www.pcmag.com/encyclopedia/term/44434/how-to-install-a-pc-peripheral How to install a PC peripheral, retrieved 2018 Feb 17
- Icon design recommendation for Identifying USB 2.0 Ports on PCs, Hosts and Hubs (PDF), USB.
- Janssen, Cory. "What is a Universal Serial Bus (USB)?". Techopedia. Archived from the original on 3 January 2014. Retrieved 12 February 2014.
- Ajay Bhatt: Fellow (biography), Intel, archived from the original on 4 November 2009
- Rogoway, Mark (9 May 2009). "Intel ad campaign remakes researchers into rock stars". The Oregonian. Archived from the original on 26 August 2009. Retrieved 23 September 2009.
- Pan, Hui; Polishuk, Paul (eds.). 1394 Monthly Newsletter. Information Gatekeepers. pp. 7–9. GGKEY:H5S2XNXNH99. Archived from the original on 12 November 2012. Retrieved 23 October 2012.
- Seebach, Peter (26 April 2005). "Standards and specs: The ins and outs of USB". IBM. Archived from the original on 2010-01-10. Retrieved 2012-09-08.
- "Eight ways the iMac changed computing". Macworld. 15 August 2008. Archived from the original on 22 December 2011. Retrieved 5 September 2017.
- "Compaq hopes to follow the iMac". Archived from the original on 22 October 2006.
- "The PC Follows iMac's Lead". Business week. 1999. Archived from the original on 23 September 2015.
- Popular Mechanics: Making Connections. Hearst Magazines. February 2001. p. 59. ISSN 0032-4558. Archived from the original on 15 February 2017.
- Universal Serial Bus 3.0 Specification (Zip). 6 June 2011. pp. 3–1. Archived from the original on 19 May 2014.
- Universal Serial Bus 3.0 Specification (Zip). 6 June 2011. pp. 1–3. Archived from the original on 19 May 2014.
- "USB 3.0 SuperSpeed gone wild at CES 2010, trumps even your new SSD". 9 January 2010. Archived from the original on 28 June 2011. Retrieved 20 February 2011.
- "USB 3.0 Finally Arrives". 11 January 2010. Archived from the original on 23 February 2011. Retrieved 20 February 2011.
- "SuperSpeed USB 3.0: More Details Emerge". PC world. 6 January 2009. Archived from the original on 24 January 2009.
- "IEC and USB-IF Expand Cooperation to Support Next-Generation High-Speed Data Delivery and Device Charging Applications" (PDF) (Press release). GENEVA, Switzerland and BEAVERTON, Ore., U.S. 8 December 2014. Archived (PDF) from the original on 29 December 2014.
- "What's the Difference Between USB 1.0 and USB 2.0? - Quality Logo Products, Inc". Archived from the original on 29 December 2016. Retrieved 30 December 2016.
- "Archived copy" (PDF). Archived (PDF) from the original on 12 March 2016. Retrieved 10 March 2016.
- "USB 3.2 will make your cables twice as fast". arstechnica.com. Archived from the original on 27 July 2017. Retrieved 27 July 2017.
- "4.2.1". Universal Serial Bus Specification (PDF) (Technical report). 1996. p. 29. v1.0. Archived (PDF) from the original on 30 January 2018.
- "5.5.4". Universal Serial Bus Specification (PDF) (Technical report). 2000. p. 40. v2.0. Archived (PDF) from the original on 2 November 2013.
- "USB Implementers Forum". Archived from the original on 25 July 2008.
- "Battery Charging v1.2 Spec and Adopters Agreement" (Zip). USB Implementers Forum. 7 December 2010. Archived from the original on 6 October 2014. Retrieved 5 October 2014.
- "USB" (PDF) (Press release). Implementers Forum. 17 November 2008. Archived from the original (PDF) on 31 March 2010. Retrieved 22 June 2010.
- "Universal Serial Bus 3.0 Specification" (ZIP). 2011-06-06. Retrieved 2018-04-09.
- "USB 3.0 Technology" (PDF). HP. 2012. Archived from the original on 19 February 2015. Retrieved 2 January 2014.
- "Universal Serial Bus 3.0 Specification" (PDF). USB Implementers Forum. 2008-11-12. Retrieved 2012-12-29.
- "USB 3.1 Specification Language Usage Guidelines from USB-IF" (PDF). Retrieved 2016-03-10.
- "USB 3.1 Specification". usb.org. USB Implementers Forum, Inc. Retrieved 19 November 2014.
- "Universal Serial Bus Revision 3.1 Specification". usb.org. Archived from the original (ZIP) on 21 November 2014. Retrieved 19 November 2014.
- Saunders, Brad; Nardozza, Liz (25 July 2017). "USB 3.0 Promoter Group Announces USB 3.2 Update" (PDF). USB.org. USB 3.0 Promoter Group. Retrieved 27 July 2017.
- Universal Serial Bus Specification Revision 2.0. 11 October 2011. pp. 13; 30; 256. Archived from the original (Zip) on 28 May 2012. Retrieved 8 September 2012.
- Universal Serial Bus Specification Revision 3.0: 8.8. 9 September 2011. pp. 8–25. Archived from the original (Zip) on 2011-11-04. Retrieved 2011-10-14.08-Sep-2012
- Dan Froelich (20 May 2009). "Isochronous Protocol" (PDF). usb.org. Archived from the original (PDF) on 17 August 2014. Retrieved 21 November 2014.
- "Class Codes". USB Implementers Forum. Archived from the original on 2 April 2007..
- Use class information in the interface descriptors. This base class is defined to use in device descriptors to indicate that class information should be determined from the Interface Descriptors in the device.
- "Universal Serial Bus Test and Measurement Class Specification (USBTMC) Revision 1.0". USB Implementers Forum. 14 April 2003.
- "Universal Serial Bus Device Class Specification for Device Firmware Upgrade, Version 1.1" (PDF). USB Implementers Forum. 5 August 2004. pp. 8–9. Archived (PDF) from the original on 11 October 2014. Retrieved 8 September 2014.
- "100 Portable Apps for your USB Stick (both for Mac and Win)". Archived from the original on 2 December 2008. Retrieved 30 October 2008.
- "Skype VoIP USB Installation Guide". Archived from the original on 6 July 2014. Retrieved 30 October 2008.
- "PS/2 to USB Keyboard and Mouse Adapter". Archived from the original on 12 November 2014.
- "Universal Serial Bus Device Class Specification for Device Firmware Upgrade, Version 1.0" (PDF). USB Implementers Forum. 1999-05-13. pp. 7–8. Archived from the original (PDF) on 2014-08-24. Retrieved 2014-09-08.
- "dfu-util: USB Device Firmware Upgrade tool". fedoraproject.org. Retrieved 2014-09-08.
- Karsten Nohl; Sascha Krißler; Jakob Lell (7 August 2014). "BadUSB – On accessories that turn evil" (PDF). srlabs.de. Archived from the original (PDF) on 8 August 2014. Retrieved 8 September 2014.
- Hewlett-Packard, Intel, Microsoft, NEC, ST-Ericsson, Texas Instruments (6 June 2011). Universal Serial Bus 3.0 Specification: Revision 1.0. p. 531. Archived from the original on 30 December 2013. Retrieved 26 July 2011.
- "USB 2.0 Specification Engineering Change-USB.org" (PDF). USB Flash Drive Alliance. Archived (PDF) from the original on 12 April 2015. Retrieved 29 December 2014.
- "Cables and Long-Haul Solutions". USB FAQ. USB.org. Archived from the original on 15 January 2014. Retrieved 2 February 2014.
- "USB Frequently Asked Questions". USB Implementers Forum. Archived from the original on 18 January 2011. Retrieved 10 December 2010.
- Axelson, Jan. "USB 3.0 Developers FAQ". Archived from the original on 20 December 2016. Retrieved 20 October 2016.
- "Battery Charging Specification, Revision 1.2". USB Implementers Forum. 7 December 2010. Archived from the original on 28 March 2016. Retrieved 29 March 2016.
- Section 1.4.5, pg. 2; and Table 5-3 "Resistances", pg. 45
- "USB in a NutShell—Chapter 2—Hardware". Beyond Logic.org. Archived from the original on 20 August 2007. Retrieved 25 August 2007.
.usb .org /developers /docs /devclass _docs /BasicAudioDevice-10 .zip
- "32-bit Atmel Microcontroller Application Note" (PDF). Atmel Corporation. 2011. Archived (PDF) from the original on 6 May 2016. Retrieved 13 April 2016.
- "FireWire vs. USB 2.0" (PDF). QImaging. Archived (PDF) from the original on 11 October 2010. Retrieved 20 July 2010.
- "FireWire vs. USB 2.0 – Bandwidth Tests". Archived from the original on 12 August 2007. Retrieved 25 August 2007.
- "USB 2.0 vs FireWire". Pricenfees. Archived from the original on 16 October 2016. Retrieved 25 August 2007.
- Metz, Cade (25 February 2003). "The Great Interface-Off: FireWire Vs. USB 2.0". PC Magazine. Archived from the original on 30 September 2007. Retrieved 25 August 2007.
- Heron, Robert. "USB 2.0 Versus FireWire". TechTV. Archived from the original on 29 September 2007. Retrieved 25 August 2007.
- "FireWire vs. USB 2.0". USB Ware. Archived from the original on 16 March 2007. Retrieved 19 March 2007.
- Key, Gary (15 November 2005). "Firewire and USB Performance". Archived from the original on 23 April 2008. Retrieved 1 February 2008.
- "802.3, Section 184.108.40.206" (PDF). IEEE. Archived (PDF) from the original on 6 December 2010.
- "Powerbook Explodes After Comcast Plugs In Wrong Cable". Consumerist. 8 March 2010. Archived from the original on 25 June 2010. Retrieved 22 June 2010.
- "How Thunderbolt Technology Works: Thunderbolt Technology Community". Thunderbolttechnology.net. Archived from the original on 10 February 2014. Retrieved 22 January 2014.
- One port to rule them all: Thunderbolt 3 and USB Type-C join forces, archived from the original on 2 June 2015, retrieved 2 June 2015
- Thunderbolt 3 is twice as fast and uses reversible USB-C, archived from the original on 3 June 2015, retrieved 2 June 2015
- Thunderbolt 3 embraces USB Type-C connector, doubles bandwidth to 40 Gbps, archived from the original on 3 June 2015, retrieved 2 June 2015
- "Interchip Connectivity: HSIC, UniPro, HSI, C2C, LLI... oh my!". Archived from the original on 19 June 2011. Retrieved 24 June 2011.
- Axelson, Jan (1 September 2006). USB Mass Storage: Designing and Programming Devices and Embedded Hosts (1st ed.). Lakeview Research. ISBN 978-1-931-44804-8.
- ——— (1 December 2007). Serial Port Complete: COM Ports, USB Virtual COM Ports, and Ports for Embedded Systems (2nd ed.). Lakeview Research. ISBN 978-1-931-44806-2.
- ——— (2015). USB Complete: The Developer's Guide (5th ed.). Lakeview Research. ISBN 978-1-931448-28-4. 524 pp.
- Hyde, John (February 2001). USB Design by Example: A Practical Guide to Building I/O Devices (2nd ed.). Intel Press. ISBN 978-0-970-28465-5.
- "Debugging USB 2.0 for Compliance: It's Not Just a Digital World" (PDF). Technologies Application Note (1382–3). Agilent. Archived from the original (PDF) on 25 July 2012.
|Wikimedia Commons has media related to USB.|
|The Wikibook Serial Programming:USB Technical Manual has a page on the topic of: USB connectors|
- "USB Implementers Forum".
- "Universal Host Controller Interface (UHCI)" (PDF). Intel.
- "USB 3.0 Standard-A, Standard-B, Powered-B connectors". Pinouts guide.
- "Characterization and compliance test". Agilent.
- Muller, Henk. "How To Create And Program USB Devices," Electronic Design, July 2012
- An Analysis of Throughput Characteristics of Universal Serial Bus, June 1996, by John Garney
- USB 2.0 Protocol Engine, October 2010, by Razi Hershenhoren and Omer Reznik
- IEC international standard: IEC 62680 Universal serial bus interfaces for data and power:
- IEC 62680-1.1:2015 - Part 1-1: Common components - USB Battery Charging Specification, revision 1.2
- IEC 62680-1-2:2016 - Part 1-2: Common components - USB Power Delivery specification revision 1.0
- IEC 62680-1-3:2016 - Part 1-3: Universal Serial Bus interfaces - Common components -, revision 1.0
- IEC 62680-2-1:2015 - Part 2-1: Universal Serial Bus Specification, Revision 2.0
- IEC 62680-2-2:2015 - Part 2-2: Micro-USB Cables and Connectors Specification, Revision 1.01
- IEC 62680-2-3:2015 - Part 2-3: Universal Serial Bus Cables and Connectors Class Document Revision 2.0