SlideShare a Scribd company logo
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
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 : 010111111101
send : 0101111110101
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

More Related Content

What's hot

USB protocol
USB protocolUSB protocol
USB protocol
Mostafa El-koumy
 
USB 2.0
USB 2.0USB 2.0
USB presentation by Mishuk
USB presentation by MishukUSB presentation by Mishuk
USB presentation by Mishuk
mks mk
 
Usb
UsbUsb
Usb
UsbUsb
USB Universal Serial Bus
USB Universal Serial BusUSB Universal Serial Bus
USB Universal Serial Bus
koushik960
 
Difference between PCI PCI-X PCIe
Difference between PCI PCI-X PCIeDifference between PCI PCI-X PCIe
Difference between PCI PCI-X PCIe
SUNODH GARLAPATI
 
Universal serial bus(usb)
Universal serial bus(usb)Universal serial bus(usb)
Universal serial bus(usb)
SwaroopShetty7
 
Usb universal serial bus
Usb   universal serial busUsb   universal serial bus
Usb universal serial bus
Dr. Anita Bhandari
 
USB 3.0 -Infinite Possibilities
USB 3.0 -Infinite PossibilitiesUSB 3.0 -Infinite Possibilities
USB 3.0 -Infinite Possibilities
Rehan Guha
 
Communication protocols
Communication protocolsCommunication protocols
Communication protocols
Piyush Bhardwaj
 
Pci,usb,scsi bus
Pci,usb,scsi busPci,usb,scsi bus
Pci,usb,scsi bus
Sherwin Rodrigues
 
UART
UARTUART
USB protocol
USB protocolUSB protocol
USB protocol
Jagadeesh Jaggu
 
Usb 3.0 technology mindshare
Usb 3.0 technology mindshareUsb 3.0 technology mindshare
Usb 3.0 technology mindshare
Nguyen Nhat Han
 
Introduction of USB 3.1
Introduction of USB 3.1 Introduction of USB 3.1
Introduction of USB 3.1
Rainny Tu
 

What's hot (20)

USB 2.0 and 3.0
USB 2.0 and 3.0USB 2.0 and 3.0
USB 2.0 and 3.0
 
USB 3.0
USB 3.0USB 3.0
USB 3.0
 
USB protocol
USB protocolUSB protocol
USB protocol
 
Usb Overview
Usb OverviewUsb Overview
Usb Overview
 
USB 2.0
USB 2.0USB 2.0
USB 2.0
 
USB presentation by Mishuk
USB presentation by MishukUSB presentation by Mishuk
USB presentation by Mishuk
 
Usb
UsbUsb
Usb
 
Usb
UsbUsb
Usb
 
USB Universal Serial Bus
USB Universal Serial BusUSB Universal Serial Bus
USB Universal Serial Bus
 
Difference between PCI PCI-X PCIe
Difference between PCI PCI-X PCIeDifference between PCI PCI-X PCIe
Difference between PCI PCI-X PCIe
 
Universal serial bus(usb)
Universal serial bus(usb)Universal serial bus(usb)
Universal serial bus(usb)
 
Usb universal serial bus
Usb   universal serial busUsb   universal serial bus
Usb universal serial bus
 
Usb
UsbUsb
Usb
 
USB 3.0 -Infinite Possibilities
USB 3.0 -Infinite PossibilitiesUSB 3.0 -Infinite Possibilities
USB 3.0 -Infinite Possibilities
 
Communication protocols
Communication protocolsCommunication protocols
Communication protocols
 
Pci,usb,scsi bus
Pci,usb,scsi busPci,usb,scsi bus
Pci,usb,scsi bus
 
UART
UARTUART
UART
 
USB protocol
USB protocolUSB protocol
USB protocol
 
Usb 3.0 technology mindshare
Usb 3.0 technology mindshareUsb 3.0 technology mindshare
Usb 3.0 technology mindshare
 
Introduction of USB 3.1
Introduction of USB 3.1 Introduction of USB 3.1
Introduction of USB 3.1
 

