Section 5
SCSI Programming Guidelines
5.11.15
SEND DIAGNOSTIC COMMAND: OPCODE = 1D(hex)
The SEND DIAGNOSTIC command (Table 5-30) requests the drive to perfonn diagnostic tests on itself.
This command is usually followed by a RECEIVE DIAGNOSTIC
RESULTS command, except when the
SELF
TEST
(bit 2
of
byte 1) is set to one.
5.11.15.1 Command Structure
TABLE 5-30
SEND DIAGNOSTIC Command
Bit 7
J
6
J
5
I
4
I
3
I
1
I
1
I
0
Byte
0 OPCODE=
11>}{
I
J
SELF
1
DEVOFL
1
UNITOFL
1
LUN=O
RESERVED
= 0 TEST
2
RESERVED=O
34
(MSB)
PARAMETER
LIST
LENGTH
(LSB)
5
VU=O
I
RESERVED
= 0
I
F
I
L
SELF TEST (Byte
1,
Bit
2)
-
Set
to
one
directs the PToDrive
to
complete
its default
self
test.
If
the
self
test is requested, the parameter list length will
be
set
to
zero and
no
data will be
transferred.
If
the
self
test is successful, the command will
be
tenninated with a
GOOD
status;
otherwise, the command will
be
tenninated with a CHECK
CONDmON
status with the sense key
set
to
HARDWARE
ERROR.
DEVOFL • SCSI DEVICE OFF ·LINE (Byte 1, Bit
1)
- Not supported.
If
this
bit
is set to
one
on
the ProDrive, the command will
be
tenninated with a
CHECK
CONDITION
status; the
sense key set will
be
set
to
ILLEGAL
REQUEST
with sense code invalid field.
UNITOFL • LOGICAL UNIT OFF ·LINE (Byte
1,
Bit
0)
- Not supported.
If
this
bit
is
set
to
one
on
the ProDrive , the command will
be
terminated with a
CHECK
CONDmON
status;
the sense key will
be
set
to
ILLEGAL
REQUEST
with sense code invalid field.
PARAMETER LIST LENGTH (Bytes
3-4)
- Specifies the length in bytes
of
the parameter
list that will
be
transferred during the
DATA
OUT
phase. A parameter list length
of
zero indicates
that
no
data will
be
transferred. This condition will not be considered an error.
5.11.15.2 Diagnostic Parameter List
VENDOR UNIQUE
(VU)
- Vendor Unique, format to
be
defined.
SCSI
Programming
Guidelines
5-59