SlideShare a Scribd company logo
Welcome to my presentation
Presented by:
Mishuk
Dept. of
Electronics & Communication Engineering
Jatiya Kabi Kazi Nazrul Islam University
USB
Universal Serial Bus
Outlines:
• What is USB
• Need for USB
• Versions of USB
• Types of USB
• Architecture
• Data transmission &Transactions
• USB Descriptors
• Usages
Universal Serial Bus
• A representative peripheral interface
• Universal Serial Bus (USB) provides a serial bus standard
for connecting devices, usually to a computer, but it also is
in use on other devices such as set-top boxes, game
consoles and PDAs.
Why this interfaces is needed ?
• Easy to use, so there’s no need to fiddle with configuration and setup
details.
• Fast, so the interface doesn’t become a bottleneck of slow communications.
• Reliable, so that errors are rare, with automatic correction of errors that do
occur.
• Flexible, so many kinds of peripherals can use the interface.
• Inexpensive, so users (and the manufacturers who will build the interface
into their products) don’t balk at the price.
• Power-conserving, to save battery power on portable computers.
• Supported by the operating system, so developers don’t have to struggle
with writing low-level drivers for the peripherals that use the interface.
Versions of USB
USB 1.x
• Released in January 1996, USB 1.0 specified a data rate of 1.5 Mbit/s (Low Bandwidth or Low
Speed). It did not allow for extension cables or pass-through monitors, due to timing and
power limitations.
USB 2.0
• USB 2.0 was released in April 2000, adding a higher maximum signaling rate of 480 Mbit/s
(High Speed or High Bandwidth),.
USB 3.0
• The USB 3.0 specification was released on 12 November 2008.
• USB 3.0 defines a new SuperSpeed transfer mode, with associated new backwards-
compatible plugs, receptacles, and cables. SuperSpeed plugs and receptacles are identified
with a distinct logo and blue inserts in standard format receptacles.
USB 3.1
• USB 3.1, which was released on 31 July 2013. introduces a faster transfer rate
called SuperSpeed USB 10 Gbps
Types of USB
Several major types of physical layouts exist for USB ports:
• USB-A (Type A): USB A devices are nearly square in shape and are typically used for
wired mice and keyboards.
• USB-B (Type B): This rectangular connector approximately 1.4 cm (9/16 in) length by
0.65 cm (1/4 in) height is commonly found on routers, computers, printers and game
consoles. USB sticks normally feature USB-B connectors also.
• Micro USB: So-called Micro USB versions of both USB-A and USB-B also exist -
smaller versions than their base counterparts, popular on mobile devices.
• USB Type C: With dimensions of 0.84 cm by 0.26cm, this newer standard is designed
to replace both A and B with smaller ports to better support the thinner form factors of
mobile devices
Physical Interface
Architectural Overview
A USB system consists of a host and some number of devices all operating
together on the same time base and logical interconnect.
USB system can be described by three definitional areas:
• USB interconnect
• USB devices
• USB host
USB interconnect is the manner in which USB devices are connected to and
communicate with the host.
This includes the following:
•Topology
•Data Flow
Bus Hierarchy
Host Computer
CPU
Main
Memory
USB Host
Hub
USB Device
System Bus
Memory BusCPU Bus
USB External Bus and interfaceExternal Device
USB Internal Bus and interface
How the USB system is arranged
• The Universal Serial Bus is a network of attachments connected to the host
computer. These attachments come in two types known as Functions and
Hubs .Functions are the peripherals such as mice, printers, etc. Hubs
basically act like a double adapter does on a power-point, converting one
socket, called a port, into multiple ports. Hubs and functions are collectively
called devices.
Figure: Physical arrangement of usb are joined to hub
Figure: How USB system appears to functions
How data is sent across the USB
When the software requires data transfer to occur between itself and the USB, it sends a block of
data called an I/O Request Packet (IRP) to the appropriate pipe, and the software is later notified
when this request is completed successfully
As suggested by the name Universal Serial Bus, data transmission in the bus occurs in a serial
form. Bytes of data are broken up and sent along the bus one bit at a time, with the least significant
bit first as illustrated by figure. Here data 11010010 is sent.
Figure : Serial transmission of binary number 11010010.
The actual data is sent across the bus in packets. Each packet is a bundle of data along with
information concerning the source, destination and length of the data.
Functions,Enpoints,Pipes
• USB Functions
A function is a USB device that is able to transmit or receive data or control information over the bus. A
function is typically implemented as a separate peripheral device, with a cable that plugs into a port on a
hub. However, it is possible to implement multiple functions and an embedded hub with a single USB
cable.
• USB Endpoints
Endpoints can be described as sources or sinks of data. As the bus is host centric, endpoints occur at the
end of the communications channel at the USB function. Every USB device must provide at least one
control endpoint at address 0 called the default endpoint or Endpoint0.
In USB terminology, the direction of an endpoint ( and transfers to or from them) is based on the host.
Thus, IN always refers to transfers to the host from a device and OUT always refers to transfers from the
host to a device. USB devices can also support bi-directional transfers of control data.
• USB pipes
Data is transferred between a USB device and the USB host through an abstraction called a pipe. Pipes is
purely a software term. A pipe talks to an endpoint on a device, and that endpoint has an address. A pipe
is a logical connection between the host and endpoint(s).
Data Transactions
• A data transaction is simply a movement of
data between the host and a connected
device. The different types of possible
transactions depend upon what transfer type
the corresponding pipe is configured for.
• Data flows IN and OUT with respect to the
host
• “IN Transaction”
• “OUT Transaction”
• An endpoint is a buffer used to transmit or
receive data
• Each endpoint has a direction and an
address
• Up to 32 (16 pairs) endpoints can reside
within a device
INOUT
HOST
Different types of Data transactions
Interrupt Transaction
• These are used for small, infrequent
transfers which require priority over
other requests.
• Only way low speed devices can
transfer data
• Also used by the host to send data to
the device on a scheduled basis
• Maximum packet size: 1-64 bytes
Bulk Transaction
• Used for large amount
of data
• Only full and high-
speed devices
• Host controller ensures
that bulk transfer are
eventually completed
but it does not
guarantee bandwidth
• Fastest transfer type on
an otherwise idle bus
• Maximum packet size:
8,16,32,64,512 bytes
Different types of Data transactions
Isochronous Transaction
• Fixed number of bytes per frame. Bandwidth
is guaranteed
• No error correction – No ACK field
• Used for continuous communication of time-
relevant information (streaming data)
• Full and high-speed devices only
• Maximum Packet size: 1-1023 bytes
Control Transaction
• Enables the host to read information about the
device (enumeration)
• All devices must support Control Transfers at
Endpoint 0
• Control transfers require both an IN and OUT
Endpoint
• Talks to the device through Address 0 while
enumeration
• Maximum Packet Size: 8,16,32,64 bytes
USB Descriptors
• A USB device provides information about itself in data structures called USB descriptors .All USB
devices have a hierarchy of descriptors which describe to the host information such as what the
device is, who makes it, what version of USB it supports, how many ways it can be configured,
the number of endpoints and their types etc. The host obtains descriptors from an attached
device by sending various standard control requests to the default endpoint.
• The more common USB descriptors are:
 Device Descriptors
 Configuration Descriptors
 Interface Association Descriptors
 Endpoint Descriptors
 String Descriptors
