Skip to main content

"systeminfos" smartCORE module

Description

The task of the systeminfos module is to provide information about the hardware and software of the device. The data is updated cyclically and written to the smartCORE data pool. It is then made available to other modules and can be queried by other systems via the Scpi interface. Only data is produced, not consumed!

JSON configuration

The following section describes the entire JSON configuration of the module and the individual parameters. The module is divided into various subject areas that provide information on different device/system areas.

  • hardware
  • file system
  • modem
  • cpuinfo
  • device
  • config
  • metainfo
  • network

hardware

SignalData typeUnitDescription
BoardMajorVersionint8Major version number of the device board
BoardMinorVersionint8Minor version number of the device board
BoardVariantInfoStringString with information on the board variant. For smartMini e.g. "smartMINI V2.3"
SocVariantInfoStringString with information on the socvarainte. For smartMini e.g. "TX6S-8035"
"CanBusName "FramesAvailableboolSpecifies whether CAN bus data is received via this socketcan interface.
ActiveCanInterfacesuint16Number of all CAN bus interfaces active/configured in the system that were found on the device. Only CAN bus interfaces of type "socketcan" are currently supported!

filesystem

Provides information on "/sde/" and optionally on other partitions.

SignalData typeUnitDescription
SDCard.StatusboolSD card ("/sde/") available and mounted or not.
SDCard.FreefloatGBAvailable free memory on the SD card
SDCard.UsedfloatGBUsed memory on the SD card
SDCard.SizefloatGBTotal size of the SD card.

Further partitions can be entered in the configuration, which are produced as signals. See example configuration below.

modem

If the modem is switched on, this area provides information on the modem's mobile connection.

SignalData typeUnitDescription
ICCIDStringThe ICCID of the SIM card.
RSSIint32dBmReceived Signal Strength Indicator (RSSI ) is an indicator for the received signal strength.
ConnectedboolIndicates whether a mobile connection currently exists.
CellIdint32Mobile cell identification
LACint32In mobile communications (GSM and UMTS), the "Location Area" refers to the current location area of a cell phone within a mobile network.
MNCint32"Mobile Network Code" is used to identify a GSM, UMTS or TETRA radio network provider.
MCCint32"Mobile Country Code" is a defined country code that is used together with the Mobile Network Code (MNC) to identify a mobile network.
LevelStringSpecifies the reception strength in the current network. Possible values are: "excellent", "good", "fair", "poor" and "no signal"
NetworkStringSpecifies which mobile network is currently being used. Possible values are: "lte", "gsm", "3g"
LevelIdint8Specifies the reception strength in the current network. Is specified here as an integer. Possible values are: 4 = "excellent", 3 = "good", 2 = "fair", 1 = "poor" and 0 = "no signal"
NetworkIdint8Specifies which mobile network is currently being used. Is specified here as an integer. Possible values are: 4 = "lte", 3 = "umts", 2 = "gsm", 1 = "cdma" or 0 = "td-scdma"

cpuinfo

SignalData typeUnitDescription
UptimedoublehTotal uptime of the system
Loadfloat%CPU utilization of the system
AppRamUsagefloat%Memory consumption of the smartCORE
TotalRamUsagefloat%Total memory usage of the system.
TotalRamfloatMBSize of the device's available RAM.
Temperaturefloat°CCurrent CPU temperature. Determined from "/sys/class/thermal/thermal_zone0/temp".

device

SignalData typeUnitDescription
NamestringDevice name
AppstringName of the active app (usually always smartCORE)
App_versionstringSoftware version number of the app
DeviceManagerstringVersion number of the DeviceManager.
ExamplestringInfo string for the bsp (BoardSupportPackage) of the system.
SerialstringSerial number of the device.
AppStartedint64_tsLast start time (UTC) of the smartCORE app in seconds since 1970.
AppRuntimeuint64_tminRuntime of the app in minutes.
VersionstringKernel and compiler version from /proc/version.
ModemEnabledboolSpecifies whether the modem is enabled or disabled.
clock_synchronizedboolSpecifies whether the system clock is synchronized.
PowerSupplyVoltagefloatVSupply voltage of the system. Is only available on smartRAIL systems.
BoardTemperaturefloat°CTemperature of the device board. Only available on smartRAIL and smartMini systems.

config

SignalData typeUnitDescription
StaticModifiedint64_tsLast modification date (UTC ) of the static configuration file (smartcore.json) in milliseconds since 1970.
DynamicModifiedint64_tsLast modification date (UTC) of the dynamic configuration file (smartcore_dynamic.json) in milliseconds since 1970.
VersionstringFree text field to enable simple versioning of the config. If the field is empty or is not specified in the config, the signal is not transmitted.

metainfo

Provides all values entered in the configuration as string signals.

SignalData typeUnitDescription
"keys_1"string
...
"keys_N"string

Network

Information on the network connection and uploads of files to cloud instances. The information can be put into relation via the timestamp.

SignalData typeUnitDescription
Upload.speedfloatkBit/sUpload speed of a file sent to a cloud instance.
Upload.FilesizefloatkByteSize of the file that was sent to a cloud instance.
Upload.CloudIndexint8Index of the cloud instance to which a file was sent. Which cloud has which index can be viewed in the cloud configuration.
Upload.ErrorCodeint16ErrorCode that is returned if an upload fails. List of codes: https://doc.qt.io/qt-5/qnetworkreply.html#NetworkError-enum
WWAN.MonthlyTrafficfloatMByteReal-time updated, bidirectionally transmitted data volume of the current (billing) month since the reset day, configurable via parameter "resetDayOfMonth", by default on the first of the month
WWAN.TotalMonthlyTrafficfloatMByteBidirectionally transmitted data volume of completed (billing) months, updated at the beginning of the reset day "resetDayOfMonth"
WWAN.EstimatedDownloadTrafficint64MByte/hReal-time updated estimate of the download data volume in relation to an hourly specified start time
WWAN.EstimatedUploadTrafficint64MByte/hReal-time updated estimate of upload data volume with respect to an hourly specified start time

