Forward panel and device data
Pass the data of panels, building systems and IoT devices on to evalink talos: serial text, Modbus writes and MQTT messages.
Switch each integration on first, under Settings › Integrations, with access level 4. See Switch an integration on or off. Its own page then needs access level 3. Changes apply when you click Save.
| Integration | Takes data from | Connection |
|---|---|---|
| Serial Forwarding | A panel or device that writes text to its serial port | Serial port (RS-232, RS-422, RS-485) |
| Modbus | A building management system, SCADA or PLC (Modbus master) | Network (TCP) or serial port (RTU) |
| MQTT | MQTT devices; the TNA is the broker | Network |
Serial Forwarding, Modbus over the serial port, ESPA 4.4.4 and Esmi Info Protocol share the TNA's serial port; only one of them can use it. On the ipTNA4i, use a USB serial adapter; TNA Connect has an RS-232 port on the board. For adapters and cables, see Optional modules.
Forward serial data
Serial Forwarding splits what a device writes to the serial port into messages and sends each one to evalink talos. No separate serial-to-IP converter is needed. Go to Integrations › Serial Forwarding › Configuration.
- Set Baud rate, Data bits, Parity and Stop bits to match the device. Defaults: 9600, 8, None, 1.
- Under Separator sequence, build the characters that end a message: pick a control character and click Add, for each character. The default is CR LF. Clear starts over.
- Optionally set:
- Backup separator sequence: used when the separator doesn't come within 1000 characters;
- Filter regex: messages that match aren't forwarded;
- Include separator (on by default) and Send empty messages.
- Click Save.
- On the Live view tab, check that data arrives.
A message is at most 1000 characters; longer data is cut. Live view shows the raw incoming data; Download log saves up to 1 MB of it, and Clear queue discards messages still waiting to be sent.
In evalink talos, each message arrives as an alarm with the text. To turn panel text into alarm types, use a message converter or a workflow. See TNA receiver settings.
Take Modbus writes from a building system
With Modbus, the TNA is a Modbus slave. A master writes coils or registers to it, and the TNA forwards each write to evalink talos. Go to Integrations › Modbus › Configuration.
- In Connection type, select Ethernet (Modbus TCP) or Serial port (Modbus RTU).
- For TCP, set the Port: default 502, 10–32767. For RTU, set the Slave address (default 3, 1–247) and the serial settings (Baud rate default 19200).
- Click Save. The status shows Active.
- Set up the master to write to the TNA's IP address and port, or to its slave address.
With TCP, Connected clients lists the masters that are connected. Saving restarts the Modbus server; the masters must reconnect.
The TNA forwards write requests only (write single or multiple coils and registers, write file record, mask write register); read requests are answered but not forwarded. In evalink talos, each write arrives with code DATA and the header tna-module = modbus. The payload is JSON, with all values as lowercase hexadecimal. A request of more than about 500 coils is dropped.
Connect MQTT devices
With MQTT, the TNA runs an MQTT broker. Devices publish messages to it to send alarms to evalink talos, and receive messages, connection states, input states and output commands from it. Go to Integrations › MQTT › Configuration.
- Set your own Username and Password: 1–64 letters, digits or underscores. Devices must always log in.
- Set the Port: default 1883, 1024–32767.
- Choose the Mode: Raw (default) or Sitasys. See below.
- Check the topics: Receive topic
sitasys/receive, Send topicsitasys/send, State topicsitasys/state. - Optionally switch on Publish sensor states, Actor control and Debounce connection state.
- Click Save. The broker restarts.
Devices publish to the receive topic as <ID>[<payload>], at most 516 characters. The TNA answers on the state topic, for example with a positive acknowledge once evalink talos has the message, and publishes its connection state there. Connected clients lists the devices that are connected.
What arrives in evalink talos depends on the mode:
- Raw: code
DATA, with the payload as sent. - Sitasys: a SIA alarm, when the payload has the form
#<account>|<event>, for example1234[#009790|NBA01](burglary, zone 01). Other payloads arrive asDATA.
All MQTT alarms carry the header tna-module = mqtt.
Inputs, power and outputs over MQTT
With Publish sensor states, the TNA publishes its input states on sitasys/tna/inputs/<n> and its power voltages on sitasys/tna/powersensors/<n>. With Actor control, a device can switch an output by publishing {"state":"closed"} or {"state":"open"} to sitasys/tna/outputs/<n>; the output must have the role Remote Control.
Encrypt MQTT. On the Encryption tab, either click Generate new certificates (enter Days, 1–360, and a password, then download the client bundle for your devices) or Import certificates (a .zip with ca.crt, server.crt and server.key, or a .pfx, up to 2 MB). Then switch Encryption on. The broker restarts and the devices must reconnect. Certificates can be changed only while Encryption is off.
To exchange MQTT messages with a Node-RED flow on a TNA Connect V2, see Apps on TNA Connect V2.