USB Descriptors
• Device Descriptors
The device descriptor of a USB device represents the entire device. As a result a USB device can only
have one device descriptor. It specifies some basic, yet important information about the device such
as the supported USB version, maximum packet size, vendor and product IDs and the number of
possible configurations the device can have.
• Configuration Descriptors
The configuration descriptor specifies how the device is powered, what the maximum power
consumption is, the number of interfaces it has. Once all the configurations have been examined by
the host, the host will send a SetConfiguration command with a non zero value which matches the
bConfigurationValue of one of the configurations. This is used to select the desired configuration.
USB Descriptors
• Interface Association Descriptors
The interface association descriptor could be seen as a header or grouping of the endpoints into a
functional group performing a single feature of the device. USB interface association descriptor (IAD)
allows the device to group interfaces that belong to a function
• Endpoint Descriptors
Endpoint descriptors are used to describe endpoints other than endpoint zero. Endpoint zero is always
assumed to be a control endpoint and is configured before any descriptors are even requested. The host
will use the information returned from these descriptors to determine the bandwidth requirements of the
bus.
• String Descriptors
String descriptors provide human readable information and are optional. If they are not used, any string
index fields of descriptors must be set to zero indicating there is no string descriptor available. String
descriptors are referenced by their one-based index number. A string descriptor contains one or more
Unicode strings; each string is a translation of the others into another language.
Usages of USB
Human Interface Devices
• Keyboards, mice, joysticks, game controllers
Mass Storage Devices
• External hard drives, DVD/CD-RW, floppy,
• zip, Flash card readers, USB Flash drives
Digital Cameras, Portable Media Players
• Similar to mass storage, so speed is important
• Will also use high speed, bulk data transfers
Printers
• Also uses high-speed
• High-speed, isochronous transfers
Thanks Everybody For Your Patience

