SlideShare uma empresa Scribd logo
1 de 15
Baixar para ler offline
USB
Universal Serial Bus
Basic Architecture
Host-to-Device Connections and Transactions
Features
n Asynchronous serial communication.
n Attachment is detected and device is configured
automatically.
n Single standard connector.
n 127 devices can be connected via hubs.
n Three device speeds:
n Low (1.5Mb/s)
n Full (12Mb/s)
n High (480Mb/s)
n Power: 5V, 100mA-500mA
n Error detection/recovery is automatic.
Terminology
PC Host Software
(USB Communication Flow)
I/O Device
Multiple Personalities
Enumeration
n When a device is attached, the OS “enumerates” the
device, identifies its driver, and assigns an address to
it.
n In the numeration process, data structures (transfer
descriptors) contain information needed by the host
to generate transactions. This information includes:
n USB device address.
n Type of transfer.
n Direction of transfer (write or read).
n Transfer size (# of bytes).
n Speed.
n Address of the device driver’s memory buffer.
Enumeration Steps
n Getting the device descriptor.
n Setting an address.
n Getting the device descriptor again.
n Getting the configuration descriptor.
n Selecting the device driver.
n Setting the configuration.
Frames
The Fundamental Packet
n All communications on the USB are
organized into small packets.
n Four types of packets:
n Token, Data, Handshake, and Special.
n Each packets consists of 3 parts:
n Start (SYNC), information and end.
Packet Types
Ping
0100
Split
1000
ERR
1100
PREamble
1100
Special
NYET (No Response Yet)
0110
STALL Handshake
1110
NAK Handshake
1010
ACK Handshake
0010
Handshake
MDATA
1111
DATA2
0111
DATA1
1011
DATA0
0011
Data
SETUP Token
1101
SOF Token
0101
IN Token
1001
OUT Token
0001
Token
Packet Identifier
PID Value
Group
Four Transaction Types
Examples
Max size
HS
Max size
FS
Max size
LS
Important
attributes
Type
System
control
64
64
8
Quality +
time
Control
Audio, video
3072
1023
-
time
Isochronous
Printer,
scanner
512
64
-
Quality
Bulk
Mouse,
keyboard
3072
64
8
Quality +
time
Interrupt
Interrupt Transfer
Isochronous Transfer
Control Transfer

Mais conteúdo relacionado

Semelhante a USB and communication protocols- Embedded System

Glossary of introduction to networks
Glossary of introduction to networksGlossary of introduction to networks
Glossary of introduction to networks
evelyn
 
Sample elements of computer networking
Sample elements of computer networkingSample elements of computer networking
Sample elements of computer networking
Rameesh Paul
 

Semelhante a USB and communication protocols- Embedded System (20)

I/O Interfaces: Bridging the Digital and Physical Worlds
I/O Interfaces: Bridging the Digital and Physical WorldsI/O Interfaces: Bridging the Digital and Physical Worlds
I/O Interfaces: Bridging the Digital and Physical Worlds
 
IBM Traveler Management, Security and Performance
IBM Traveler Management, Security and PerformanceIBM Traveler Management, Security and Performance
IBM Traveler Management, Security and Performance
 
+ Network Programming.pdf
+ Network Programming.pdf+ Network Programming.pdf
+ Network Programming.pdf
 
Unit 5
Unit 5Unit 5
Unit 5
 
Introduction to ns3
Introduction to ns3Introduction to ns3
Introduction to ns3
 
important network terminologies
important network terminologiesimportant network terminologies
important network terminologies
 
Glossary of introduction to networks
Glossary of introduction to networksGlossary of introduction to networks
Glossary of introduction to networks
 
UNIT III DIS.pptx
UNIT III DIS.pptxUNIT III DIS.pptx
UNIT III DIS.pptx
 
Computer organisation and architecture module 1
Computer organisation and architecture module 1Computer organisation and architecture module 1
Computer organisation and architecture module 1
 
Unit-1_Digital Computers, number systemCOA[1].pptx
Unit-1_Digital Computers, number systemCOA[1].pptxUnit-1_Digital Computers, number systemCOA[1].pptx
Unit-1_Digital Computers, number systemCOA[1].pptx
 
Usb
UsbUsb
Usb
 
Cs556 section3
Cs556 section3Cs556 section3
Cs556 section3
 
Cs556 section3
Cs556 section3Cs556 section3
Cs556 section3
 
I/O Hardware-R.D.Sivakumar
I/O Hardware-R.D.SivakumarI/O Hardware-R.D.Sivakumar
I/O Hardware-R.D.Sivakumar
 
io orgnz.ppt
io orgnz.pptio orgnz.ppt
io orgnz.ppt
 
I/O Channel IBM 370
I/O Channel IBM 370I/O Channel IBM 370
I/O Channel IBM 370
 
Monitoring network performance- Part 3_Free OpManager training
Monitoring network performance- Part 3_Free OpManager training Monitoring network performance- Part 3_Free OpManager training
Monitoring network performance- Part 3_Free OpManager training
 
internet working process DF.pdf
internet working process DF.pdfinternet working process DF.pdf
internet working process DF.pdf
 
Sample elements of computer networking
Sample elements of computer networkingSample elements of computer networking
Sample elements of computer networking
 
Jaimin chp-6 - transport layer- 2011 batch
Jaimin   chp-6 - transport layer- 2011 batchJaimin   chp-6 - transport layer- 2011 batch
Jaimin chp-6 - transport layer- 2011 batch
 

Último

Activity Planning: Objectives, Project Schedule, Network Planning Model. Time...
Activity Planning: Objectives, Project Schedule, Network Planning Model. Time...Activity Planning: Objectives, Project Schedule, Network Planning Model. Time...
Activity Planning: Objectives, Project Schedule, Network Planning Model. Time...
Lovely Professional University
 
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
drjose256
 
Final DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manualFinal DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manual
BalamuruganV28
 
ALCOHOL PRODUCTION- Beer Brewing Process.pdf
ALCOHOL PRODUCTION- Beer Brewing Process.pdfALCOHOL PRODUCTION- Beer Brewing Process.pdf
ALCOHOL PRODUCTION- Beer Brewing Process.pdf
Madan Karki
 
Online crime reporting system project.pdf
Online crime reporting system project.pdfOnline crime reporting system project.pdf
Online crime reporting system project.pdf
Kamal Acharya
 

Último (20)

Lesson no16 application of Induction Generator in Wind.ppsx
Lesson no16 application of Induction Generator in Wind.ppsxLesson no16 application of Induction Generator in Wind.ppsx
Lesson no16 application of Induction Generator in Wind.ppsx
 
Activity Planning: Objectives, Project Schedule, Network Planning Model. Time...
Activity Planning: Objectives, Project Schedule, Network Planning Model. Time...Activity Planning: Objectives, Project Schedule, Network Planning Model. Time...
Activity Planning: Objectives, Project Schedule, Network Planning Model. Time...
 
Diploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdfDiploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdf
 
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
 
Geometric constructions Engineering Drawing.pdf
Geometric constructions Engineering Drawing.pdfGeometric constructions Engineering Drawing.pdf
Geometric constructions Engineering Drawing.pdf
 
Piping and instrumentation diagram p.pdf
Piping and instrumentation diagram p.pdfPiping and instrumentation diagram p.pdf
Piping and instrumentation diagram p.pdf
 
Low rpm Generator for efficient energy harnessing from a two stage wind turbine
Low rpm Generator for efficient energy harnessing from a two stage wind turbineLow rpm Generator for efficient energy harnessing from a two stage wind turbine
Low rpm Generator for efficient energy harnessing from a two stage wind turbine
 
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas SachpazisSeismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
 
Final DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manualFinal DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manual
 
"United Nations Park" Site Visit Report.
"United Nations Park" Site  Visit Report."United Nations Park" Site  Visit Report.
"United Nations Park" Site Visit Report.
 
Online book store management system project.pdf
Online book store management system project.pdfOnline book store management system project.pdf
Online book store management system project.pdf
 
analog-vs-digital-communication (concept of analog and digital).pptx
analog-vs-digital-communication (concept of analog and digital).pptxanalog-vs-digital-communication (concept of analog and digital).pptx
analog-vs-digital-communication (concept of analog and digital).pptx
 
AI in Healthcare Innovative use cases and applications.pdf
AI in Healthcare Innovative use cases and applications.pdfAI in Healthcare Innovative use cases and applications.pdf
AI in Healthcare Innovative use cases and applications.pdf
 
5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...
 
ALCOHOL PRODUCTION- Beer Brewing Process.pdf
ALCOHOL PRODUCTION- Beer Brewing Process.pdfALCOHOL PRODUCTION- Beer Brewing Process.pdf
ALCOHOL PRODUCTION- Beer Brewing Process.pdf
 
Fabrication Of Automatic Star Delta Starter Using Relay And GSM Module By Utk...
Fabrication Of Automatic Star Delta Starter Using Relay And GSM Module By Utk...Fabrication Of Automatic Star Delta Starter Using Relay And GSM Module By Utk...
Fabrication Of Automatic Star Delta Starter Using Relay And GSM Module By Utk...
 
Supermarket billing system project report..pdf
Supermarket billing system project report..pdfSupermarket billing system project report..pdf
Supermarket billing system project report..pdf
 
Online crime reporting system project.pdf
Online crime reporting system project.pdfOnline crime reporting system project.pdf
Online crime reporting system project.pdf
 
Linux Systems Programming: Semaphores, Shared Memory, and Message Queues
Linux Systems Programming: Semaphores, Shared Memory, and Message QueuesLinux Systems Programming: Semaphores, Shared Memory, and Message Queues
Linux Systems Programming: Semaphores, Shared Memory, and Message Queues
 
Electrostatic field in a coaxial transmission line
Electrostatic field in a coaxial transmission lineElectrostatic field in a coaxial transmission line
Electrostatic field in a coaxial transmission line
 

USB and communication protocols- Embedded System

  • 1. USB Universal Serial Bus Basic Architecture Host-to-Device Connections and Transactions
  • 2. Features n Asynchronous serial communication. n Attachment is detected and device is configured automatically. n Single standard connector. n 127 devices can be connected via hubs. n Three device speeds: n Low (1.5Mb/s) n Full (12Mb/s) n High (480Mb/s) n Power: 5V, 100mA-500mA n Error detection/recovery is automatic.
  • 4. PC Host Software (USB Communication Flow)
  • 7. Enumeration n When a device is attached, the OS “enumerates” the device, identifies its driver, and assigns an address to it. n In the numeration process, data structures (transfer descriptors) contain information needed by the host to generate transactions. This information includes: n USB device address. n Type of transfer. n Direction of transfer (write or read). n Transfer size (# of bytes). n Speed. n Address of the device driver’s memory buffer.
  • 8. Enumeration Steps n Getting the device descriptor. n Setting an address. n Getting the device descriptor again. n Getting the configuration descriptor. n Selecting the device driver. n Setting the configuration.
  • 10. The Fundamental Packet n All communications on the USB are organized into small packets. n Four types of packets: n Token, Data, Handshake, and Special. n Each packets consists of 3 parts: n Start (SYNC), information and end.
  • 11. Packet Types Ping 0100 Split 1000 ERR 1100 PREamble 1100 Special NYET (No Response Yet) 0110 STALL Handshake 1110 NAK Handshake 1010 ACK Handshake 0010 Handshake MDATA 1111 DATA2 0111 DATA1 1011 DATA0 0011 Data SETUP Token 1101 SOF Token 0101 IN Token 1001 OUT Token 0001 Token Packet Identifier PID Value Group
  • 12. Four Transaction Types Examples Max size HS Max size FS Max size LS Important attributes Type System control 64 64 8 Quality + time Control Audio, video 3072 1023 - time Isochronous Printer, scanner 512 64 - Quality Bulk Mouse, keyboard 3072 64 8 Quality + time Interrupt