Similar to Usb

wireless-usb-207-ipx1bSv.pptx
wireless-usb-207-ipx1bSv.pptxwireless-usb-207-ipx1bSv.pptx
wireless-usb-207-ipx1bSv.pptx
TanmayaKar4
 
Advance of usb
Advance of usb Advance of usb
Advance of usb
PREMAL GAJJAR
 
TCP vs UDP in OSI model Computer Network
TCP vs UDP in OSI model  Computer NetworkTCP vs UDP in OSI model  Computer Network
TCP vs UDP in OSI model Computer Network
SwarajSonavane
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
Aiman Hud
 
Usb old
Usb oldUsb old
Usb old
surendartech
 
Cp33551556
Cp33551556Cp33551556
Cp33551556
IJERA Editor
 
Cp33551556
Cp33551556Cp33551556
Cp33551556
IJERA Editor
 
Usb 72213 76207
Usb 72213 76207Usb 72213 76207
Usb 72213 76207
Muruly Krishan
 
Networking Fundamentals
Networking Fundamentals Networking Fundamentals
Networking Fundamentals
Vikas Gupta
 
Chapter05 -- networking hardware
Chapter05  -- networking hardwareChapter05  -- networking hardware
Chapter05 -- networking hardware
Raja Waseem Akhtar
 
Ch 2 network
Ch 2 networkCh 2 network
Ch 2 network
MohamedAbdELhamed35
 
Class_notes_InternetTechnology
Class_notes_InternetTechnologyClass_notes_InternetTechnology
Class_notes_InternetTechnologyGulrez Khan
 
Concept of OSI Model_KSMS_BCA_4th_6th_Sem_Priyanka Bhattacharya_20th March 2020
Concept of OSI Model_KSMS_BCA_4th_6th_Sem_Priyanka Bhattacharya_20th March  2020Concept of OSI Model_KSMS_BCA_4th_6th_Sem_Priyanka Bhattacharya_20th March  2020
Concept of OSI Model_KSMS_BCA_4th_6th_Sem_Priyanka Bhattacharya_20th March 2020
PriyankaBhattacharya28
 
UART project report by Tarun Khaneja ( 09034406598 )
UART project report by Tarun Khaneja ( 09034406598 )UART project report by Tarun Khaneja ( 09034406598 )
UART project report by Tarun Khaneja ( 09034406598 )
Tarun Khaneja
 
layering.pdf
layering.pdflayering.pdf
layering.pdf
BoostHub
 
USB TO USB Data Transfer without PC
USB TO USB Data Transfer without PCUSB TO USB Data Transfer without PC
USB TO USB Data Transfer without PC
IJERD Editor
 
Internet protocol (ip) ppt
Internet protocol (ip) pptInternet protocol (ip) ppt
Internet protocol (ip) ppt
Dulith Kasun
 
OSI MODELS.pptx
OSI  MODELS.pptxOSI  MODELS.pptx
OSI MODELS.pptx
DeepakChaudhary373615
 

Similar to Usb (20)

USB 2.0
USB 2.0USB 2.0
USB 2.0
 
wireless-usb-207-ipx1bSv.pptx
wireless-usb-207-ipx1bSv.pptxwireless-usb-207-ipx1bSv.pptx
wireless-usb-207-ipx1bSv.pptx
 
Advance of usb
Advance of usb Advance of usb
Advance of usb
 
TCP vs UDP in OSI model Computer Network
TCP vs UDP in OSI model  Computer NetworkTCP vs UDP in OSI model  Computer Network
TCP vs UDP in OSI model Computer Network
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
Usb old
Usb oldUsb old
Usb old
 
Cp33551556
Cp33551556Cp33551556
Cp33551556
 
Cp33551556
Cp33551556Cp33551556
Cp33551556
 
Usb 72213 76207
Usb 72213 76207Usb 72213 76207
Usb 72213 76207
 
Networking Fundamentals
Networking Fundamentals Networking Fundamentals
Networking Fundamentals
 
