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.

SpaceLynk delay
#1
We are having some problems integrating an IR/RF controller with Spacelynk. The device works with the scripts we've found  at KNX Groep BV forum and already used in other projects to send IR signals (for air conditioning the delay was not noticed, but for a curtain, let's say that the client is not happy at all). We are using either:


function tcpsend(message)
 host, port = "192.168.126.56", 4998 --IP adres en poort
 socket = require('socket')
 tcp = assert(socket.tcp())
 tcp:connect(host, port);
 tcpConfusedend(message);
  while true do
    s, status, partial = tcp:receive()
    print(s or partial)
    if status == "closed" then break end
  end
 tcp:close()
end

and

-- TCP Send
function tcpbose(message)
 host, port = "192.168.0.101", 4999
  socket = require("socket")
  client = socket.tcp()
  clientConfusedettimeout(1)
  client:connect(host, port)
  clientConfusedend(message)
  client:receive()
  client:close()
end

The device in question can integrate Somfy RF courtain commands and IR as well. But we are facing a huge delay between pressing a push button and having the courtain moving (arround 10 seconds).
We are using event based scripts for that. By logs we've seen that the KNX telegram is quickly received by Spacelynk and the delay happens between the reception of the telegram and the script initialization (we´ve noticed by checking object timestamp and log events written on the first line of the script and another before the send message command). The 10 seconds happen between the reception of the telegram and the beginning of the script. (Socket connection TCP function and etc happen immediatelly).
The benchwork test had pratically only this funcion running and no KNX bus traffic apart from the blinds command telegram. The delay always happens. 
Can anyone help me out?
 
Thanks in advance.
Reply


Messages In This Thread
SpaceLynk delay - by weblima - 17.03.2020, 22:40
RE: SpaceLynk delay - by admin - 18.03.2020, 15:32
RE: SpaceLynk delay - by weblima - 24.03.2020, 01:37
RE: SpaceLynk delay - by admin - 24.03.2020, 07:09
RE: SpaceLynk delay - by weblima - 24.03.2020, 19:01
RE: SpaceLynk delay - by admin - 25.03.2020, 07:16

Forum Jump: