pnp-software / fcp-editor

Web-based editor for specifying Flight Control Procedures (FCPs) based on ESA's SCOS-2000 standard.
MIT License
3 stars 1 forks source link

Notes on SCOS Database Tables #8

Open pasetti opened 3 years ago

pasetti commented 3 years ago

The FCP Editor has a link to a SCOS database. This link has already been implemented in the "auto-completion" feature of the FW Profile Editor. The SCOS database describes the "telecommands" (TC) and "telemetry reports" (TMs) which are manipulated by the FCP. Both telecommands and telemetry reports consists of sequence of "parameters". Some parameters are of numerical type (their value is a number); others are of enumerated type (their value is an enumerated value expressed as an alphanumeric string).

In this ticket, I give some background information on some of the tables of the SCOS Database. Only information which is relevant to the FCP Editor is provided here. This ticket does not require any action: it only serves as reference.

PID Table This table describes TM reports in terms of:

PCF Table A TM Report carries one or more parameters. This table defines the parameters of a TM Report in terms of:

PLF Table This table describes the allocation of TM parameters to the TM reports: it lists the PCF_NAMEs of the TM parameters and gives the SPIDs of the packets to which they belong. Note that a TM Parameter may belong to multiple TM Reports.

TXP Table Some TM parameters are of enumerated type (see CURTX field in PCF table). This table defines their enumerated types in terms of:

CCF Table This table describes a TC in terms of:

CDF Table A TC may carry one or more parameters. This table describes the parameters in a TC in terms of:

CPC Table This table describes a TC parameter in terms of

PAS Table Some TC parameters are of enumerated type (see PAFREF field in CPC table). This table defines their enumerated types in terms of:

Tomas-M commented 3 years ago

Can we have a SQL dump of SCOS database included in source files somewhere? Like a scos_dump.sql or something. Preferably with only the tables we need here, so I can orient in it easier. Thank you

Tomas-M commented 3 years ago

I think I should have asked in a better way. I will try once more :) My question is, is it legally possible to put the database into sources? I mean, is there no copyright or similar thing on it? I have some version of the database, but I don't know if I can put it to the sources myself, considering the sources are publicly available on github.

Tomas-M commented 3 years ago

PID Table This table describes TM reports in terms of:

  • TYPE and STYPE (type and sub-type)
  • SPID (the unique identifier of the TM report)
  • PID_DESCR (the human-readable descriptive name of the TM report)

I need clarification on this. I have some SQL with database, and there is a "pid" table only (lowercase), and in this table there are columns such as PID_TYPE (not TYPE without prefix), PID_STYPE (not STYPE without prefix). Do I have correct database? Should I assume that you mean all column names with the appropriate prefixes where missing? Thank you

pasetti commented 3 years ago

The naming of the SCOS databases is unfortunately often confusing ... (but it has historical reasons and is now so widely used that it is impossible to change if).

In the specific case you mention, your assumptions are correct:

Tomas-M commented 3 years ago

I made a script which converts all the tables into a single JSON object, where parameters are embeded as arrays to their respective telecommands or telemetry reports. You can preview the result here (not required, just in case if you spot anything wrong there): http://slax.org/projects/a/fcp-editor/aaa.php

I've omitted all column prefixes I plan to use this json as input for autocompleter. I will inform you when there is another progress

pasetti commented 3 years ago

I have a look at the json file and I did not see anything wrong with it.