All Topics  
Universal Serial Bus

 

   Email Print
   Bookmark   Link






 

Universal Serial Bus



 
 
In information technology
Information technology

Information technology , as defined by the Information Technology Association of America , is "the study, design, development, implementation, support or management of computer-based information systems, particularly software applications and computer hardware." IT deals with the use of electronic computers and computer software to data conv...
, Universal Serial Bus (USB) is a serial
Serial communications

In telecommunication and computer science, serial communication is the process of sending data one bit at one time, sequentially, over a communication channel or computer bus....
 bus
Computer bus

In computer architecture, a bus is a subsystem that transfers data between computer components inside a computer or between computers. Each bus defines its set of connectors to physically plug devices, cards or cables together....
 standard to connect
Electrical connector

An electrical connector is a Electrical conductor for joining electrical circuits together. The connection may be temporary, as for portable equipment, or may require a tool for assembly and removal, or may be a permanent electrical joint between two wires or devices....
 devices to a host computer. USB was designed to allow many peripherals to be connected using a single standardized interface socket and to improve plug and play capabilities by allowing hot swapping
Hot swapping

Hot swapping and hot plugging are terms used to separately describe the functions of replacing system components without shutting down the system....
; that is, by allowing devices to be connected and disconnected without rebooting
Booting

In computing, booting is a Bootstrapping process that starts operating systems when the user turns on a computer system. A boot sequence is the initial set of operations that the computer performs when it is switched on....
 the computer or turning off the device.






Discussion
Ask a question about 'Universal Serial Bus'
Start a new discussion about 'Universal Serial Bus'
Answer questions from other users
Full Discussion Forum



Encyclopedia


Usb Icon
In information technology
Information technology

Information technology , as defined by the Information Technology Association of America , is "the study, design, development, implementation, support or management of computer-based information systems, particularly software applications and computer hardware." IT deals with the use of electronic computers and computer software to data conv...
, Universal Serial Bus (USB) is a serial
Serial communications

In telecommunication and computer science, serial communication is the process of sending data one bit at one time, sequentially, over a communication channel or computer bus....
 bus
Computer bus

In computer architecture, a bus is a subsystem that transfers data between computer components inside a computer or between computers. Each bus defines its set of connectors to physically plug devices, cards or cables together....
 standard to connect
Electrical connector

An electrical connector is a Electrical conductor for joining electrical circuits together. The connection may be temporary, as for portable equipment, or may require a tool for assembly and removal, or may be a permanent electrical joint between two wires or devices....
 devices to a host computer. USB was designed to allow many peripherals to be connected using a single standardized interface socket and to improve plug and play capabilities by allowing hot swapping
Hot swapping

Hot swapping and hot plugging are terms used to separately describe the functions of replacing system components without shutting down the system....
; that is, by allowing devices to be connected and disconnected without rebooting
Booting

In computing, booting is a Bootstrapping process that starts operating systems when the user turns on a computer system. A boot sequence is the initial set of operations that the computer performs when it is switched on....
 the computer or turning off the device. Other convenient features include providing power to low-consumption devices, eliminating the need for an external power supply; and allowing many devices to be used without requiring manufacturer-specific device driver
Device driver

In computing, a device driver or software driver is a computer program allowing higher-level computer programs to interact with a hardware device....
s to be installed.

USB is intended to replace many varieties of serial
Serial port

In computing, a serial port is a serial communication physical interface through which information transfers in or out one bit at a time ....
 and parallel port
Parallel port

A parallel port is a type of interface found on computers for connecting various peripherals. It is also known as a printer port or Centronics#The interface....
s. USB can connect computer peripherals such as mice, keyboards, PDA
Personal digital assistant

A personal digital assistant is a handheld computer, also known as a palmtop computer. Newer PDAs also have both color screens and audio capabilities, enabling them to be used as mobile phones, , web browsers, or portable media players....
s, gamepad
Gamepad

A gamepad, also called joypad or control pad, is a type of game controller held in the hand, where the digits are used to provide input....
s and joystick
Joystick

A joystick is an input device consisting of a stick that pivots on a base and reports its angle or direction to the device it is controlling. Joysticks are often used to control video games, and usually have one or more push-buttons whose state can also be read by the computer....
s, scanner
Image scanner

In computing, a scanner is a device that optically scans images, printed text, handwriting, or an object, and converts it to a digital image. Common examples found in offices are variations of the desktop scanner where the document is placed on a glass window for scanning....
s, digital camera
Digital camera

A digital camera is a camera that takes video or still photographs, or both, digitally by recording digital image via an electronics .Many compact digital still cameras can record sound and moving video as well as still photographs....
s, printer
Computer printer

File:Lexmark X5100 Series.jpgIn computing, a printer is a peripheral which produces a hard copy of documents stored in computer file form, usually on physical print media such as paper or Transparency ....
s, personal media player
Media player

Media player is a term typically used to describe computer software for playing back multimedia computer files. Most software media players support an array of media formats, including both digital audio and digital video files....
s, flash drive
USB flash drive

A USB flash drive consists of a Flash memory#NAND memories-type flash memory data storage device integrated with a USB interface. USB flash drives are typically removable and rewritable, much smaller than a floppy disk , and most USB flash drives weigh less than an ounce ....
s, and external hard drives. For many of those devices, USB has become the standard connection method. USB was designed for personal computer
Personal computer

A personal computer is any general-purpose computer whose original sales price, size, and capabilities make it useful for individuals, and which is intended to be operated directly by an end user, with no intervening computer operator....
s, but it has become commonplace on other devices such as PDAs and video game console
Video game console

A video game console is an game development that produces a video signal which can be used with a display device to display a video game. The term "video game console" is used to distinguish a machine designed for consumers to buy and use solely for playing video games from a personal computer, which has many other functions, or arcade machi...
s, and as a power cord
Power cord

For a musical note played on an electric guitar see Power chordA power cord, line cord, or mains cable is a cord or cable that temporarily connects an Small appliance to the distribution circuits of an electrical power source via a wall socket or extension cord....
 between a device and an AC adapter plugged into a wall plug for charging. , there are about 2 billion USB devices sold per year, and about 6 billion total sold to date.

The design of USB is standardized by the USB Implementers Forum
USB Implementers Forum

The USB Implementers Forum is a non-profit organisation to promote and support the Universal Serial Bus. Its main activities are the promotion and marketing of USB, Wireless USB, USB On-The-Go, and the maintenance of the specifications, as well as a compliance program....
 (USB-IF), an industry standards body incorporating leading companies from the computer and electronics industries. Notable members have included Agere (now merged with LSI Corporation
LSI Corporation

LSI Corporation is an electronics company based in Milpitas, California that designs ASICs, host bus adapters, RAID adapters, storage systems, and computer networking products....
), Apple Inc., Hewlett-Packard
Hewlett-Packard

The Hewlett-Packard Company , commonly referred to as HP, is a technology corporation headquartered in Palo Alto, California, United States....
, Intel, NEC, and Microsoft
Microsoft

Microsoft Corporation is a multinational corporation computer technology corporation that develops, manufactures, licenses, and supports a wide range of computer software products for computing devices....
.

History

The USB 1.0 specification was introduced in 1994. USB was created by the core group of companies that consisted of Intel, Compaq, Microsoft, Digital, IBM, and Northern Telecom. Intel produced the UHCI host controller
Host adapter

In computer hardware, a host controller, host adapter, or host bus adapter connects a host system to other computer network and computer storage devices....
 and open software stack; Microsoft produced a USB software stack for Windows and co-authored the OHCI host controller specification with National Semiconductor and Compaq; Philips produced early USB-Audio; and TI produced the most widely used hub chips. USB was intended to replace the multitude of connectors at the back of PCs, as well as to simplify software configuration of communication devices.

The USB 2.0 specification was released in April 2000 and was standardized by the USB-IF at the end of 2001. Hewlett-Packard, Intel, Lucent (now LSI Corporation since its merger with Lucent spinoff Agere Systems), Microsoft, NEC, and Philips jointly led the initiative to develop a higher data transfer rate, 480 Mbit/s, than the 1.0 specification of 12 Mbit/s.

The USB 3.0 specification was released on November 17, 2008 by the USB 3.0 Promoter Group. It has a transfer rate of up to 10 times faster than the USB 2.0 version and has been dubbed the SuperSpeed USB.

Equipment conforming with any version of the standard will also work with devices designed to any previous specification (known as backward compatibility
Backward compatibility

In technology, for example in telecommunications and computing, a device or technology is said to be backwards compatible if it allows input generated by older devices....
).

Usb Hub

Overview

A USB system has an asymmetric
Symmetry