Complete configuration

There are no must-have parameters, so no entry needs to be made for any parameter. There is a sensible default value for each parameter so that the module can be run immediately without extensive knowledge of the parameters.

Minimum config

{
"factory": "systeminfos",
"module": "SystemInfos",
"config": {
}
}

Configuration with all parameters

{
"factory": "systeminfos",
"module": "SystemInfos",
"config": {
"timeoutMs": 1000,
"baseModuleNamespace": "System",
"hardware": {
"enabled": true,
"name": "Hardware",
"onChange": true,
"reproductionTimeout": 120
},
"filesystem": {
"enabled": true,
"name": "Filesystem",
"onChange": true,
"reproductionTimeout": 120,
"monitorSdeCard":true,
"partitions":
[
{
"name": "sdi",
"partition":"/sdi/"
}
]
},
"modem": {
"enabled": true,
"name": "Modem",
"onChange": true,
"reproductionTimeout": 120
},
"cpuinfo": {
"enabled": true,
"name": "CPU",
"onChange": false,
"reproductionTimeout": 2
},
"device": {
"enabled": true,
"name": "Device",
"reproductionTimeout": 300
},
"config": {
"enabled": true,
"name": "Config",
"reproductionTimeout": 300,
"versionStr": "Config V1.2"
},
"network": {
"enabled": true,
"name": "Network",
"uploadMinFileSize": 0.8,
"resetDayOfMonth": 1
},
"metainfo": {
"enabled": true,
"name": "Meta",
"reproductionTimeout": 300,
"keys": [
{
"name": "Key1",
"value": "Value1"
},
{
"name": "Decription",
"value": "A new config..."
},
{
"name": "Plant",
"value": "XYZ"
}
]
}
}
}

**Example

The above configuration results in the following signal names for the individual areas:

  • "SDCard.Size"
  • "System.Filesystem.sdi_used"
  • "System.Hardware.BoardMajorVersion"
  • "System.Modem.RSSI"
  • "System.CPU.Load"
  • "System.Device.Serial"
  • "System.Config.Version"
  • "System.Meta.Key1"
  • "System.Meta.Plant"
  • "System.Network.Upload.Speed"
  • "System.Network.Upload.Filesize"

Parameter list

Parameter NameMust-HaveData TypeDefault ValueDescription
timeoutMsNoint5000Execution interval of the module in Ms
baseModuleNamespaceNoString"System"The base namespace. Every channel name in the module's smartCORE begins with this string.
hardwareNoObject-Provides information about the device hardware
filesystemNoobject-Information about the SD card ("/sde/") - size, free and used memory, SD card available and mounted. Further partitions can also be specified in the config, whose properties (size, free and used memory) are then produced.
modemNoObject-All information about the mobile connection and the ICCD number of the inserted SIM card.
cpuinfoNoObject-Information on the processor utilization and memory consumption of the system.
deviceNoobject-Provides version information of the software on the device (yocto, smartCORE, devicemanager) as well as the name and serial number of the system.
configNoobject-Provides information on the configuration files, e.g. last modification date.
metainfoNoobject-Static value pairs ("key-value") can be entered here, which are transmitted and recorded as string signals.
networkNoObject-Provides information about the network, e.g. data rates for uploads of osf files.

Parameter objects

The parameter objects "filesystem", "modem", "hardware", "cpuinfo", "network" and "device" all have the same parameters. The exception is the "device" object, which does not have an "onlyOnChange" parameter. The "network" area has no "onlyOnChange" and "reproductionTimeout" parameters, as the data is recorded on an event basis.

Parameter NameMust-HaveData TypeDefault ValueDescription
enabledNobooltrueActivates the module. If deactivated (false), no signals are created and no data is saved.
nameNoString"Module name"Name or namespace of the area.
onChangeNobooltrueSpecifies whether values should be saved immediately or not as soon as they have changed.
reproductionTimeoutNouint120Specifies the minimum time interval at which values are saved/recorded, even if they have not changed.

The "filesystem" area has additional parameters that can only be changed in this area:

Parameter NameMust-HaveData TypeDefault ValueDescription
monitorSdeCardNobooltrueSpecifies that the SdCard ("/sde/") should be monitored. Normally only available on optiMEAS devices. Can therefore be deactivated.
partitionsNoArray-Can contain a list (JSON array) of other partitions to be monitored and recorded on the system.

The "network" area has additional parameters that can only be changed in this area:

Parameter NameMust-HaveData TypeDefault ValueDescription
uploadMinFileSizeNofloat0.5Specifies the minimum file size from which a file upload is taken into account and recorded. Is specified in kByte.

Module information/profile

InformationValue
AuthoroptiMEAS Measurement and Automation Systems GmbH
Consumes signalsNo
Produces signalsYes
smartCORE Version>= 0.175

Interfaces, protocols & libraries used

  • DeviceManager (modem information via notification)
  • libhal

Supported systems

  • smartMini
  • smartMini-S
  • smartRAIL