USB 2.0 INTRODUCTION NTUT CSIE 學 生:許家豪 指導教授:柯開維教授.

Slides:



Advertisements
Similar presentations
1 ICS 156: Lecture 2 (part 2) Data link layer protocols Address resolution protocol Notes on lab 2.
Advertisements

Protocol Layer Bottom-up view of the USB protocol Bottom-up view of the USB protocol –Byte/Bit Ordering –SYNC Field –Packet Field Formats PID Field PID.
Universal Serial Bus Grant Heileman. The History of USB In 1994 a collaborative effort to design a standard for peripheral devices was made between Compaq,
ITEC 352 Lecture 33 USB (2). Review Intro to USB –History –Rationale –Competitors –Serial versus parallel –Topology.
USB: Data Flow Sukesh Shenoy. USB implementation areas.
Networking Theory (Part 1). Introduction Overview of the basic concepts of networking Also discusses essential topics of networking theory.
1 USB 2.0 Specification  General Description  From where we could begin the work  What would be valid to do?  Main doubts  What is OTG (On the Go)
1 USB 2.0 Specification  General Description  What is OTG (On the Go)  From where we could begin the work  What would be valid to do?
OSI Model.
USB – An Overview Group 3 Kaushik Nandha Bikram What is the Universal Serial bus (USB)? Is a cable bus that supports data exchange between a host computer.
Network Data Organizational Communications and Technologies Prithvi N. Rao Carnegie Mellon University Web:
1 COMP541 Interrupts, DMA, Serial I/O Montek Singh April 24, 2007.
Review on Networking Technologies Linda Wu (CMPT )
Anush Rengarajan Feng Zheng Thomas Madaelil
Dr A Sahu Dept of Comp Sc & Engg. IIT Guwahati. USB Introduction USB Architecture USB Framming USB Drivers URB (USB request Block)
© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e Chapter 15 PC Standard Bus Interfaces WK.
Introduction to USB. 2 Agenda Introduction to USB LPC23xx Block diagram MCB2300 demo.
1 25\10\2010 Unit-V Connecting LANs Unit – 5 Connecting DevicesConnecting Devices Backbone NetworksBackbone Networks Virtual LANsVirtual LANs.
COMPUTER NETWORKS.
EE 446 Embedded Architecture. Universal Serial Bus A representative peripheral interface Universal Serial Bus (USB) provides a serial bus standard for.
USB: UNIVERSAL SERIAL BUS Joe Kaewbaidhoon Alex Motalleb Vishal Joshi Prepared for EECS 373 University of Michigan, Ann Arbor 1.
Computer communication. Introduction Mechanisms applied in communicating between a computer and another computer or with other devices. Mainly serial.
18 - Winter 2003 EE EE 766 Computer Interfacing and Protocols 1 USB (Universal Serial Bus) Need for “Plug and Play” capability for PC peripherals outside.
Serial Interfaces. Bit serial bus New generation of busses Uses bit-serial, differential drive technology Uses on-line device drivers (Hot-plug technology)
May 17, Design Option Trade-Offs w Transceiver Design - Dr. Zong Liang Wu, Philips.
USB Josh Rickmar John Marcoux. Topics Purpose and Goals History Bus Design Power Differential Signaling Connectors Changes in USB 3.0.
Network Topologies.
May 17, USB 2.0 Transceiver Macrocell Steve McGowan - Intel Corporation Clarence Lewis - Texas Instruments Steve McGowan - Intel Corporation Clarence.
May 8, The EASY Way to Create I/O Devices John Hyde Intel Corporation intel.com.
Spring 2014 SILICON VALLEY UNIVERSITY CONFIDENTIAL 1 Introduction to Embedded Systems Dr. Jerry Shiao, Silicon Valley University.
May 9, USB 2.0 High Bandwidth Peripheral Design Challenges Robert Shaw Cypress Semiconductor Robert Shaw Cypress Semiconductor
October 10, USB 2.0 Hub Testing Dan Froelich Intel.
May 17, USB2.0 Host Controller John S. Howard Staff Engineer Intel Architecture Labs Intel Corporation.
Introduction Electrical Considerations Data Transfer Synchronization Bus Arbitration VME Bus Local Buses PCI Bus PCI Bus Variants Serial Buses 11/06/20141Input/Output.
Introduction to USB Development. USB Development Introduction Technical Overview USB in Embedded Systems Recent Developments Extensions to USB USB as.
Embedding USB Lane Hauck Cypress Semiconductor. Embedded Systems Conference, March 2002 Embedding USB 1 Agenda  Why USB?  USB Advantages  USB Basics.
Introduction to USB © 2010 Renesas Electronics America Inc. All rights reserved.
USB Link Layer Protocol
HL CE M, lehmann usb_tele ESC spring.ppt 1 - 9/8/2015, 10:22 START first foil.
ECE 371 – UNIT 20 Universal Serial Bus (USB). References 1. Universal Serial Bus Specification, Revision 2.0. This specification is available on the World.
USB 2.0 Spec. Chapter4 Architectural Overview Chapter5 USB Data Flow Model.
Universal Serial Bus - USB Historical Perspective The Universal Serial Bus was originally developed in 1995 by a group of industry.
Local Area Network By Bhupendra Ratha, Lecturer
Microprocessor-based Systems
Basic LAN techniques IN common with all other computer based systems networks require both HARDWARE and SOFTWARE to function. Networks are often explained.
The OSI Model.
Computer Architecture Lecture10: Input/output devices Piotr Bilski.
A Comparative Study of the Linux and Windows Device Driver Architectures with a focus on IEEE1394 (high speed serial bus) drivers Melekam Tsegaye
BR 6/001 Universal Serial Bus Universal Serial Bus is a new synchronous serial protocol for low to medium speed data transmission Full speed signaling.
Data Communications (E&T2760): USB and IEEE USB and IEEE 1394.
First, by sending smaller individual pieces from source to destination, many different conversations can be interleaved on the network. The process.
Team 4 Project 1 Presentation Mapping Parallel Ports to LPT’s & USB Host Controller Interfaces Tom, Jen, Curtis, Ashley, Scott.
1 Presented By: Eyal Enav and Tal Rath Eyal Enav and Tal Rath Supervisor: Mike Sumszyk Mike Sumszyk.
Protocol Layering Chapter 11.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. Overview of Ethernet Networking A Rev /31/2011.
Data Communications is the Real World OSI Layers 1 & 2 a.k.a TCP/IP Network Interface Layer.
LonWorks Introduction Hwayoung Chae.
USB Universal Serial Bus. University of Tehran 2.
Local Area Network Topology. LAN Architecture - Protocol architecture - Topologies - Media access control - Logical Link Control.
USB PHYISICAL LAYER PROTOCOL ENGINE LAYER APPLICATION LAYER
Networking Devices.
Universal Serial Bus S.HIMABINDU
Operating Systems (CS 340 D)
USB Universal Serial Bus
Universal Serial Bus Specification 1.0
USB- Universal Serial Bus
USB : Universal Serial Bus
Data Link Issues Relates to Lab 2.
Greg Bell Business Development Mgr Industrial & Security Markets
Universal Serial Bus (USB)
Presentation transcript:

USB 2.0 INTRODUCTION NTUT CSIE 學 生:許家豪 指導教授:柯開維教授

Outline History and Evolution Why We Need USB ? Architectural Overview USB communication flow Protocol Layer Conclusion

Key Word Down : From host to device Up : From device to host Example Down stream : data flow from host to device Up stream : data flow from device to host

Outline History and Evolution Why We Need USB ? Architectural Overview USB communication flow Protocol Layer Conclusion

History USB — Universal Serial Bus Invented and standardized by a group of computer and peripherals manufactures in 1995 Compete with IEEE1394

Evolution

Outline History and Evolution Why We Need USB ? Architectural Overview USB communication flow Protocol Layer Conclusion

Characteristic (1) Connection of the PC to the telephone : =>In order to transmit data Ease-of-use : =>Support plug and play Port expansion : =>Up to 127 devices =>Can add lots of device to a XX

Characteristic (2) The logical topology of the USB is a star structure It is similar to computer network The USB uses a polling protocol Up to 7 level

USB Can Do Combines low speed and high speed bus activity, USB enables shared access for both speed Automatic configuring of devices and a serial bus which is simplified and easy to plug into Attach / detach easily without restarting system

Outline History and Evolution Why We Need USB ? Architectural Overview USB communication flow Protocol Layer Conclusion

USB System Member (1) Host : only one =>The smartest element in the USB system =>Responsible to the complexity of the protocol to make devices design simple and low cost =>Control the media access ( no one can access the bus unless it get an approval required from the host )

USB System Member (2) Hub : one or more =>Like the hubs used for computer network =>Enables many devices to connect to a single USB port

USB System Member (3) Device : one or more =>Everything in the USB system, which is not a host, is a device ( include hubs) =>A device may provides one or more USB functions =>Has an unique address at the end of the enumeration process

