Description:
    This batch file attempts to verify that the level T serial port diagnostic commands
    can be executed.
   
******************************************************************************************
    Clear the Expected Batch File Errors.
   ******************************************************************************************
    -*9                                 All Level '*' Command: Special Batch File Function - Clear Expected Errors
   
******************************************************************************************
    Enable error logging and clear the error log.
   ******************************************************************************************
    -/LE1                               Level L 'E' Command: Enable / Disable Logging
    -/LiFFFC                            Level L 'i' Command: Initialize Log File
   
******************************************************************************************
    Display the help information for the Level T commands.
   ******************************************************************************************
    -/CQT                               Level C 'Q' Command: Display ASCII Command Information
   
******************************************************************************************
    Change to Command Level T.
   ******************************************************************************************

   
    -/                                  All Level '/' Command: Change Diagnostic Command Level
   
******************************************************************************************
    Display the active error log.
   ******************************************************************************************
    -E                                  'E' Command: Display / Edit Log
   
******************************************************************************************
    Display the supported baud rates.
   ******************************************************************************************
    -B1                                 'B' Command: Set Baud Rate
   
******************************************************************************************
    Display all defect lists and the Alternate List summary information.
   ******************************************************************************************
    -V1DF                               'V' Command: Display Defect Lists
    -V4,,,,99                           'V' Command: Display Defect Lists
   
******************************************************************************************
    Clear the volatile copy of the Alternate list.  Display the list to verify that it
    has been cleared.  Restore the volatile copy of the list with the non-volatile copy.
    Display the list to verify that it has been restored.
   ******************************************************************************************
    -V4                                 'V' Command: Display Defect Lists - Alt List
    -i4,0,22                            'i' Command: Initialize Defect List - Clear Alt List
    -V4                                 'V' Command: Display Defect Lists - Alt List
    -i4,2,22                            'i' Command: Initialize Defect List - Restore Alt List
    -V4                                 'V' Command: Display Defect Lists - User Alt List
   
******************************************************************************************
    Display the humanized Congen information.
   ******************************************************************************************
    -F                                  'F' Command: Set Congen Parameter
   
******************************************************************************************
    Test the ASCII Log Control command.
   
       Enable ASCII logging.
       Display Active Status (twice).
       Display the ASCII Log.
       Disable ASCII logging.
       Display Active Status (once).
       Display the ASCII Log.
   ******************************************************************************************
    -[A                                 '[' Command: ASCII Log Control - Enable
    -.                                  Online '.' Command: Display Active Status
    -.                                  Online '.' Command: Display Active Status
    -[D                                 '[' Command: ASCII Log Control - Display
    -[B                                 '[' Command: ASCII Log Control - Disable
    -.                                  Online '.' Command: Display Active Status
    -[D                                 '[' Command: ASCII Log Control - Display
   
******************************************************************************************
    Test the Select Data Output Mode command.
   
       0 = Quiet Mode
       1 = Raw Binary Mode (Not Tested)
       2 = Raw ASCII Mode
       3 = Formatted ASCII Mode
       4 = Verbose Formatted ASCII Mode
       5 = Simplified Formatted ASCII Mode
   
       This command  is tested by issuing a sequence of commands with each of the Data
       Output Modes selected.
   ******************************************************************************************
    -O0                                 'O' Command: Select Data Output Mode - Quiet Mode
    -A0                                 All Level 'A' Command: Set Test Space
    -/2S200,0                           'S' Command: Seek to Logical Cylinder and Head
    -.                                  Online '.' Command: Display Active Status
    -W                                  'W' Command: Write CHS
    -/TO2                               'O' Command: Select Data Output Mode - Raw ASCII Mode
    -A0                                 All Level 'A' Command: Set Test Space
    -/2S200,0                           'S' Command: Seek to Logical Cylinder and Head
    -.                                  Online '.' Command: Display Active Status
    -W                                  'W' Command: Write CHS
    -/TO4                               'O' Command: Select Data Output Mode - Verbose Formatted ASCII Mode
    -A0                                 All Level 'A' Command: Set Test Space
    -/2S200,0                           'S' Command: Seek to Logical Cylinder and Head
    -.                                  Online '.' Command: Display Active Status
    -W                                  'W' Command: Write CHS
    -/TO5                               'O' Command: Select Data Output Mode - Simplified Formatted ASCII Mode
    -A0                                 All Level 'A' Command: Set Test Space
    -/2S200,0                           'S' Command: Seek to Logical Cylinder and Head
    -.                                  Online '.' Command: Display Active Status
    -W                                  'W' Command: Write CHS
    -/TO3                               'O' Command: Select Data Output Mode - Formatted ASCII Mode
    -A0                                 All Level 'A' Command: Set Test Space
    -/2S200,0                           'S' Command: Seek to Logical Cylinder and Head
    -.                                  Online '.' Command: Display Active Status
    -W                                  'W' Command: Write CHS
    -/                                  All Level '/' Command: Change Diagnostic Command Level
   
******************************************************************************************
    Read the SAP, RAP and CAP from non-volatile memory.
   
    Note: Currently, attempting to read the SAP and CAP from non-volatile memory will
    result in an Unsupported Adaptive Feature error (DiagError 7000).
   ******************************************************************************************
    -*A,7000,0,2                        All Level '*' Command: Special Batch File Function - Set Expected Error
    -R4                                 'R' Command: Read Non-Volatile Adaptive Parameters - SAP
    -R2                                 'R' Command: Read Non-Volatile Adaptive Parameters - RAP
    -R1                                 'R' Command: Read Non-Volatile Adaptive Parameters - CAP
   
******************************************************************************************
    Display the Active Error Log and check if the Batch File failed.
   ******************************************************************************************
    -*B                                 All Level '*' Command: Special Batch File Function - Display Log
    -|                                  '|' Command: Batch File Terminator