Network Intercommunication allows data to be exchanged between Miniservers that are connected to a network via their Ethernet interface but are programmed independently of each other.
Digital values, analogue values and text can be sent, with optional encrypted transmission.
Table of Contents
|Local ID||ID with which the own Miniserver can be uniquely identified by other Remote Systems.
Maximum length: 8 characters
|Port||UDP port on which packets are received. This port must also be set in the properties of the Remote System on the sending Miniserver.||61263|
Generally, each Miniserver can act as a sender and receiver. The following examples show the necessary steps. An encrypted analogue value is sent from Miniserver A to Miniserver B.
First, click on Network Intercommunication in the Periphery tree of Loxone Config, you can find it under Network Periphery.
Then assign an Own ID to each Miniserver that will use Intercommunication. Every member will be identified by it’s ID.
In the following example we will use the ID MS_A for our Miniserver:
Create Remote System
Next, select Create Remote System from the menu bar.
Enter the ID of the Remote System you want to send to or receive from.
To accept packets from or send packets to all Intercommunication members, use '*' as the ID of the Remote System, and specify a broadcast address.
In the following example, we want to send data only to a specific Remote System, in this case the Miniserver with the ID MS_B, so we specify its IP address in the network address field:
Activate Use encryption and set a secure password to prevent other intercommunication members from intercepting or manipulating data.
For encrypted communication, the same password must be entered at both the sending and the receiving Remote System.
A link between two or more Remote Systems can also be referred to as a channel.
If several channels are created with the same receivers or senders, a different password is required for each channel.
MS_A sends only to MS_B
MS_C receives only from MS_D
These are two separate channels, so the same password can be used on both channels.
MS_A sends to MS_B
MS_A sends to all (*)
In this case there are two channels, but with the same sender.
Therefore a different password must be used for the different channels.
However, the passwords used for Remote Systems linked via the same channel must still be identical.
Sending a Value
To send a value, now select Add output. This creates an actuator that can then be used in programming.
To be able to identify the outgoing packet, select a unique Packet ID.
By setting a Type, you define whether it is a digital value, analogue value or text.
Finally, save the program to the Miniserver, the sent value is now visible in the UDP Monitor.
In the following example we send a temperature value with the Packet ID Temp1 from Miniserver MS_A to Miniserver MS_B:
Receiving a Value
We now switch to another Miniserver and also assign a Own ID for Network Intercommunication, that is different from the other members.
Again, we need to first create a Remote System with the ID MS_A, as this is the Remote System that we want to receive values from in our example.
Since we enabled encryption on the sender, we will do the same here and also enter the same password.
When using encryption, the address of the Sender is also required.
If encryption is not used, the address field on the receiving Miniserver can be left blank:
Next, we select Add Input. which creates a sensor.
For identification we use the Packet ID Temp1, which we defined earlier on the sending Miniserver.
For Data type we again select Analog, since it is a simple analogue value.
After the program is saved in the Miniserver, the incoming packets are visible in the UDP monitor. The input can now be used in programming:
Alternatively, incoming packets can also be learned without having to enter the settings manually. To do this, click the Search for incoming packets button in the menu bar.
A window will open and incoming packets will be displayed on the left. Select a packet, and add it to the programming as an input using the + button:
For encrypted packets, you will be prompted to enter the password. After saving to the Miniserver, the input can be used.