![]() |
|
Lua script connecting to own KNXnet/IP tunnelling server — status 8 - Printable Version +- LogicMachine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: Lua script connecting to own KNXnet/IP tunnelling server — status 8 (/showthread.php?tid=6384) |
Lua script connecting to own KNXnet/IP tunnelling server — status 8 - Intelect - 08.04.2026 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? RE: Lua script connecting to own KNXnet/IP tunnelling server — status 8 - admin - 08.04.2026 What exactly do you want to achieve? RE: Lua script connecting to own KNXnet/IP tunnelling server — status 8 - Intelect - 08.04.2026 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? RE: Lua script connecting to own KNXnet/IP tunnelling server — status 8 - admin - 09.04.2026 There's no Lua function to handle this. Can you post your code? |