Title: USB Mass Storage Command Protocol
1USB Mass Storage Command
Protocol
- B93902019 ???
- B93902101 ???
2Introduction
- 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)
3Introduction(Cont.)
4UFI Commands
- Each command block is 12 bytes in length.
- Bulk-in Endpoint
- Bulk-out Endpoint
5UFI Commands(Cont.)
6UFI Commands(Cont.)
- UFI Command Block Description
7UFI Commands(Cont.)
8UFI Commands(Cont.)
- Status
- Immediate Command Processing Considerations
- UFI Command Process Flow
- Aborting an UFI Command
9Sense Data
- UFI device stores the execution result status of
every command block as Sense Data.
10Sense Data(Cont.)
11Sense Data(Cont.)
12UFI Command Descriptions
13FORMAT UNIT Command
- Physically format one track of a diskette
according to the selected options.
14FORMAT UNIT Command(Cont.)
15FORMAT UNIT Command(Cont.)
16FORMAT UNIT Command(Cont.)
17INQUIEY 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.
18INQUIRY Command(Cont.)
19INQUIRY Command(Cont.)
20MODE SELECT Command
- The MODE SELECT command allows the host to
specify medium or device parameters to the UFI
device.
21MODE SELECT Command(Cont.)
22MODE SENSE Command
- The MODE SENSE command allows the UFI device to
report medium or device parameters to the host.
23MODE SENSE Command (Cont.)
24Mode Select / Mode Sense Parameters
25PREVENT-ALLOW MEDIUM REMOVAL Command
- This command tells the UFI device to enable or
disable the removal of the medium in the logical
unit.
26PREVENT-ALLOW MEDIUM REMOVAL Command (Cont.)
27PREVENT-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
28READ(10) Command
- The READ(10) command requests that the UFI device
transfer data to the host.
29READ(10) Command (Cont.)
30READ(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.
31READ(12) Command (Cont.)
32READ CAPACITY Command
- The READ CAPACITIY command allows the host to
request capacities of the currently installed
medium.
33READ CAPACITY Command (Cont.)
34READ CAPACITY Command (Cont.)
35READ 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.
36READ FORMAT CAPACITIES Command (Cont.)
37READ FORMAT CAPACITIES Command (Cont.)
- Allocation Length specifies the maximum number
of bytes of format data the Host can receive.
38READ 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
39READ FORMAT CAPACITIES Command (Cont.)
40READ FORMAT CAPACITIES Command (Cont.)
41READ FORMAT CAPACITIES Command (Cont.)
42READ FORMAT CAPACITIES Command (Cont.)
43READ FORMAT CAPACITIES Command (Cont.)
44READ FORMAT CAPACITIES Command (Cont.)
45READ FORMAT CAPACITIES Command (Cont.)
46READ FORMAT CAPACITIES Command (Cont.)
47REQUEST SENSE Command
48REZERO UNIT Command
49SEEK Command
50SEND DIAGNOSTIC Command
51START-STOP UNIT Command
52TEST UNIT READY Command
53VERIFY Command
54WRITE(10) Command
55WRITE(12) Command
56WRITE AND VERIFY Command
57(No Transcript)