More Related Content

What's hot

Universal serial bus
Universal serial busUniversal serial bus
Universal serial bus
Muhammad Muzaffar Khan
 
USB protocol
USB protocolUSB protocol
USB protocol
Mostafa El-koumy
 
Usb
UsbUsb
Universal serial bus(usb)
Universal serial bus(usb)Universal serial bus(usb)
Universal serial bus(usb)
SwaroopShetty7
 
Usb protocol
Usb protocol Usb protocol
Usb protocol
PREMAL GAJJAR
 
USB Universal Serial Bus
USB Universal Serial BusUSB Universal Serial Bus
USB Universal Serial Bus
koushik960
 
USB Powerpoint
USB PowerpointUSB Powerpoint
USB Powerpointaaron924
 
Usb universal serial bus
Usb   universal serial busUsb   universal serial bus
Usb universal serial bus
Dr. Anita Bhandari
 
USB protocol
USB protocolUSB protocol
USB protocol
Jagadeesh Jaggu
 
USB 3.0 -Infinite Possibilities
USB 3.0 -Infinite PossibilitiesUSB 3.0 -Infinite Possibilities
USB 3.0 -Infinite Possibilities
Rehan Guha
 
Usb
UsbUsb
Usb 3.0 technology mindshare
Usb 3.0 technology mindshareUsb 3.0 technology mindshare
Usb 3.0 technology mindshare
Nguyen Nhat Han
 
USB 2.0
USB 2.0USB 2.0
HIGH SPEED U.S.B 3.0
HIGH SPEED U.S.B 3.0HIGH SPEED U.S.B 3.0
HIGH SPEED U.S.B 3.0
pranay agrawal
 
LCU13: An Introduction to ARM Trusted Firmware
LCU13: An Introduction to ARM Trusted FirmwareLCU13: An Introduction to ARM Trusted Firmware
LCU13: An Introduction to ARM Trusted Firmware
Linaro
 

What's hot (20)

Universal serial bus
Universal serial busUniversal serial bus
Universal serial bus
 
USB protocol
USB protocolUSB protocol
USB protocol
 
Usb
UsbUsb
Usb
 
Universal serial bus(usb)
Universal serial bus(usb)Universal serial bus(usb)
Universal serial bus(usb)
 
Usb
UsbUsb
Usb
 
Usb protocol
Usb protocol Usb protocol
Usb protocol
 
Usb Overview
Usb OverviewUsb Overview
Usb Overview
 
USB Universal Serial Bus
USB Universal Serial BusUSB Universal Serial Bus
USB Universal Serial Bus
 
USB Powerpoint
USB PowerpointUSB Powerpoint
USB Powerpoint
 
Usb universal serial bus
Usb   universal serial busUsb   universal serial bus
Usb universal serial bus
 
Usb
UsbUsb
Usb
 
USB protocol
USB protocolUSB protocol
USB protocol
 
USB 3.0 -Infinite Possibilities
USB 3.0 -Infinite PossibilitiesUSB 3.0 -Infinite Possibilities
USB 3.0 -Infinite Possibilities
 
Usb
UsbUsb
Usb
 
AMBA 2.0 PPT
AMBA 2.0 PPTAMBA 2.0 PPT
AMBA 2.0 PPT
 
Usb 3.0 technology mindshare
Usb 3.0 technology mindshareUsb 3.0 technology mindshare
Usb 3.0 technology mindshare
 
USB 2.0
USB 2.0USB 2.0
USB 2.0
 
utmippt
utmipptutmippt
utmippt
 
HIGH SPEED U.S.B 3.0
HIGH SPEED U.S.B 3.0HIGH SPEED U.S.B 3.0
HIGH SPEED U.S.B 3.0
 
LCU13: An Introduction to ARM Trusted Firmware
LCU13: An Introduction to ARM Trusted FirmwareLCU13: An Introduction to ARM Trusted Firmware
LCU13: An Introduction to ARM Trusted Firmware
 

