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?
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: