This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

bacnet client app
#38
See if you can lower the polling interval. The load is caused by the Scada system constantly polling the Modbus values.

Or you can add a short delay before each request:
Code:
local function handler(sock)
  copas.setErrorHandler(log)

  sock = copas.wrap(sock)
  sock:settimeout(60)

  while true do
    copas.sleep(0.5) -- extra delay

    local res, err = mb.tcphandler(sock)
    if not res then
      break
    end
  end

  sock:close()
end
Reply


Messages In This Thread
bacnet client app - by domotiqa - 12.01.2024, 09:31
RE: bacnet client app - by Daniel - 12.01.2024, 11:50
RE: bacnet client app - by domotiqa - 15.01.2024, 05:52
RE: bacnet client app - by domotiqa - 06.03.2024, 08:40
RE: bacnet client app - by admin - 06.03.2024, 08:54
RE: bacnet client app - by domotiqa - 06.03.2024, 09:22
RE: bacnet client app - by Daniel - 06.03.2024, 11:23
RE: bacnet client app - by domotiqa - 06.03.2024, 15:30
RE: bacnet client app - by Daniel - 06.03.2024, 15:32
RE: bacnet client app - by domotiqa - 06.03.2024, 16:26
RE: bacnet client app - by Daniel - 07.03.2024, 08:54
RE: bacnet client app - by domotiqa - 07.03.2024, 15:37
RE: bacnet client app - by Daniel - 07.03.2024, 15:39
RE: bacnet client app - by domotiqa - 07.03.2024, 15:49
RE: bacnet client app - by admin - 07.03.2024, 15:55
RE: bacnet client app - by domotiqa - 07.03.2024, 16:11
RE: bacnet client app - by admin - 07.03.2024, 16:15
RE: bacnet client app - by domotiqa - 07.03.2024, 16:48
RE: bacnet client app - by Daniel - 07.03.2024, 17:08
RE: bacnet client app - by domotiqa - 11.03.2024, 06:31
RE: bacnet client app - by admin - 11.03.2024, 06:46
RE: bacnet client app - by domotiqa - 11.03.2024, 07:01
RE: bacnet client app - by admin - 11.03.2024, 07:03
RE: bacnet client app - by domotiqa - 11.03.2024, 14:51
RE: bacnet client app - by djaval - 27.08.2024, 06:49
RE: bacnet client app - by Daniel - 27.08.2024, 07:26
RE: bacnet client app - by djaval - 27.08.2024, 07:43
RE: bacnet client app - by Daniel - 27.08.2024, 08:06
RE: bacnet client app - by djaval - 27.08.2024, 08:13
RE: bacnet client app - by Daniel - 27.08.2024, 08:16
RE: bacnet client app - by djaval - 27.08.2024, 08:22
RE: bacnet client app - by Daniel - 27.08.2024, 08:27
RE: bacnet client app - by djaval - 27.08.2024, 08:42
RE: bacnet client app - by Daniel - 27.08.2024, 08:56
RE: bacnet client app - by djaval - 27.08.2024, 09:20
RE: bacnet client app - by Daniel - 27.08.2024, 09:34
RE: bacnet client app - by djaval - 27.08.2024, 10:01
RE: bacnet client app - by admin - 27.08.2024, 10:07
RE: bacnet client app - by djaval - 27.08.2024, 10:35

Forum Jump: