17.03.2020, 22:40
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);
tcpend(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()
clientettimeout(1)
client:connect(host, port)
clientend(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.
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);
tcpend(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()
clientettimeout(1)
client:connect(host, port)
clientend(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.