Mass Storage Class Tests
| 95 of 124
S
u
pe
rS
pe
ed
U
S
B
Ex
pl
o
re
r
2
8
0
Specification Reference
USB Mass Storage Device Compliance Specification TD1.6.
8.7
Case 3 Test
Test Summary
Examiner sends a series of mass storage class requests intended to confirm the case:
Hn < Do: host wants to transfer no data, device wants to transfer
data OUT.
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 3 behavior, Examiner issues a Write (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 returned CSW must be 13 bytes in length.
The signature must be correct.
The Tag must match the Tag on 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).