Summary
This article explains how to configure TRBOnet Data Sources to receive text data from external devices (fire alarm panels, PLC controllers, RF readers, sensors, etc.) over RS-232 (COM port) or TCP/IP. It includes step-by-step examples for both connection types and shows how to use Event/Alarm management rules to process incoming data.
Go to:
COM Ports
Allows configuring incoming data connection over RS-232.
COM ports option example
1. In this example the device is connected as COM2 with default settings.
2. Parameters "Protocol", "Text Encoding" and "Message delimiter" should be configured according to the incoming message settings. In this example "ASCII" with delimiter LINE FEED 0x0A(\n) is used.
3. In , tab, add a new rule. Choose as , choose configured in (example: COM2). If the "Regular expression" field is empty, any incoming data triggers the rule. If you want to configure a specific expression to trigger the rule or use variables, fill in the field accordingly.
https://en.wikipedia.org/wiki/Regular_expression
https://regex101.com/
4. In tab, configure what output the incoming data should have. In this example, the incoming data will be shown as a Dispatcher notification.
5. After rule activation, if the device sent text data "Hello World" it will trigger the rule and display a Dispatcher notification.
TCP/IP
Allows configuring incoming data connection over TCP/IP.
TCP/IP option example
1. In this example the device is connected over in "Client" mode (App connects to TRBOnet) over port 11002. Setting "Ignore the following data" allows ignoring specific data from the incoming message.
2. In , tab, add a new rule. Choose as , choose configured in (example: TCP/IP). If the "Regular expression" field is empty, any incoming data triggers the rule. If you want to configure a specific expression to trigger the rule or use variables, fill in the field accordingly.
https://en.wikipedia.org/wiki/Regular_expression
https://regex101.com/
3. In tab, configure what output the incoming data should have. In this example, the incoming data will be shown as a Dispatcher notification.
4. After rule activation, if the device sent text data "Hello World" it will trigger the rule and display a Dispatcher notification.
Tools for Emulation
In the examples above, the following software was used to emulate COM and TCP/IP data: