EIR-OPS-015: Configure Data Logging
Objective
To set-up the OBSW to aggregate the desired data, which is then set up for logging.
Introduction
Using this procedure, the Operator can set-up an ‘Aggregator’ to collect parameter values and aggregate them into a single packedOutput parameter. This procedure also details how to set-up a ‘Logger’ to log the packedOutput data to storage.
Note
The SCDB name/path used for all Loggers and Aggregators follow the same structure (i.e. cdh.logging.XXXXLogger and cdh.telemtry.XXXXAggregator, respectively), where XXXX = HK, ADCS, TED, GMODLC, etc.
Procedure
This procedure contains the following sub-procedures:
Note
Communication with the spacecraft is required for Sections B and C of this procedure.
A. Pre-Pass Preparations
A.1.
First create a list of the parameters that you wish to aggregate.
E.g. I wish to aggregate:
the
version.majorVersionparameterthe
version.minorVersionparameterthe 2nd and 3rd rows of the
core.Storage.isCircularparameter
A.2.
Then, using the SCDB in MCS, note the 2-byte parameter ID (in hex) for each of these parameters.
E.g. I wish to aggregate:
the
version.majorVersionparameter - Param ID: 0x0001the
version.minorVersionparameter - Param ID: 0x0002the 2nd and 3rd rows of the
core.Storage.isCircularparameter - Param ID: 0x0101
A.3.
Note the
First rowandLast rowof the parameter you wish to aggregate. For parameters that are single-valued,First row=Last row= 0.E.g. I wish to aggregate:
the
version.majorVersionparameter - Param ID: 0x0001 -First row = Last row =0the
version.minorVersionparameter - Param ID: 0x0002 -First row = Last row =0the 2nd and 3rd rows of the
core.Storage.isCircularparameter - Param ID: 0x0101 -First row= 1,Last row= 2
A.4.
Using the information gathered in the previous three steps, create an 8-byte description for each parameter according to the format given in Figure 1.
E.g. The 8-byte descriptions for the parameters I wish to aggregate are:
0001 0000 0000 0000
0002 0000 0000 0000
0101 0001 0002 0000
Figure 1
A.5.
Open a new text file (using any text editor) and add the information from Step A.4. to the file, as demonstrated in Figure 2. Note that whitespaces in the text file are added for readability but are ignored on uplink to the spacecraft.
Figure 2
A.6.
The format of this file must now be converted to hex for uplink to the spacecraft. To do this, on the operator’s computer, open the
textHex.pypython file and edit the input/output fields to match the name of your text file from Step A.5. (as demonstrated in Figure 3), before running thepython textHex.pycommand.
Note
If you do not have this python file on your computer, it can be accessed from the EIRSAT-1 Team Drive, in the Files>OPS directory.
Figure 3
A.7.
Using the SCDB in MCS, now note the Parameter ID (in hex) of the the
cdh.telemetry.XXXXAggregator.packedOutputparameter belonging to the XXXXAggregator being configured in this procedure.
B. Setting Up the Aggregator
Important
You are about to send the first TC of this procedure - Have you completed the EIR-OPS-003: Start a Communication Pass procedure? A Communication Pass must be started prior to carrying out the operations planned for the pass. Don’t forget to open and set up the parameters/actions that will be used during the pass in MCS before the pass begins!
B.1.
To determine if the Aggregator you intend to use has previously been set-up to aggregate data,
Querythecdh.telemetry.XXXXAggregator.paramListPackedparameter.If 0 is returned, proceed immediately to Step B.2.
Else, the Operator should consult with the Systems and/or Software Engineers before proceeding to determine whether it is safe or not (we could lose data!) to reconfigure this Aggregator.
TC Details |
|
MCS Operation |
|
Action/Param Name |
|
Data Expected with TC |
No |
TM Details |
|
Data Expected from TC |
Size/rows of |
Data Size |
1 byte |
Data Info |
The current number of parameters being aggregated by this Aggregator |
Allowed Value(s) |
00 - FF (Hex) |
B.2.
Uplinkthe file from Step A.6 to theparamPackedListparameter of the Aggregator with:First row= 0,Last row= the number of parameters being aggregated (from Step A.1) - 1, andResize ticked.
TC Details
MCS Operation
UplinkAction/Param Name
cdh.telemetry.XXXXAggregator.paramListPackedData Expected with TC
Yes
Data Size
Many bytes
Data Info
the data file,
First row= 0,Last row= (the no. of params being aggregated - 1), resize =enabled/tickedAllowed Value(s)
Many allowed variations of these input
TM Details
Data Expected from TC
No ( + ACK )
B.3.
Again,
Querythecdh.telemetry.XXXXAggregator.paramListPackedparameter.Confirm that the number of parameters being aggregated now matches the number of parameters listed in Step A.1.
TC Details |
|
MCS Operation |
|
Action/Param Name |
|
Data Expected with TC |
No |
TM Details |
|
Data Expected from TC |
Size/rows of |
Data Size |
1 byte |
Data Info |
The current number of parameters being aggregated by this Aggregator |
Allowed Value(s) |
00 - FF (Hex) |
Expected Value(s) |
Number of parameters listed in Step A.1 |
C. Linking the Aggregator to a Logger
C.1.
To determine if the Logger you intend to use has previously been set-up to log data,
Getthecdh.logging.XXXXLogger.paramIdparameter for the XXXXLogger.If 0 is returned, proceed immediately to Step C.2.
Else, the Operator should consult with the Systems and/or Software Engineers before proceeding to determine whether it is safe or not (we could lose data!) to reconfigure this Logger.
TC Details |
|
MCS Operation |
|
Action/Param Name |
|
Data Expected with TC |
No |
TM Details |
|
Data Expected from TC |
|
Data Size |
2 bytes |
Data Info |
The ID of the parameter being logged |
Allowed Value(s) |
0000 - FFFF (Hex) |
C.2.
To set-up the Logger to log the aggregated parameters from the XXXXAggregator,
Setthecdh.logging.XXXXLogger.paramIdparameter of the XXXXLogger to the value determined in Step A.7 (i.e. the parameter ID in hex of thecdh.telemetry.XXXXAggregator.packedOutputparameter for the XXXXAggregator).
TC Details |
|
MCS Operation |
|
Action/Param Name |
|
Data Expected with TC |
Yes |
Data Size |
2 bytes |
Data Info |
the parameter ID of the |
Allowed Value(s) |
0000 - FFFF (Hex) |
Expected Value(s) |
Parameter ID from Step A.7 |
TM Details |
|
Data Expected from TC |
No ( + ACK ) |
C.3.
Confirm the
Setin the previous step with aGet(i.e. confirm the value was set successfully).
C.4.
To enable this logger,
Setthe Logger’scdh.logging.XXXXLogger.enabledparameter to 1.
TC Details |
|
MCS Operation |
|
Action/Param Name |
|
Data Expected with TC |
Yes |
Data Size |
boolean |
Data Info |
enable (01) or disable (00) logging |
Allowed Value(s) |
0 - 1 |
Expected Value(s) |
1 |
TM Details |
|
Data Expected from TC |
No ( + ACK ) |
C.5.
Confirm the
Setin the previous step with aGet(i.e. confirm the value was set successfully).
Note
It can take up to ~1 minute for a logger to enable/disable.
END OF PROCEDURE