Advice on NXB-KNX IP communication
MarkCo
Posts: 18
Hi guys,
So I have a NXB-KNX on system 1(server) and I want system 2 (client) to be able to communicate with system 1 by sending a button_event to open up a light.
How can I do that?
Regards all!
So I have a NXB-KNX on system 1(server) and I want system 2 (client) to be able to communicate with system 1 by sending a button_event to open up a light.
How can I do that?
Regards all!
0
Comments
You see, NXB-KNX is communicating via IP.
What I have is this setup:
System 1:
1xNXB-KNX connected to the System 1 master
1xTouchPanel can control light 1 on KNX system
System 2:
1xSystem 2 master
1xTouchPanel should be able to turn on Light 2 on the KNX System.
How would the IP communication be setup?
I did the following:
System 1:
DEFINE_CONSTANT
system1 = 0:3:0
port = 8000
DEFINE_START
IP_SERVER_OPEN (system1.port, port, IP_TCP)
System 2:
DEFINE_DEVICE
dvNXB = 13001:1:1 // on system 1
dvTP2 = 10001:1:2 //on system 2
DEFINE_CONSTANT
system2 = 0:4:0
serverip[] = {192.168.40.55}
port = 8000
DEFINE_START
IP_CLIENT_OPEN (system2.port, serverip, port, IP_TCP)
button_event[dvTP2, 1]
{
push:
{
switch(button.input.channel)
{
case 1: { KNXSet(dvNXB, 3, 1) }
case 2: { KNXSet(dvNXB, 3, 0) }
}
}
}
but the problem is that its not even working.
System 1:
System 2:
That's all you have to do. The dvNXB device definition within System 2 is pointing to System 1. Therefore, you can send commands, channels, etc. Just as you would from System 1.