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

Home | Index | Changes | Comments | Users | Registration | Login  Password:  
 
This is an old revision of HomePageUk/Doc/System from 2016-11-03 13:10:39..

Ìîäóëü <System> ï³äñèñòåìè "Çá³ð äàíèõ"

Ìîäóëü: System
²ì'ÿ: Çá³ð äàíèõ ÎÑ
Òèï: DAQ
Äæåðåëî: daq_System.so
Âåðñ³ÿ: 2.1.0
Àâòîð: Ðîìàí Ñàâî÷åíêî
Îïèñ: Íàäຠçá³ð äàíèõ ³ç ÎÑ. ϳäòðèìóþòüñÿ äæåðåëà äàíèõ ÎÑ Linux: HDDTemp, Sensors, Uptime, Memory, CPU, ÄÁÆ òà ³íøå.
˳öåíç³ÿ: GPL

Contents

Âñòóï

Ìîäóëü º ñâîºð³äíèì øëþçîì ì³æ ñèñòåìîþ OpenSCADA òà ÎÑ(îïåðàö³éíîþ ñèñòåìîþ). Ìîäóëü îòðèìóº äàí³ ³ç ð³çíèõ äæåðåë äàíèõ ÎÑ òà äîçâîëÿº êåðóâàòè êîìïîíåíòàìè ÎÑ.


Ìîäóëü íàäຠìîæëèâ³ñòü àâòîìàòè÷íîãî ïîøóêó ï³äòðèìóâàíèõ òà àêòèâíèõ äæåðåë äàíèõ ³ç ñòâîðåííÿì ïàðàìåòð³â äëÿ äîñòóïó äî íèç, à òàêîæ ðåàë³çàö³þ ôóíêö³¿ ãîðèçîíòàëüíîãî ðåçåðâóâàííÿ, à ñàìå ñï³ëüíî¿ ðîáîòè ç â³ääàëåíîþ ñòàíö³ºþ öüîãî-æ ð³âíÿ.

1. Êîíòðîëåð äàíèõ

Äëÿ äîäàííÿ äæåðåëà äàíèõ ÎÑ ñòâîðþºòüñÿ òà êîíô³ãóðóºòüñÿ êîíòðîëåð ó ñèñòåì³ OpenSCADA. Ïðèêëàä âêëàäêè êîíô³ãóðàö³¿ êîíòðîëåðà öüîãî òèïó çîáðàæåíî íà ðèñ.1.


Âêëàäêà êîíô³ãóðàö³¿ êîíòðîëåðó. (114 Kb)
Ðèñ.1. Âêëàäêà êîíô³ãóðàö³¿ êîíòðîëåðó.

Çà äîïîìîãîþ ö³º¿ âêëàäêè ìîæíà âñòàíîâèòè:

2. Ïàðàìåòðè

Ìîäóëü System íàäຠò³ëüêè îäèí òèï ïàðàìåòð³â — "Âñ³ ïàðàìåòðè". Äîäàòêîâèìè êîíô³ãóðàö³éíèìè ïîëÿìè ïàðàìåòð³â öüîãî ìîäóëÿ (ðèñ.2) º:


Âêëàäêà êîíô³ãóðàö³¿ ïàðàìåòðó. (94 Kb)
Ðèñ.2. Âêëàäêà êîíô³ãóðàö³¿ ïàðàìåòðó.

 òàáëèö³ íèæ÷å íàâåäåíî ïåðåë³ê ï³äòðèìóâàíèõ äæåðåë äàíèõ ÎÑ, çíà÷åííÿ äîäàòêîâîãî êîíô³ãóðàö³éíîãî ïîëÿ òà àòðèáóòè ïàðàìåòð³â.


Äæåðåëî äàíèõ Çíà÷åííÿ äîäàòêîâîãî êîíô³ã. ïîëÿ Àòðèáóòè ïàðàìåòðó Âèìîãè
Ïðîöåñîð (CPU) ²ì'ÿ/íîìåð ïðîöåñîðó. Ìîæå ì³ñòèòè çíà÷åííÿ íîìåðó ïðîöåñîðó àáî áóòè "Âçàãàë³" çà âñ³ìà ïðîöåñîðàìè <gen>.
  • [real] load: Çàâàíòàæåííÿ (%)
  • [real] sys: Ñèñòåìà (%)
  • [real] user: Êîðèñòóâà÷ (%)
  • [real] idle: Áåçä³ÿ (%)
Ïàì'ÿòü (MEM) Íå âèêîðèñòîâóºòüñÿ
  • [dec] free: ³ëüíî (êÁ);
  • [dec] total: Óñüîãî (êÁ);
  • [dec] use: Âèêîðèñòàíî (êÁ);
  • [dec] buff: Áóôåðà (êÁ);
  • [dec] cache: Êåø (êÁ);
  • [dec] sw_free: Ñâîï â³ëüíî (êÁ);
  • [dec] sw_total: Ñâîï óñüîãî (êÁ);
  • [dec] sw_use: Ñâîï âèêîðèñòàíî (êÁ).
Ñåíñîðè (sensors) Íå âèêîðèñòîâóºòüñÿ Àòðèáóòè âèçíà÷àþòüñÿ ñåíñîðàìè, äîñòóïíèìè íà ìàòåðèíñüê³é ïëàò³. Äëÿ êîæíîãî ñåíñîðó ñòâîðþºòüñÿ îêðåìèé àòðèáóò. Äëÿ ðîáîòè âèêîðèñòîâóºòüñÿ á³áë³îòåêà libsensors àáî ïðîãðàìà mbmon. Á³ëüø ïð³îðèòåòíîþ ó âèêîðèñòàíí³ º á³áë³îòåêà libsensors, îñê³ëüêè mbmon ìຠïðîáëåìè íà áàãàòîÿäåðíèõ àðõ³òåêòóðàõ.
Òåìïåðàòóðà HDD (hddtemp) Äèñê. Äîñòóïí³ ó ñèñòåì³ äèñêè.
  • [string] disk: ²ì'ÿ;
  • [string] ed: Îäèíèöÿ âèì³ðó;
  • [real] t: Òåìïåðàòóðà.
Ìຠáóòè âñòàíîâëåíà, ñêîíô³ãóðîâàíà òà çàïóùåíà ÿê ñåðâ³ñ ïðîãðàìà hddtemp.
×àñ ðîáîòè (uptime)

×àñ ðîáîòè:

  • Ñèñòåìà;
  • Ñòàíö³ÿ.
  • [dec] full: Ñåêóíäè ïîâí³ñòþ;
  • [dec] sec: Ñåêóíäè;
  • [dec] min: Õâèëèíè;
  • [dec] hour: Ãîäèíè;
  • [dec] day: Äí³.
HDD Smart (hddsmart), ïîâ³ëüíèé Äèñê. Äîñòóïí³ â ñèñòåì³ äèñêè. Àòðèáóòè âèçíà÷àþòüñÿ SMART-ïîëÿìè äîñòóïíèìè äëÿ âèçíà÷åíîãî äèñêó. Äëÿ êîæíîãî ïîëÿ ñòâîðþºòüñÿ îêðåìèé àòðèáóò. Ìຠáóòè âñòàíîâëåíà òà äîñòóïíà óòèë³òà smartctl.
Ñòàòèñòèêà HDD (hddstat) Äèñê àáî ðîçä³ë. Äîñòóïí³ â ñèñòåì³ äèñêè òà ðîçä³ëè.
  • [real] rd: Ïðî÷èòàíî (Á), ñêèä íà çíà÷åíí³ 2.212;
  • [real] rdSp: Øâèäê³ñòü ÷èòàííÿ (Á/ñ);
  • [rela] wr: Çàïèñàíî (Á), ñêèä íà çíà÷åíí³ 2.212;
  • [real] wrSp: Øâèäê³ñòü çàïèñó (Á/ñ).
Ñòàòèñòèêà ìåðåæ³ (netstat) Ìåðåæåâèé ³íòåðôåéñ. Ìåðåæåâ³ ³íòåðôåéñè äîñòóïí³ ó ñèñòåì³.
  • [real] rcv: Ïðèéíÿòî (Á), ñêèä íà çíà÷åíí³ 4.39;
  • [real] rcvSp: Øâèäê³ñòü îòðèìàííÿ (Á/c);
  • [real] trns: Ïåðåäàíî (Á), Ñêèä íà çíà÷åíí³ 4.39;
  • [real] trnsSp: Øâèäê³ñòü ïåðåäà÷³ (Á/c).
ÄÁÆ (NUT) (ups), ïîâ³ëüíèé ÄÁÆ. Äîñòóïí³ â ñèñòåì³ òà ìåðåæ³ ÄÁÆ. Àòðèáóòè âèçíà÷àþòüñÿ äîñòóïíèìè ó ÄÁÆ âëàñòèâîñòÿìè. Äëÿ êîæíî¿ âëàñòèâîñò³ ñòâîðþºòüñÿ îêðåìèé àòðèáóò. Ó ñèñòåì³ àáî ìåðåæ³ (íå âèÿâëÿºòüñÿ àâòîìàòè÷íî òà àäðåñó òðåáà âèçíà÷àòè ïðÿìî) ìຠáóòè äîñòóïíèì äåìîí NUT "upsd".
Ôàéëîâà ñèñòåìà (FS) Ôàéëîâ³ Ñèñòåìè. ϳäêëþ÷åí³ ôàéëîâ³ ñèñòåìè.
  • [real] total: Ðàçîì (ÃÁ);
  • [real] used: Âèêîðèñòàíî (ÃÁ);
  • [real] free: ³ëüíî (ÃÁ);
  • [dec] totalN: Ðàçîì ôàéëîâèõ âóçë³â;
  • [dec] usedN: Âèêîðèñòàíî ôàéëîâèõ âóçë³â;
  • [dec] freeN: ³ëüíî ôàéëîâèõ âóçë³â.

Ïîñèëàííÿ

Referring pages: HomePageUk/Doc
HomePageUk/Doc/DAQ
HomePageUk/Function
HomePageUk/Using/PLC/firmware


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