You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/README.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -140,6 +140,15 @@ Equipments should be prefixed as `[equipment-...]`.
140
140
Consumers should be prefixed as `[consumer-...]`.
141
141
General settings are defined in section `[readout]`.
142
142
143
+
Section names ending with `-*` can be used to define default parameters. They are applied to all section with similar names. Existing key-value pairs are not overwritten, but are defined according to defaults if they don't exist. For example, it is possible to define the TFperiod for all equipments by adding a section named `[equipment-*]` with `TFperiod=32`.
144
+
145
+
Values can be symbolic links to a value stored in another configuration file. The syntax is: @LINK,URI,entryPoint,path
146
+
For example: @LINK,file:/local/readout-test-config-link1.cfg,,bank.size
147
+
Parameters are similar to the command-line arguments of o2-readout-exe, see ```Usage``` below.
148
+
Files are cached, i.e. the corresponding configuration tree is loaded only once if several values use a link to the same URI/entryPoint.
149
+
Links substitutions are done at the end of the configuration tree aggregation (sections merging, etc).
150
+
It is done recursively (up to 5 iterations, after which it fails to avoid circular dependencies).
151
+
143
152
Comments can be added by starting a line with the # sign. Inline comments (# later in the line) are not accepted.
144
153
Documented example files are provided with the source code and distribution.
Copy file name to clipboardExpand all lines: doc/releaseNotes.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -628,3 +628,7 @@ This file describes the main feature changes for each readout.exe released versi
628
628
## v2.24.0 - 18/06/2024
629
629
- Updated configuration parameters:
630
630
- equipment-rorc-*: added parameters firmwareVersionsDenied and firmwareVersionsAllowed, to enforce the check of firmware for specific versions. By default, v3.10.0 (e4a5a46e) is denied and all other allowed: it is the default version in CRU flash and should be updated to a more recent one at boot time.
631
+
632
+
## v2.25.0 - 25/06/2024
633
+
- Updated configuration parameters:
634
+
- Values can be a link to a value stored in another file.
for (boost::property_tree::ptree::iterator pos = pt.begin(); pos != pt.end();++pos) {
1004
+
//printf("%s\n", pos->first.c_str());
1005
+
resolveLinks(pos->second, pos->first.c_str());
1006
+
}
1007
+
};
1008
+
int maxLoops = 5;
1009
+
for (int i = 0; i <= maxLoops; i++) {
1010
+
if (i == maxLoops) {
1011
+
theLog.log(LogErrorSupport_(3100), "Links not fully resolved after %d iterations, there might be some circular dependencies in the configuration", maxLoops);
1012
+
cfgLinksErrors++;
1013
+
break;
1014
+
}
1015
+
nSubstitutions = 0;
1016
+
resolveLinks(cfg.get(),"");
1017
+
if (nSubstitutions == 0) {
1018
+
break;
1019
+
}
1020
+
}
1021
+
if (cfgLinksErrors) {
1022
+
theLog.log(LogErrorSupport_(3100), "Some links in the configuration could not be resolved");
1023
+
return -1;
1024
+
}
1025
+
1026
+
935
1027
// extract optional configuration parameters
936
1028
// configuration parameter: | readout | customCommands | string | | List of key=value pairs defining some custom shell commands to be executed at before/after state change commands. |
0 commit comments