= 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. = Command Line Interface: Basic usages == Classic: stop, config, start 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. [source,console] ---- $ FofbTool --stop --config every --start ---- == Configure OPCUAProxy DS Upon restart of OPCUAProxy Tango DS, to reapply attribute configuration (units, alarm level, descriptions...) [source,console] ---- $ FofbTool --DS-conf ---- == More help [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. ----