- GateManager Own - Datalogging Scenarios
- LogTunnel Scenarios
- SiteManager Embedded Scenarios
- SiteManger Scenarios
DCM config file structure and editing
A Starter package (SiteManager + accounts)
Other sections in DCM:
Structure, How to read JSON
The Config file is divided into specific levels as illustrated here by the vertical lines.
When you have more entries within the same level, the previous entry must be followed by a comma ","
So here the entries in line 2, 3 & 13 are at the same level and the comma
is placed at the end of line 2, 12(which is actually the end of section
started at line 3)
This section contains the sections Main config, Collectors and DataServers
The first (and only collector) is line 4-11
The first (and only samplepoint) is line 7-9
If another collector should be added,
- copy line 4-11
- place a comma at line 11 after the }
- insert the copy of line 4-11, so they would become lines 12-19
If another samplepoint should be added,
- copy line 7-9
- place a comma at line 9 after the }
- insert the copy of line 7-9, so they would become lines 10-12
And so until the config file is as desired.
The order in which the samplepoints are listed can have a influence on the function of the individuel samplepoints.
With OPC UA it has been experienced that it's important that the samplepoint collecting from External devices must be entered before any aggregations.
Editing, How to edit the JSON file.
General information about the config file.
- ConfigName (string, mandatory). Unique name for this configuration file. Follows the rules for names.
- ConfigDescription (string, optional) text describing this configuration.
- CheckpointInterval (integer == 0 or >= 60, optional). The interval with which all data from the internal datasample cache is saved to disk. This more unstable (power) the SiteManager, the more often data should be saved. Saving it often, however will also cost performance and wear on the hard-disk/flash. A value of 0 means, never checkpoint, otherwise it means interval in seconds between saves. If not specified the value 15 * 60 (15 minutes) is used.
- AlarmsSaved (integer >= 4, optional). The number of alarms saved in the store-and-forward database. If this values is not specified, it will default to 32.
- WaitForNTP (boolean, optional). Synchronize DCM data collection with NTP time. If this parameter is true, all DCM collectors will not begin collecting data until NTP is enabled and configured and NTP has synchronized date/time. If not specified, the value is true.
Since the JSON format itself doesn't define a comment notation, DCM accepts a fieldname comment with any type of value in any section.
There is a concept of a sampleref, which is a string uniquely identifying a sample. The format is CollectorName:SampleName, where the CollectorName: part is optional and the CollectorName used will be the one given by the context. Some contexts does not provide any CollectorName, so here it is mandatory.
Config file schema
"ConfigName": "Name the entire config",
"ConfigDescription": "Describe the entire config",
REPLACE THE ENTIRE RED SECTION WITH YOUR COLLECTOR TYPE
"Samplepoint 1": "Values for the tags/samplepoints"
REPLACE THE ENTIRE BLUE SECTION WITH YOUR DATASERVER TYPE
Next step links: