SlideShare a Scribd company logo
1 of 9
Introduction of USB Device by Using USB Storage
Overview ,[object Object]
Storage Commands
Device Requests Get Descriptor Get Configuration Get String Others
Device Requests ,[object Object],12 01  0002  00 00 0040  0713   6301  0001  01 02 0301 Field Offset Size Example RequestType 0 1 Direction, Recipient Request 1 1 GET_STATUS, SET_ADDRESS DescriptorType 2 2 DEVICE, CONFIGURATION wLength 6 2 min(wLength, Return bLength) Format of Setup Data Field Offset Size Description bLength 0 1 Size of this package DescriptorType 1 1 Response DescriptorType DeviceClass 4 2 Assign device, like printer(0x7), vendor assign(0xFF), multiple classes(0x0) idVendor 8 2 Assigned by USB-IF idProduct 8 2 Assigned by manufacturer iManufacturer 14 1 Index of string for munufacturer Device Descriptor ,[object Object],8006   0001  0000  12 00
Device Requests Configuration Descriptor 09 02 20 00  01 010080 32 09 04 00  0002 0806   50 00 07 05   01 02 0002  00 07 05 81  02 0002 00 Field Offset Size Description bLength 0 1 Size of this endpoint DescriptorType 1 1 Endpoint EndpointAddress 2 1 Bit 3...0: Index of this endpoint Bit 7: 0 = OUT, 1 = In MaxPacketSize 4 2 Maximum size of this endpoint ,[object Object],8006 0002  0000FF00 Field Offset Size Description bLength 0 1 Size of this configuration DescriptorType 1 1 Configuration TotalLength 2 2 Size of this package NumberInterfaces 4 1 Number of interfaces in this device Field Offset Size Description bLength 0 1 Size of this interface DescriptorType 1 1 Interface InterfaceNumber 2 1 Index of this interface InterfaceClass 5 2 Assigned by USB-IF InterfaceProtocol 7 1 Qualified by InterfaceClass Endpoint Descriptor Configuration Descriptor Device Descriptor
Device Requests ,[object Object],8006 0203  0904FF00 Field Offset Size Description bLeng th 0 1 Size of this string DescriptorType 1 1 String bString 2 N UNICODE encoded string UNICODE String Descriptor ,[object Object],16 03 4600 6C006100 73006800 20004400 69007300 6B00 F  l  a  s  h  _  D  i  s  k ,[object Object],A1FE0000 00000100 00 A1000000 0000F103 HMFG:ARGOX A-254  ;CMD:EPL;MDL:203dpi;CLS:PRINTER;PROTOCOLS:IEEE1284.4;
Storage Command bit Byte 7 6 5 4 3 2 1 0 0-3 dCBWSignature 4-7 dCBWTag 8-11 dCBWDataTransferLength 12 bmCBWFlags 13 Reserved(0) bCBWLUN 14 Reserved(0) bCBWCBLength 15-30 CBWCB Command Block Wrapper bit Byte 7 6 5 4 3 2 1 0 0-3 dCBWSignature 4-7 dCBWTag 8-11 dCBWDataTransferLength 12 bmCBWFlags Command Status Wrapper
Storage Command bit Byte 7 6 5 4 3 2 1 0 0 Operation Code (28h) 1 dCBWTag 2 (MSB) 3 Logical Block Address 4 5 (LSB) 6 Reserved 7 Transfer Length (MSB) 8 Transfer Length (LSB) 9 Reserved 10 Reserved 11 Reserved Command Block Wrapper Command Block - Read(10) 55534243 08603284 FC000000 80000A23 00000000 000000FC 00000000 000000 > 00000008 003C3FFE 02000200 322E3020 55534220 466C6173 … < 55534253 08603284 00000000 00 <

More Related Content

Viewers also liked

150 Slater Sublease Flyer
150 Slater Sublease Flyer150 Slater Sublease Flyer
150 Slater Sublease Flyerscottbrooker
 
Take my breath away - Roxette PPS by Sonia Medeiros
Take my breath away - Roxette PPS by Sonia Medeiros Take my breath away - Roxette PPS by Sonia Medeiros
Take my breath away - Roxette PPS by Sonia Medeiros Sonia Medeiros
 
New book ch 1, sect 1
New book ch 1, sect 1New book ch 1, sect 1
New book ch 1, sect 1charsh
 
High Performance Green Building: What is it worth?
High Performance Green Building: What is it worth?High Performance Green Building: What is it worth?
High Performance Green Building: What is it worth?scottbrooker
 
Merial Eprinex
Merial EprinexMerial Eprinex
Merial EprinexAgriPoint
 
Haileybury Group Directors of Studies Presentation June 2011
Haileybury Group Directors of Studies Presentation June 2011 Haileybury Group Directors of Studies Presentation June 2011
Haileybury Group Directors of Studies Presentation June 2011 Victoria College
 
The science of productive breaks
The science of productive breaksThe science of productive breaks
The science of productive breaksWrike
 
Heads in the Cloud, Students in the Driving Seat
Heads in the Cloud, Students in the Driving SeatHeads in the Cloud, Students in the Driving Seat
Heads in the Cloud, Students in the Driving SeatVictoria College
 
Transmedia and the Independent Filmmaker
Transmedia and the Independent FilmmakerTransmedia and the Independent Filmmaker
Transmedia and the Independent FilmmakerRobert Pratten
 
Teorikaunseling 090910112241-phpapp01
Teorikaunseling 090910112241-phpapp01Teorikaunseling 090910112241-phpapp01
Teorikaunseling 090910112241-phpapp01onnel_91
 
Kcd226 Sistem Operasi Lecture03
Kcd226 Sistem Operasi Lecture03Kcd226 Sistem Operasi Lecture03
Kcd226 Sistem Operasi Lecture03Cahyo Darujati
 
Chapter 1 section 3 models
Chapter 1 section 3 modelsChapter 1 section 3 models
Chapter 1 section 3 modelscharsh
 

Viewers also liked (17)

Movenpick
MovenpickMovenpick
Movenpick
 
150 Slater Sublease Flyer
150 Slater Sublease Flyer150 Slater Sublease Flyer
150 Slater Sublease Flyer
 
Have to 3-4 ESO
Have to  3-4 ESOHave to  3-4 ESO
Have to 3-4 ESO
 
Take my breath away - Roxette PPS by Sonia Medeiros
Take my breath away - Roxette PPS by Sonia Medeiros Take my breath away - Roxette PPS by Sonia Medeiros
Take my breath away - Roxette PPS by Sonia Medeiros
 
New book ch 1, sect 1
New book ch 1, sect 1New book ch 1, sect 1
New book ch 1, sect 1
 
High Performance Green Building: What is it worth?
High Performance Green Building: What is it worth?High Performance Green Building: What is it worth?
High Performance Green Building: What is it worth?
 
Perfect tenses
Perfect tensesPerfect tenses
Perfect tenses
 
Merial Eprinex
Merial EprinexMerial Eprinex
Merial Eprinex
 
Haileybury Group Directors of Studies Presentation June 2011
Haileybury Group Directors of Studies Presentation June 2011 Haileybury Group Directors of Studies Presentation June 2011
Haileybury Group Directors of Studies Presentation June 2011
 
Eklavya gold v1.2
Eklavya gold v1.2Eklavya gold v1.2
Eklavya gold v1.2
 
Variability
VariabilityVariability
Variability
 
The science of productive breaks
The science of productive breaksThe science of productive breaks
The science of productive breaks
 
Heads in the Cloud, Students in the Driving Seat
Heads in the Cloud, Students in the Driving SeatHeads in the Cloud, Students in the Driving Seat
Heads in the Cloud, Students in the Driving Seat
 
Transmedia and the Independent Filmmaker
Transmedia and the Independent FilmmakerTransmedia and the Independent Filmmaker
Transmedia and the Independent Filmmaker
 
Teorikaunseling 090910112241-phpapp01
Teorikaunseling 090910112241-phpapp01Teorikaunseling 090910112241-phpapp01
Teorikaunseling 090910112241-phpapp01
 
Kcd226 Sistem Operasi Lecture03
Kcd226 Sistem Operasi Lecture03Kcd226 Sistem Operasi Lecture03
Kcd226 Sistem Operasi Lecture03
 
Chapter 1 section 3 models
Chapter 1 section 3 modelsChapter 1 section 3 models
Chapter 1 section 3 models
 

Similar to Introduction to USB Device Storage and Requests