Symmetry generally conveys two primary meanings. The first is an imprecise sense of harmonious or aesthetically-pleasing proportionality and balance; such that it reflects beauty or perfection....
 design, consisting of a host
Server (computing)

A server is a computer program that provides services to other computer programs , in the same or other computer. The physical computer that runs a server program is also often referred to as server....
, a multitude of downstream USB ports, and multiple peripheral devices connected in a tiered-star topology. Additional USB hub
USB hub

A USB hub is a device that allows many Universal Serial Bus devices to be connected to a single USB Computer port on the host computer or another hub....
s may be included in the tiers, allowing branching into a tree structure with up to five tier levels. A USB host may have multiple host controllers and each host controller may provide one or more USB ports. Up to 127 devices, including the hub devices, may be connected to a single host controller.

USB devices are linked in series through hubs. There always exists one hub known as the root hub, which is built into the host controller. So-called "sharing hubs", which allow multiple computers to access the same peripheral device(s), also exist and work by switching access between PCs, either automatically or manually. They are popular in small-office environments. In network terms, they converge rather than diverge branches.

A physical USB device may consist of several logical sub-devices that are referred to as device functions. A single device may provide several functions, for example, a webcam
Webcam

File:Logitech E2500 webcam.jpgWebcams are video capture connected to computer or computer network, often using Universal Serial Bus or, if they connect to networks, ethernet or Wi-Fi....
 (video device function) with a built-in microphone (audio device function).

USB device communication is based on pipes (logical channels). Pipes are connections from the host controller to a logical entity on the device named an endpoint
Endpoint

An endpoint or end point is a mark of termination or completion.* Endpoint , the conclusion of a chemical reaction, particularly for titration...
. The term endpoint is occasionally used to incorrectly refer to the pipe. A USB device can have up to 32 active pipes, 16 into the host controller and 16 out of the controller.

Each endpoint can transfer data in one direction only, either into or out of the device, so each pipe is uni-directional. 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 which is not associated with any interface.

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 speed of the USB device is determined during the reset signaling. After reset, the USB device's information is read by the host, then 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, host controller polls the bus for traffic, usually in a round-robin
Round-robin scheduling

Round-robin is one of the simplest scheduling algorithms for Computer process in an operating system, which assigns Preemption_#Time_slice to each process in equal portions and in order, handling all processes without priority....
 fashion. In SuperSpeed USB, connected devices can request service from host.

Device classes

USB defines class codes used to identify a device’s functionality and to load a device driver based on that functionality. This enables a device driver writer to support devices from different manufacturers that comply with a given class code.

Device classes include:

Class. Usage. Description. Examples.
00h Device (Device class is unspecified. Interface descriptors are used for determining the required drivers.)
01h Interface Audio Speaker
Loudspeaker

A loudspeaker, speaker, or speaker system is an electroacoustical transducer that converts an electricity signal processing to sound....
, microphone
Microphone

A microphone, sometimes referred to as a mike or?more recently?mic, is an acoustic-to-electric transducer or sensor that converts sound into an electrical signal....
, sound card
Sound card

A sound card is a computer expansion card that facilitates the input and output of sound to/from a computer under control of computer programs....
02h Both Communications and CDC Control
USB communications device class

USB communications device class is a composite Universal Serial Bus device class. It provides a single Universal_Serial_Bus#Device_classes, but there may be more than one interface implemented such as a custom control interface, data interface, audio, or USB mass storage device class related interfaces....
Ethernet adapter
Network card

A network card, network adapter, network interface controller , network interface card, or LAN adapter is a computer hardware component designed to allow computers to communicate over a computer network....
, modem
Modem

Modem is a peripheral device that modulation an analog carrier wave Signal to encode digital information, and also demodulation such a carrier signal to decode the transmitted information....
, serial port adapter
Serial port

In computing, a serial port is a serial communication physical interface through which information transfers in or out one bit at a time ....
03h Interface Human Interface Device (HID)
USB human interface device class

The USB human interface device class is a USB Universal Serial Bus#Device_classes that describes human interface devices such as keyboard , mouse , game controllers and alphanumeric display devices....
Keyboard
Keyboard (computing)

In computing, a keyboard is an input device, partially modeled after the Typewriter#Keyboard layout, which uses an arrangement of buttons or Push-button, which act as mechanical levers or electronic switches....
, mouse
Mouse (computing)

In computing, a mouse is a pointing device that functions by detecting dimension motion relative to its supporting surface. Physically, a mouse consists of an object held under one of the user's hands, with one or more buttons....
, joystick
05h Interface Physical Interface Device (PID) Force feedback joystick
06h Interface Image Webcams
07h Interface Printer
Computer printer

File:Lexmark X5100 Series.jpgIn computing, a printer is a peripheral which produces a hard copy of documents stored in computer file form, usually on physical print media such as paper or Transparency ....
Laser printer
Laser printer

A laser printer is a common type of computer printer that rapidly produces high quality text and graphics on plain paper. As with digital photocopiers and multifunction printers , laser printers employ a Xerography printing process but differ from analog photocopiers in that the image is produced by the direct scanning of a laser beam acros...
, Inkjet printer
Inkjet printer

File:Canon BJ-10v Lite inkjet printer with Scale.JPGInkjet printers operate by propelling variably-sized droplets of liquid or molten material onto almost any sized page....
08h Interface Mass Storage
USB mass storage device class

The USB mass storage device class or USB MSC or UMS is a set of computing Protocol defined by the USB Implementers Forum that run on the Universal Serial Bus....
USB flash drive
USB flash drive

A USB flash drive consists of a Flash memory#NAND memories-type flash memory data storage device integrated with a USB interface. USB flash drives are typically removable and rewritable, much smaller than a floppy disk , and most USB flash drives weigh less than an ounce ....
, memory card
Memory card

A memory card or flash memory card is a solid-state electronic flash memory data storage device used with digital cameras, Personal Digital Assistant and Mobile computers, telephones, music players, video game consoles, and other electronics....
 reader
Card reader

A memory card reader is a device used for communication with a smart card or a flash memory card.A business card reader is a scanning device used to scan and electronically save business cards....
, digital audio player
Digital audio player

A digital audio player, more commonly referred to as an MP3 player, is a consumer electronics device that stores, organizes and plays audio file formats....
, digital camera
Digital camera

A digital camera is a camera that takes video or still photographs, or both, digitally by recording digital image via an electronics .Many compact digital still cameras can record sound and moving video as well as still photographs....
, external drives
09h Device USB hub
USB hub

A USB hub is a device that allows many Universal Serial Bus devices to be connected to a single USB Computer port on the host computer or another hub....
Full speed hub, hi-speed hub
0Ah Interface CDC-Data (This class is used together with class 02h - Communications and CDC Control.)
0Bh Interface Smart Card
Smart card

A smart card, chip card, or integrated circuit card , is in any pocket-sized card with embedded integrated circuits which can process data....
USB smart card reader
0Dh Interface Content Security -
0Eh Interface Video
USB video device class

The USB video device class is a Universal Serial Bus Universal_serial_bus#Device_classes that describes devices capable of streaming video like Webcam, digital Camcorder, Transcoding, analog video converters, TV tuner card, and Still camera....
Webcam
Webcam

File:Logitech E2500 webcam.jpgWebcams are video capture connected to computer or computer network, often using Universal Serial Bus or, if they connect to networks, ethernet or Wi-Fi....
0Fh Interface Personal Healthcare -
DCh Both Diagnostic Device USB compliance testing device
E0h Interface Wireless
Wireless

Wireless communication is the transfer of information over a distance without the use of electrical conductors or "wires". The distances involved may be short or long ....
 Controller
Wi-Fi
Wi-Fi

Wi-Fi is a trademark of the Wi-Fi Alliance, founded in 1999 as Wireless Internet Compatibility Alliance , comprising more than 300 companies, whose products are certified by the Wi-Fi Alliance, based on the IEEE 802.11 standards ....
 adapter, Bluetooth
Bluetooth

Bluetooth is a wireless protocol for exchanging data over short distances from fixed and mobile devices, creating personal area networks . It was originally conceived as a wireless alternative to RS232 data cables....
 adapter
EFh Both Miscellaneous ActiveSync
ActiveSync

ActiveSync is a data synchronization program developed by Microsoft for use with its Microsoft Windows line of operating systems. Originally released under the name "Handheld PC Explorer" in 1996, it provides users of Microsoft Windows a way to transport documents, calendars, contact lists and email between their desktop computer and a mobi...
 device
FEh Interface Application Specific IrDA
Infrared Data Association

The Infrared Data Association defines physical specifications communications protocol standardizations for the short-range exchange of data over infrared light, for uses such as personal area networks ....
 Bridge