Typical Application

Outline History and Evolution Why We Need USB ? Architectural Overview USB communication flow Protocol Layer Conclusion

Communication Flow

Pipes (1) The logic communication between the client software on the host and the function on the device is done through pipes It is a association between a specific endpoint on the device and the appropriate software in the host

Pipes (2) An endpoint is the source or destination of the data that transmitted on the USB cable Two direction =>OUT : data flows from the host to the device =>IN : data flows from the device to the host

The Physical Layer

Signaling On The Bus The USB cable is 4 wire cable Signal on the bus is done by signaling over tow wires ( D + and D_ ) =>1 : D_ low, D + high =>0 : D_ high, D + low Data encoding and decoding is done using NRZI ( Non Return to Zero Inverted )

SIE SIE : Serial Interface Engine It is part of both the host ’ s and the device ’ s physical layer =>Serialization and Deserialization =>Encoding and Decoding =>Generate(for out) and Verify(for in) CRC =>Detect PID

HC HC : Host Controller =>It is an additional hardware to ensure that everything which is transmitted on the bus is correct =>It serves both the USB and the host and has the same functionality in ever USB system

The Protocol Engine Layer

This Layer Handles Responsible for the translating the data between the application layer and the USB transactions protocol. Two Role =>USB System Software (in the USB host) =>USB Logical Device (in the USB device)

The USB System SW Compose of The Host Controller Driver and The USB Driver Responsible for =>Bandwidth allocation =>bus power management Two of above are in order to enable devices to access the bus

The USB Logical Device Compose of a collection of independent endpoints Each endpoint has an unique Endpoint Number and is unidirectional(except endpoint zero and has two type--In/Out) Default pipe is associated with endpoint zero

The Application Layer Host end : Client Software = >Manages the appropriate interface by transferring data from its buffers to the endpoint with the appropriate interface Device end : Function = >Composed of interfaces and controls the functionality of the device

Outline History and Evolution Why We Need USB ? Architectural Overview USB communication flow Protocol Layer Conclusion

Transaction USB transactions are done through packets include three phases =>Token phase : host initiates token indicating the future transfer type =>Data phase : actual data transmitted =>Handshake phase : indicate the success or failure of the transaction

Transfer Types (1) Control Transfer =>Used to configure a device (enumeration) =>Compose of three phases (setup,data,status) Isochronous Transfer =>Used for multimedia devices =>It is guarantee the required bandwidth =>No handshake phase

Transfer Types (2) Bulk Transfer =>Used for large burst data =>Guarantee of delivery, no guarantee of bandwidth or minimum latency Interrupt Transfer =>If there is a pending interrupt, the function will send details to host after host poll it

Packet (1) PID : Packet Identifier Field Address Field =>So, there are up to 127 devices in USB

Packet (2) Token Packet =>ADDR & ENDP define an unique endpoint

Packet (3) Data Packet

Packet (4) Handshake Packet =>Such as ACK 、 NAK 、 STALL … etc.

Outline History and Evolution Why We Need USB ? Architectural Overview USB communication flow Protocol Layer Conclusion

USB is powerful and easy to use The complex host make the device easy to design

The End Thanks

7 Level

Hub (1) Detecting an attachment and detachment of devices Handling the power management for device that are bus-powered Responsibility for bus error detection and recovery Manage both full and low speed devices

Hub (2)

Device Category (1) By speed =>High-speed : work in 480 MB/S =>Full-speed : work in 12 MB/S =>Low-speed : work in 1.5 MB/S By power supply =>Self powered =>bus powered

Device Category (2) By number of functions =>Compound device =>Composite device

Device Category (3)

Device Category (4)

PIPE

Cable

NRZI (1) Want to transmit : =>1 : without changing the level of the level of the signaling =>0 : flip the value of the differential pair example :

NRZI (2) Problem : When we send “ 1 ” stream, the transmission line will stay static ( no change period ) Solution : “ Bit stuffing ”, performed before the NRZI example : data : send :

HC Handles Frame Generation : =>Partition time units (each one is 1msec as a frame) Data Processing : =>Handles the request for data to / from the host Error Handling : Such as Timeout 、 CRC error 、 Unexpected data payload Remote wakeup

HCD && USBD UCD : =>An interface to the host controller USBD : =>Handle IRPS(I/O Request Packets) from client software =>Handle enumeration process, so it owns default pipe (initial pipe)

Tree Phase

Control Transfer

Isochronous Transfer

Bulk Transfer

Interrupt Transfer