Class Pus20Service

java.lang.Object
org.yamcs.simulator.pus.AbstractPusService
org.yamcs.simulator.pus.Pus20Service

public class Pus20Service extends AbstractPusService
ST[20] on-board parameter management (ECSS-E-ST-70-41C, 6.20 and 8.20).

Supports TC[20,1] report parameter values (-> TM[20,2]) and TC[20,3] set parameter values. Messages relating to parameter definitions (TC[20,4], TC[20,5], TC[20,6], TM[20,7]) are out of scope.

On-board parameters are fixed; their IDs and types are defined in the simulator MDB (e.g. for the PUS example, in examples/pus/src/main/yamcs/mdb/pus20.xml). The value size of the parameter is "deduced" from the parameter ID, the values are encoded big endian.

Faulty instructions:

  • an instruction referring to an unknown parameter ID generates a failed start of execution (TM[1,4]) with the unknown parameter ID as failure data; the valid instructions of the request are processed nevertheless. For TC[20, 3], the size of the value of an unknown parameter (i.e. not in MDB) cannot be deduced, so the instructions following the unknown parameter cannot be parsed and are ignored;
  • a truncated request is rejected as a whole.