FFh Both Vendor Specific (This class code indicates that the device needs vendor specific drivers.)
Use class information in the Interface Descriptors. This base class is defined to be used in Device Descriptors to indicate that class information should be determined from the Interface Descriptors in the device.

USB mass-storage


USB implements connections to storage devices using a set of standards called the USB mass storage device class
USB mass storage device class

The USB mass storage device class or USB MSC or UMS is a set of computing Protocol defined by the USB Implementers Forum that run on the Universal Serial Bus....
 (referred to as MSC or UMS). This was initially intended for traditional magnetic and optical drives, but has been extended to support a wide variety of devices, particularly flash drives
USB flash drive

A USB flash drive consists of a Flash memory#NAND memories-type flash memory data storage device integrated with a USB interface. USB flash drives are typically removable and rewritable, much smaller than a floppy disk , and most USB flash drives weigh less than an ounce ....
. This generality is because many systems can be controlled with the familiar idiom of file manipulation within directories (The process of making a novel device look like a familiar device is also known as extension).

Though most newer computers are capable of booting off USB Mass Storage devices, USB is not intended to be a primary bus for a computer's internal storage: buses such as ATA (IDE), Serial ATA (SATA
Sata

Sata is a traditional dish from the Malaysian state of Terengganu, consisting of spiced fish meat wrapped in banana leaves and cooked on a grill....
), and SCSI
SCSI

Small Computer System Interface, or SCSI , is a set of standards for physically connecting and transferring data between computers and peripheral devices....
 fulfill that role. However, USB has one important advantage in that it is possible to install and remove devices without opening the computer case, making it useful for external drives. Originally conceived and still used today for optical storage devices (CD-RW
CD-RW

Compact Disc ReWritable is a rewritable optical disc format. Known as CD-Erasable during its development, CD-RW was introduced in 1997, and was preceded by the never officially released CD-RW#CD-MO in 1988....
 drives, DVD
DVD

DVD, also known as "Digital Versatile Disc" or "Digital Video Disc,"is a popular optical disc data storage device media format. Its main uses are video and data storage....
 drives, etc.), a number of manufacturers offer external portable USB hard drives
Hard disk

A hard disk drive , commonly referred to as a hard drive, hard disk, or fixed disk drive, is a non-volatile storage device which stores digitally encoded data on rapidly rotating hard disk platters with magnetic surfaces....
, or empty enclosures for drives, that offer performance comparable to internal drives. These external drives usually contain a translating device that interfaces a drive of conventional technology (IDE, ATA, SATA, ATAPI, or even SCSI) to a USB port. Functionally, the drive appears to the user just like an internal drive. Other competing standards that allow for external connectivity are eSATA
Sata

Sata is a traditional dish from the Malaysian state of Terengganu, consisting of spiced fish meat wrapped in banana leaves and cooked on a grill....
 and FireWire
FireWire

The IEEE 1394 interface is a serial communications interface standard for high-speed communications and isochronous real-time data transfer, frequently used by personal computers, as well as in digital audio, digital video, automotive, and aeronautics applications....
.

Another use for USB Mass Storage devices is the portable execution of software applications without the need of installation on the host computer, eg. Web Browser, VoIP, etc.

Human-interface devices (HIDs)

Mice and keyboards are frequently fitted with USB connectors, but because most PC motherboards still retain PS/2 connector
PS/2 connector

The PS/2 connector is used for connecting some Computer keyboard and computer mouse to a PC compatible computer system. Its name comes from the IBM Personal System/2 series of personal computers, with which it was introduced in 1987....
s for the keyboard and mouse as of 2007, they are often supplied with a small USB-to-PS/2 adaptor, allowing usage with either USB or PS/2 interface. There is no logic
Electronic circuit

An electronic circuit is a closed path formed by the interconnection of electronic components through which an electric current can flow. The electronic circuits may be physically constructed using any number of methods....
 inside these adaptors: they make use of the fact that such HID interfaces are equipped with controllers that are capable of serving both the USB and the PS/2 protocol, and automatically detect which type of port they are plugged into. Joysticks, keypads, tablets and other human-interface devices are also progressively migrating from MIDI, PC game port
Game port

The game port is the traditional connector for video game input devices on x86-based Personal computer. Since about 1990, the game port is usually integrated with a PC I/O or sound card, either Industry Standard Architecture or Peripheral Component Interconnect, or as an on-board feature of some motherboards; before that, it was usually on a...
, and PS/2 connectors to USB.

USB signaling

USB supports following data rates:
  • The Full Speed rate of 12 Mbit/s (1.5 MB
    Megabyte

    Megabyte is a SI prefix-multiple of the unit byte for digital information computer storage or transmission and is equal to 106 bytes....
    /s) is the basic USB data rate defined by USB 1.1. All USB hubs support Full Speed.
  • A Low Speed rate of 1.5 Mbit/s (187.5 kB
    Kilobyte

    Kilobyte is a unit of Computer data storage equal to either 1,024 bytes or 1,000 bytes , depending on context.It is abbreviated in a number of ways: KB, kB, K and Kbyte....
    /s) is defined by USB 1.0. It is very similar to full speed operation except that each bit takes 8 times as long to transmit. It is intended primarily to save cost in low-bandwidth Human Interface Devices
    Human interface device

    A human interface device or HID is a type of Peripheral that interacts directly with, and most often takes Input device from, humans and may deliver Output device to humans....
     (HID) such as keyboards, mice, and joysticks.
  • A High-Speed (USB 2.0) rate of 480 Mbit/s (60 MB/s) was introduced in 2001. All high-speed devices are capable of falling back to full-speed operation if necessary.


Experimental data rate
Data signaling rate

In telecommunication, data signaling rate , also known as gross bit rate, is the aggregate rate at which data pass a point in the transmission data link of a data transmission system....
:
  • A SuperSpeed (USB 3.0) rate of 5.0 Gbit/s (625 MB/s). The USB 3.0 specification was released by Intel and its partners in August 2008, according to early reports from CNET
    CNET

    CNET Networks, Inc. was a mass media corporation based in San Francisco, California, United States. The company was co-founded in 1993 by Halsey Minor and Shelby Bonnie....
     news. Products using the 3.0 specification are expected to arrive in 2009 or 2010.


USB signals are transmitted on a twisted pair
Twisted pair

Twisted pair cabling is a form of wiring in which two conductors are twisted together for the purposes of canceling out electromagnetic interference from external sources; for instance, electromagnetic radiation from unshielded twisted pair cables, and crosstalk between neighboring pairs....
 data cable with 90O
Ohm

The ohm is the SI unit of electrical impedance or, in the direct current case, electrical resistance, named after Georg Ohm....
 ±15% impedance, labeled D+ and D−. These collectively use half-duplex differential signaling
Differential signaling

Differential signaling is a method of transmitting information electrically by means of two complementary Signal sent on two separate wires. The technique can be used for both analog signaling, as in some Sound recording and reproduction systems, and digital signaling, as in RS-422, RS-485, Ethernet , PCI Express and USB....
 to combat the effects of electromagnetic noise
Signal noise

In science, and especially in physics and telecommunication, noise is fluctuations in and the addition of external factors to the stream of target information being received at a detector....
 on longer lines. Transmitted signal levels are 0.0–0.3 volt
Volt

The volt is the SI SI derived unit of electric potential difference or electromotive force, commonly known as voltage. It is named in honor of the Lombard physicist Alessandro Volta , who invented the voltaic pile, possibly the first chemical battery ....
s for low and 2.8–3.6 volt
Volt

The volt is the SI SI derived unit of electric potential difference or electromotive force, commonly known as voltage. It is named in honor of the Lombard physicist Alessandro Volta , who invented the voltaic pile, possibly the first chemical battery ....
s for high in Full Speed (FS) and Low Speed (LS) modes, and -10–10 mV for low and 360–440 mV for high in High Speed (HS) mode. In FS mode the cable wires are not terminated, but the HS mode has termination of 45O to ground, or 90O differential to match the data cable impedance.

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. The host includes 15 kO pull-down resistors on each data line. When no device is connected, this pulls both data lines low into the so-called "single-ended zero" state (SE0 in the USB documentation), and indicates a reset or disconnected connection.

A USB device pulls one of the data lines high with a 1.5 kO resistor. This overpowers one of the pull-down resistors in the host and leaves the data lines in an idle state called "J". The choice of data line indicates a device's speed support; full-speed devices pull D+ high, while low-speed devices pull D− high.

USB data is transmitted by toggling the data lines between the J state and the opposite K state. USB encodes data using the NRZI convention; a 0 bit is transmitted by toggling the data lines from J to K or vice-versa, while a 1 bit is transmitted by leaving the data lines as-is. To ensure a minimum density of signal transitions, USB uses bit stuffing
Bit stuffing

In data transmission and telecommunication, bit stuffing is the insertion of noninformation binary digits into data. Stuffed bits should not be confused with overhead bits....
; an extra 0 bit is inserted into the data stream after any appearance of six consecutive 1 bits. Seven consecutive 1 bits is always an error.

A USB frame begins with an 8-bit synchronization sequence 00000001. That is, after the initial idle state J, the data lines toggle KJKJKJKK. The final 1 bit (repeated K state) marks the end of the sync pattern and the beginning of the USB frame proper.

A USB frame's end, called EOP (end-of-packet), is indicated by the transmitter driving 2 bit times of SE0 (D+ and D- both below Vil max) and 1 bit time of J state. After this, the transmitter ceases to drive the D+/D− lines and the aforementioned resistors hold it in the J (idle) state. A receiver may take extra time to decode the SE0 state, and will see the first bit time as a repetition of the last data bit. Since USB frames are always a multiple of 8 bits long, this extra "dribble bit" can be detected and ignored.

A USB bus is reset using a prolonged (10 to 20 milliseconds) SE0 signal.

USB 2.0 devices use a special protocol during reset, called "chirping", to negotiate the High-Speed mode with the host/hub. A device that is HS capable first connects as an FS device (D+ pulled high), but upon receiving a USB RESET (both D+ and D- driven LOW by host for 10 to 20 mS) it pulls the D- line high. If the host/hub is also HS capable, it chirps (returns alternating J and K states on D- and D+ lines) letting the device know that the hub will operate at High Speed.

Clock tolerance is 480.00 Mbit/s ±500 ppm, 12.000 Mbit/s ±2500 ppm, 1.50 Mbit/s ±15000 ppm.

Though Hi-Speed devices are commonly referred to as "USB 2.0" and advertised as "up to 480 Mbit/s", not all USB 2.0 devices are Hi-Speed. The USB-IF
USB Implementers Forum

The USB Implementers Forum is a non-profit organisation to promote and support the Universal Serial Bus. Its main activities are the promotion and marketing of USB, Wireless USB, USB On-The-Go, and the maintenance of the specifications, as well as a compliance program....
 certifies devices and provides licenses to use special marketing logos for either "Basic-Speed" (low and full) or Hi-Speed after passing a compliance test and paying a licensing fee. All devices are tested according to the latest spec, so recently-compliant Low-Speed devices are also 2.0 devices.

The actual throughput attained with real devices is about two thirds of the maximum theoretical bulk data transfer rate of 53.248 MB/s. Typical hi-speed USB devices operate at lower speeds, often about 3 MB/s overall, sometimes up to 10–20 MB/s.

USB packets

USB communication takes the form of 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.

After the sync field described above, all packets are made of 8-bit bytes, transmitted least-significant bit first
Endianness

In computing, endianness is the byte ordering used to represent some kind of data. Typical cases are the order in which integer values are stored as bytes in computer memory and the transmission order over a network or other medium....
. The first byte is a packet identifier (PID) byte. The PID is actually 4 bits; the byte consists of the 4-bit PID followed by its bitwise complement. This redundancy helps detect errors. (Note also that a PID byte contains at most four consecutive 1 bits, and thus will never need bit-stuffing, even when combined with the final 1 bit in the sync byte. However, the OUT PID byte ends with three consecutive 1 bits, so if the following USB device address begins with three 1 bits, bit-stuffing will be required.)

Packets come in three basic types, each with a different format and CRC (cyclic redundancy check
Cyclic redundancy check

A cyclic redundancy check is a type of function that takes as input a data stream of any length, and produces as output a value of a certain space, commonly a 32-bit integer....
):

Handshake packets

Handshake packets consist of nothing but a PID byte, and are generally sent in response to data packets. The three basic types are ACK, indicating that data was successfully received, NAK, indicating that the data cannot be received at this time and should be retried, and STALL, indicating that the device has an error and will never be able to successfully transfer data until some corrective action (such as device initialization) is performed.

USB 2.0 added two additional handshake packets, NYET which indicates that a split transaction is not yet complete, and an ERR handshake to indicate that a split transaction failed.

The only handshake packet the USB host may generate is ACK; if it is not ready to receive data, it should not instruct a device to send any.

Token packets

Token packets consist of a PID byte followed by 11 bits of address and a 5-bit CRC. Tokens are only sent by the host, never a device.—

IN and OUT tokens contain a 7-bit device number and 4-bit function number (for multifunction devices) and command the device to transmit DATAx packets, or receive the following DATAx packets, respectively.

An IN token expects a response from a device. The response may be a NAK or STALL response, or a DATAx frame. In the latter case, the host issues an ACK handshake if appropriate.

An OUT token is followed immediately by a DATAx frame. The device responds with ACK, NAK, or STALL, as appropriate.

SETUP operates much like an OUT token, but is used for initial device setup.

Every millisecond (12000 full-speed bit times), the USB host transmits a special SOF (start of frame) token, containing an 11-bit incrementing frame number in place of a device address. This is used to synchronize isochronous data flows. High-speed USB 2.0 devices receive 7 additional duplicate SOF tokens per frame, each introducing a 125 µs "microframe".

USB 2.0 added a PING token, which asks a device if it is ready to receive an OUT/DATA packet pair. The device responds with ACK, NAK, or STALL, as appropriate. This avoids the need to send the DATA packet if the device knows that it will just respond with NAK.

USB 2.0 also added a larger SPLIT token with a 7-bit hub number, 12 bits of control flags, and a 5-bit CRC. This is used to perform split transactions. Rather than tie up the high-speed USB bus sending data to a slower USB device, the nearest high-speed capable hub receives a SPLIT token followed by one or two USB packets at high speed, performs the data transfer at full or low speed, and provides the response at high speed when prompted by a second SPLIT token. The details are complex; see the USB specification.

Data packets

There are two basic data packets, DATA0 and DATA1. Both consist of a DATAx PID field, 0–1023 bytes of data payload (up to 1024 in high speed, at most 8 at low speed), and a 16-bit CRC. They must always be preceded by an address token, and are usually followed by a handshake token from the receiver back to the transmitter. The two packet types provide the 1-bit sequence number required by Stop-and-wait ARQ
Stop-and-wait ARQ

Stop-and-wait ARQ is the simplest kind of automatic repeat-request method. A stop-and-wait ARQ sender sends one frame at a time. After sending each frame, the sender doesn't send any further frames until it receives an ACK signal....
. If a USB host does not receive a response (such as an ACK) for data it has transmitted, it does not know if the data was received or not; the data might have been lost in transit, or it might have been received but the handshake response was lost.

To solve this problem, the device keeps track of the type of DATAx packet it last accepted. If it receives another DATAx packet of the same type, it is acknowledged but ignored as a duplicate. Only a DATAx packet of the opposite type is actually received.

When a device is reset with a SETUP packet, it expects a DATA0 packet next.

USB 2.0 added DATA2 and MDATA packet types as well. They are used only by high-speed devices doing high-bandwidth isochronous transfers which need to transfer more than 1024 bytes per 125 µs "microframe" (8192 kB/s).

PRE "packet"

Low-speed devices are supported with a special PID value, PRE. This marks the beginning of a low-speed packet, and is used by hubs which normally do not send full-speed packets to low-speed devices. Since all PID bytes include four 0 bits, they leave the bus in the full-speed K state, which is the same as the low-speed J state. It is followed by a brief pause during which hubs enable their low-speed outputs, already idling in the J state, then a low-speed packet follows, beginning with a sync sequence and PID byte, and ending with a brief period of SE0. Full-speed devices other than hubs can simply ignore the PRE packet and its low-speed contents, until the final SE0 indicates that a new packet follows.

USB protocol analyzers


Due to the complexities of the USB protocol, USB protocol analyzers are invaluable tools to USB device developers. USB analyzers are able to capture the data on USB and display information from low-level bus states to high-level data packets and class-level information.

USB connector properties

The connectors specified by the USB committee were designed to support a number of USB's underlying goals, and to reflect lessons learned from the varied menagerie of connectors then in service.