JSR 82 (bluetooth obex)
JSR 82 (bluetooth obex)JSR 82 (bluetooth obex)
JSR 82 (bluetooth obex)SMIJava
 
Management configuration
Management configurationManagement configuration
Management configurationmckan1974
 
P3APS19001EN IEC 61850_Configuration_Instructions.pdf
P3APS19001EN IEC 61850_Configuration_Instructions.pdfP3APS19001EN IEC 61850_Configuration_Instructions.pdf
P3APS19001EN IEC 61850_Configuration_Instructions.pdfdongaduythuat123
 
Open Hardware PowerPC Notebook motherboard V.0.6 August 2020
Open Hardware PowerPC Notebook motherboard V.0.6 August 2020Open Hardware PowerPC Notebook motherboard V.0.6 August 2020
Open Hardware PowerPC Notebook motherboard V.0.6 August 2020Roberto Innocenti
 
IoT Gateway實現專題
IoT Gateway實現專題IoT Gateway實現專題
IoT Gateway實現專題艾鍗科技
 
Electrical Schematic Open Hardware PowerPC Notebook motherboard v. 0.5
 Electrical Schematic Open Hardware PowerPC Notebook motherboard v. 0.5 Electrical Schematic Open Hardware PowerPC Notebook motherboard v. 0.5
Electrical Schematic Open Hardware PowerPC Notebook motherboard v. 0.5Roberto Innocenti
 
Electrical Schematic of PowerPC GNU/Linux Notebook
Electrical Schematic of PowerPC GNU/Linux NotebookElectrical Schematic of PowerPC GNU/Linux Notebook
Electrical Schematic of PowerPC GNU/Linux NotebookRoberto Innocenti
 
Electrical Schematic Open Hardware PowerPC Notebook motherboard v. 0.4
Electrical Schematic Open Hardware PowerPC Notebook motherboard v. 0.4Electrical Schematic Open Hardware PowerPC Notebook motherboard v. 0.4
Electrical Schematic Open Hardware PowerPC Notebook motherboard v. 0.4Roberto Innocenti
 
Implementation of Low Bit Rate Vocoder for Speech Compression
Implementation of Low Bit Rate Vocoder for Speech CompressionImplementation of Low Bit Rate Vocoder for Speech Compression
Implementation of Low Bit Rate Vocoder for Speech CompressionIRJET Journal
 
挖掘低耗電藍芽的寶藏
挖掘低耗電藍芽的寶藏挖掘低耗電藍芽的寶藏
挖掘低耗電藍芽的寶藏evan3rd
 
04 module operating & configuring ios
04  module operating & configuring ios04  module operating & configuring ios
04 module operating & configuring iosAsif
 
Electrical Schematic Open Hardware PowerPC Notebook motherboard
Electrical Schematic Open Hardware PowerPC Notebook motherboard Electrical Schematic Open Hardware PowerPC Notebook motherboard
Electrical Schematic Open Hardware PowerPC Notebook motherboard Roberto Innocenti
 
MPEG-4 BIFS and MPEG-2 TS: Latest developments for digital radio services
MPEG-4 BIFS and MPEG-2 TS: Latest developments for digital radio servicesMPEG-4 BIFS and MPEG-2 TS: Latest developments for digital radio services
MPEG-4 BIFS and MPEG-2 TS: Latest developments for digital radio servicesCyril Concolato
 
esp32_datasheet_en.pdf
esp32_datasheet_en.pdfesp32_datasheet_en.pdf
esp32_datasheet_en.pdfNguynTun714731
 

Similar to Introduction to USB Device Storage and Requests (20)

Ghosterr
GhosterrGhosterr
Ghosterr
 
JSR 82 (bluetooth obex)
JSR 82 (bluetooth obex)JSR 82 (bluetooth obex)
JSR 82 (bluetooth obex)
 
Management configuration
Management configurationManagement configuration
Management configuration
 
P3APS19001EN IEC 61850_Configuration_Instructions.pdf
P3APS19001EN IEC 61850_Configuration_Instructions.pdfP3APS19001EN IEC 61850_Configuration_Instructions.pdf
P3APS19001EN IEC 61850_Configuration_Instructions.pdf
 
Open Hardware PowerPC Notebook motherboard V.0.6 August 2020
Open Hardware PowerPC Notebook motherboard V.0.6 August 2020Open Hardware PowerPC Notebook motherboard V.0.6 August 2020
Open Hardware PowerPC Notebook motherboard V.0.6 August 2020
 
