Availability:
     Level M    , 's'

  Quick Help:
     Serial Port Test Results, s[Sub-command],[SptIndex],[ValidKey]

  Description:
    This diagnostic command allows users to access SPT (Serial Port Test) Results file.

  Input Parameters:

    
    0 - Sub-command
    
        This parameter indicates the sub-command that tells the command what action was
        requested.
          0 - Read a sub-file indexed by the parameter 1.
          1 - Write a sub-file indexed by the parameter 1. Not supported yet.
          2 - Display header record.
          4 - Initialize the header record. Not supported yet.
          5 - Allocate space for a sub-file indexed by the parameter 1. Not supported yet.
    
          Type:    Unsigned 16-bit value
    
          Range:   0 to 0xFFFF
    
          Default: 2 (Display header record)
    
    1 - Serial Port Test Results Index
    
        This parameter indicates the index into the Serial Port Test(SPT) Results file to be
        accessed.
    
        0 Header record
        1 Self test results file
        2 AFH File
        3 VBAR BPI format number file
        4 Test 175 delay head 0
        5 Test 175 delay head 1
        6 Test 175 delay head 2
        7 Test 175 delay head 3
        8 Test 175 delay head 4
        9 Test 175 delay head 5
        10 Test 175 delay head 6
        11 Test 175 delay head 7
        12 MR Resistance file
        13 BPI File
        14 DBlog data (GOTF grade-able data, TPE-0002835)
        15 Adapted flawscan parameters (Test 109)
    
          Type:    Unsigned 16-bit value
    
          Range:   0 to 0xFFFF
    
          Default: 14 (DBlog data)
    
    2 - Valid Command Key.
    
        This parameter must be equal to 22 Hex.
    
          Type:    Unsigned 8-bit value
    
          Range:   0x22
    
          Default: None
    
  Output Data:


    If an error occurred, the following information will be displayed.
    
          "DiagError aaaaaaaa"
    
       where
    
          aaaaaaaa is the Diagnostic Error Code
    
    If no error occurred, then the output of this command will be displayed as follows.
    
       If the user requested to display the header record of the Serial Port Test Results file then
       following will be displayed.
    
          "header Vers: bbbb Key: cccc Entries: ddddd numSectors eeeee"
          "Starting Sector   Size In Sectors   Length In Bytes   Status"
          "ffffffffff        gggggggggg        hhhhhhhhhh        iiii"
    
       where
    
          bbbb     is the version of the Serial Port Test Results file.
    
          cccd     is the validation key which should be FACE in hexadecimal.
    
          ddddd    is the number of entries, a.k.a. indexes, in the Serial Port Test Results file.
    
          eeeee    is the total number of sectors available in the Serial Port Test Results file.
    
          ffffffffff is the starting sector number of the SPT index within the SPT Result file.
    
          gggggggggg is the allocated size of the SPT index in sectors.
    
          hhhhhhhhhh is the size of the SPT index in bytes
    
          iiii     is the status of the SPT index.
    
       If the user requested to read and display the contents of a Serial Port Test Result index then
       following will be displayed.
    
          "SPT Index Size llllllll"
          +- starting byte offsets of each lines
          |
          Offset   00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 0123456789ABCDEF   <- byte offsets within lines
          00000000 FF FF FF FF 39 53 5A 30 31 4E 4D 51 30 30 30 30 ....9SZ01NMQ0000   <- file data of the first line
          00000010 43 38 33 33 34 47 31 50 FF FF FF FF FF FF FF FF C8334G1P........
          00000020 FF FF 02 01 50 00 C5 00 02 90 5C 94 2D 07 FF FF ....P.....\.-...
          .
          . repeats for the number of lines to display whole data
          .
          nnnnnnnn FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 51 ...............Q   <- file data of the last line
    
       where
    
          llllllll indicates the byte size of the index in hexadecimal format.
          nnnnnnnn indicates the starting offset of the each line.
    
  Examples:

    Example #1:
    Display header record in the Serial Port Test Results file

       F3 M>s2,,22

    Example #2:
    Read and display Serial Port Test Result index 2 (AFH File)

       F3 M>s0,2,22

    Example #2:
    Read and display Serial Port Test Result index 14 (DBlog data)

       F3 M>s0,e,22

  Revision History:

    0001.0000   Initial revision.