TRB140 weekly SMS

Hello,

We want to configure the Teltonika TRB140 LTE gateway to send a scheduled SMS once a week to a few users. Our goal is to verify that the device is operational. We noticed that the device supports scheduled SMS functionality, but we need guidance on how to set it up for a weekly message.

Could you provide instructions on configuring this feature?

Thank you!

Thank you for reaching out.

Before providing detailed instructions, could you confirm which firmware version is currently installed on your TRB140? In newer firmware versions, the scheduled SMS functionality is not directly supported, however there alternative methods to achieve the same result using Crontabs or a custom script.

Setting Up Scheduled SMS via Crontab

The simplest way to automate SMS sending is by using Crontabs. You can generate a crontab job to execute at your desired schedule using this online tool: Crontab Generator.

The command to send an SMS is:

gsmctl -S -s "+XXXXXXXXXXX Text"

(Replace +XXXXXXXXXXX with the recipient’s phone number and Text with your message.)

For reference, here is a crontab job example that sends an SMS every Sunday at 1 AM, starting from the first day of the month:

image

Adding the Job to Crontab

  1. Access the router’s CLI (Command Line Interface).
  2. Open the crontab file using the following command:
crontab -e
  1. Press “I” on your keyboard to enable editing mode.
  2. Paste your generated crontab job:

image

  1. Save and exit by pressing ESC, then typing :wq and pressing Enter.

This should configure your TRB140 to send scheduled SMS messages as required.

Let me know if you need further assistance.

Best regards,

firmware version is: TRB1_R_00.07.11.
Thank you for the quick reply, we will try out the crontab way!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.