94 of 124 |
Mass Storage Class Tests
Ex
ami
n
er
U
se
r
G
u
ide
Specification Reference
USB Mass Storage Device Compliance Specification TD1.5.
8.6
Case 2 Test
Test Summary
Examiner sends a series of mass storage class requests intended to confirm the case:
Hn < Di: host wants to transfer no data, device wants to transfer data
IN.
Test Steps and Expected Results
1.
Examiner initializes the link to U0.
2.
Examiner issues several standard descriptor requests and places the device into the
configured state.
3.
Examiner issues an Inquiry command (Data Transfer Length = 36 bytes), a Test Unit
Ready command (Data Transfer Length = 0 bytes), and a Read Capacity command (Data
Transfer Length = 8 bytes).
Multiple Test Unit Ready commands may be issued until the device
reports it is ready.
4.
To induce the Case 2 behavior, Examiner issues a Read (10) command with
CBWDataTransferLength = 0x0000 and Transfer Length = 1 block.
5.
Examiner issues a Request Sense command.
The test fails if any of the requirements listed below are not met:
The CSW must be 13 bytes in length
The Signature must match the CBW
The dDataResidue field must be equal to 0 Bytes.
The bStatus field must be equal to must be equal to 0x01 (Command Failed) or
0x02 (Phase Incorrect).