changed trip time warning to 750ms

This commit is contained in:
Mikayla Fischler 2023-02-26 14:49:16 -05:00
parent 2b8f71fc43
commit 523d478739
11 changed files with 20 additions and 20 deletions

View File

@ -610,8 +610,8 @@ function coordinator.comms(version, modem, sv_port, sv_listen, api_listen, range
local timestamp = packet.data[1]
local trip_time = util.time() - timestamp
if trip_time > 500 then
log.warning("coord KEEP_ALIVE trip time > 500ms (" .. trip_time .. "ms)")
if trip_time > 750 then
log.warning("coord KEEP_ALIVE trip time > 750ms (" .. trip_time .. "ms)")
end
-- log.debug("coord RTT = " .. trip_time .. "ms")

View File

@ -19,7 +19,7 @@ local iocontrol = require("coordinator.iocontrol")
local renderer = require("coordinator.renderer")
local sounder = require("coordinator.sounder")
local COORDINATOR_VERSION = "v0.11.5"
local COORDINATOR_VERSION = "v0.11.6"
local print = util.print
local println = util.println

View File

@ -2,10 +2,10 @@
"versions": {
"bootloader": "0.2",
"comms": "1.4.0",
"reactor-plc": "v0.12.1",
"rtu": "v0.12.2",
"supervisor": "v0.13.3",
"coordinator": "v0.11.5",
"reactor-plc": "v0.12.2",
"rtu": "v0.12.3",
"supervisor": "v0.13.4",
"coordinator": "v0.11.6",
"pocket": "alpha-v0.0.0"
},
"files": {

View File

@ -928,8 +928,8 @@ function plc.comms(id, version, modem, local_port, server_port, range, reactor,
local timestamp = packet.data[1]
local trip_time = util.time() - timestamp
if trip_time > 500 then
log.warning("PLC KEEP_ALIVE trip time > 500ms (" .. trip_time .. "ms)")
if trip_time > 750 then
log.warning("PLC KEEP_ALIVE trip time > 750ms (" .. trip_time .. "ms)")
end
-- log.debug("RPLC RTT = " .. trip_time .. "ms")

View File

@ -14,7 +14,7 @@ local config = require("reactor-plc.config")
local plc = require("reactor-plc.plc")
local threads = require("reactor-plc.threads")
local R_PLC_VERSION = "v0.12.1"
local R_PLC_VERSION = "v0.12.2"
local print = util.print
local println = util.println

View File

@ -429,8 +429,8 @@ function rtu.comms(version, modem, local_port, server_port, range, conn_watchdog
local timestamp = packet.data[1]
local trip_time = util.time() - timestamp
if trip_time > 500 then
log.warning("RTU KEEP_ALIVE trip time > 500ms (" .. trip_time .. "ms)")
if trip_time > 750 then
log.warning("RTU KEEP_ALIVE trip time > 750ms (" .. trip_time .. "ms)")
end
-- log.debug("RTU RTT = " .. trip_time .. "ms")

View File

@ -25,7 +25,7 @@ local sna_rtu = require("rtu.dev.sna_rtu")
local sps_rtu = require("rtu.dev.sps_rtu")
local turbinev_rtu = require("rtu.dev.turbinev_rtu")
local RTU_VERSION = "v0.12.2"
local RTU_VERSION = "v0.12.3"
local RTU_UNIT_TYPE = types.RTU_UNIT_TYPE

View File

@ -202,8 +202,8 @@ function coordinator.new_session(id, in_queue, out_queue, timeout, facility)
local srv_now = util.time()
self.last_rtt = srv_now - srv_start
if self.last_rtt > 500 then
log.warning(log_header .. "COORD KEEP_ALIVE round trip time > 500ms (" .. self.last_rtt .. "ms)")
if self.last_rtt > 750 then
log.warning(log_header .. "COORD KEEP_ALIVE round trip time > 750ms (" .. self.last_rtt .. "ms)")
end
-- log.debug(log_header .. "COORD RTT = " .. self.last_rtt .. "ms")

View File

@ -480,8 +480,8 @@ function plc.new_session(id, reactor_id, in_queue, out_queue, timeout)
local srv_now = util.time()
self.last_rtt = srv_now - srv_start
if self.last_rtt > 500 then
log.warning(log_header .. "PLC KEEP_ALIVE round trip time > 500ms (" .. self.last_rtt .. "ms)")
if self.last_rtt > 750 then
log.warning(log_header .. "PLC KEEP_ALIVE round trip time > 750ms (" .. self.last_rtt .. "ms)")
end
-- log.debug(log_header .. "PLC RTT = " .. self.last_rtt .. "ms")

View File

@ -246,8 +246,8 @@ function rtu.new_session(id, in_queue, out_queue, timeout, advertisement, facili
local srv_now = util.time()
self.last_rtt = srv_now - srv_start
if self.last_rtt > 500 then
log.warning(log_header .. "RTU KEEP_ALIVE round trip time > 500ms (" .. self.last_rtt .. "ms)")
if self.last_rtt > 750 then
log.warning(log_header .. "RTU KEEP_ALIVE round trip time > 750ms (" .. self.last_rtt .. "ms)")
end
-- log.debug(log_header .. "RTU RTT = " .. self.last_rtt .. "ms")

View File

@ -14,7 +14,7 @@ local svsessions = require("supervisor.session.svsessions")
local config = require("supervisor.config")
local supervisor = require("supervisor.supervisor")
local SUPERVISOR_VERSION = "v0.13.3"
local SUPERVISOR_VERSION = "v0.13.4"
local print = util.print
local println = util.println