Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Although separate Separate Vertex clusters are two different lighting systems, we still can but you are still able to send information between their Node-REDsthem. For example, we can trigger the lighting on groups that are turning on a luminaire group that is placed in a different cluster than the wall panel is. We or a sensor. For this purpose, we use the TCP/IP protocol and dedicated Node-RED nodes (TCP) for this purpose.

Prerequisites

  • Vertex clusters have to must be physically within the same LAN network

  • Vertex controllers still must be in the same network e.g. Vertex IP’s IPs should be 10.0.6.XX.
    Example: We are sending You want to send a command from Vertex 2 which is in cluster 1 to Vertex 3 which is in Cluster 2. You should set IPs e.g. 10.0.6.50 for Vertex 2 and 10.0.6.85 for Vertex 3.

...

Configure the TCP connection - sending messages

  1. Open the Node-RED for the Vertex that will be sending data to another cluster.

  2. In the Node Palette, find the TCP out node.

    Image Modified

  3. Enter the node and select Type as Connect to and select port e.g. 4700. As a host, enter the Vertex IP

...

  1. which receives information.

    Image Modified
Info

Ports in the range 1024-49151 are called user or registered portsand you can check the list of them to . Check them and make sure that the TCP port is vacant and ready to use. We use 4700 because no other application uses that port.

4. Use Connect two inject nodes to the tcp out node for sending two different messages to the other cluster.

...

Info

You can send any various messages via TCP eg. from the dali2devs common node, dashboard nodes like slider, light scheduler etc.

Configure the TCP connection - receiving messages

  1. In the Node Palette, find the TCP in node.

  2. Enter the node and select Type as Listen on port 4700. Then,

...

  1. select Output as a stream of String payload(s).

    Image Modified

3. Add the debug node and connect it with the output of tcp in node. By doing so, you will see the messages flowing from the other cluster.

...

4. Add vertex action and vertex cluster nodes. Configure vertex action e.g. set Direct value mode and action as Set brightness (scale percent).

...

Test the connection

  1. Send payload to the other cluster by clicking the button in the inject node. Then notice the messages caught by the debug node.

    Image Modified

2. Observe the luminaire group which you wanted to trigger. Does the light turn on/off?
3. Try to send messages from other nodes e.g. dali2devs common.

...

.

...