Chapter05 -- networking hardware
Chapter05  -- networking hardwareChapter05  -- networking hardware
Chapter05 -- networking hardware
 
Ch 2 network
Ch 2 networkCh 2 network
Ch 2 network
 
Uart
UartUart
Uart
 
Class_notes_InternetTechnology
Class_notes_InternetTechnologyClass_notes_InternetTechnology
Class_notes_InternetTechnology
 
Concept of OSI Model_KSMS_BCA_4th_6th_Sem_Priyanka Bhattacharya_20th March 2020
Concept of OSI Model_KSMS_BCA_4th_6th_Sem_Priyanka Bhattacharya_20th March  2020Concept of OSI Model_KSMS_BCA_4th_6th_Sem_Priyanka Bhattacharya_20th March  2020
Concept of OSI Model_KSMS_BCA_4th_6th_Sem_Priyanka Bhattacharya_20th March 2020
 
UART project report by Tarun Khaneja ( 09034406598 )
UART project report by Tarun Khaneja ( 09034406598 )UART project report by Tarun Khaneja ( 09034406598 )
UART project report by Tarun Khaneja ( 09034406598 )
 
layering.pdf
layering.pdflayering.pdf
layering.pdf
 
USB TO USB Data Transfer without PC
USB TO USB Data Transfer without PCUSB TO USB Data Transfer without PC
USB TO USB Data Transfer without PC
 
Internet protocol (ip) ppt
Internet protocol (ip) pptInternet protocol (ip) ppt
Internet protocol (ip) ppt
 
OSI MODELS.pptx
OSI  MODELS.pptxOSI  MODELS.pptx
OSI MODELS.pptx
 

Recently uploaded

Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
CarlosHernanMontoyab2
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 

Recently uploaded (20)

Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 

Usb

  • 1. USB 2.0 INTRODUCTION NTUT CSIE
  • 2. Outline History and Evolution Why We Need USB ? Architectural Overview USB communication flow Protocol Layer Conclusion
  • 3. 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
  • 4. Outline History and Evolution Why We Need USB ? Architectural Overview USB communication flow Protocol Layer Conclusion
  • 5. History USB—Universal Serial Bus Invented and standardized by a group of computer and peripherals manufactures in 1995 Compete with IEEE1394
  • 7. Outline History and Evolution Why We Need USB ? Architectural Overview USB communication flow Protocol Layer Conclusion
  • 8. 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
  • 9. 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
  • 10. 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
  • 11. Outline History and Evolution Why We Need USB ? Architectural Overview USB communication flow Protocol Layer Conclusion
  • 12. 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 )
  • 13. 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
  • 14. 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
  • 16. Outline History and Evolution Why We Need USB ? Architectural Overview USB communication flow Protocol Layer Conclusion
  • 18. 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
  • 19. 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
  • 21. 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 )
  • 22. 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
  • 23. 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
  • 25. 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)
  • 26. 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
  • 27. 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
  • 28. 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
  • 29. Outline History and Evolution Why We Need USB ? Architectural Overview USB communication flow Protocol Layer Conclusion
  • 30. 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
  • 31. 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
  • 32. 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
  • 33. Packet (1) PID : Packet Identifier Field Address Field =>So , there are up to 127 devices in USB
  • 34. Packet (2) Token Packet =>ADDR & ENDP define an unique endpoint
  • 36. Packet (4) Handshake Packet =>Such as ACK 、 NAK 、 STALL… etc.
  • 37. Outline History and Evolution Why We Need USB ? Architectural Overview USB communication flow Protocol Layer Conclusion
  • 38. Conclusion USB is powerful and easy to use The complex host make the device easy to design
  • 39. The End Thanks
  • 41. 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
  • 43. 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
  • 44. Device Category (2) By number of functions =>Compound device =>Composite device
  • 47. PIPE
  • 48. Cable
  • 49. 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 :
  • 50. 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 : 010111111101 send : 0101111110101
  • 51. 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
  • 52. 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)