OpenSCADAWiki: Home Page En/Doc/ System ...

Home | Index | Changes | Comments | Users | Registration | Login  Password:  
 
This is an old revision of HomePageEn/Doc/System from 2012-06-24 08:19:43..

The module of subsystem “Data acquisition” <System>

Module:System
Name:Data acquisition of OS
Type:DAQ
Source:daq_System.so
Version:1.7.5
Author:Roman Savochenko
Translated:Maxim Lysenko
Description:Provides data acquisition from the OS. Supported data sources of OS Linux: HDDTemp, LMSensors, Uptime, Memory, CPU etc.
License:GPL

Contents

Introduction

The module is a sort of gateway between the system OpenSCADA and OS (operating system). The module receives data from various data sources of the OS and allows to manage components of the OS (in the future).


The module provides the ability to automatically search for the supported and active data sources with the establishment of parameters for access to them as well as the implementation of the function of the horizontal reservation, namely, working in conjunction with the remote station of the same level.

1. The controller of data

To add a data source of operating system there is created and configured the controller in the system OpenSCADA. Example of the configuration tab of the controller of the given type depicted in Fig. 1.


Tab of configuration of the controller. (102 Kb)
Fig.1. Tab of configuration of the controller.

From this tab you can set:

2. Parameters

Module System provides only one type of parameters — "All parameters". Additional configuration fields of the parameters of the module (Fig. 2) are:


Tab of configuration of the parameter. (90 Kb)
Fig.2. Tab of configuration of the parameter.

The table below there is a list of supported data sources of the operating system, the value of the additional configuration field and attributes of the parameters.


Data sourceValue of the additional configuration fieldAttributes of the parameterDemands
Processor unit (CPU)Name/number of the process. It can be a number of processor or to be «in general» for all processors <gen>.
  • [real] load:Load (%)
  • [real] sys:System (%)
  • [real] user:User (%)
  • [real] idle:Idle (%)
Memory (MEM)Not used
  • [dec] free:Free (êÁ);
  • [dec] total:Total (êÁ);
  • [dec] use:Used (êÁ);
  • [dec] buff:Buffers (êÁ);
  • [dec] cache:Cache (êÁ);
  • [dec] sw_free:Swap, free (êÁ);
  • [dec] sw_total:Swap, total (êÁ);
  • [dec] sw_use:Swap, used (êÁ).
Sensors (sensors)Not usedAttributes are defined by sensors that are available on the motherboard. For each sensor the unique attribute is created.The library libsensors or program mbmon is used. Higher priority in the use is given to the library libsensors, because mbmon has problems on multicore architectures.
HDD temperature (hddtemp)HDD. Disks, available in the system.
  • [string] disk:Name;
  • [string] ed:Unit of measurement;
  • [real] t:Temperature.
It must be installed configured and running as a service program hddtemp
Uptime (uptime)

Uptime:

  • System;
  • Station.
  • [dec] full:Seconds full;
  • [dec] sec:Seconds;
  • [dec] min:Minutes;
  • [dec] hour:Houres;
  • [dec] day:Days.
HDD Smart (hddsmart)Disk. Disks, available in the system.Attributes are defined by SMART-fields available for this disc. For each field the unique attribute is created.It must be installed and available smartctl utility.
HDD statistics (hddstat)Disk or partition. Disks or partitions, available in the system.

Attributes:

  • [real] rd:Read (B), reset on value 2.2^^12;
  • [real] rdSp:Read speed (B/s);
  • [real] wr:Written (B), reset on value 2.2^^12;
  • [real] wrSp:Write speed (B/s).
Net statistics (netstat)Network interface. Network interfaces, available in the system.

Attributes:

  • [real] rcv:Recieved (B), reset on value 4.3^^9;
  • [real] rcvSp:Receive speed (B/s);
  • [real] trns:Transfered (B), reset on value 4.3^^9;
  • [real] trnsSp:Transmit speed (B/s).

Links

Referring pages: HomePageEn/Doc
HomePageEn/Doc/DAQ
HomePageEn/Function
HomePageEn/Using/APIFunctionLibs/LibUserPrtDevs
HomePageEn/Using/PLC/firmware
HomePageEn/Works/AdaptAndroid


 
There are no files on this page.[Display files/form]
There is no comment on this page. [Display comments/form]