USB Mass Storage Command Protocol - PowerPoint PPT Presentation

1 / 57
About This Presentation
Title:

USB Mass Storage Command Protocol

Description:

Sense Data. UFI device stores the execution result status of every command block as Sense Data. ... The most recent data value written in the addressed logical ... – PowerPoint PPT presentation

Number of Views:153
Avg rating:3.0/5.0
Slides: 58
Provided by: csieN
Category:

less

Transcript and Presenter's Notes

Title: USB Mass Storage Command Protocol


1
USB Mass Storage Command
Protocol
  • B93902019 ???
  • B93902101 ???

2
Introduction
  • A UFI Device is a removable-media mass storage
    subsystem.
  • Connects to a Host computer via its Universal
    Serial Bus(USB) port.
  • Use Command Blocks.
  • USB Floppy Disk Unit(USB FDU)

3
Introduction(Cont.)
4
UFI Commands
  • Each command block is 12 bytes in length.
  • Bulk-in Endpoint
  • Bulk-out Endpoint

5
UFI Commands(Cont.)
6
UFI Commands(Cont.)
  • UFI Command Block Description

7
UFI Commands(Cont.)
8
UFI Commands(Cont.)
  • Status
  • Immediate Command Processing Considerations
  • UFI Command Process Flow
  • Aborting an UFI Command

9
Sense Data
  • UFI device stores the execution result status of
    every command block as Sense Data.

10
Sense Data(Cont.)
11
Sense Data(Cont.)
12
UFI Command Descriptions
13
FORMAT UNIT Command
  • Physically format one track of a diskette
    according to the selected options.

14
FORMAT UNIT Command(Cont.)
15
FORMAT UNIT Command(Cont.)
16
FORMAT UNIT Command(Cont.)
17
INQUIEY Command
  • Request the information regarding parameters of
    the UFI device itself be sent to the host.
  • Used by a driver on the host to ask the
    configuration of the UFI device.
  • Typically after power-on or hardware reset.

18
INQUIRY Command(Cont.)
19
INQUIRY Command(Cont.)
20
MODE SELECT Command
  • The MODE SELECT command allows the host to
    specify medium or device parameters to the UFI
    device.

21
MODE SELECT Command(Cont.)
22
MODE SENSE Command
  • The MODE SENSE command allows the UFI device to
    report medium or device parameters to the host.

23
MODE SENSE Command (Cont.)
24
Mode Select / Mode Sense Parameters
25
PREVENT-ALLOW MEDIUM REMOVAL Command
  • This command tells the UFI device to enable or
    disable the removal of the medium in the logical
    unit.

26
PREVENT-ALLOW MEDIUM REMOVAL Command (Cont.)
27
PREVENT-ALLOW MEDIUM REMOVAL Command (Cont.)
  • Prevent prevent media removal flag
  • 0 enable (allow) the removal of the medium
  • 1 disable (prevent) removal of the medium

28
READ(10) Command
  • The READ(10) command requests that the UFI device
    transfer data to the host.

29
READ(10) Command (Cont.)
30
READ(12) Command
  • The READ(12) command requests that the UFI device
    transfer data to the host. The most recent data
    value written in the addressed logical block on
    the medium shall be returned.

31
READ(12) Command (Cont.)
32
READ CAPACITY Command
  • The READ CAPACITIY command allows the host to
    request capacities of the currently installed
    medium.

33
READ CAPACITY Command (Cont.)
34
READ CAPACITY Command (Cont.)
35
READ FORMAT CAPACITIES Command
  • The READ FORMAT CAPACITIES command allows the
    host to request a list of the possible capacities
    that can be formatted on the currently installed
    medium.

36
READ FORMAT CAPACITIES Command (Cont.)
37
READ FORMAT CAPACITIES Command (Cont.)
  • Allocation Length specifies the maximum number
    of bytes of format data the Host can receive.

38
READ FORMAT CAPACITIES Command (Cont.)
  • Capacity List
  • Upon receipt of this command block, the UFI
    device returns a Capacity List to the host on the
    Bulk In endpoint.
  • No media in FDU Capacity List Header Maximum
    Capacity Header
  • Media in FDU Capacity List Header Current
    Capacity Header Formattable Capacity
    Descriptors

39
READ FORMAT CAPACITIES Command (Cont.)
40
READ FORMAT CAPACITIES Command (Cont.)
41
READ FORMAT CAPACITIES Command (Cont.)
42
READ FORMAT CAPACITIES Command (Cont.)
43
READ FORMAT CAPACITIES Command (Cont.)
44
READ FORMAT CAPACITIES Command (Cont.)
45
READ FORMAT CAPACITIES Command (Cont.)
46
READ FORMAT CAPACITIES Command (Cont.)
47
REQUEST SENSE Command
48
REZERO UNIT Command
49
SEEK Command
50
SEND DIAGNOSTIC Command
51
START-STOP UNIT Command
52
TEST UNIT READY Command
53
VERIFY Command
54
WRITE(10) Command
55
WRITE(12) Command
56
WRITE AND VERIFY Command
57
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com