liurunyu
2024-11-12 a3c8c9c0ab3d680bf9f4ee2add2593fd2108441f
pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/resources/config.xml
@@ -20,24 +20,26 @@
    cacheUpDownDataMaxCount:上下行数据缓存队列中缓存数据个数的最大值,这个与现实项目所接水表数相关
    disconnectedByNoUpDataMinutes:没有上行数据的分钟数,达到这个分钟数,认为RTU断网了,取值范围是2-100
    workReportDealOneByTimes: 工作报太频繁,N次上报处理1次,取值范围是1-100
    intakeAlarmLossMinValue: 触发发送钉钉报警消息的取水口日漏损量的最小值(包括但除0.0外)(小数)
    sendDingDingAlarmMsInterval: 有报警发生时,向钉钉发送消息的间隔时长(分钟)
     -->
   <base
      orgTag="ym"
      isLowPower="false"
      onlyDealRtus=""
      onlyOneProtocol="false"
      downComandMaxResendTimes="1"
      commandSendInterval="2"
      cachWaitResultTimeout="120"
      offLineCachTimeout="86400"
      lastUpDataTimeLive="500"
      dbDataIdSuffix="0"
      cacheUpDownDataWarnCount="100000"
      cacheUpDownDataMaxCount="110000"
      disconnectedByNoUpDataMinutes="3"
      workReportDealOneByTimes="5"
      sendDingDingAlarmMsInterval="60"
         orgTag="ym"
         isLowPower="false"
         onlyDealRtus=""
         onlyOneProtocol="false"
         downComandMaxResendTimes="1"
         commandSendInterval="10"
         cachWaitResultTimeout="120"
         offLineCachTimeout="86400"
         lastUpDataTimeLive="500"
         dbDataIdSuffix="0"
         cacheUpDownDataWarnCount="100000"
         cacheUpDownDataMaxCount="110000"
         disconnectedByNoUpDataMinutes="3"
         workReportDealOneByTimes="5"
         intakeAlarmLossMinValue="1.0"
         sendDingDingAlarmMsInterval="60"
   />
   <!--
@@ -47,24 +49,24 @@
    synchroRtuClockTimepieces:当RTU与服务器时钟相差一定毫秒(配置文件是秒钟)后,进行校时
     -->
   <protocol
      centerAddr="1"
      synchroRtuClock="true"
      synchroRtuClockTimepieces="300000"
         centerAddr="1"
         synchroRtuClock="true"
         synchroRtuClockTimepieces="300000"
   />
   <!-- 2024-10-08 此配置暂时未应用
     软件升级 -->
   <updateRtuSoft enable="true">
      <soft1 enable="true" oldVersionName="meter_v2_0,meter_v1_0" >
         <newVersion newVersionName="meter_v3_0" file="rtuSoft/meter_v3_0.txt"></newVersion>
      </soft1>
      <!--
        <soft2 enable="false" oldVersionName="rtu_v1_0,rtu_v2_0,rtu_v3_0" >
            <newVersion newVersionName="rtu_v4_0" file="rtuSoft/rtu_v4_0.txt"></newVersion>
        </soft2>
         -->
   </updateRtuSoft>
   <!-- RTU 软件升级
   enable: 模块是否启动
   failTryTimes:升级失败后(针对的是在线进行了升级下发命令),重新偿试升级次数,当设置为0时表示不重新偿试升级
   ugMaxRtuAtOnce:为了缓解通信中间件的压力,同时支持升级的RTU台数,当设置为0时表示不受限制
   rtuOffLineWaitDuration: rtu离线,等待其升级的时长(秒),超过这个时间,设置其升级失败,且设置升级任务完成
   notifyStateInterval: 升级状态通知间隔(秒)
   -->
   <upgrade enable="true"
          failTryTimes="1"
          ugMaxRtuAtOnce="1000"
          rtuOffLineWaitDuration="1200"
          notifyStateInterval="2"
   />
   <!--
    支持模块
@@ -81,15 +83,15 @@
    enableThreadPool:是否启用线程池
     -->
   <support
      short_maxThread="6"
      short_minThread="6"
      short_freeTimeout="60"
      short_busyTimeout="5"
      long_maxThread="6"
      long_minThread="6"
      long_freeTimeout="60"
      long_busyTimeout="-1"
      enableThreadPool="true"
         short_maxThread="6"
         short_minThread="6"
         short_freeTimeout="60"
         short_busyTimeout="5"
         long_maxThread="6"
         long_minThread="6"
         long_freeTimeout="60"
         long_busyTimeout="-1"
         enableThreadPool="true"
   />
   <!--
@@ -101,11 +103,11 @@
    saveDbInterval:Rtu状态存数据库间隔(分钟)
     -->
   <resource
      rtuLogDir="rtuLogs/"
      rtuLogFileMaxSize="100000"
      rtuLogFileMaxCount="2"
      monitorInterval="2"
      saveDbInterval="10"
         rtuLogDir="rtuLogs/"
         rtuLogFileMaxSize="100000"
         rtuLogFileMaxCount="2"
         monitorInterval="2"
         saveDbInterval="10"
   />
@@ -126,10 +128,10 @@
    queueMaxSize: 缓存队列节点数最大数量
     -->
   <core
      sleepBigBusy="100"
      sleepSmallBusy="500"
      queueWarnSize="100000"
      queueMaxSize="300000"
         sleepBigBusy="100"
         sleepSmallBusy="500"
         queueWarnSize="100000"
         queueMaxSize="300000"
   />
   <!--