where *packet* is the hexadecimal string rapresentation of the Telemetry packet.
## Limitation
at the moment the software works only for Telemetry and Telecommand packets for the BepiColombo ESA Mission. In the next versions other missions will be implemented.
at the moment the software works only for Telemetry and Telecommand packets (Packet Types 1 and 2) for the BepiColombo ESA Mission. In the next versions other missions will be implemented.
## Data Structure
@@ -36,6 +29,7 @@ and one of the following sub-object:
***Telemetry Packet Header (TMPH)**
***Telecommand Packet Header (TCPH)**
***Event Packet Header (EPH)**
### Common Packet Header Structure (CHP)
@@ -63,22 +57,47 @@ In the CHP are present the following fields.
For TCs, this is its (estimated) execution time</td></tr>
<tr><th>CreateID</th><td>Used by the old SCOS-2000 archive for generating a retrieval key and set by the application which generated the packet</td></tr>
<tr><th>SCID</th><td>In the case of telemetry, Spacecraft ID. See :ref:`spacecraft_id_table`.<br/>
<tr><th>SCID</th><td>In the case of telemetry, Spacecraft ID. <br/>
<tr><th>Descriprion<td>Name of the Spacraft</td></tr>
<tr><td> ID </td><td> Numeric identificative</td><tr>
<tr><td> Descriprion <td>Name of the Spacraft</td></tr>
</table>
The possible values are in the following table:
<table>
<tr><th>ID</th><th>Spacecraft</th></tr>
<tr><td> 816 </td><td> BepiColombo, TM received over X-Band </td></tr>
<tr><td> 817 </td><td> BepiColombo, TM received over Ka-Band </td></tr>
</table>
</td></tr>
<tr><th>GSID</th><td> In the case of telemetry, the ID and name of the ground station which receives the frame containing this packet. See :ref:ground_id.<br/>
<tr><th>GSID</th><td> In the case of telemetry, the ID and name of the ground station which receives the frame containing this packet.<br/>
<tr><th>Station<td>Name of the Ground Station</td></tr>
</table>
The possible values are in the following table:
<table>
<tr><th>ID</th><th>Ground Station Name</th></tr>
<tr><td> 21 </td><td> Kourou </td></tr>
<tr><td> 22 </td><td> Perth </td></tr>
<tr><td> 23 </td><td> New Norcia </td><tr>
<tr><td> 24 </td><td> Cebreros </td></tr>
<tr><td> 25 </td><td> Malargue </td></tr>
<tr><td> 30 </td><td> Maspalomas </td></tr>
<tr><td> 97 </td><td> Usuda </td></tr>
<tr><td> 98 </td><td> Uchinoura </td><tr>
</table>
</td></tr>
<tr><th>PSize</th><td>Packet Size. Size of the entire SCOS-2000 packet, including all headers and the packet data.</td></tr>
<tr><th>PType</th><td>Determines the type of SCOS-2000 packet. See :ref:packet_type for details.</td></tr>
<tr><th>PType</th><td>Determines the type of SCOS-2000 packet. See :ref:packet_type for details.
<table>
<tr><th>ID</th><th>Description</th></tr>
<tr><td> 1 </td><td> Telemetry </td></tr>
<tr><td> 2 </td><td> Telecommand </td></tr>
<tr><td> 3 </td><td> Event </td></tr>
</table>
</td></tr>
<tr><th>Version</th><td>The version of this packet structure.</td></tr>
<tr><th>FilingFlag</th><td>Set to **1** if this packet is to be filed in the MCS archive, otherwise **0**.</td></tr>
<tr><th>DistFlag</th><td>Set to : **1** if this packet is to be distributed to the MCS applications, otherwise **0**.</td></tr>
@@ -113,71 +132,85 @@ In the CHP are present the following fields.
</td></tr>
<tr><th>SeqCounter</th><td>Internal MCS counter used for detecting gaps – not related to the spacecraft source sequence count value in the PUS header</td></tr>
<tr><th>SPID</th><td>the numerical packet ID which identifies the packet structure, and maps to packet definitions in the TM/TC MIB database. Note: For TC packets, SPIDs 100 and 200 are used.</td></tr>
<tr><th>MissionID</th><td>For telemetry, the MCS mission identifier. See :ref:`mission_id`</td></tr>
<tr><th>MissionID</th><td>For telemetry, the MCS mission identifier.
<table>
<tr><th>ID</th><th>Mission</th></tr>
<tr><td>**816**</td><td> BepiColombo </td></tr>
</table>
</td></tr>
</table>
### Telemetry Packet Header (TMPH)
If the _**CHP.PType**_ is equal to 1, the packet is a telemetry. In this case is present the TMPH onject.
</td><td>Structure identifier for variable length packets.</td></tr>
<tr><td>
**RouteID**</td><td>The LSB of the RouteID field is used by SCOS-2000 to identify the Data Unit Type of Telemetry packet and its qualifier</td></tr>
<tr><td>**PUSAPID**</td><td>The value of the 11-bit Application Process ID, copied from the spacecraft source packet’s primary header</td></tr>
<tr><td>**PUSSSC**</td><td>The value of the 14-bit Source Sequence Count, copied from the spacecraft source packet’s primary header</td></tr>
<tr><td>**PUSST**</td><td>The value of the 8-bit Service Type, copied from the spacecraft source packet’s secondary data field header</td></tr>
<tr><td>**PUSSST**</td><td>The value of the 8-bit Service Sub-type, copied from the spacecraft source packet’s secondary data field header</td></tr>
</table>
### Telecommand Packet Header (TCPH)
If the _**CHP.PType**_ is equal to 2, the packet is a telecommand. In this case is present the TCPH onject.
The object has the following structure:
<table>
<tr><th>Attribute</th><th>Descriprion</th></tr>
<tr><td>
**UplinkTime**</td><td> Uplink Time – initially set to the release time (FT), but updated with the timestamp copied from the radiation ground station response message providing the actual time of uplink from the antenna</td></tr>
<tr><td>**ExecTime**</td><td> Execution Time – For time-tagged commands this is the UTC user provided execution time. For immediate commands this is the release time + propagation delay and later updated to be Uplink time + propagation delay</td></tr>
<tr><td>**LUTime**</td><td> Last Update Time, this is the MCS system time at which the TC packet was last updated with a change of status</td></tr>
<tr><td>**PUSSSC**</td><td> The value of the 14-bit Sequence Count, copied from the spacecraft source packet’s primary header</td></tr>
<tr><td>**PUSST**</td><td> Service Type - The value of the 8-bit Service Type, copied from the spacecraft source
packet’s secondary data field header.</td></tr>
<tr><td>**PUSSST**</td><td> Sub-Service Type - The value of the 8-bit Service Sub-type, copied from the spacecraft source packet’s secondary data field header</td></tr>
<tr><td>**PUSAck**</td><td> The value of the 4-bit Ack, copied from the spacecraft source packet’s secondary data field header
<table>
<tr><td>**0**</td><td>No Acknowledge required for acceptance and execution</td></tr>
<tr><td>**1**</td><td>Acknowledge required for acceptance </td></tr>
<tr><td>**8**</td><td>Acknowledge required for execution </td></tr>
<tr><td>**9**</td><td>Acknowledge required for acceptance and execution</td></tr>
</table>
</td></tr>
<tr><td>**UplinkFlag**</td><td>
<table>
<tr><td>**1**</td><td> if the command is to be released (passed PTV)</td><tr>
<tr><td>**0**</td><td> if the command is not to be released (failed PTV)</td></tr>
</table>
</td></tr>
<tr><td>**SourceHost**</td><td> Numerical ID of the MCS machine running the command source.</td></tr>
<tr><td>**SourceType**</td><td> Enumeration providing the type of the command source</td></tr>
<tr><td>**ReqDetFixedSize**</td><td> Size of the fixed part of the command details data.</td></tr>
</table>
### Event Packet Header (EPH)
If the _**CHP.PType**_ is equal to 3, the packet is a event. In this case is present the EPH onject.