[APP]
AppOn = 1
TIMER0 = 1000
MSG0 = omSUAppMsg0
db0 = libomdb.so
alm0 = libomalm.so
dbCfg = dbCfg.db3
dbDat0 = tmp/dbDat0.db3
dbDat = tmp/dbData.db3
AutoCtrl = 0
NoDog = 0
FeedDogX = 1
RebootX = 1
NoGsm = 1
PLAT = 6
WDT = 180
SmsMode = 0
SmsTime = 0830
SmsLast = 

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

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

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

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


[APP.Master]
tbBatt100 = tbBattVal
tbBatt100.flds = 3
tbBattEB90 = tbBattEb90Val
tbBattBOD1000S = tbBattBOD1000SVal
tbSvr = tbSvrDat
tbSnmp = tbSnmpDat
tbModbus = tbModbusDat
tbYdt1363 = tbYdt1363Dat
tbNormal = tbNormalDat


[APP.Detail]
tbSubSys = 1
tbSubSysDetail = 1
tbBattEb90Val = 100
tbBattVal = 101
tbBattBOD1000SVal = 102
tbSvrDat = 200
tbSnmpDat = 202
tbModbusDat = 202
tbYdt1363Dat = 202
tbNormalDat = 202


[SU0]
module = libomsuw.so
index = 2
state = 1
mask = 0x03
delay = 1000
delaysm = 500
timerx = 1
ser0 = libomser.so
sm0 = libomsm.so


[SU1]
module = libomsuw.so
index = 21
state = 1
mask = 0x03
delay = 1102
delaysm = 500
timerx = 1
ser0 = libomser.so
sm0 = libomsm.so
loadsm = select * from tbSM where State=0 and DataMode=1 and SerDef<>'' order by Type,SID


[DBDAT]
00 = create table tbSubSysDetail(SubSys INTEGER,SID INTEGER,Type INTEGER,FldDept INTEGER,Fld INTEGER,State INTEGER,LastUpd DATETIME)
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))
02 = create table tbSMBrief(SID INTEGER PRIMARY KEY,LastUpd DATETIME,St INTEGER,Brief VARCHAR(256))


[Log]
Cnt = 36
01 = 2019-11-02 22:29:06 App Init
02 = 2019-11-02 22:29:06 settimer done: 0
03 = 2023-05-31 15:26:24 App Init
04 = 2023-05-31 15:26:24 settimer done: 0
05 = 2023-05-31 15:28:11 App Init
06 = 2023-05-31 15:28:11 settimer done: 0
07 = 2023-06-08 15:12:28 App Init
08 = 2023-06-08 15:12:28 settimer done: 0
09 = 2023-06-08 16:09:38 App Init
10 = 2023-06-08 16:09:38 settimer done: 0
11 = 2023-06-08 18:13:36 App Init
12 = 2023-06-08 18:13:36 settimer done: 0
13 = 2023-06-08 18:22:40 App Init
14 = 2023-06-08 18:22:40 settimer done: 0
15 = 2023-06-08 20:21:37 App Init
16 = 2023-06-08 20:21:37 settimer done: 0
17 = 2023-06-09 11:30:47 App Init
18 = 2023-06-09 11:30:47 settimer done: 0
19 = 2023-06-09 12:39:39 App Init
20 = 2023-06-09 12:39:39 settimer done: 0
21 = 2023-06-09 15:02:38 App Init
22 = 2023-06-09 15:02:38 settimer done: 0
23 = 2023-06-10 15:29:32 App Init
24 = 2023-06-10 15:29:32 settimer done: 0
25 = 2023-06-10 15:40:27 App Init
26 = 2023-06-10 15:40:27 settimer done: 0
27 = 2023-06-10 15:49:35 App Init
28 = 2023-06-10 15:49:35 settimer done: 0
29 = 2023-06-10 15:52:28 App Init
30 = 2023-06-10 15:52:28 settimer done: 0
31 = 2023-06-10 15:57:41 App Init
32 = 2023-06-10 15:57:41 settimer done: 0
33 = 2023-06-27 10:36:10 App Init
34 = 2023-06-27 10:36:10 settimer done: 0
35 = 2023-06-27 10:42:16 App Init
36 = 2023-06-27 10:42:16 settimer done: 0


[Run]
Cnt = 18
01start = Sat Nov  2 22:29:06 2019
02start = Wed May 31 15:26:24 2023
03start = Wed May 31 15:28:11 2023
04start = Thu Jun  8 15:12:28 2023
05start = Thu Jun  8 16:09:38 2023
06start = Thu Jun  8 18:13:36 2023
07start = Thu Jun  8 18:22:40 2023
08start = Thu Jun  8 20:21:37 2023
09start = Fri Jun  9 11:30:47 2023
10start = Fri Jun  9 12:39:39 2023
11start = Fri Jun  9 15:02:38 2023
12start = Sat Jun 10 15:29:32 2023
13start = Sat Jun 10 15:40:27 2023
14start = Sat Jun 10 15:49:35 2023
15start = Sat Jun 10 15:52:28 2023
16start = Sat Jun 10 15:57:41 2023
17start = Tue Jun 27 10:36:10 2023
18start = Tue Jun 27 10:42:16 2023

