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.

Lua script connecting to own KNXnet/IP tunnelling server — status 8
#1
I am trying to send individual address KNX property write/read frames from a Lua event script on LM5 (IP Routing mode, KNX address 2.1.5). The script opens a UDP socket and sends a CONNECT_REQUEST . The CONNECT_RESPONSE always returns status 0x08 (which I assume is no more connections). This happens even after a reboot with no other clients connected. ETS connects successfully using NAT mode. Is it possible for a Lua script to connect to the LM's own tunnelling server, and if so what is the correct approach?
Reply
#2
What exactly do you want to achieve?
Reply
#3
I need to send a KNX individual address property write frame from a Lua script to a DALI gateway at physical address 2.2.4. Specifically I need to write to object index 6, property 0xDA to trigger a post-installation scan, and then poll the same property by reading it back to check when the scan is complete. I also need to write to the same property with different data to flash individual DALI ballasts for identification purposes.
The grp.write API only supports group addresses so I am trying to use a UDP socket to connect to the LM's own KNXnet/IP tunnelling server on port 3671 and send raw cEMI frames. However the CONNECT_RESPONSE always returns status 0x08 regardless of whether any other clients are connected.
Is there a supported way to send individual address property write/read frames from Lua on the LM itself?
Reply
#4
There's no Lua function to handle this. Can you post your code?
Reply


Forum Jump: