Comandi ed interfaccia diagnostica per dischi seagate barracuda

Seagate Diagnostic Commands


Upon power up, the drive will respond to a set of diagnostic command send through serial port. Because of the number of commands supported, the commands are broken up into ‘Levels’. Many, the progress may be sent over the serial port for number of bits written and read, and command such as read, write, seek, and error log manipulation are available at several different levels. Diagnostic commands are used in place of ATI scripts to do testing. While the drive is running these diagnostic commandshard/soft error rates, a number indicating the test currently being performed, and various information for status of the current test.


The firmware consists of 2 flash codes and numerous supporting files. The two flash codes are known as factory code and customer code. The factory code contains all the serial port diagnostics command but no AT interface command. The customer code contains all AT interface command but minimal set of serial port diagnostics command.


In the ‘Availability’ column, a ‘F’, ‘C’ and ‘B’ indicate the command is available at ‘Factory Code’, ‘Customer Code’ and ‘Both codes’ respectively.



The following is a short list of some of the serial port commands:


Level T - Certification Tests.

Download code

Start manufacturing test

Set drive ‘Age’

Commands to read cert logs, read error logs, write test data to flash, etc.


Level 1 - Memory Control Commands.

Commands to display buffer, display memory, set memory, copy buffer to flash, read sysvars from disk, etc.


Level 2 - Drive Level Commands

A command to configure the cylinders, heads for testing, gives option for random cylinder/head and random data patterns

Commands to set data patterns, perform ECC tests, manipulate the error log, dump the sequencer ram.

Commands to do physical to logical conversion, assign skips and alternates, etc.

Commands to spinup, spindown, seek, read, write, read long, write long, read compare, sleep, set retries, etc.


Level 3 - Seeking Commands

Display the zone table

Motor acceleration test

Measure head switch & settling times

Display head offset

Move actuator open loop

Seek, seek physical, varying length seek test

Latch test

Display position of actuator

Hysteresis test

Latch Exerciser test


Level 4 - Servo Tracking Commands

Manipulate a skipped cylinder table

Tracking error test

Display position error signal

Zap servo burst

Set servo offset

Set/display tracking gain

Send impulse to actuator

Уровень 5. Используется только в заводских условиях

Уровень 6 – Команды batch файлов

Batch файлы для тестирования запусков-остановок, переключения головок, CSS, тестов 1, 2, 3 коррекции burts, files to test start-stop, head switch, CSS, 1,2,or 3 burst correction test, назначаемые тесты, тесты сравнения данных, возможность вводить различные batch файлы в RAM.

Level 7 - Adaptive Control Commands

Tune parameter control and display

Diagnostic read track

AGC gain control

Perform VCO calibration for all zones


Level 8 - Special Packwriter Commands

- Servo diagnostic sub commands

- Configuration commands

- Lock spin external, spin speed adjust

- Set actuator bias current


Level 9 – Drive Level Command (Full-slipping Defect Management Mode)


Beside the above nine levels of commands, there are two additional sets of commands, the On-line commands and Common commands. The main purpose of On-line command is to display varies type of status. Common command is use to ‘poke’ and ‘peek’ into memoery to allow access to registers, buffer memory and data memory.





The On-Line commands may be initiated at any time. For the Interface-specific commands, the Interface code must be present in the current memory map for successful execution; the General commands are always available.



Interface-Specific Commands






Interface State: Max C.H.S. / RW multiple block size / Current transfer mode settings



Read Segment Record(s)



Write Queue Dump



Controller Register Dump ** (See figure 2.1.7)









Reserved. This command can only be used when the drive is spun down



Snapshot current execution address



Interface Command Echo and Activity Trace Toggle



Interface and Niwot Command History ** (See figure 2.1.6)



Display Raw SMART Values (used for computing SMART Attributes)



Interface Command State






General Commands






(Reserved for Servo Use)


^D / ^N

Retry Activity Display Toggle.


A message will be displayed as follows:

e c r = 0 1 0


where ‘e’ = error tracing, ‘c’ = command tracing & ‘r’ = retry tracing. 0=disable, 1=enable.


When enabled causes the following characters to be sent to the serial port:

.’ = First data retry

,’ = subsquent data retry

c’ = Successful On-The-Fly correction occurred

f’ = Shifted Header retry.

H’ = Header retry

I’ = Sequencer was force-stopped.

s’ = Servo Recovery

w’ = Write Retry

+’ = Index active on non-index sector

D’ = Spin speed outside of tolerance

L’ = Latch retry

X’ = Resync servo bursts

<’ = Fine Track window exceeded.

$’ = Missing servo burst mark.



Display Sign-on Message, including firmware version.



Advanced Servo Tracing



Power Chop enable/disable toggle.



Restart Test. Causes the drive to restart testing at the current age.



Software Reset Command, Causes the drive to spin down re-initialize itself, spin backup, and come ready again.



Restart the Diagnostic Monitor.



Display Current R/W Channel Settings



Show Mux Status. ** (See figure 2.1.1)


Display Transfer Status (See figure 2.1.2)



Display Active Status. ** (See figure 2.1.3)



Display Machine Status. ** (See figure 2.1.4)



Decrement read/write scope synchronization pulse position.



Increment read/write scope synchronization pulse position.



Show Buffer Allocation. ** (See figure 2.1.5)



Show Elapsed Time since start of cert test or last ^Z.



Show Read/Write Statistics.



(Reserved for Servo Diagnostic Use)



(Reserved for Servo Diagnostic Use)



Interrupt Loop or Batch file execution.



Display power up time




Figure 2.1.1: ‘%’ command display format


Returned data format:

aabbccccddeeffgg AX'iiiiiiii ' “jjjjjjjjjjjj’







Accumulated health


Drive type


This is the Atlantis ECA0h WRSTATS register value


Error code byte


Maximum number of heads for this type


Drive serial number


PCBA serial number




Figure 2.1.2: ‘ ‘ ’ command display format


Returned data format:

Cmd Cyl Hd Sct Cnt Stbuf Segl Csct Cbuf Actv Ercd Rtry Flags

aa bbbb cc dddd eeee ffff gg hhhh iiii j kk mmmm.nn.pp qq



Cmd aa

Last command type

Cyl bbbb

Cylinder of current command

Hd cc

Head of current command

Sct dddd

Start sector of current command

Cnt eeee

Length or block count
EVER = R/W Forever

Stbuf ffff

Start buffer number

Segl gg

Buffer size


Csct hhhh

Current Sector

Cbuf iiii

Intfwork1’ address

Actv j


Ercd kk

Error Code

Rtry mmmm.nn.pp

Retry parameters (see level 2 Y command)

mmmm - retry control bit

nn – read retries count

pp - write retries count

Flags qq

R/W flags




Figure 2.1.3: ‘ . ’ command display format


Returned data format:

Pgm=aa Trk=bbbb(cccc).d.eee Zn=f Err=gg ErCt=hhhh Hlth=iiii Chlth=jjjj Ready



Active program 00 is diagnostic monitor. 50 is interface program All other numbers are current test running.


Currently selected logical cylinder (physical cylinder), head, sector.
Sector will normally point to one past the last sector read or written.




Error code from current operation


Error count since last reset of drive or last reset error log command


Accumulated health bits - four digits


Current health bits – four digits


Drive status. Can be Ready or Ntrdy




Figure 2.1.4: ‘ ; ’ command display format


Returned data format:

Age=aa Type=bb MxCyl=cccc MxHd=d MxSct=eee Bsz=ffff TCode=gggg


Ti Potrebbe interessare:

Recovery Italia, Contatti e sedi Operative

Recovery Italia garantisce una copertura logistica e commerciale su tutto il territorio italiano con i propri centri di roma,milano e torino oltre il servizio di copertura territoriale totale, supportato dal pick-up gratuito con corriere espresso DHL.


Recovery Italia Virtual Tour

I centri di recupero dati, non sono tutti uguali. Dietro un sito web ben fatto non sempre ci sono aziende qualificate e che ti garantiscono risultati, qualità e sicurezza. Recovery Italia ha realizzato per voi il primo tour virtuale di un centro di data recovery in italia.


Procedura per il recupero dei dati

Scopri come funziona il recupero dati in Recovery Italia,come verranno gestite le tue informazioni personali, come verrá trattato il tuo dispositivo, dall’accettazione in laboratorio alla consegna dei file recuperati.


Richiedi una presa ed una diagnosi gratuita

Per poter valutare con precisione il livello di solvibilitá del tuo caso, è necessaria una accurata diagnosi di laboratorio con apparecchiature professionali.Recovery Italia ti offre un servizio di diagnosi e valutazione gratuita oltre un comodo servizio di presa con corriere espresso DHL.


Richiedi assistenza Tecnica

Hai un caso da sottoporci ? Richiedi assistenza tecnica direttamente al nostro staff tecnico. I nostri operatori sono preparati per consigliarti su come affrontare qualsiasi caso di perdita di dati.


Preventivo ON LINE

Nessuno sembra riuscire ad esprimere un preventivo preciso o a fornirti una indicazione chiara dei costi ? Recovery Italia è la prima azienda italiana a fornirti un preventivo chiaro, semplice,definitivo e immediato.


Ti Potrebbe interessare: