beautypg.com

Data required, Specific status, Standard self-test – HP Q153090901 User Manual

Page 169

background image

SEND DIAGNOSTIC 1Dh

C

omm

an

ds

169

Data required

No data is required if the standard self-test is to be performed. Otherwise, a single diagnostic

page must be provided as a parameter.

Specific status

Any Send Diagnostic command received with a Enclosure Services page number (01h to 0Fh) will

generate

CHECK CONDITION

with sense key of

ILLEGAL REQUEST

and additional sense of 3501h

(unsupported enclosure function).

The drive reports

GOOD

status if the diagnostics pass. It will report

CHECK CONDITION

if the

diagnostics fail, with a sense key of

HARDWARE ERROR

and additional sense of 4000h.

More detailed results can then be recovered using the Receive Diagnostic Results page.

Standard self-test

1 Indicates that the host is prepared for the drive to perform tests that could affect

logical position, modify the tape or modify cartridge status. This bit must be set if

the Self-Test bit is 0.

Parameter List

Length

Indicates how many bytes of diagnostic parameter data are to be sent to the

drive. The length of the data phase for SEND DIAGNOSTIC is limited to 4 bytes of

header plus 34 parameters, each of which is 4 bytes long. This gives an upper

limit for the parameter list length of 136 bytes.

With a tape inserted:

If Self-Test = 1 and UntOffl = 0, a test is performed that does not affect the

contents of the tape. This test is a more extensive set of the tests carried out

at power-on.
If UntOffl = 1, the tape contents can be overwritten and will be undefined

after the test. A user can re-use the tape after the test.

With no tape in the drive:

The same self-test will be executed regardless of the setting of UntOffl.
The results of any self-test (power on or not) can be determined by reading

the Self-Test diagnostic page before executing a diagnostic (which will

overwrite the result).