Similar to USB presentation by Mishuk

Chapter-6_2.ppt
Chapter-6_2.pptChapter-6_2.ppt
Chapter-6_2.ppt
JayaprakashSundaraja
 
Usb
UsbUsb
Usb 72213 76207
Usb 72213 76207Usb 72213 76207
Usb 72213 76207
Muruly Krishan
 
usb protocol and its various application
usb protocol and its various applicationusb protocol and its various application
usb protocol and its various application
deosaugat144
 
Cp33551556
Cp33551556Cp33551556
Cp33551556
IJERA Editor
 
Cp33551556
Cp33551556Cp33551556
Cp33551556
IJERA Editor
 
Choosing_(and_Implem..
Choosing_(and_Implem..Choosing_(and_Implem..
Choosing_(and_Implem..webhostingguy
 
Bus
BusBus
Usb
UsbUsb
Advance of usb
Advance of usb Advance of usb
Advance of usb
PREMAL GAJJAR
 
The USB Generation
The USB GenerationThe USB Generation
The USB Generation
Jacques Warner
 
Usb Wp Implementing Usb
Usb Wp Implementing UsbUsb Wp Implementing Usb
Usb Wp Implementing Usb
allankliu
 
Bwpaper2
Bwpaper2Bwpaper2
Bwpaper2
f95346
 
dem.pptx
dem.pptxdem.pptx
dem.pptx
yogeshkute7
 
FLAT(WIRELESS USB).pptx
FLAT(WIRELESS USB).pptxFLAT(WIRELESS USB).pptx
FLAT(WIRELESS USB).pptx
TanguduTejeswarRao
 
Peripherals
PeripheralsPeripherals
Peripherals
Tory Klementsen
 
Computer networking- COMPUTER PORTS, AND MULTI-MEDIA.pptx
Computer networking- COMPUTER PORTS, AND MULTI-MEDIA.pptxComputer networking- COMPUTER PORTS, AND MULTI-MEDIA.pptx
Computer networking- COMPUTER PORTS, AND MULTI-MEDIA.pptx
JoshuaAnnan5
 

Similar to USB presentation by Mishuk (20)

Chapter-6_2.ppt
Chapter-6_2.pptChapter-6_2.ppt
Chapter-6_2.ppt
 
Usb
UsbUsb
Usb
 
USB BASIC
USB BASICUSB BASIC
USB BASIC
 
Usb 72213 76207
Usb 72213 76207Usb 72213 76207
Usb 72213 76207
 
usb protocol and its various application
usb protocol and its various applicationusb protocol and its various application
usb protocol and its various application
 
Cp33551556
Cp33551556Cp33551556
Cp33551556
 
Cp33551556
Cp33551556Cp33551556
Cp33551556
 
Choosing_(and_Implem..
Choosing_(and_Implem..Choosing_(and_Implem..
Choosing_(and_Implem..
 
Bus
BusBus
Bus
 
Usb
UsbUsb
Usb
 
Advance of usb
Advance of usb Advance of usb
Advance of usb
 
The USB Generation
The USB GenerationThe USB Generation
The USB Generation
 
USB 2.0
USB 2.0USB 2.0
USB 2.0
 
Usb Wp Implementing Usb
Usb Wp Implementing UsbUsb Wp Implementing Usb
Usb Wp Implementing Usb
 
Bwpaper2
Bwpaper2Bwpaper2
Bwpaper2
 
dem.pptx
dem.pptxdem.pptx
dem.pptx
 
FLAT(WIRELESS USB).pptx
FLAT(WIRELESS USB).pptxFLAT(WIRELESS USB).pptx
FLAT(WIRELESS USB).pptx
 
Un se-bu
Un se-buUn se-bu
Un se-bu
 
Peripherals
PeripheralsPeripherals
Peripherals
 
Computer networking- COMPUTER PORTS, AND MULTI-MEDIA.pptx
Computer networking- COMPUTER PORTS, AND MULTI-MEDIA.pptxComputer networking- COMPUTER PORTS, AND MULTI-MEDIA.pptx
Computer networking- COMPUTER PORTS, AND MULTI-MEDIA.pptx
 

Recently uploaded

Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
timhan337
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
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
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
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
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
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
 

Recently uploaded (20)

Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
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
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
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
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.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...
 

USB presentation by Mishuk

  • 1. Welcome to my presentation
  • 2. Presented by: Mishuk Dept. of Electronics & Communication Engineering Jatiya Kabi Kazi Nazrul Islam University
  • 3. USB Universal Serial Bus Outlines: • What is USB • Need for USB • Versions of USB • Types of USB • Architecture • Data transmission &Transactions • USB Descriptors • Usages
  • 4. Universal Serial Bus • A representative peripheral interface • Universal Serial Bus (USB) provides a serial bus standard for connecting devices, usually to a computer, but it also is in use on other devices such as set-top boxes, game consoles and PDAs.
  • 5. Why this interfaces is needed ? • Easy to use, so there’s no need to fiddle with configuration and setup details. • Fast, so the interface doesn’t become a bottleneck of slow communications. • Reliable, so that errors are rare, with automatic correction of errors that do occur. • Flexible, so many kinds of peripherals can use the interface. • Inexpensive, so users (and the manufacturers who will build the interface into their products) don’t balk at the price. • Power-conserving, to save battery power on portable computers. • Supported by the operating system, so developers don’t have to struggle with writing low-level drivers for the peripherals that use the interface.
  • 6. Versions of USB USB 1.x • Released in January 1996, USB 1.0 specified a data rate of 1.5 Mbit/s (Low Bandwidth or Low Speed). It did not allow for extension cables or pass-through monitors, due to timing and power limitations. USB 2.0 • USB 2.0 was released in April 2000, adding a higher maximum signaling rate of 480 Mbit/s (High Speed or High Bandwidth),. USB 3.0 • The USB 3.0 specification was released on 12 November 2008. • USB 3.0 defines a new SuperSpeed transfer mode, with associated new backwards- compatible plugs, receptacles, and cables. SuperSpeed plugs and receptacles are identified with a distinct logo and blue inserts in standard format receptacles. USB 3.1 • USB 3.1, which was released on 31 July 2013. introduces a faster transfer rate called SuperSpeed USB 10 Gbps
  • 7. Types of USB Several major types of physical layouts exist for USB ports: • USB-A (Type A): USB A devices are nearly square in shape and are typically used for wired mice and keyboards. • USB-B (Type B): This rectangular connector approximately 1.4 cm (9/16 in) length by 0.65 cm (1/4 in) height is commonly found on routers, computers, printers and game consoles. USB sticks normally feature USB-B connectors also. • Micro USB: So-called Micro USB versions of both USB-A and USB-B also exist - smaller versions than their base counterparts, popular on mobile devices. • USB Type C: With dimensions of 0.84 cm by 0.26cm, this newer standard is designed to replace both A and B with smaller ports to better support the thinner form factors of mobile devices
  • 9. Architectural Overview A USB system consists of a host and some number of devices all operating together on the same time base and logical interconnect. USB system can be described by three definitional areas: • USB interconnect • USB devices • USB host USB interconnect is the manner in which USB devices are connected to and communicate with the host. This includes the following: •Topology •Data Flow
  • 10. Bus Hierarchy Host Computer CPU Main Memory USB Host Hub USB Device System Bus Memory BusCPU Bus USB External Bus and interfaceExternal Device USB Internal Bus and interface
  • 11. How the USB system is arranged • The Universal Serial Bus is a network of attachments connected to the host computer. These attachments come in two types known as Functions and Hubs .Functions are the peripherals such as mice, printers, etc. Hubs basically act like a double adapter does on a power-point, converting one socket, called a port, into multiple ports. Hubs and functions are collectively called devices. Figure: Physical arrangement of usb are joined to hub Figure: How USB system appears to functions
  • 12. How data is sent across the USB When the software requires data transfer to occur between itself and the USB, it sends a block of data called an I/O Request Packet (IRP) to the appropriate pipe, and the software is later notified when this request is completed successfully As suggested by the name Universal Serial Bus, data transmission in the bus occurs in a serial form. Bytes of data are broken up and sent along the bus one bit at a time, with the least significant bit first as illustrated by figure. Here data 11010010 is sent. Figure : Serial transmission of binary number 11010010. The actual data is sent across the bus in packets. Each packet is a bundle of data along with information concerning the source, destination and length of the data.
  • 13. Functions,Enpoints,Pipes • USB Functions A function is a USB device that is able to transmit or receive data or control information over the bus. A function is typically implemented as a separate peripheral device, with a cable that plugs into a port on a hub. However, it is possible to implement multiple functions and an embedded hub with a single USB cable. • USB Endpoints Endpoints can be described as sources or sinks of data. As the bus is host centric, endpoints occur at the end of the communications channel at the USB function. Every USB device must provide at least one control endpoint at address 0 called the default endpoint or Endpoint0. In USB terminology, the direction of an endpoint ( and transfers to or from them) is based on the host. Thus, IN always refers to transfers to the host from a device and OUT always refers to transfers from the host to a device. USB devices can also support bi-directional transfers of control data. • USB pipes Data is transferred between a USB device and the USB host through an abstraction called a pipe. Pipes is purely a software term. A pipe talks to an endpoint on a device, and that endpoint has an address. A pipe is a logical connection between the host and endpoint(s).
  • 14. Data Transactions • A data transaction is simply a movement of data between the host and a connected device. The different types of possible transactions depend upon what transfer type the corresponding pipe is configured for. • Data flows IN and OUT with respect to the host • “IN Transaction” • “OUT Transaction” • An endpoint is a buffer used to transmit or receive data • Each endpoint has a direction and an address • Up to 32 (16 pairs) endpoints can reside within a device INOUT HOST
  • 15. Different types of Data transactions Interrupt Transaction • These are used for small, infrequent transfers which require priority over other requests. • Only way low speed devices can transfer data • Also used by the host to send data to the device on a scheduled basis • Maximum packet size: 1-64 bytes Bulk Transaction • Used for large amount of data • Only full and high- speed devices • Host controller ensures that bulk transfer are eventually completed but it does not guarantee bandwidth • Fastest transfer type on an otherwise idle bus • Maximum packet size: 8,16,32,64,512 bytes
  • 16. Different types of Data transactions Isochronous Transaction • Fixed number of bytes per frame. Bandwidth is guaranteed • No error correction – No ACK field • Used for continuous communication of time- relevant information (streaming data) • Full and high-speed devices only • Maximum Packet size: 1-1023 bytes Control Transaction • Enables the host to read information about the device (enumeration) • All devices must support Control Transfers at Endpoint 0 • Control transfers require both an IN and OUT Endpoint • Talks to the device through Address 0 while enumeration • Maximum Packet Size: 8,16,32,64 bytes
  • 17. USB Descriptors • A USB device provides information about itself in data structures called USB descriptors .All USB devices have a hierarchy of descriptors which describe to the host information such as what the device is, who makes it, what version of USB it supports, how many ways it can be configured, the number of endpoints and their types etc. The host obtains descriptors from an attached device by sending various standard control requests to the default endpoint. • The more common USB descriptors are:  Device Descriptors  Configuration Descriptors  Interface Association Descriptors  Endpoint Descriptors  String Descriptors
  • 18. USB Descriptors • Device Descriptors The device descriptor of a USB device represents the entire device. As a result a USB device can only have one device descriptor. It specifies some basic, yet important information about the device such as the supported USB version, maximum packet size, vendor and product IDs and the number of possible configurations the device can have. • Configuration Descriptors The configuration descriptor specifies how the device is powered, what the maximum power consumption is, the number of interfaces it has. Once all the configurations have been examined by the host, the host will send a SetConfiguration command with a non zero value which matches the bConfigurationValue of one of the configurations. This is used to select the desired configuration.
  • 19. USB Descriptors • Interface Association Descriptors The interface association descriptor could be seen as a header or grouping of the endpoints into a functional group performing a single feature of the device. USB interface association descriptor (IAD) allows the device to group interfaces that belong to a function • Endpoint Descriptors Endpoint descriptors are used to describe endpoints other than endpoint zero. Endpoint zero is always assumed to be a control endpoint and is configured before any descriptors are even requested. The host will use the information returned from these descriptors to determine the bandwidth requirements of the bus. • String Descriptors String descriptors provide human readable information and are optional. If they are not used, any string index fields of descriptors must be set to zero indicating there is no string descriptor available. String descriptors are referenced by their one-based index number. A string descriptor contains one or more Unicode strings; each string is a translation of the others into another language.
  • 20. Usages of USB Human Interface Devices • Keyboards, mice, joysticks, game controllers Mass Storage Devices • External hard drives, DVD/CD-RW, floppy, • zip, Flash card readers, USB Flash drives Digital Cameras, Portable Media Players • Similar to mass storage, so speed is important • Will also use high speed, bulk data transfers Printers • Also uses high-speed • High-speed, isochronous transfers
  • 21. Thanks Everybody For Your Patience