<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<?xml-model href="https://pds.nasa.gov/pds4/pds/v1/PDS4_PDS_1O00.sch" schematypens="http://purl.oclc.org/dsdl/schematron"?>
<?xml-model href="https://pds.nasa.gov/pds4/mission/phoenix/v1/PDS4_PHOENIX_1O00_1000.sch" schematypens="http://purl.oclc.org/dsdl/schematron"?>

<Product_Observational xmlns="http://pds.nasa.gov/pds4/pds/v1" 
    xmlns:phoenix="http://pds.nasa.gov/pds4/mission/phoenix/v1" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://pds.nasa.gov/pds4/pds/v1 https://pds.nasa.gov/pds4/pds/v1/PDS4_PDS_1O00.xsd     http://pds.nasa.gov/pds4/mission/phoenix/v1 https://pds.nasa.gov/pds4/mission/phoenix/v1/PDS4_PHOENIX_1O00_1000.xsd">
  <Identification_Area>
    <logical_identifier>urn:nasa:pds:phx_tega:data_msgedr:ts080edr_msg_2008_08_15__u1.dat.191f0001</logical_identifier>
    <version_id>1.0</version_id>
    <title>Phoenix TEGA Message Log EDR Data: ts080edr_msg_2008_08_15__u1.dat.191f0001</title>
    <information_model_version>1.24.0.0</information_model_version>
    <product_class>Product_Observational</product_class>
    <Modification_History>
      <Modification_Detail>
        <modification_date>2026-04-13</modification_date>
        <version_id>1.0</version_id>
        <description>Initial version.</description>
      </Modification_Detail>
    </Modification_History>
  </Identification_Area>
  <Observation_Area>
    <Time_Coordinates>
      <start_date_time>2008-08-15T21:24:40.838Z</start_date_time>
      <stop_date_time>2008-08-16T01:53:30.941Z</stop_date_time>
    </Time_Coordinates>
    <Investigation_Area>
      <name>Mars Phoenix</name>
      <type>Mission</type>
      <Internal_Reference>
        <lid_reference>urn:nasa:pds:context:investigation:mission.phoenix</lid_reference>
        <reference_type>data_to_investigation</reference_type>
      </Internal_Reference>
    </Investigation_Area>
    <Observing_System>
      <name>Phoenix TEGA</name>
      <Observing_System_Component>
        <name>The Phoenix Lander</name>
        <type>Host</type>
        <Internal_Reference>
          <lid_reference>urn:nasa:pds:context:instrument_host:spacecraft.phx</lid_reference>
          <reference_type>is_instrument_host</reference_type>
        </Internal_Reference>
      </Observing_System_Component>
      <Observing_System_Component>
        <name>Phoenix Lander Thermal and Evolved Gas Analyzer</name>
        <type>Instrument</type>
        <Internal_Reference>
          <lid_reference>urn:nasa:pds:context:instrument:tega.phx</lid_reference>
          <reference_type>is_instrument</reference_type>
        </Internal_Reference>
      </Observing_System_Component>
    </Observing_System>
    <Target_Identification>
      <name>Mars</name>
      <type>Planet</type>
      <Internal_Reference>
        <lid_reference>urn:nasa:pds:context:target:planet.mars</lid_reference>
        <reference_type>data_to_target</reference_type>
      </Internal_Reference>
    </Target_Identification>
    <Mission_Area>
      <phoenix:Phoenix_Parameters>
        <phoenix:Observation_Information>
          <phoenix:mission_phase_name>PRIMARY MISSION</phoenix:mission_phase_name>
          <phoenix:product_type>TEGA_MSGEDR</phoenix:product_type>
          <phoenix:product_version_id>1.0</phoenix:product_version_id>
          <phoenix:spacecraft_clock_start>903302734.7031</phoenix:spacecraft_clock_start>
          <phoenix:spacecraft_clock_stop>903318862.7578</phoenix:spacecraft_clock_stop>
          <phoenix:ops_token>16#191F0001#</phoenix:ops_token>
        </phoenix:Observation_Information>
      </phoenix:Phoenix_Parameters>
    </Mission_Area>
  </Observation_Area>
  <Reference_List>
    <Internal_Reference>
      <lid_reference>urn:nasa:pds:phx_tega:document:tega_edr_sis</lid_reference>
      <reference_type>data_to_document</reference_type>
    </Internal_Reference>
  </Reference_List>
  <File_Area_Observational>
    <File>
      <file_name>ts080edr_msg_2008_08_15__u1.dat</file_name>
      <creation_date_time>2008-12-05T10:07:50.141</creation_date_time>
    </File>
    <Table_Binary>
      <name>TIME_SERIES</name>
      <offset unit="byte">0</offset>
      <records>266</records>
      <description>
        Messages returned by TEGA.
  Possible message id's are as follows:
   0 MSG_SC_DATA_NOT_READ      error, data from SC not read
   1 MSG_EGA_DATA_NOT_READ     error, data from MS not read
   2 MSG_DATA_NOT_SENT         error, data packet not sent
   3 MSG_TABLE_UNKNOWN         error, unknown analog table parameter
   4 MSG_TABLE_SETTING         error, unknown analog setting
   5 MSG_TABLE_VALUE           error, analog value is out of range
   6 MSG_2_MANY_CMDS           error, too many commands in delayed 
                                      list
   7 MSG_SEQ_WONT_FIT          error, command seq won't fit in delay 
                                      list
   8 MSG_BAD_CHECKSUM          error, bad checksum
   9 MSG_NOT_READ_SCBUF        error, incorrect data in sc buffer
  10 MSG_NOT_READ_EGABUF       error, incorrect data in ega buffer
  11 MSG_CRC_EGABUF            error, crc error in ega buffer
  12 MSG_OLD_COMMAND           error, command is old
  13 MSG_ANALOG_READ_FULL      error, analog read list full
  14 MSG_DUMP_TOO_LONG         error, requested memory dump is too 
                                      long
  15 MSG_DUMP_ADDRESS          error, address is out of memory range
  16 MSG_UNDEF_CODE_INTER      error, undefined code interrupt
  17 MSG_DIV_ZERO_INTER        error, divide by zero interrupt
  18 MSG_INVALID_CMD           error, command not in list
  19 MSG_HTR_INVALID_CMD       error, heater command not in list
  20 MSG_VLV_INVALID_CMD       error, valve command not in list
  21 MSG_AKR_INVALID_CMD       error, aker valve command not in list
  22 MSG_EEPROM_WRITE_FAIL     error, write to eeprom did not work
  23 MSG_CHG_SEQ_FAILED        error, updating cmd sequence failed
  24 MSG_NO_CMD_IN_SEQ         error, no commands in a sequence
  25 MSG_COM_ERR               error, communication problem
  26 MSG_NOT_ADD_UTIL          error, task not added to util timers
  27 MSG_INVALID_INDEX         error, invalid parameter index
  28 MSG_FUNC_CHECKSUM         error, function checksum calc failed
  29 MSG_RAMP_ABORT            error, ramp abortted
  30 MSG_ADDR_CHECKSUM         error, function address and size
  31 MSG_EEPROM_NOT_ENABLED    error, attmpt chng eeprom state w/o 
                                      enable
  32 MSG_BAD_SEQ_NUM           error, invalid sequence number
  33 MSG_BAD_RAMP_SEG_NUM      error, invalid ramp segment number
  34 MSG_RAMP_SEG_FAILED       error, invalid ramp segment number
  35 MSG_NOT_PUNCT_ENABLE      error, puncture not enabled
  36 MSG_EGA_CMD_ARRAY_FULL    error, there is no room left for ega 
                                      command
  37 MSG_DSC_CNT_ERR           error, invalid number of dsc records
  38 MSG_NOT_GETTER_ENABLE     error, getter is not enabled
  39 MSG_GETTER_ON             error, getter is on when trying to 
                                      disable
  40 MSG_UNKNOWN_EGA_DATA      error, data rcv from EGA is unknown 
                                      type
  41 MSG_ALREADY_RAMP          error, can't fill oven when baking 
                                      already
  42 MSG_NO_LED_DIFF           error, no diff between light and dark
  43 MSG_UNKNOWN_OVEN          error, incorrect oven number selected
  44 MSG_UNKNOWN_PWR           error, unknown number from dma 
                                      register
  45 MSG_CMD_NOT_FOUND         error, command not in delayed list
  46 MSG_BAD_EGA_REQ           error, unknown request from EGA
  47 MSG_INVALID_SEQ           error, request to exec invalid 
                                      sequence
  48 MSG_ANALOG_READ_NO_ADD    error, analog read list full
  70 MSG_RAM_CHECK_FAIL        error, RAM check failed
  71 MSG_FSW_EEPROM_CHECK_FAIL error, FSW EEPROM checksum check
                                      failed
  72 MSG_MINI_MEM_CHECK_FAIL   error, found error in mini memory 
                                      check
  73 MSG_NOT_LOADER_CMD        error, valid cmd but not handled by 
                                      loader
  74 MSG_INVALID_MEM_ADDRESS   error, invalid memory
  75 MSG_BAD_SIDE_PATTERN      error, bad side pattern
  76 MSG_LDR_FSW_UNAVAIL       ldr doesn't recognize FSW jump 
                               instruction
  77 MSG_RAM_WRITE_OVER        memload starts in RAM spills into 
                               EEPROM
  78 MSG_LDR_CP_EEP_INVALID    Invalid RAM/EE address in FSW func 
                               table
  79 MSG_FSW_FGV_TBL_INVALID   Invalid FSW func table entries
  80 MAX_ERR_MSG               end of error messages
  81 MSG_TABLE_CHANGE          analog table has been changed
  82 MSG_SC_TIME1              spacecraft time was sent
  83 MSG_SC_TIME2              spacecraft time was sent
  84 MSG_CMD_DONE              command has been executed
  85 MSG_INTER_CNT             number of times and interrupt has been
                               run
  86 MSG_VERSION               current fsw version
  87 MSG_ADDED_DELAYED         cmd added to delayed list
  88 MSG_SHUTDOWN              shutdown command received from S/C
  89 MSG_HEARTBEAT             the number of hearbeat sent so far
  90 MSG_ACTION_COMPLETE       a delayed action has been completed
  91 MSG_POWER_CHANGE          heater power changed
  92 MSG_VALVE_CHANGE          valve state changed
  93 MSG_AKER_CHANGE           aker valve state changed
  94 MSG_SEQ_EXEC              a sequence is being executed
  95 MSG_PARAM_CHANGE          parameter has been changed
  96 MSG_EGA_TIME              ega/peb time synch
  97 MSG_SWITCH_TO_SLOW        LED collection switched to slow rate
  98 MSG_OVEN_FULL             OVEN full indicator true
  99 MSG_OVEN_NOT_FULL         OVEN full indicator false
 100 MSG_EGA_REQ               request received from EGA
 101 MSG_START_RAMP_TEMP       starting ramp temps
 102 MSG_EGA_CMD_ARRAY_ADD     added ega command to command queue
 103 MSG_EGA_CMD_ARRAY_SEND    sent ega command from command queue
 130 MSG_FSW_EEPROM_PASSED     ldr passed FSW EEPROM checksum 
                               checking
 131 MSG_LDR_MEM_PASSED        ldr passed memory checking
 132 MSG_LDR_INIT_DONE         ldr finished initialization
 133 MSG_LDR_CHECKPOINT        ldr checkpoint message (for debugging)
 150 MSG_EGA_CMD_DONE          ega command was executed
 151 MSG_EGA_COM_ERROR         ega communication error
 152 MSG_EGA_COM_RPT           ega communication report
 153 MSG_EGA_FPGA_EE0_VER      ega version numbers for FPGA &amp; EE0
 154 MSG_EGA_PROM_EE1_VER      ega version numbers for PROM &amp; EE1
 155 MSG_EGA_SUPER_MODE        ega mode deleted from super mode
 156 MSG_EGA_MODE_TABLE        ega mode table ID
 157 MSG_EGA_MAGNETIC          ega base magnetic field
 158 MSG_EGA_CALIBRATION       ega calibration results
 159 MSG_EGA_INFO              ega informational
 160 MSG_EGA_UNK_CMD           ega error, unknown command
 161 MSG_EGA_BAD_CONST         ega error, bad constant location
 162 MSG_EGA_CRC_RAM_ERR       ega error, CRC error on RAM device
 163 MSG_EGA_CRC_LOC           ega error, CRC location error
 164 MSG_EGA_ILL_MODE          ega error, illegal mode
 165 MSG_EGA_UNK_MODE          ega error, unknown mode
 166 MSG_EGA_UNK_MASS          ega error, undefined mass
 167 MSG_EGA_EEPROM_FAIL       ega error, EEPROM programing failure
 168 MSG_EGA_CRC_CMD_ERR       ega error, CRC error on command
 169 MSG_EGA_UNDEF_MODE        ega error, undefined mode
 170 MSG_EGA_INCOMP_MODE       ega error, incomplete mode
 171 MSG_EGA_ERR_MODE          ega error, mode error
 172 MSG_EGA_ERR_FATAL         ega error, fatal
 173 MSG_EGA_ERR_SERIOUS       ega error, serious
      </description>
      <Record_Binary>
        <fields>4</fields>
        <groups>0</groups>
        <record_length unit="byte">139</record_length>
        <Field_Binary>
          <name>SC_TIME</name>
          <field_number>1</field_number>
          <field_location unit="byte">1</field_location>
          <data_type>UnsignedMSB8</data_type>
          <field_length unit="byte">8</field_length>
          <description>The spacecraft time this message was generated, in ticks (256 per 
            second).</description>
        </Field_Binary>
        <Field_Binary>
          <name>MSG_ID</name>
          <field_number>2</field_number>
          <field_location unit="byte">9</field_location>
          <data_type>UnsignedMSB2</data_type>
          <field_length unit="byte">2</field_length>
          <description>Identifies type of message. See label for details.</description>
        </Field_Binary>
        <Field_Binary>
          <name>ORIGIN</name>
          <field_number>3</field_number>
          <field_location unit="byte">11</field_location>
          <data_type>UnsignedByte</data_type>
          <field_length unit="byte">1</field_length>
          <description>Origin of execution (loader or flight software).</description>
        </Field_Binary>
        <Field_Binary>
          <name>MESSAGE_TEXT</name>
          <field_number>4</field_number>
          <field_location unit="byte">12</field_location>
          <data_type>ASCII_String</data_type>
          <field_length unit="byte">128</field_length>
          <description>More verbose description of message.</description>
        </Field_Binary>
      </Record_Binary>
    </Table_Binary>
  </File_Area_Observational>
</Product_Observational>
