Skip to main content

Configuration

Summary

This section explains the configuration of the smartCORE by the user.

Structure of the configuration

The configuration of the smartCORE software essentially consists of two configuration files stored on the edge device,

  • the static configuration /sdi/config/smartcore.json, as well as
  • the dynamic configuration (or application-specific measurement configuration) /sdi/config/smartcore_dynamic.json

Both configuration files contain JSON and are essentially structured as follows

{
"timeout": 10000,
"plugins":
[
"SomePluginFactory",
"AnotherPluginFactory",

...
],
"modules":
[
{
"module": "SomePluginInstance",
"factory": "SomePluginFactory",
"config":
{
"someKey": "someValue",

...
}
},
{
"module": "AnotherPluginInstance",
"factory": "AnotherPluginFactory",
"config":
{
"anotherKey": 42,

...
}
},

...
]
}

Here, timeout represents a period of time within which the module initialization is waited for. Otherwise, the initialization of individual modules is considered to have failed. The default setting of this parameter is 10,000 ms (10 s).

The factories (classes) of all modules used must be listed in the "plugins" list.

Within the "modules" list, all module instances used are then configured in the form of JSON objects. The following structure then always applies to a module configuration

{
"module": <name of the module instance>,
"factory": <factory or class of the module instance>,
"config" :
{
<parameter>: <JSON value of the parameter>,

...
}
}

The JSON value of a parameter can represent not only scalars of different data types, but also JSON objects (structures) or JSON arrays (lists).

The static configuration /sdi/config/smartcore.json also contains global parameters.