项目

一般

简介

omAppSU1.ini

韦 银剑, 2019-12-27 17:39

 
1
[APP]
2
AppOn = 1
3
TIMER0 = 1000
4
MSG0 = omSUAppMsg0
5
db0 = libomdb.so
6
alm0 = libomalm.so
7
dbCfg = dbCfg.db3
8
dbDat0 = tmp/dbDat0.db3
9
dbDat = tmp/dbData.db3
10
AutoCtrl = 0
11
NoDog = 0
12
FeedDogX = 1
13
RebootX = 1
14
NoGsm = 1
15
PLAT = 6
16
WDT = 180
17
SmsMode = 0
18
SmsTime = 0830
19
SmsLast = 
20

    
21
;详细数据间隔 60s,即每分钟一条记录
22
Dat1Ok = 60
23

    
24
;近期数据 较详细数据天数,默认30。注意: dat1M >1 
25
dat1M = 30
26

    
27
;长期数据 保存数据天数,默认365。注意: dat1Y > dat1M, 若dat1Y小于dat1M会造成不可预知的问题
28
dat1Y = 365
29

    
30
;已保存天数 0开始,应将/NandFlash/dbData.db3删除
31
dat1D = 28
32

    
33

    
34
[APP.Master]
35
tbBatt100 = tbBattVal
36
tbBatt100.flds = 3
37
tbBattEB90 = tbBattEb90Val
38
tbBattBOD1000S = tbBattBOD1000SVal
39
tbSvr = tbSvrDat
40
tbSnmp = tbSnmpDat
41
tbModbus = tbModbusDat
42
tbYdt1363 = tbYdt1363Dat
43
tbNormal = tbNormalDat
44

    
45

    
46
[APP.Detail]
47
tbSubSys = 1
48
tbSubSysDetail = 1
49
tbBattEb90Val = 100
50
tbBattVal = 101
51
tbBattBOD1000SVal = 102
52
tbSvrDat = 200
53
tbSnmpDat = 202
54
tbModbusDat = 202
55
tbYdt1363Dat = 202
56
tbNormalDat = 202
57

    
58

    
59
[SU0]
60
module = libomsuw.so
61
index = 2
62
state = 1
63
mask = 0x03
64
delay = 1000
65
delaysm = 500
66
timerx = 1
67
ser0 = libomser.so
68
sm0 = libomsm.so
69

    
70

    
71
[SU1]
72
module = libomsuw.so
73
index = 21
74
state = 1
75
mask = 0x03
76
delay = 5000
77
delaysm = 500
78
timerx = 1
79
ser0 = libomser.so
80
sm0 = libomsm.so
81
loadsm = select * from tbSM where State=0 and DataMode=1 and SerDef<>'' order by Type,SID
82

    
83

    
84
[DBDAT]
85
00 = create table tbSubSysDetail(SubSys INTEGER,SID INTEGER,Type INTEGER,FldDept INTEGER,Fld INTEGER,State INTEGER,LastUpd DATETIME)
86
01 = create table tbSMAlarm(DID INTEGER PRIMARY KEY,SID INTEGER,Type INTEGER,AID INTEGER,ASubSys INTEGER,AFld INTEGER,LastUpd DATETIME,Alm INTEGER,AlmMask INTEGER,AlmRecv INTEGER,AlmImg VARCHAR(64),AlmBrief VARCHAR(256))
87
02 = create table tbSMBrief(SID INTEGER PRIMARY KEY,LastUpd DATETIME,St INTEGER,Brief VARCHAR(256))
88

    
89

    
90
[Log]
91
Cnt = 14
92
01 = 2018-08-09 22:33:51 App Init
93
02 = 2018-08-09 22:33:52 settimer done: 0
94
03 = 2018-08-09 22:37:45 App Init
95
04 = 2018-08-09 22:37:45 settimer done: 0
96
05 = 2018-08-09 22:52:31 App Init
97
06 = 2018-08-09 22:52:31 settimer done: 0
98
07 = 2018-08-09 23:00:54 App Init
99
08 = 2018-08-09 23:00:54 settimer done: 0
100
09 = 2019-11-29 14:49:26 App Init
101
10 = 2019-11-29 14:49:26 settimer done: 0
102
11 = 2019-11-29 14:51:22 App Init
103
12 = 2019-11-29 14:51:22 settimer done: 0
104
13 = 2019-11-29 14:57:17 App Init
105
14 = 2019-11-29 14:57:17 settimer done: 0
106

    
107

    
108
[Run]
109
Cnt = 7
110
01start = Thu Aug  9 22:33:51 2018
111
02start = Thu Aug  9 22:37:45 2018
112
03start = Thu Aug  9 22:52:31 2018
113
04start = Thu Aug  9 23:00:54 2018
114
05start = Fri Nov 29 14:49:26 2019
115
06start = Fri Nov 29 14:51:22 2019
116
07start = Fri Nov 29 14:57:17 2019
117