Could we send analog value in SMS content?

Hi everyone,
I’m using a TRB140 device as a Modbus TCP Client to send SMS alerts. I’d like to include analog values in the SMS content. For instance, I’ve set up a temperature alarm, and when the temperature exceeds the setpoint, I want the SMS to include the actual temperature reading at that moment.
Is it possible to configure this?

Hello,

Are you reading the temperature data from an external modbus sensor, or directly from the TRB device itself?

While the modbus alarms functionality can send an SMS alert when a configured temperature threshold is exceeded, it unfortunately cannot include the live temperature value in the alert by default.

To achieve this, custom scripting would be needed. As this is beyond my scope, I can only provide you with suggestions/insights on how the setup could look. The script should:

  1. Read the temperature register from the Modbus server using a command like ubus call. Discussed relevant threads:
  1. Save the output in a variable.
  2. Compare the value against your threshold.
  3. If the condition is met, send an SMS message with gsmctl, embedding the actual temperature value.

You can find more information and guidance for creating custom scripts in our wiki article here:

Best regards,

1 Like

Yes, we retrieve temperature data from an external Modbus sensor (connected via DDC) and intend to include this value in the SMS content.
From what I understand, the process is: once the condition is met, an SMS should be sent using “gsmctl”, with the actual temperature value embedded in the message. To achieve this, we insert the syntax “gsmctl” into the SMS message after completing the configuration script via SSH, correct?
image

Hello,

Correct, for sending SMS messages, the gsmctl -S -s "<phone_number> $register_value" syntax can be utilized.

Let me know if you have any further questions.

Best regards,

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