Printer Class
Printer ClassPrinter Class
Printer Class
 
IoT Gateway實現專題
IoT Gateway實現專題IoT Gateway實現專題
IoT Gateway實現專題
 
Electrical Schematic Open Hardware PowerPC Notebook motherboard v. 0.5
 Electrical Schematic Open Hardware PowerPC Notebook motherboard v. 0.5 Electrical Schematic Open Hardware PowerPC Notebook motherboard v. 0.5
Electrical Schematic Open Hardware PowerPC Notebook motherboard v. 0.5
 
Electrical Schematic of PowerPC GNU/Linux Notebook
Electrical Schematic of PowerPC GNU/Linux NotebookElectrical Schematic of PowerPC GNU/Linux Notebook
Electrical Schematic of PowerPC GNU/Linux Notebook
 
Electrical Schematic Open Hardware PowerPC Notebook motherboard v. 0.4
Electrical Schematic Open Hardware PowerPC Notebook motherboard v. 0.4Electrical Schematic Open Hardware PowerPC Notebook motherboard v. 0.4
Electrical Schematic Open Hardware PowerPC Notebook motherboard v. 0.4
 
Implementation of Low Bit Rate Vocoder for Speech Compression
Implementation of Low Bit Rate Vocoder for Speech CompressionImplementation of Low Bit Rate Vocoder for Speech Compression
Implementation of Low Bit Rate Vocoder for Speech Compression
 
unit 5-ERTS.pptx
unit 5-ERTS.pptxunit 5-ERTS.pptx
unit 5-ERTS.pptx
 
挖掘低耗電藍芽的寶藏
挖掘低耗電藍芽的寶藏挖掘低耗電藍芽的寶藏
挖掘低耗電藍芽的寶藏
 
04 module operating & configuring ios
04  module operating & configuring ios04  module operating & configuring ios
04 module operating & configuring ios
 
Electrical Schematic Open Hardware PowerPC Notebook motherboard
Electrical Schematic Open Hardware PowerPC Notebook motherboard Electrical Schematic Open Hardware PowerPC Notebook motherboard
Electrical Schematic Open Hardware PowerPC Notebook motherboard
 
Mifare cards
Mifare cardsMifare cards
Mifare cards
 
Assembler
AssemblerAssembler
Assembler
 
Assembler
AssemblerAssembler
Assembler
 
MPEG-4 BIFS and MPEG-2 TS: Latest developments for digital radio services
MPEG-4 BIFS and MPEG-2 TS: Latest developments for digital radio servicesMPEG-4 BIFS and MPEG-2 TS: Latest developments for digital radio services
MPEG-4 BIFS and MPEG-2 TS: Latest developments for digital radio services
 
esp32_datasheet_en.pdf
esp32_datasheet_en.pdfesp32_datasheet_en.pdf
esp32_datasheet_en.pdf
 

Introduction to USB Device Storage and Requests

  • 1. Introduction of USB Device by Using USB Storage
  • 2.
  • 4. Device Requests Get Descriptor Get Configuration Get String Others
  • 5.
  • 6.
  • 7.
  • 8. Storage Command bit Byte 7 6 5 4 3 2 1 0 0-3 dCBWSignature 4-7 dCBWTag 8-11 dCBWDataTransferLength 12 bmCBWFlags 13 Reserved(0) bCBWLUN 14 Reserved(0) bCBWCBLength 15-30 CBWCB Command Block Wrapper bit Byte 7 6 5 4 3 2 1 0 0-3 dCBWSignature 4-7 dCBWTag 8-11 dCBWDataTransferLength 12 bmCBWFlags Command Status Wrapper
  • 9. Storage Command bit Byte 7 6 5 4 3 2 1 0 0 Operation Code (28h) 1 dCBWTag 2 (MSB) 3 Logical Block Address 4 5 (LSB) 6 Reserved 7 Transfer Length (MSB) 8 Transfer Length (LSB) 9 Reserved 10 Reserved 11 Reserved Command Block Wrapper Command Block - Read(10) 55534243 08603284 FC000000 80000A23 00000000 000000FC 00000000 000000 > 00000008 003C3FFE 02000200 322E3020 55534220 466C6173 … < 55534253 08603284 00000000 00 <