Hello,
The easiest way to achieve this would be if your electronics board supports the Modbus protocol, or if this functionality can be added. In that case, you could configure it as a Modbus Server (Slave), and the TRB255 Gateway would act as a Modbus Client (Master). You could then make use of Modbus Serial Client Alerts for monitoring purposes.
- Modbus Serial Client: Modbus Serial Client Documentation
- Alerts: Modbus Client Alarms
However, if adding Modbus support on your end is not feasible, you may need to create a custom script to achieve this functionality. Please note that custom scripts are beyond the scope of the technical assistance that we provide.
For additional resources, that you may be helpful for your script, please refer to the following links:
The basic idea of the script is as follows: run a startup loop or script that listens to the output of /dev/RS232. Once data is received, use the gsmctl utility to send an SMS.
Note, cat /dev/RS232 will be periodically sending giberish, we won’t be able to determine whether that is a message initiated by the electronics board.