Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
• 1 History
• 2 Overview
• 3 Host controllers
• 4 Device classes
o 4.1 USB mass-storage
o 4.2 Human-interface devices (HIDs)
• 5 USB signaling
• 6 USB protocol analyzers
• 7 USB connector properties
o 7.1 Usability
o 7.2 Durability
o 7.3 Compatibility
• 8 Types of USB connector
o 8.1 Proprietary connectors and formats
• 9 USB cables
o 9.1 Maximum Useful Signalling Distance
• 10 Power
o 10.1 Non-standard devices
o 10.2 PoweredUSB
• 11 USB compared with FireWire
• 12 Version history
o 12.1 Prereleases
o 12.2 USB 1.0
o 12.3 USB 2.0
o 12.4 USB 3.0
• 13 Related technologies
• 14 See also
• 15 References
• 16 External links
o 16.1 USB 3.0
Universal Serial Bus
[edit ] Hist or y
The USB 1.0 specification was introduced in November 1995. USB was
promoted by Intel (UHCI and open software stack), Microsoft (Windows
software stack), Philips (Hub, USB-Audio), and US Robotics. Originally
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 original Apple "Bondi blue" iMac G3, introduced 6 May 1998, was
the first computer to offer USB ports as standard [2], including the
connector for its new keyboard and mouse.[3] USB 1.1 came out in
September 1998 to help rectify the adoption problems that occurred
with earlier iterations of USB.[4]
Smaller USB plugs and receptacles for use in handheld and mobile
devices, called Mini-B, were added to USB specification in the first
engineering change notice. A new variant of smaller USB plugs and
receptacles, Micro-USB, was announced by the USB Implementers
Forum on January 4, 2007.[5]
[edit ] Ov er view
USB devices are linked in series through hubs. There always exists one
hub known as the root hub, which is built-in to the host controller. So-
called "sharing hubs", which allow multiple computers to access the
same peripheral device(s), also exist and work by either switching
access between PCs automatically or manually. They are popular in
small-office environments. In network terms, they converge rather than
diverge branches.
When a new USB device is connected to a USB host, the USB device
enumeration process is started. The enumeration process first sends a
reset signal to the USB device. The speed of the USB device is
determined during the reset signaling. After reset, USB device setup
information is read from the device by the host and the device is
assigned a unique host-controller-specific 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 configured state. If
the USB host is restarted, the enumeration process is repeated for all
connected devices.
The host controller polls the bus for traffic, usually in a round-robin
fashion, so no USB device can transfer any data on the bus without an
explicit request from the host controller.
The computer hardware that contains the host controller and the root
hub has an interface geared toward the programmer which is called
Host Controller Device (HCD) and is defined by the hardware
implementer.
VIA Technologies licensed the UHCI standard from Intel; all other
chipset implementers use OHCI. UHCI is more software-driven, making
UHCI slightly more processor-intensive than OHCI but cheaper to
implement. The dueling implementations forced operating system
vendors and hardware vendors to develop and test on both
implementations, which increased cost.
HCD standards are out of the USB specification's scope, and the USB
specification does not specify any HCD interfaces. In other words, USB
defines the format of data transfer through the port, but not the system
by which the USB hardware communicates with the computer it sits in.
During the design phase of USB 2.0, the USB-IF insisted on only one
implementation. The USB 2.0 HCD implementation is called the
Enhanced Host Controller Interface (EHCI). Only EHCI can support hi-
speed (480 Mbit/s) transfers. Most of PCI-based EHCI controllers
contain other HCD implementations called 'companion host controller'
to support Full Speed (12 Mbit/s) and Low Speed (1.5 Mbit/s) devices.
The virtual HCD on Intel and VIA EHCI controllers are UHCI. All other
vendors use virtual OHCI controllers.
US B ma ss -s tor age
Though most 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), and SCSI
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 drives, DVD drives, etc.),
a number of manufacturers offer external portable USB hard drives, 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 another internal drive. Other competing
standards that allow for external connectivity are eSATA and FireWire.
Mice and keyboards are frequently fitted with USB connectors, but
because most PC motherboards still retain PS/2 connectors 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 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, and PS/2 connectors to USB.
Apple Macintosh computers have been using USB exclusively for all
external wired mice and keyboards since January 1999 (Powerbooks
used ADB keyboards until 2005[citation needed]). The original iMac raised
public awareness of USB considerably in August 1998, as it discarded
legacy ports to use only USB. PCs had USB ports prior to the iMac's
introduction, but they were included with a full complement of
traditional ports which limited USB's adoption. The iMac's influence
can be seen in the number of USB peripherals with matching
translucent, colored plastic enclosures that were available in the late
'90s and early '00s.
• A Low Speed (1.1, 2.0) rate of 1.5 Mbit/s (187.5 kB/s) that is
mostly used for Human Interface Devices (HID) such as
keyboards, mice, and joysticks.
• A Full Speed (1.1, 2.0) rate of 12 Mbit/s (1.5 MB/s). Full Speed was
the fastest rate before the USB 2.0 specification and many
devices fall back to Full Speed. Full Speed devices divide the
USB bandwidth between them in a first-come first-served basis
and it is not uncommon to run out of bandwidth with several
isochronous devices. All USB hubs support Full Speed.
• A High-Speed (2.0) rate of 480 Mbit/s (60 MB/s).
• A Super-Speed (3.0) rate of 4.8 Gbit/s (600 MB/s). The USB 3.0
specification will be released by Intel and its partners in mid-
2008, according to early reports from CNET news. According to
Intel, bus speeds will be 10 times faster than USB 2.0 due to the
inclusion of a fiber-optic link that works with traditional copper
connectors. Products using the 3.0 specification are likely to
arrive in 2009 or 2010.
USB signals are transmitted on a twisted pair data cable with 90Ω
±15% impedance,[7] labeled D+ and D−. These collectively use half-
duplex differential signaling to combat the effects of electromagnetic
noise on longer lines. D+ and D− usually operate together; they are not
separate simplex connections. Transmitted signal levels are 0.0–0.3
volts for low and 2.8–3.6 volts for high in Full Speed and Low Speed
modes, (and ±400mV in High Speed (HS) mode) this phrase is ambiguous. In FS
mode the cable wires are not terminated, but the HS mode has
termination of 45Ω to ground, or 90Ω differential to match the data
cable impedance.
The USB standard uses the NRZI system to encode data, and uses "bit
stuffing" by always injecting one artificial "zero" bit if the stream of
data contains six consecutive "ones" before converting the bit stream
to NRZI.
USB Co nn ect or s
Different types of USB connectors from left to right
• 8-pin mystery plug
• Mini-B plug
• B-type plug
• A-type receptacle
• A-type plug
There are several types of USB connectors, and some have been added
as the specification has 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 slots in the A - Plug are actually
farther in the plug than the outside power wires to prevent data errors
by powering the device first, then transferring data.
The Mini-B, Micro-A, Micro-B , and Micro-AB connectors are used for
smaller devices such as PDAs, mobile phones or digital cameras. The
Standard-A plug is approximately 4 by 12 mm, the Standard-B
approximately 7 by 8 mm, and the Micro-A and Micro-B plugs
approximately 2 by 7 mm.
USB c abl es
Miniplug/Microplug
1 VCC Red +5 V
2 D- White Data -
3 D+ Green Data +
permits distinction of
The data cables are a twisted pair to reduce noise and crosstalk.
Power
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.[13][14]
In September, 2007 the Open Mobile Terminal Platform—a forum
dominated by mobile network operators but including manufacturers
such as Nokia, Samsung, Motorola, Sony Ericsson and LG—announced
that its members had agreed on micro-USB as the future common
connector for mobile devices.[15][16]
No n-sta nd ar d devi ce s
In addition to limiting the total average power used by the device, the
USB specification limits the inrush current (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.
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, in real-world use, especially for
high-bandwidth use such as external hard-drives, FireWire 400
generally, but not always, has a significantly higher throughput than
USB 2.0 Hi-Speed.[19][20][21][22] The newer FireWire 800 standard is twice
as fast as FireWire 400 and outperforms USB 2.0 Hi-Speed both
theoretically and practically.[23] The chipset and drivers used to
implement USB and Firewire have a crucial impact on how much of
bandwidth prescribed by the specification is achieved in the real world,
along with compatibility with peripherals.[24] Audio peripherals in
particular are affected by the USB driver implementation.[citation needed]
One reason USB supplanted FireWire, and became far more
widespread, is cost; FireWire is more expensive to implement,
producing more expensive hardware.
[edit ] Pr er el ea ses
•
o enabled and suspended states, which allows devices to sleep while idle.
o High-Speed Inter-Chip USB Electrical Specification Revision 1.0:
Released in September 2007.