USB PHYISICAL LAYER PROTOCOL ENGINE LAYER APPLICATION LAYER

Slides:



Advertisements
Similar presentations
Why to learn OSI reference Model? The answer is too simple that It tells us that how communication takes place between computers on internet but how??
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.
May 16, Data Transfer & Framework John Garney Hub Working Group Chair Intel Corporation John Garney Hub Working Group Chair Intel Corporation.
USB: Data Flow Sukesh Shenoy. USB implementation areas.
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.
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)
USB 2.0 INTRODUCTION NTUT CSIE 學 生:許家豪 指導教授:柯開維教授.
CPU Chips The logical pinout of a generic CPU. The arrows indicate input signals and output signals. The short diagonal lines indicate that multiple pins.
Introduction to USB. 2 Agenda Introduction to USB LPC23xx Block diagram MCB2300 demo.
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.
Universal Serial Bus Host Specification and Implementation
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.
MODULE I NETWORKING CONCEPTS.
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.
Microprocessor-based Systems
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.
February 10 th 2010 Dehmani Feth-Allah M2 ISTRe Oral Presentation Universal Serial Bus.
May 16, USB 2.0 Technical Overview Brad Hosler USB Engineering Manager Intel Corporation.
May 16, USB 2.0 Signal Protocols Jon Lueker Intel Corporation.
October 10, USB 2.0 Technical Overview Brad Hosler USB Engineering Manager Intel Corporation.
Data Communications (E&T2760): USB and IEEE USB and IEEE 1394.
Computer communication. Introduction Mechanisms applied in communicating between a computer and another computer or with other devices. Mainly serial.
1 Presented By: Eyal Enav and Tal Rath Eyal Enav and Tal Rath Supervisor: Mike Sumszyk Mike Sumszyk.
May 8, USB 2.0 Signal Protocols Jon Lueker Intel Corporation.
JMicron Technology Corporation
USB Universal Serial Bus. University of Tehran 2.
DIRECT MEMORY ACCESS and Computer Buses
Serial Communications
HDLC and PPP.
Chapter 12 Part 2 Media Access Control (MAC)
Subject Name: Microprocessors Subject Code:10EC46 Department: Electronics and Communication Date:
Operating Systems (CS 340 D)
USB Universal Serial Bus
Input/Output Organization
Input/Output Organization contd:
Universal Serial Bus Specification 1.0
NS Training Hardware.
USB- Universal Serial Bus
Embedding USB technology Limitations, challenges and compliance
USB-Microcontroller C540U Family
USB : Universal Serial Bus
Chapter 3: Open Systems Interconnection (OSI) Model
Data Link Issues Relates to Lab 2.
ATA over internet.
Greg Bell Business Development Mgr Industrial & Security Markets
Universal Serial Bus (USB)
LEARNING COMPUTER NETWORKS OSI Model (layers). Why a layered model?  Easier to teach communication process.  Speeds development, changes in one layer.
Presentation transcript:

USB PHYISICAL LAYER PROTOCOL ENGINE LAYER APPLICATION LAYER USB RECAP USB COMMUNICATION ELEMENTS USB COMMUNICATION LAYERS PHYISICAL LAYER PROTOCOL ENGINE LAYER APPLICATION LAYER USB PROTOCOL TRANSFER TYPE PACKET FORMAT

RECAP…. USB – automatic attachment, configuration and detachment Speed – low, high and full speed Transfer type Isochronous – Bandwidth guaranteed Asynchronous – Bulk Transfer USB protocol Error detection and Recovery mechanism (low BER)

USB communication elements Host – controls all activities in the bus HUB – star topology Attachment.detachment Power management Derror detection and correction Full- low speed device connection Device - not HOST!

USB communication layers

USB communication layers contd.. Physical layer 4 wire cable (+d, -D, +v, GND) Signalling – Little Endian RESET SUSPEND RESUME EOP NRZ I Coding and Bit stuffing

Phsical layer contd. Serial Interface Engine (SIE) Part of both Host and device Encoding (NRZ I), bit stuffing and vice versa CRC Detects PID, SOP, EOP, RESET and RESUME

Host Controller Frame generation Data Processing (request and response) Protocol engine (HOST USB protocol interface) Error handling

2.The protocol engine layer Translates data between the application layer and function on device using USB transaction protocol USB HOST – USB System software USB device – USB logical device USB system software: Host software: bandwidth allocation, bus enable, power mangaement

USB software system Host control driver (HCD) USB driver (USBD) Interface to the Host controller USB driver (USBD) Send the IPRs to the Host software Send the device description to the client software Enumeration

USB Logical Device Collection of End points Each endpoint have unique address Each device unique address after enumeration End point Unidirectional USB logical device address + End point number + direction IN/OUT = unique Endpoint Enumeration default pipe + endpoint ‘0’ Control type

3. Application Layer Client Software Function Transfer data from buffer to endpoint associated with appropriate interface Function collection of interfaces

USB Protocol USB Transaction USB - polling Protocol Token Phase – future transaction type Data Phase – data transmission as indicated in the previous token Handshake Phase – send Handshake packet – success or failure of the transaction USB - polling Protocol Handshake Mechanism , timeout rules ,CRC – low BER (10 -10)

Transfer types Isochronous – Bandwidth gauranteed Bulk – Bandwidth varies with the system resource Interrupt – short term – interupts Control – Enumeration Process

Packet field Formats SYNC field Start of each packet Idle followed “KJKJKJKK” – NRZ I Encoding K - ‘0’ / ‘1’ > 20 ms (Full speed/ High speed) J – ‘1’ – one bit time Synchronize the internal clock in the Device

PID (Packet Identifier) Actual PID – 4 bits I’s complement - 4 bits – error detection PID groups Token – IN, OUT, SOF SETUP Data - data0 or data1 Handshake – ACK, NAK, STALL

Address field 7 bits 127 device address 0 reserved address

Frame, Data fields Frame field Data field 11 bits only in SOF token Indicates the number of the current frame Data field up to 1024 bytes

CRC field Protect all fields Absent in the PID Token – 5 bits Data – 16 bits

Packet formats Token Packet  Start Of Frame Packet

Packet Formats Contd.. Data Packets Handshake Packets

Transaction Format Control Transfer SET_ADDRESS : setting a permanent address to a function.   GET_DEVICE_DESCRIPTOR: the host wishes to get the device descriptor, which contains details concerning the device - how many configurations, interfaces it has, is the device is self/ bus powered etc. GET_CONFIGURATION_DESCRIPTOR: the host wishes to learn about a specific configuration of a device. GET_CONFIGURATION: the host detects which configuration is active at the moment in the device. SET_CONFIGURATION: the host sets a specific configuration on the device.

Control Transfer

Bulk Transfer IN transfer - in which the host asks for data from the device - data flow direction is from the device into   the host. OUT transfer - in which the host whishes to send data to the device - data flows from the host out to the device.

Bulk Transfer - OUT

Bulk IN transfer

Interrupt Transfer

Isochronous Transfer

Reference USB Explained by Steven McDowell & Martin D.Seyer 1999. Universal Serial Bus Specification Revision 1.1 Sep 1998 (Compac, Intel,  Microsoft, NEC)