Usability

  • It is difficult to incorrectly attach a USB connector. Connectors cannot be plugged in upside down, and it is clear from the appearance and kinesthetic sensation of making a connection when the plug and socket are correctly mated. However, it is not obvious at a glance to the inexperienced user (or to a user without sight of the installation) which way around the connector goes, thus it is often necessary to try both ways. More often than not, however, the side of the connector with the trident logo should be on top.
  • Only moderate insertion / removal force is needed (by specification). USB cables and small USB devices are held in place by the gripping force from the receptacle (without the need for the screws, clips, or thumbturns that other connectors require). The force needed to make or break a connection is modest, allowing connections to be made in awkward circumstances or by those with motor disabilities.
  • The connectors enforce the directed topology
    Topology

    Topology is a major area of mathematics that has emerged through the development of concepts from geometry and set theory, such as those of space, dimension, shape, transformation and others....
     of a USB network: type A connectors on host devices that supply power and type B connectors on target devices that receive power. This prevents users from accidentally connecting two USB power supplies to each other, which could otherwise lead to dangerously high currents flowing. USB does not support cyclical networks and the connectors from incompatible USB devices are themselves incompatible. Unlike other communications systems (e.g. RJ-45 cabling) gender changer
    Gender changer

    A gender changer is a hardware device placed between two cable connectors of the same type and gender of connectors and fasteners.An example is a cable connector shell with either two female or two male connectors on it , used to correct the mismatches that result when interconnecting two devices or cables with the same gender of connector....
    s make little sense with USB and are almost never used.

Durability

  • The connectors are designed to be robust. Many previous connector designs were fragile, with pins or other delicate components prone to bending or breaking, even with the application of only very modest force. The electrical contacts in a USB connector are protected by an adjacent plastic tongue, and the entire connecting assembly is usually further protected by an enclosing metal sheath
    Sheath

    Sheath may refer to:* Scabbard, a container for a sword or other large blade* Condom, a kind of contraception* Vagina, the internal structure of the female genitalia...
    . As a result USB connectors can safely be handled, inserted, and removed, even by a young child.
  • The connector construction always ensures that the external sheath on the plug makes contact with its counterpart in the receptacle before the four connectors within are connected. This sheath is typically connected to the system ground, allowing otherwise damaging static charges to be safely discharged by this route (rather than via delicate electronic component
    Electronic component

    An electronic component is a basic Electronics element usually packaged in a discrete form with two or more connecting leads or metallic pads....
    s). This means of enclosure also means that there is a (moderate) degree of protection from electromagnetic interference afforded to the USB signal while it travels through the mated connector pair (this is the only location when the otherwise twisted data pair must travel a distance in parallel). In addition, the power and common connections are made after the system ground but before the data connections. This type of staged make-break timing allows for safe hot-swapping and has long been common practice in the design of connectors in the aerospace industry
    Aerospace

    Aerospace comprises the atmosphere of Earth and surrounding outer space. Typically the term is used to refer to the industry that researches, designs, manufactures, operates, and maintains vehicles moving through Aircraft and Space exploration....
    .
  • The newer Micro-USB receptacles are designed to allow up to 10,000 cycles of insertion and removal between the receptacle and plug, compared to 500 for the standard USB and Mini-USB receptacle. This is accomplished by adding a locking device and by moving the leaf-spring connector from the jack to the plug, so that the most-stressed part is on the cable side of the connection. This change was made so that the connector on the (relatively inexpensive) cable would bear the most wear instead of the micro-USB device.


Compatibility

  • The USB standard specifies relatively loose tolerances for compliant USB connectors, intending to minimize incompatibilities in connectors produced by different vendors (a goal that has been very successfully achieved). Unlike most other connector standards, the USB specification also defines limits to the size of a connecting device in the area around its plug. This was done to prevent a device from blocking adjacent ports due to its size. Compliant devices must either fit within the size restrictions or support a compliant extension cable which does.
  • Two-way communication is also possible. In general, cables have only plugs, and hosts and devices have only receptacles: hosts having type-A receptacles and devices type-B. Type-A plugs only mate with type-A receptacles, and type-B with type-B. However, an extension to USB called USB On-The-Go
    USB On-The-Go

    USB On-The-Go, normally abbreviated USB OTG, is a supplement to the Universal Serial Bus 2.0 specification.The standard USB uses a Master-slave architecture; a USB 'Host' acts as the protocol master,...
     allows a single port to act as either a host or a device — chosen by which end of the cable plugs into the socket on the unit. Even after the cable is hooked up and the units are talking, the two units may "swap" ends under program control. This facility targets units such as PDAs
    Personal digital assistant

    A personal digital assistant is a handheld computer, also known as a palmtop computer. Newer PDAs also have both color screens and audio capabilities, enabling them to be used as mobile phones, , web browsers, or portable media players....
     where the USB link might connect to a PC's host port as a device in one instance, yet connect as a host itself to a keyboard and mouse device in another instance. In USB 3.0, full-duplex communications are done when using SuperSpeed transfer.
  • USB 3.0 receptacles are compatible with USB 2.0 device plugs for the respective physical form factors. However, only USB 2.0 Standard-A receptacles can accept USB 3.0 Standard-A device plugs.


Interface

Receptacle Plug
USB-A USB-B Mini-B Micro-A Micro-B
USB-A
USB-B
Mini-B
Micro-AB
Micro-B


Cables

Plug Plug
Micro-B Micro-A Mini-B USB-B USB-A
USB-A
USB-B
Mini-B  
Micro-A   
Micro-B    
NS: non-standard, existing for specific proprietary purposes not at the guidance of the USB-IF.

In addition to these cable assemblies also a cable with Micro-A and Standard-A receptacle is compliant with USB specifications. Other combinations of connectors are not compliant. However, some older devices and cables with Mini-A connector have been certified by USB-IF; the Mini-A connector has been deprecated, and no new certification for assemblies using Mini-A connector will be allowed.

Types of USB connector

Usb
There are several types of USB connectors, including some that have been added while the specification progressed. The original USB specification detailed Standard-A and Standard-B plugs and receptacles. The first engineering change notice to the USB 2.0 specification added Mini-B plugs and receptacles.

The data connectors in the A - Plug are actually recessed in the plug as compared to the outside power connectors. This permits the power to connect first which prevents data errors by allowing the device to power up first and then transfer the data. Some devices will operate in different modes depending on whether the data connection is made. This difference in connection can be exploited by inserting the connector only partially. For example, some battery-powered MP3 players switch into file transfer mode (and cannot play MP3 files) while a USB plug is fully inserted, but can be operated in MP3 playback mode using USB power by inserting the plug only part way so that the power slots make contact while the data slots do not. This enables those devices to be operated in MP3 playback mode while getting power from the cable.

USB-A

The Standard-A type of USB connector takes on the appearance of a flattened rectangle that plugs into downstream-port sockets on the USB host or a hub and receives power. This kind of connector is most frequently seen on cables that are permanently attached to a device, such as one on a cable that connects a keyboard or mouse to the computer.

USB-B

Standard-B connectors—which have a square shape with beveled exterior corners—typically plug into upstream sockets on devices that use a removable cable, e.g. between a hub and a printer. Type B plugs deliver power and are therefore analogous to a power socket. This two-connector scheme prevents a user from accidentally creating a loop.

Mini and micro

Various connectors have been used for smaller devices such as PDAs, mobile phones or digital cameras. These include the now-deprecated (but standardized) Mini-A and the current standard Mini-B, Micro-A, and Micro-B connectors. The Mini-A and Mini-B plugs are approximately 3 by 7 mm, while the Micro plugs have a similar width but approximately half the thickness, enabling their integration into thinner portable devices.

The Micro-USB connector was announced by the USB-IF
USB Implementers Forum

The USB Implementers Forum is a non-profit organisation to promote and support the Universal Serial Bus. Its main activities are the promotion and marketing of USB, Wireless USB, USB On-The-Go, and the maintenance of the specifications, as well as a compliance program....
 on January 4, 2007 and the Mini-USB connectors were withdrawn. , most available devices and cables still use Mini plugs, but the newer Micro connectors are becoming more widely adopted. The thinner Micro connectors are intended to replace the Mini plugs in new devices including smartphone
Smartphone

A smartphone is a mobile phone offering advanced capabilities beyond a typical mobile phone, often with personal computer-like functionality. There is no industry standard definition of a smartphone....
s and Personal digital assistant
Personal digital assistant

A personal digital assistant is a handheld computer, also known as a palmtop computer. Newer PDAs also have both color screens and audio capabilities, enabling them to be used as mobile phones, , web browsers, or portable media players....
s. The Micro plug design is rated for 10,000 connect-disconnect cycles. The Universal Serial Bus Micro-USB Cables and Connectors Specification details the mechanical characteristics of Micro-A plugs, Micro-AB receptacles, and Micro-B plugs and receptacles, along with a Standard-A receptacle to Micro-A plug adapter. The carrier-led Open Mobile Terminal Platform
Open mobile terminal platform

The Open Mobile Terminal Platform is a forum created by mobile network operators to discuss standards with manufacturers of cell phones and other mobile devices....
 (OMTP) group have recently endorsed micro-USB as the standard connector for data and power on mobile devices. These include various types of battery chargers, allowing Micro-USB to be the single external cable link needed by some devices.

