Slide 1

Slide 1 text

PRODUCT LINE Technology For Interactive & AV Applications Understanding USB Joseph Cornwall, CTS-D

Slide 2

Slide 2 text

PRODUCT LINE Our Agenda • USB History and Types • USB and Time • USB and Tiers • USB and Power • USB and Future Technology

Slide 3

Slide 3 text

PRODUCT LINE Universal Serial Bus • USB Was Designed To Standardize The Connection Of Computer Peripherals – Replaced Serial And Parallel Ports – Eliminated The Need For Separate Power Supplies For Devices • USB Was Born Of The Need For Plug-And-Play Technology – Allows For “Hot Swapping” – Connect Up To 127 “Devices” • USB Is Bi-Directional – Allows The Flow Of Information Into AND Out Of A Computer (Host)

Slide 4

Slide 4 text

PRODUCT LINE USB History USB was designed to offer plug and play compatibility • Replace parallel and serial ports • 1.0 released 1996 • 1.1 released 1998 • 2.0 released 2000 • 3.0 released 2008 • 3.1 released 2013

Slide 5

Slide 5 text

PRODUCT LINE USB 1.1, 2.0 And 3.0 1.1 1.5 Mbit/s “Low Speed” Connection For Low Data Rate Devices  “Human Interface Devices” 12 Mbit/s “Full Speed”  Mass Storage Device  Imaging Device 2.0 • 480 Mbit/s “Hi Speed” Devices – 60 MB/S – Sufficient For Sound Playback – Supports Compressed Video Capability 3.0 5 Gbit/s “Superspeed” – 625 MB/s, More Than 10 Times Faster Than USB 2.0 – USB 3.0 Is “Green” And Uses About One-third The Power Of USB 2.0

Slide 6

Slide 6 text

PRODUCT LINE Comparison Of USB 2.0 And 3.0 Connections USB 2.0 “A” and “B” USB 3.0 “A” and “B”

Slide 7

Slide 7 text

PRODUCT LINE Examination Of USB Bus Speeds

Slide 8

Slide 8 text

PRODUCT LINE USB Topology • USB Leverages An Asymmetrical Star Topology –Host, Downstream Ports, Peripherals • USB Host (Computer) May Implement Multiple Host Controllers –Each Host Controller May Provide One Or More USB Ports –Up To 127 Devices, Including Hub Devices If Present, May Be Connected To A Single Host Controller –Root Hub Is Built Into The Host Controller

Slide 9

Slide 9 text

PRODUCT LINE 7 Tiers Of Communication • Tiers Describe How Ports, Hubs And Devices (Also Called "Functions") Are Connected • The Main USB Host Always Occupies Tier-1 • Both Hubs And Extenders Occupy Tiers 2 Through 6 • Devices (Functions) Are Always Tier 7

Slide 10

Slide 10 text

PRODUCT LINE Round Robin USB Device Enumeration USB Communicates In A “Round Robin” Fashion Reset Signal Sent To Device Data Rate Determined Device Assigned Unique 7-bit Address Device Drivers Loaded Host Controller Polls The Bus For Traffic Transaction Translators Convert Between High-speed USB 2.0 Buses And Full And Low Speed Buses

Slide 11

Slide 11 text

PRODUCT LINE Time Is Of The Essence • USB Is A Half-Duplex System – 3.0 and 3.1 are Full Duplex • USB Operates Within Rigid Time Constraints – Hubs And Devices Must Respond To The Host Within A Tightly Defined Time Frame • Defined Response Times In USB Limit Cable Lengths Due To Finite Propagation Velocities In The Cable Structure – 15 Feet In Full-Speed Or High-Speed Mode – For Longer Connections We Must Use USB Extenders

Slide 12

Slide 12 text

PRODUCT LINE USB Logical Channels USB Communication Is Based On Logical Channels (Pipes) Connection From The Host To A Logical Entity (Endpoint) Device May Have As Many As 32 Endpoints 16 Out, 16 In 2 Types Of Pipes Stream Pipe (Unidirectional) For Isochronous, Interrupt Or Bulk Message Pipe (Bi-directional) For Control Data Flow

Slide 13

Slide 13 text

PRODUCT LINE USB Transfer Types • Isochronous transfers at some guaranteed data but with possible data loss • Interrupt transfers guarantee quick responses (bounded latency) • Bulk transfers are for large sporadic transfers using all remaining available bandwidth, but with no guarantees on bandwidth or latency • Control transfers are used for short, simple commands or device status response

Slide 14

Slide 14 text

PRODUCT LINE USB Devices All USB logical devices present the same basic interface to the host, and any device that can transmit or receive data is known as a “function”  A mug warmer, for example, doesn’t transmit data and is not a function A “function” is always recognized as tier 7 of the USB pyramid  No devices connect after a function Devices may be composite or compound  Composite = 2 functions with a “virtual” hub  Compound = 2 functions with an actual hub

