Skip to content

Device Information & System Settings

Limits regarding resource usage, such as maximum CPU usage or maximum storage usage, can be specified in different metrics on the /opt/limits/default.json file and can be configured by Device Builders. The resources that can be limited are indicated with the "Limits" json object as described in the Storage statistics section below.

Storage Statistics

To provide a directory that is reported by the Industrial Edge Management (IEM), Device Builders can only specify directories on the /opt/limits/default.json file with the "MonitoredStorage" and "Path" json object.

$ cat /opt/limits/default.json
{
"Limits":
{
   "MaxInstalledApplications":20,
   "MaxRunningApplications":10,
   "MaxMemoryUsageInGB":8.0,
   "MaxStorageUsageInGB":20.0,
   "MaxCpuUsagePerecentage":100
},
"MonitoredStorage":
{
   "Path":"/"
}
}

Firmware Version

To retrieve accurate firmware information from the Operating System via IE Device Kit services, it's essential to include a VARIANT key with a valid value in the /etc/os-release file. If the VARIANT key is absent, no firmware information will be returned when querying from IE Device Kit services.

The VARIANT field is a mandatory field when a firmware update is performed. Not only must the field be present, but it must also contain a valid firmware version information. This information is used during the firmware update process. Without this field or with an empty value, firmware updates may not be executed on the device.

Here's an example of how the content might look:

$ cat /etc/os-release
PRETTY_NAME="Siemens Industrial OS 2.1 (buster)"
NAME="Industrial OS"
VERSION_ID="2.1"
VERSION="2.1 (buster)"
VERSION_CODENAME=buster
ID=industrial-os
HOME_URL="https://www.mentor.com/embedded-software/linux/mel-omni-os/"
SUPPORT_URL="https://www.mentor.com/support"
BUG_REPORT_URL="https://www.mentor.com/support"
VARIANT="ied-os-1.1.0-21-amd64-develop"

System Settings regarding Firmware Update

The Edge Device ID value is required regarding firmware updates. This Edge Device ID is located in the configuration file which is used to onboard the Edge Device. For this reason, this value is written to a file on the Edge Device while the Edge Device is onboarding.

NOTICE

In reference service implementation for Device Builders, the Onboard Service writes the Edge Device ID to /var/device.id while onboarding the Edge Device.

System Settings regarding Log Collection

The Edge Device Name value is required for log collection to ensure unique log names for each Edge Device. This Edge Device Name is located in the configuration file which is used to onboard the Edge Device. For this reason, this value is written to a file on the Edge Device while the Edge Device is onboarding.

NOTICE

In reference service implementation for Device Builders, the Onboard Service writes the Edge Device Name to /var/device.name while onboarding the Edge Device.

System Settings regarding Network Configuration by Label

The LabelMap value is required to relate labels with the network interface name if the network interface is configured by label instead of MAC address. LabelMap is located in the configuration file which is used to onboard the Edge Device. For this reason, this value is written to a file on the Edge Device while the Edge Device is onboarding.

NOTICE

In reference service implementation for Device Builders, the Network Service writes the LabelMap to /var/network.label while onboarding the Edge Device.


Device Information

To enable device information retrieval through IE Device Kit services, device builders must configure hardware and firmware identification attributes in the system configuration file.

The /etc/system-info file must contain the following mandatory keys with valid values:

  • MANUFACTURER_NAME
  • SERIAL_NUMBER
  • PRODUCT_ID
  • VARIANT
  • PRODUCT_NAME
  • BIOS_VERSION

For more details refer System Service.

NOTICE


- If any of these keys are missing or contain empty values or in absence of file, device information queries will fail and deviceinfo attributes will not be available.
- By default, all capabilities are set to true. If the GetDeviceInfo capability is set to false, the corresponding information cannot be retrieved.
-These attributes are used by /info GET API in Industrial Edge Device API 2.4.1 and available in IEDK Version: 1.27.0.

Example:

$ cat /etc/system-info
MANUFACTURER_NAME="Siemens"
SERIAL_NUMBER="S159765215"
PRODUCT_ID="6ES7647-8BD31-0CW1"
VARIANT="ied-os-1.1.0-21-amd64-develop"
PRODUCT_NAME="SIMATIC IPC227G"
BIOS_VERSION="S5C620.86B.01.01.0016.082920171234"

Funding Acknowledgment: Funded by the Federal Ministry for Economic Affairs and Energy based on a decision by the German Bundestag | Your funding provider: Kicks for Edge as part of the EU funding program IPCEI-CIS (FKZ:13IPC008)