Skip to content
Snippets Groups Projects
README.adoc 3.81 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.

= 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


[%collapsible%open]
BRONES Romain's avatar
BRONES Romain committed
====
[source,console]
----
$ FofbTool --stop --config --start
INFO    : Stopping CCN on ANS/DG/FOFB-CELLNODE-C01
INFO    : Stopping ComBpm on ANS/DG/FOFB-CELLNODE-C01
INFO    : Stopping CCN on ANS/DG/FOFB-CELLNODE-C06
INFO    : Stopping ComBpm on ANS/DG/FOFB-CELLNODE-C06
INFO    : Stopping CCN on ANS/DG/FOFB-CELLNODE-C09
INFO    : Stopping ComBpm on ANS/DG/FOFB-CELLNODE-C09
INFO    : Stopping CCN on ANS/DG/FOFB-CELLNODE-C14
INFO    : Stopping ComBpm on ANS/DG/FOFB-CELLNODE-C14
INFO    : Stopping CCN on ANS/DG/FOFB-CENTRALNODE
INFO    : Configuration of ComBpm done on ANS/DG/FOFB-CELLNODE-C01.
INFO    : Configuration of ComCorr done on ANS/DG/FOFB-CELLNODE-C01.
INFO    : Configuration of CCN done on ANS/DG/FOFB-CELLNODE-C01.
INFO    : Configuration of ComBpm done on ANS/DG/FOFB-CELLNODE-C06.
INFO    : Configuration of ComCorr done on ANS/DG/FOFB-CELLNODE-C06.
INFO    : Configuration of CCN done on ANS/DG/FOFB-CELLNODE-C06.
INFO    : Configuration of ComBpm done on ANS/DG/FOFB-CELLNODE-C09.
INFO    : Configuration of ComCorr done on ANS/DG/FOFB-CELLNODE-C09.
INFO    : Configuration of CCN done on ANS/DG/FOFB-CELLNODE-C09.
INFO    : Configuration of ComBpm done on ANS/DG/FOFB-CELLNODE-C14.
INFO    : Configuration of ComCorr done on ANS/DG/FOFB-CELLNODE-C14.
INFO    : Configuration of CCN done on ANS/DG/FOFB-CELLNODE-C14.
INFO    : Configuration of CCN done on ANS/DG/FOFB-CENTRALNODE.
INFO    : Configuration of Corr done on ANS/DG/FOFB-CENTRALNODE.
INFO    : Starting CCN on ANS/DG/FOFB-CELLNODE-C01
INFO    : Starting ComBpm on ANS/DG/FOFB-CELLNODE-C01
INFO    : Ack CCN error on ANS/DG/FOFB-CELLNODE-C01
INFO    : Starting CCN on ANS/DG/FOFB-CELLNODE-C06
INFO    : Starting ComBpm on ANS/DG/FOFB-CELLNODE-C06
INFO    : Ack CCN error on ANS/DG/FOFB-CELLNODE-C06
INFO    : Starting CCN on ANS/DG/FOFB-CELLNODE-C09
INFO    : Starting ComBpm on ANS/DG/FOFB-CELLNODE-C09
INFO    : Ack CCN error on ANS/DG/FOFB-CELLNODE-C09
INFO    : Starting CCN on ANS/DG/FOFB-CELLNODE-C14
INFO    : Starting ComBpm on ANS/DG/FOFB-CELLNODE-C14
INFO    : Ack CCN error on ANS/DG/FOFB-CELLNODE-C14
INFO    : Starting CCN on ANS/DG/FOFB-CENTRALNODE
----

====

== Configure OPCUAProxy DS

BRONES Romain's avatar
BRONES Romain committed

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

[%collapsible%open]
BRONES Romain's avatar
BRONES Romain committed
====
[source,console]
----
$ FofbTool --confDS
INFO    : Apply attribute configuration on device ANS/DG/FOFB-CELLNODE-C09
INFO    : Apply attribute configuration on device ANS/DG/FOFB-CELLNODE-C14
INFO    : Apply attribute configuration on device ANS/DG/FOFB-CENTRALNODE
INFO    : Apply attribute configuration on device ANS/DG/FOFB-CELLNODE-C06
INFO    : Apply attribute configuration on device ANS/DG/FOFB-CELLNODE-C01
----

====