USB OTG Sockets: Mini-AB, Micro-AB

Except for special standard-to-Mini-A and standard-to-Micro-A adapters, USB cables always have an A-connector and a B-connector, on opposite ends. A-connectors can always connect to A-sockets; B-connectors can always connect B-sockets. These sockets all come in standard, mini, and micro versions.

For USB On-The-Go
USB On-The-Go

USB On-The-Go, normally abbreviated USB OTG, is a supplement to the Universal Serial Bus 2.0 specification.The standard USB uses a Master-slave architecture; a USB 'Host' acts as the protocol master,...
 (or 'OTG') support for another socket type is defined: the AB, in both mini and micro versions. It can accept both A and B connector, through careful mechanical design. OTG software detects the difference by use of the ID pin, which is grounded in A-connectors and is otherwise floating. When an A-connector is connected to an AB socket, the socket supplies VBUS power to the cable and starts in the host role. When a B-connector is used, the socket consumes VBUS power and starts in the peripheral or device role. OTG allows those two roles to be switched by software, as needed for the task at hand.

Proprietary connectors and formats

  • Microsoft's original Xbox
    Xbox

    The Xbox is a History of video games video game console produced by Microsoft. It was Microsoft's first foray into the gaming console market, and competed with Sony's PlayStation 2 and Nintendo's GameCube....
     game console uses standard USB 1.1 signaling in its controllers and memory cards, but features proprietary connectors and ports.
  • IBM UltraPort
    IBM UltraPort

    IBM UltraPort was a nonstandard Universal Serial Bus port used by IBM on its range of ThinkPad laptop computers....
     uses standard USB signaling, but via a proprietary connection format.
  • American Power Conversion
    American Power Conversion

    Schneider Electric's Critical Power and Cooling Services Business Unit, formerly known as American Power Conversion Corporation, is a manufacturer of uninterruptible power supplies, electronics peripherals and data center products....
     uses USB signaling and HID device class on its uninterruptible power supplies using 10P10C connectors.
  • HTC manufactures Windows Mobile-based Communicators and the T-Mobile G1 which have a proprietary connector called HTC ExtUSB. The ExtUSB combines mini-USB (with which it is backwards-compatible) with audio/video input and output in an 11-pin connector
  • Nokia
    Nokia

    Nokia Corporation is a Finland Multinational corporation communications corporation, headquartered in Keilaniemi, Espoo, a city neighbouring Finland's capital Helsinki....
     includes a USB connection as part of the Pop-Port
    Pop-Port

    The Pop-Port interface is a plug-in port, available with many Nokia mobile phones. The port consists of one metal pin on either end, and a plastic tab containing thirteen contacts....
     connector on some older mobile phone models.
  • The second-generation iPod Shuffle
    IPod shuffle

    The iPod Shuffle is a digital audio player designed and marketed by Apple Inc. It is the budget model in Apple's iPod family. It was announced at the Macworld Conference & Expo on January 11, 2005, using the tagline "life is random"....
     uses a TRS connector
    TRS connector

    A TRS connector also called an audio jack, phone plug, jack plug, stereo plug, mini-jack, or mini-stereo, is a common audio connector....
     to carry USB, audio, or power signals.


USB cables

Pin Name Cable color Description
1 VCC
IC power supply pin

Almost all integrated circuits have at least two pins which connect to the power supply rails of the circuit in which they are installed. These are known as the IC's power supply pins....
Red +5V
2 D− White Data −
3 D+ Green Data +
4 GND Black Ground


The maximum length of a standard USB cable is . The primary reason for this limit is the maximum allowed round-trip delay of about 1500 ns. If a USB device does not answer to host commands within the allowed time, the host considers the command to be lost. When adding up the USB device response time, delays from using the maximum number of hubs, and delays from the connecting cables, the maximum acceptable delay per cable turns out to be 26 ns. The USB 2.0 specification requires cable delay to be less than 5.2 ns per meter (which is close to the maximum achievable speed for standard copper cable). This allows for a 5 meter cable.
Miniplug/Microplug
PinNameColorDescription
1VCCRed +5 V
2D-WhiteData -
3D+GreenData +
4IDnonepermits distinction of Micro-A- and Micro-B-Plug

Type A: connected to Ground

Type B: not connected
5GNDBlackSignal Ground


The data cables are a Twisted pair
Twisted pair

Twisted pair cabling is a form of wiring in which two conductors are twisted together for the purposes of canceling out electromagnetic interference from external sources; for instance, electromagnetic radiation from unshielded twisted pair cables, and crosstalk between neighboring pairs....
 to reduce noise
Signal noise

In science, and especially in physics and telecommunication, noise is fluctuations in and the addition of external factors to the stream of target information being received at a detector....
 and crosstalk
Crosstalk (electronics)

In electronics, the term crosstalk refers to any phenomenon by which a Signalling transmitted on one circuit or channel of a transmission system creates an undesired effect in another circuit or channel....
.

Maximum useful distance


USB 1.1 maximum cable length is . USB 2.0 maximum cable length is . Maximum hubs connected in series is 5. Maximum devices connected in total is 127.

Although a single cable is limited to 5 metres, the USB 2.0 specification permits up to five USB hubs in a long chain of cables and hubs. This allows for a maximum distance of between host and device, using six cables long and five hubs. In actual use, since some USB devices have built-in cables for connecting to the hub, the maximum achievable distance is + the length of the device's cable.

USB 3.0 does not define cable assembly lengths, except that it can be of any length as long as it meets all the requirements defined in the specification. However, estimated that cables will be limited to 3 metres at top speed.

Since USB provides power for devices connected to the bus, a special type of USB extender cable was created, consisting of a miniature one-port USB hub molded onto one end of a 5-metre cable. These mini-hubs are fully self-contained within the cable, requiring no separate bulky hub device and no external power. They are as simple to use as plugging cables together, with each hub drawing power through all the previous single-port hubs in the chain. Because bus power is limited, the most practical arrangement consists of four single-port hub extender cables, one plain 5-metre cable and, at the very end, a powered multiport hub to support multiple USB devices.

Power

The USB specification provides a 5 V
Volt

The volt is the SI SI derived unit of electric potential difference or electromotive force, commonly known as voltage. It is named in honor of the Lombard physicist Alessandro Volta , who invented the voltaic pile, possibly the first chemical battery ....
 supply on a single wire from which connected USB devices may draw power. The specification provides for no more than 5.25 V and no less than 4.75 V (5 V±5%) between the positive and negative bus power lines.

A unit load is defined as 100 mA in USB 2.0, and was raised to 150 mA in USB 3.0. A maximum of 5 unit loads can be drawn from a port in USB 2.0, which was raised to 6 in USB 3.0. There are two types of devices: low-power and high-power. Low-power devices draw at most 1 unit load, with minimum operating voltage of 4.4 V in USB 2.0, and 4 V in USB 3.0. High-power devices draw the maximum number of unit loads supported by the standard. All devices default as low-power but the device's software may request high-power as long as the power is available on the providing bus.

A bus-powered hub is initialized at 1 unit load and transitions to maximum unit loads after hub configuration is obtained. Any device connected to the hub will draw 1 unit load regardless of the current draw of devices connected to other ports of the hub (i.e one device connected on a four-port hub will only draw 1 unit load despite the fact that all unit loads are being supplied to the hub).

A self-powered hub will supply maximum supported unit loads to any device connected to it. A battery-powered hub may supply maximum unit loads to port. In addition, the VBUS will supply 1 unit load upstream for communication if parts of the Hub are powered down.

In Battery Charging Specification, new powering modes are added to the USB specification. A host or hub charger can supply maximum 1.5 A when communicating at low-speed or full-speed, maximum 900 mA when communicating at hi-speed, no upper current limit when no communication is taking place. A dedicated charger can supply maximum 1.5 A of current. A portable device can draw up to 1.8 A from a dedicated charger. The dedicated charger shorts the D+ and D- pins together and will not send or receive any information on those lines, allowing for the creation of very simple, high current chargers to be manufactured. The increased current (faster charging) will occur once the host/hub and devices both support the new charging specification.

As of June 14, 2007, all new mobile phones applying for a license in China are required to use the USB port as a power port.

In September 2007, the Open Mobile Terminal Platform
Open mobile terminal platform

The Open Mobile Terminal Platform is a forum created by mobile network operators to discuss standards with manufacturers of cell phones and other mobile devices....
—a forum dominated by mobile network operators but including manufacturers such as Nokia, Samsung, Motorola, Sony Ericsson
Sony Ericsson

Sony Ericsson is a joint venture established on October 3, 2001 by the Japanese consumer electronics company Sony Corporation and the Swedish telecommunications company Ericsson to make mobile phones....
 and LG—announced that its members had agreed on micro-USB as the future common connector for mobile devices.

