Skip to content
Snippets Groups Projects
README.adoc 3.05 KiB
Newer Older
= FofbTool Module

This python module provides functions to deal with the Fofb MTCA platform.
It connects to the OPCUAProxy tango devices.

The module is packaged in sections
* FofbTool.Configuration: For application configuration
* FofbTool.Operation: Function to perform operation (start, stop...)
* FofbTool.DeviceAttributeConfiguration: contains functions to apply tango attribute configuration

There is also a Command Line Interface bin/FofbTool written in python.

To deploy on the RCM, move into dir and execute install_rcm.sh.

BRONES Romain's avatar
BRONES Romain committed
= Command Line Interface: Basic usages
BRONES Romain's avatar
BRONES Romain committed

== Classic: stop, config, start
BRONES Romain's avatar
BRONES Romain committed

This stops the communication on all the nodes.
Also stops Bpm to CellNode communication blocks.

Then apply the default configuration on FPGA blocks:

* ComCellNode (Expected packets, correct MAC size...)
* ComBPM (BPM ID filter Filter for each CellNode...)
* ComCorr (Default PSCID on output...)

IMPORTANT: This do not configure Orbit Reference or Inv Response Matrix.
This do not start the FOFB, only the communication.

WARNING: PSC will receive frames upon start. Better stop the FOFB beforehand. The CLI won't let you do that.

BRONES Romain's avatar
BRONES Romain committed
[source,console]
----
BRONES Romain's avatar
BRONES Romain committed
$ FofbTool --stop --config every --start
BRONES Romain's avatar
BRONES Romain committed
----


== Configure OPCUAProxy DS

BRONES Romain's avatar
BRONES Romain committed

Upon restart of OPCUAProxy Tango DS, to reapply attribute configuration (units, alarm level, descriptions...)

[source,console]
----
BRONES Romain's avatar
BRONES Romain committed
$ FofbTool --DS-conf
BRONES Romain's avatar
BRONES Romain committed

BRONES Romain's avatar
BRONES Romain committed
----
BRONES Romain's avatar
BRONES Romain committed

BRONES Romain's avatar
BRONES Romain committed
== More help
BRONES Romain's avatar
BRONES Romain committed

BRONES Romain's avatar
BRONES Romain committed
[source,console]
----
usage: FofbTool [-h] [--log LOG] [--conf-file CONF_FILE] [--DS-init-opcua]
                [--DS-init-watcher] [--DS-conf] [--stop] [--stop-combpm]
                [--stop-ccn]
                [--configure {combpm,ccn,comcorr,corr,all,every} [{combpm,ccn,comcorr,corr,all,every} ...]]
                [--start] [--start-combpm] [--start-ccn]

optional arguments:
  -h, --help            show this help message and exit
  --log LOG             Log level (error, warning, info, debug)
  --conf-file CONF_FILE
                        Path to config file to apply.
  --DS-init-opcua       Run init on opcua devices.
  --DS-init-watcher     Run init on the Fofb-Watcher device, and then the
                        Fofb-Command.
  --DS-conf             Applying attribute configuration on Tango Device
                        Servers. This is required after restart of devices.
  --stop                Stop command for the CCN and ComBPM applications
                        blocks.
  --stop-combpm         Stop command for the ComBPM applications blocks.
  --stop-ccn            Stop command for the ComBPM applications blocks.
  --configure {combpm,ccn,comcorr,corr,all,every} [{combpm,ccn,comcorr,corr,all,every} ...]
                        Configuration commands for the Fofb applications
                        blocs. 'all' is for all com, not configuring
                        corrector. 'every' configure everything.
  --start               Start command for the CCN and ComBPM applications
                        blocks.
  --start-combpm        Start command for the ComBPM applications blocks.
  --start-ccn           Start command for the ComBPM applications blocks.
----