Slide 15

Slide 15 text

PRODUCT LINE Compound And Composite A USB compound device appears to the host as a hub with one or more non-removable USB devices embedded  Each function appears as a discrete device attached to a hub  To the USB system, a compound device occupies two tiers Compound devices are relatively unusual, while composite devices are very common

Slide 16

Slide 16 text

PRODUCT LINE Understanding Hubs Hubs consist of 3 components Repeater - connects and releases functions Controller - communicates with the host Transaction translator – controls speeds The hub must always reside between tiers 2 and 6 If there is more than one USB port on the computer, there is an internal hub connected to the root hub Hubs are self-powered or bus powered

Slide 17

Slide 17 text

PRODUCT LINE Hubs Are Wiring Concentrators Hubs enable multiple attachment characteristics Attachment points are called “ports” Each downstream port can be individually enabled and attached at any speed

Slide 18

Slide 18 text

PRODUCT LINE Example Of 7-Port USB Hub In Tier Occupied Port 1 Port 2 Port 3 Port 4 Tier Occupied In Port 4 Port 5 Port 6 Port 7

Slide 19

Slide 19 text

PRODUCT LINE EXTENDING THE USB SYSTEM “Civilization advances by extending the number of important operations which we can perform without thinking about them.” - Alfred North Whitehead

Slide 20

Slide 20 text

PRODUCT LINE Understanding USB Extender Systems USB’s inherent time limitations allow for cable length of no more than 5 meters  USB 3.0 has no limits per se, but in practical applications 3.0 performance can only be achieved to about 10ft Hubs regenerate the signal and are repeaters Almost all USB extenders are seen by the host as a hub

Slide 21

Slide 21 text

PRODUCT LINE USB SuperBooster Converts USB signal to a proprietary signal  Each manufacturer may use their own technology Some USB superbooster systems do not have to occupy a tier  Bus powered systems typically occupy a tier Some self-powered superboosters use a NAK (not acknowledged) communication protocol to “get around” system latency  Data packet not accepted; please retransmit  Occurs during “handshake”

Slide 22

Slide 22 text

PRODUCT LINE USB POWER “All power corrupts, but we need the electricity.” - Unknown

Slide 23

Slide 23 text

PRODUCT LINE Power In The USB Environment USB specifies a 5 V (+/-5%) power supply Power is delivered in quanta of unit loads A single unit load is 100 mA Low-power device draw 1 unit load High-power device draws up to the maximum number of unit loads permitted (5 unit loads)

Slide 24

Slide 24 text

PRODUCT LINE Charging Ports – Charging downstream port (CDP) • Supports data transfer • May not exceed 900 mA during high-speed data transfer – Dedicated charging port (DCP) • No data support • There is no upper limit for the rated current of a charging downstream port, as long as the connector can handle the current

Slide 25

Slide 25 text

PRODUCT LINE PRACTICAL USB SYSTEM ANALYSIS “The height of cleverness is to be able to conceal it.” - Francois de La Rochefoucauld

Slide 26

Slide 26 text

PRODUCT LINE USB System Example

Slide 27

Slide 27 text

PRODUCT LINE Analyzing The USB Network Using device manager you can see devices, connections and power demands For a detailed “tree” view USB protocol analyzer USBDeview is a free download Linux or windows

Slide 28

Slide 28 text

PRODUCT LINE USBDeview Screen Cap A free software download that allows analysis of USB connections

Slide 29

Slide 29 text

PRODUCT LINE USB COMPETITORS “Competition is a painful thing, but it produces great results.” - Jerry Flint

Slide 30

Slide 30 text

PRODUCT LINE Firewire Firewire networks use a tree topology  Any device can communicate with any other node at any time  Any capable node can control the network in Firewire USB uses 5 V power. Firewire uses 12 V Firewire can (in theory) supply up to 60 watts of power Designed for high performance  Particularly suited for time-sensitive applications such as A/V

Slide 31

Slide 31 text

PRODUCT LINE Thunderbolt • Based on the mini DisplayPort connector – Originally conceived as an optical technology, thunderbolt switched to electrical connections to reduce costs – Supplies up to 10W of power to connected devices • Interoperable with DisplayPort 1.2 devices – When connected to a DP++ compatible device, the Thunderbolt port can provide a native DP++ signal

Slide 32

Slide 32 text

PRODUCT LINE IN CONCLUSION… “A conclusion is the place where you got tired of thinking.” − Harold Fricklestein 32

Slide 33

Slide 33 text

PRODUCT LINE In Conclusion… • USB allows up to 127 “functions” (devices) to be connected to a host via 7 tiers of connectivity • USB provides power in quanta of unit loads – 1 unit load = 100 mA – Maximum of 5 unit loads • USB networks may contain “hidden” internal hubs • USB extenders “look like” hubs – Place power demands on bus- powered – Occupy a tier of communication

Slide 34

Slide 34 text

PRODUCT LINE Questions?