On 17 February 2009, the GSM Association announced that they had agreed on a standard charger for mobile phones. The standard connector to be adopted by 17 manufacturers including Nokia, Motorola and Samsung is to be the micro-USB connector (several media reports erroneously reported this as the mini-USB). The new chargers will be much more efficient than existing chargers. Having a standard charger for all phones, means that manufacturers will no longer have to supply a charger with every new phone.

Non-standard devices


A number of USB devices require more power than is permitted by the specifications for a single port. This is a common requirement of external hard and optical disc drives and other devices with motors or lamps. Such devices can be used with an external power supply of adequate rating, which is allowed by the standard, or by means of a dual-input USB cable, one input of which is used for power and data transfer, the other solely for power, which makes the device a non-standard USB device. Some external hubs may, in practice, supply more power to USB devices than required by the specification but a standard-compliant device must not depend on this.

Some non-standard USB devices use the 5 V power supply without participating in a proper USB network. These are usually referred to as USB decoration
USB decoration

A USB decoration is a device that uses the Universal Serial Bus connector and sometimes the protocol on a computer or other host, and is primarily a Decoration device ....
s. The typical example is a USB-powered reading light; fans, mug heaters (though some may include USB hubs), battery chargers (particularly for mobile telephones), miniature vacuum cleaner
Vacuum cleaner

A vacuum cleaner is a device that uses an air pump to create a partial vacuum to suck up dust and dirt, usually from floors.Most homes with carpeted floors in developed countries possess a vacuum cleaner for cleaning....
s, a miniature Lava Lamp, and even toy missile launchers are available. In most cases, these items contain no digitally based circuitry, and thus are not proper USB devices at all. This can theoretically cause problems with some computers—the USB specification requires that devices connect in a low-power mode (100 mA maximum) and state how much current they need, before switching, with the host's permission, into high-power mode.

In addition to limiting the total average power used by the device, the USB specification limits the inrush current
Inrush current

Inrush current or input surge current refers to the maximum, instantaneous input current drawn by an electrical device when first turned on....
 (to charge decoupling and bulk capacitors) when the device is first connected; otherwise, connecting a device could cause glitches in the host's internal power. Also, USB devices are required to automatically enter ultra low-power suspend mode when the USB host is suspended; many USB hosts do not cut off the power supply to USB devices when they are suspended since resuming from the suspended state would become a lot more complicated if they did.

There are also devices at the host end that do not support negotiation, such as battery packs that can power USB-powered devices; some provide power, while others pass through the data lines to a host PC. USB power adapters convert utility power and/or power from a car's electrical system to run attached devices. Some of these devices can supply up to 1 A of current. Without negotiation, the powered USB device is unable to inquire if it is allowed to draw 100 mA, 500 mA, or 1 A.

Powered USB

Powered USB uses standard USB signaling with the addition of extra power lines. It uses four additional pins to supply up to 6 A at either 5 V, 12 V, or 24 V (depending on keying) to peripheral devices. The wires and contacts on the USB portion have been upgraded to support higher current on the 5 V line, as well. This is commonly used in retail
Point of sale

Point of sale or point of service can mean a retailing, a checkout counter in a shop, or the location where a financial transaction occurs....
 systems and provides enough power to operate stationary barcode scanners, printers, pin pads, signature capture devices, etc. This proprietary implementation was developed by IBM, NCR, and FCI/Berg. It is essentially two connectors stacked such that the bottom connector accepts a standard USB plug and the top connector takes a power connector.

USB compared with FireWire

USB was originally seen as a complement to FireWire
FireWire

The IEEE 1394 interface is a serial communications interface standard for high-speed communications and isochronous real-time data transfer, frequently used by personal computers, as well as in digital audio, digital video, automotive, and aeronautics applications....
 (IEEE 1394), which was designed as a high-speed serial bus which could efficiently interconnect peripherals such as hard disks, audio interfaces, and video equipment. USB originally operated at a far lower data rate and used much simpler hardware, and was suitable for small peripherals such as keyboards and mice.

The most significant technical differences between FireWire and USB include the following:
  • USB networks use a tiered-star topology, while FireWire networks use a tree
    Network topology

    Network topology is the study of the arrangement or mapping of the elements of a Computer networking, especially the physical and logical interconnections between nodes....
     topology.
  • USB 1.0, 1.1 and 2.0 use a "speak-when-spoken-to" protocol; peripherals cannot communicate with the host unless the host specifically requests communication. USB 3.0 is planned to allow for device-initiated communications towards the host (see USB 3.0
    Universal Serial Bus

    In information technology, Universal Serial Bus is a Serial communications computer bus standard to electrical connector devices to a host computer....
     below). 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. In a FireWire network, any capable node can control the network.
  • USB runs with a 5 V power line, while Firewire can supply up to 30 V.


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 tends to have the performance edge over USB 2.0 Hi-Speed in real-world uses, especially in high-bandwidth use such as external hard-drives. The newer FireWire 800 standard is twice as fast as FireWire 400 and outperforms USB 2.0 Hi-Speed both theoretically and practically. 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. Audio peripherals in particular are affected by the USB driver implementation.

Initially, cost was significant in USB being more widespread than FireWire. Over time, USB benefited from network effect
Network effect

In economics and business, a network effect is the effect that one user of a good or Service has on the value of that product to other people....
.

Version history


Prereleases


  • USB 0.7: Released in November 1994.
  • USB 0.8: Released in December 1994.
  • USB 0.9: Released in April 1995.
  • USB 0.99: Released in August 1995.
  • USB 1.0 Release Candidate: Released in November 1995.


USB 1.0

  • USB 1.0: Released in January 1996.
    Specified data rates of 1.5 Mbit/s (Low-Speed) and 12 Mbit/s (Full-Speed). Does not allow for extension cables or pass-through monitors (due to timing and power limitations). Few such devices actually made it to market.
  • USB 1.1: Released in September 1998.
    Fixed problems identified in 1.0, mostly relating to hubs. Earliest revision to be widely adopted.


USB 2.0

  • USB 2.0: Released in April 2000.
    Added higher maximum speed of 480 Mbit/s (now called Hi-Speed). Further modifications to the USB specification have been done via Engineering Change Notices (ECN). The most important of these ECNs are included into the USB 2.0 specification package available from :
    • Mini-B Connector ECN: Released in October 2000.
      Specifications for Mini-B plug and receptacle. These should not be confused with Micro-B plug and receptacle.
    • Errata as of December 2000: Released in December 2000.
    • Pull-up/Pull-down Resistors ECN: Released in May 2002.
    • Errata as of May 2002: Released in May 2002.
    • Interface Associations ECN: Released in May 2003.
      New standard descriptor was added that allows multiple interfaces to be associated with a single device function.
    • Rounded Chamfer ECN: Released in October 2003.
      A recommended, compatible change to Mini-B plugs that results in longer lasting connectors.
    • Unicode ECN: Released in February 2005.
      This ECN specifies that strings are encoded using UTF-16LE. USB 2.0 did specify that Unicode
      Unicode

      Unicode is a computing industry standard allowing computers to consistently represent and manipulate Character expressed in most of the world's writing systems....
       is to be used but it did not specify the encoding.
    • Inter-Chip USB Supplement: Released in March 2006.
    • On-The-Go Supplement 1.3: Released in December 2006.
      USB On-The-Go
      USB On-The-Go

      USB On-The-Go, normally abbreviated USB OTG, is a supplement to the Universal Serial Bus 2.0 specification.The standard USB uses a Master-slave architecture; a USB 'Host' acts as the protocol master,...
       makes it possible for two USB devices to communicate with each other without requiring a separate USB host. In practice, one of the USB devices acts as a host for the other device.
    • Battery Charging Specification 1.0: Released in March 2007.
      Adds support for dedicated chargers (power supplies with USB connectors), host chargers (USB hosts that can act as chargers) and the No Dead Battery provision which allows devices to temporarily draw 100 mA current after they have been attached. If a USB device is connected to dedicated charger, maximum current drawn by the device may be as high as 1.8A. (Note that this document is not distributed with USB 2.0 specification package.)
    • Micro-USB Cables and Connectors Specification 1.01: Released in April 2007.
    • Link Power Management Addendum ECN: Released in July 2007.
      This adds a new power state between enabled and suspended states. Device in this state is not required to reduce its power consumption. However, switching between enabled and sleep states is much faster than switching between enabled and suspended states, which allows devices to sleep while idle.
    • High-Speed Inter-Chip USB Electrical Specification Revision 1.0: Released in September 2007.


USB 3.0

On September 18, 2007, Pat Gelsinger
Pat Gelsinger

Pat Gelsinger was the first Chief Technology Officer of Intel Corporation. He is currently a Senior Vice-president and General Manager of the Digital Enterprise Group....
 demonstrated USB 3.0 at the Intel Developer Forum
Intel Developer Forum

Intel Developer Forum , is a gathering of technologists to discuss Intel products and products based around Intel products. The first IDF was in 1997....
. The USB 3.0 Promoter Group announced on November 17, 2008, that version 1.0 of the specification has been completed and is transitioned to the USB Implementers Forum (USB-IF), the managing body of USB specifications. This move effectively opens the spec to hardware developers for implementation in future products.

Features
  • A new major feature is the SuperSpeed bus, which increases the maximum transfer rate to 5.0 Gbit/s.
  • USB 3.0 receptacles are compatible with USB 2.0 device plugs for the respective physical form factors. However, only USB 3.0 Standard-B receptacles can accept USB 3.0 Standard-B device plugs.
  • The protocol uses Dual-simplex, over four additional wires, differential signaling separate from USB 2.0 signaling (thus six wires total) to achieve the full Superspeed 5.0 Gbit/s
  • The protocol supports full-duplex
    Duplex (telecommunications)

    A duplex communication system is a system composed of two connected parties or devices which can communicate with one another in both directions....
     data transfers. In addition, data transaction is based on asynchronous traffic flow with explicitly routed packet traffic, instead of the polled broadcast packet traffic in USB 2.0. A streams mode is added for bulk transfer mode. SuperSpeed protocol also supports continuous burst transfers.
  • New power management features include support of idle, sleep and suspend states, as well as link and function-level power management.
  • The bus power spec has been increased so that a unit load is 150mA (+50% over USB 2.0). An unconfigured device can still draw only 1 unit load, but a configured device can draw up to 6 unit loads (900mA, an 80% increase over USB 2.0). Minimum device operating voltage is dropped from 4.4V to 4V.
  • USB 3.0 does not define cable assembly lengths, except that it can be of any length as long as it meets all the requirements defined in the specification. However, electronicdesign.com estimated cables will be limited to 3 m at full speed.
  • Technology is similar to PCI Express 2.0 (5-Gbit/s). It uses 8B10B encoding, linear feedback shift register (LFSR) scrambling for data, spread spectrum. It forces receivers to use low frequency periodic signaling (LFPS), dynamic equalization, and training sequences to ensure fast signal locking.


Availability Consumer products
Product (business)

The noun product is defined as a "thing produced by labor or effort" or the "result of an act or a process", and stems from the verb produce from the Latin produce, lead or bring forth....
 are expected to become available in 2010. USB 3.0 devices supporting SuperSpeed bus are expected to be available in commercial controllers in the first half of 2010. However it will not be until the second half of 2010 when they become seen on products other than computers.

Windows 7 and Linux
Linux

Linux is a generic term referring to Unix-like computer operating systems based on the Linux kernel. Their development is one of the most prominent examples of free and open source software collaboration; typically all the underlying source code can be used, freely modified, and redistributed by anyone under the terms of the GNU GPL license...
 drivers are under development but no public releases have been made available as of March 2009.

Related technologies

The PictBridge
PictBridge

PictBridge is an industry standard from the Camera & Imaging Products Association for direct printing. It allows images to be printed directly from digital cameras to a computer printer, without having to connect the camera to a computer....
 standard allows for interconnecting consumer imaging devices. It typically uses USB for its underlying communication layer.

The USB Implementers Forum is working on a wireless networking standard based on the USB protocol. Wireless USB
Wireless USB

Wireless USB is a short-range, high-bandwidth wireless radio communication protocol created by the Wireless USB Promoter Group. Wireless USB is sometimes abbreviated as "WUSB", although the USB Implementers Forum discourages this practice and instead prefers to call the technology "Certified Wireless USB" to differentiate it from Wireless...
 is intended as a cable-replacement technology, and will use ultra-wideband
Ultra-wideband

Ultra-wideband is a radio technology that can be used at very low energy levels for short-range high-bandwidth communications by using a large portion of the radio spectrum....
 wireless technology for data rates of up to 480 Mbit/s. Wireless USB is well suited to wireless connection of PC centric devices, just as Bluetooth
Bluetooth

Bluetooth is a wireless protocol for exchanging data over short distances from fixed and mobile devices, creating personal area networks . It was originally conceived as a wireless alternative to RS232 data cables....
 is now widely used for mobile phone centric personal networks (at much lower data rates).

See also

  • Serial cable
    Serial cable

    A serial cable is a cable that can be used to transfer information between two devices using serial communication, often using the RS-232 standard....
     (Bidirectional Communication)
  • Serial ATA
    Serial ATA

    The Serial ATA computer bus is a storage-interface for connecting Host adapter to mass storage devices .Conceptually, SATA is a 'wire replacement' for the older AT Attachment standard ....
  • RS-232
    RS-232

    In telecommunications, RS-232 is a standard for serial communications binary data signals connecting between a DTE and a DCE . It is commonly used in computer serial ports....
  • Serial Null Modem Cable
    Null modem

    Null modem is a communication method to connect two data terminal equipments directly using a RS-232 serial cable. The RS-232 standard is asymmetrical as to the definitions of the two ends of the communications link so it assumes that one end is a DTE and the other is a Data circuit-terminating equipment e.g....
  • FireWire
    FireWire

    The IEEE 1394 interface is a serial communications interface standard for high-speed communications and isochronous real-time data transfer, frequently used by personal computers, as well as in digital audio, digital video, automotive, and aeronautics applications....
  • HP-IL
    HP-IL

    The HP-IL was a short-range interconnection bus or network introduced by Hewlett-Packard in the early 1980s. It enabled several devices such as printers, floppy disk drives, tape readers, etc....
  • Sync cable
  • Enhanced mini-USB
    Enhanced mini-USB

    An EMU connector, or enhanced mini-USB, is a type of hybrid electrical connector, which carries both Universal Serial Bus data and power, as well as other additional connections, usually bidirectional sound....
  • USB On-The-Go
    USB On-The-Go

    USB On-The-Go, normally abbreviated USB OTG, is a supplement to the Universal Serial Bus 2.0 specification.The standard USB uses a Master-slave architecture; a USB 'Host' acts as the protocol master,...
     (master / slave)
  • Ethernet over USB
    Ethernet over usb

    Ethernet over USB has two meanings: Ethernet devices via USB and USB as an Ethernet network....
  • Wireless USB
    Wireless USB

    Wireless USB is a short-range, high-bandwidth wireless radio communication protocol created by the Wireless USB Promoter Group. Wireless USB is sometimes abbreviated as "WUSB", although the USB Implementers Forum discourages this practice and instead prefers to call the technology "Certified Wireless USB" to differentiate it from Wireless...
  • USB streaming
  • HCI (UHCI, EHCI , WHCI 1.0,)
  • CEA-936-A
    CEA-936-A

    CEA-936-A is a Consumer Electronics Association standard to allow the use of a mini-USB connector for UART and analog signal sound signals. It is intended to allow connection of a mobile phone to analog hands-free car kits, chargers, and other RS-232 devices....
  • U3
    U3

    U3 is a company producing a proprietary software method of auto-launching applications from specially formatted USB flash drives. Flash drives adhering to the U3 specification are termed "U3 smart drives"....
  • List of device bandwidths
    List of device bandwidths

    This is a list of device bandwidths: the net bit rate of some computer devices employing methods of data transport is quantified in units of kilobits per second , megabits per second , or gigabits per second as appropriate....
    • ACCESS.bus
      ACCESS.bus

      ACCESS.bus is a peripheral-interconnect computer bus developed by Philips in the early 1990s. It is similar in purpose to Universal Serial Bus, in that it allows low-speed devices to be added or removed from a computer on the fly....
    • Apple Desktop Bus
      Apple Desktop Bus

      Apple Desktop Bus is an obsolete serial communications computer bus connecting low-speed devices to computers. Used primarily on the Apple Macintosh platform, ADB equipment is still available but not supported by most Apple hardware manufactured since 1999....
  • PS/2 connector
    PS/2 connector

    The PS/2 connector is used for connecting some Computer keyboard and computer mouse to a PC compatible computer system. Its name comes from the IBM Personal System/2 series of personal computers, with which it was introduced in 1987....
  • DE-9 connector
  • Secure USB drive

External links



USB 3.0

  • at USB.org
  • Ars Technica
    Ars Technica

    Ars Technica , Latin for "Art of Technology" is a technology-related website that caters to personal computer enthusiasts, covering technology, science, and video game news along with editorial comment and analysis....
     2007-09-18
  • eeTimes 2007-09-18