6.Command Specification | SEND DIAGNOSTIC |
6.25.SEND DIAGNOSTIC 1Dh
Bit | 7 | 6 | 5 | 4 |
| 3 | 2 | 1 | 0 |
Byte |
|
|
|
|
|
|
|
|
|
0 |
|
|
| Operation | Code (1Dh) |
|
|
| |
1 |
| Reserved |
| PF |
| Reserved | Self Test | DevOfl(0) | UnitOfl |
2 |
|
|
|
| Reserved |
|
|
| |
3 | (MSB) |
|
| Parameter List Length |
|
|
| ||
4 |
|
|
|
|
|
|
|
| (LSB) |
5 |
|
|
|
| Control |
|
|
|
The SEND DIAGNOSTIC command requests the drive to perform diagnostic tests on itself.
PF: The drive expects the Page Format bit to be set to indicate that the parameters transferred during the DATA OUT phase will include four bytes of header information as well as the diagnostic test bytes.
If this bit is not set, the parameter bytes will only describe the diagnostic test. Note that if the Self Test bit is set, this bit must be ZERO else the drive will return a CHECK CONDITION with the ILLEGAL REQUEST sense key set.
Self Test: When this bit is set, the drive executes its
DevOfl: Device
UnitOfl: This bit must be set for proper operation of any diagnostic test except Self Test. If this bit is not set, except for
Parameter List Length: This field provides the count of the number of Parameter List bytes which will be transferred in the
If the PF bit is ZERO, the Parameter List describes the diagnostic test to be executed. The diagnostic tests are five bytes in length. If the Parameter List Length is not set to five or ZERO if the
If the PF bit is set, the Parameter List includes a four byte header as of the form:
Table 6-95: Diagnostic Page Format
Bit | 7 | 6 | 5 | 4 |
| 3 | 2 | 1 | 0 |
Byte |
|
|
|
|
|
|
|
|
|
0 |
|
|
|
| Page | Code |
|
|
|
1 |
|
|
|
| Reserved |
|
|
| |
2 | (MSB) |
|
| Page Length |
|
|
| ||
3 |
|
|
|
|
|
|
|
| (LSB) |
Page Code: The drive supports two Page Codes:
00h - Return Supported pages
81h - Drive Diagnostic page
For Page Code 00h, the Page Length must be ZERO and the Parameter List Length must be set to four otherwise the drive returns a CHECK CONDITION status with an ILLEGAL REQUEST sense key set. This Page Code requests that the drive return a list of the supported pages in the DATA
SONY |