TRB255 - Data reading using RS232 and send these data by SMS

Hello
I would like to read data in RS232 (from my own controller) and to send them by SMS.
Could you let me know the best way.
Is the TRB255 the master to ask for data from my controller or do I have to send them to it from my controller ?
Do you have app note similar to this need ?
Thanks.

Hello.
Could you please tell me what kind of data you would like to read and transmit? I have selected several options that may be relevant to your question?

Teltonika’s Modem Control feature allows users to manage and monitor the cellular modem within their Teltonika networking devices (such as routers). This feature is essential for controlling various aspects of the modem’s behavior. Link to TRB255 Modem control: TRB255 Configuration Examples - Teltonika Networks Wiki

Teltonika’s Serial over IP feature enables the transmission of serial data (typically from devices using RS232, RS485, or similar serial communication protocols) over an IP network.
Link to TRB255 Serial over IP: TRB255 Serial Utilities - Teltonika Networks Wiki

Teltonika’s “Modbus SMS” feature is designed to integrate Modbus communication with SMS (Short Message Service) functionality, enabling the monitoring and control of Modbus devices via text messages.
Link to Modbus TCP Server Send SMS example: Modbus TCP Server Send SMS example - Teltonika Networks Wiki
Link to TRB255 Monitoring via Modbus: TRB255 Monitoring via Modbus - Teltonika Networks Wiki

Hello. Thanks for this first answer. To be more precise
a) data are in my electronic board which is able to send/receive UART / RS232 messages
b) protocole is defined by myself so if some constraint from the Teltonika device, this is not an issue.
c) two options for me : first, my electronic board send a message to the TRB255 which makes that the TRB sends an SMS with this message included or second, TRB asks for the data I have selected (in the TRB config, I assume) and send them by SMS.

What would you suggest ?

Thanks in advance

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.

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.

This topic was automatically closed after 15 days. New replies are no longer allowed.