Configure
CSP Leaf Node provides API for Configure workflow.
The CSP Leaf Node accepts the command if :-
Operational state of the CSP Leaf node is ON/OFF/INIT/STANDBY/ALARM
CSP Subarray is responsive.
The CSP Leaf Node rejects the command if :-
Operational state of CSP Leaf node is FAULT/UNKNOWN/DISABLE .
CSP Subarray is not responsive.
The following state requirements are applied for the command execution :-
CSP Subarray is in ‘observation state’ READY or IDLE .
CSP Subarray node is available .
The command execution involves below key operations :-
Any existing delay threads are stopped
Delay model attribute value is reinitialized to initial default value then progressively updated by running delay threads using timing cadence.
Delay is calculated for mid-cbf timings beams.
Please refer - Delay Calculation in TMC for detailed view of delay calculation
Configuration parameters related to assigned resources such as :-
Create Katpoint Antenna objects from antenna params
Update assigned_receptors to be passed on to Katpoint DelayCorrection
From input JSON “pointing” section is removed before sending command to CSP Subarray.
The command is then invoked on the CSP Subarray.
If CSP Subarray raises exception , command failure is reported as ‘RESULT_CODE - FAILED’ on Long Running Command Result attribute of the CSP leaf node.
If CSP Subarray accept command , the TMC CSP leaf node will wait for command completion.
The CSP leaf node monitors the progress of command via the CSP sub-array node ObsState transitions and the long running command results.
Command is successful when the CSP Subarray Node transitions to READY ObsState. This is reported as ‘RESULT_CODE - OK’ on Long Running Command Result attribute of the TMC CSP Subarray node.
Command failure is reported in any of the below cases as ‘RESULT_CODE - FAILED’ on Long Running Command Result attribute of the TMC CSP Subarray leaf node.
The CSP Subarray reports ‘RESULT_CODE - FAILED’ on its Long Running Command Result attribute
The command times out if CSP SubarrayNode does not transition to READY within the timeout period specified by CommandTimeOutDefault property specified in helm chart of the CSP Leaf Node .
Input JSON to CSP Subarray is as per schema detailed at - https://developer.skao.int/projects/ska-schemas/en/latest/schemas/csp/mid/configure/index.html