5.3 Host Commands

SMART error logging

If the device detects an unrecoverable error during execution of a command received from the host, the device registers the error information in the SMART Summary Error Log (see Table 5.18) and the SMART Comprehensive Error Log (see Table 5.19), and saves the information on media.

The host issues the SMART Read Log Sector sub-command (Features field = D5h, Sector Number field = 01h, Sector Count field = 01h) and can read the SMART Summary Error Log.

The host issues the SMART Read Log Sector sub-command (Features field = D5h, Sector Number field = 02h, Sector Count field = 33h) and can read the SMART Comprehensive Error Log.

Table 5.18 Data format of SMART Summary Error Log (1/2)

Byte(hex)

 

 

Item

 

 

 

 

 

00

Version of this function

 

 

 

 

 

 

01

Pointer for the latest "Error Log Data Structure"

 

 

 

 

02 to 0D

 

Forth last command data structure

 

 

 

 

0E to 19

 

Third last command data structure

 

 

 

 

1A to 25

 

Second last command data structure

 

 

 

 

26 to 31

 

Last command data structure

 

 

 

 

 

32

 

 

 

Device Control field value

 

 

 

 

 

33

 

 

 

Features field value

 

Error log data

 

 

 

34

 

 

Sector Count field value

 

structure

 

 

 

35

 

 

Sector Number field value

 

 

 

 

 

Command data

 

 

36

 

 

Cylinder Low field value

 

 

structure

 

 

37

 

 

Cylinder High field value

 

 

 

 

 

 

 

 

38

 

 

 

Drive/Head field value

 

 

 

 

 

39

 

 

 

Command field value

 

 

 

 

 

3A to 3D

 

 

 

Elapsed time after the power-on

 

 

 

sequence (unit: ms)

 

 

 

 

 

 

 

 

 

C141-E280

5-65