SMS commands to devices

AKMa month ago

Can Traccar send SMS commands to devices (like regular SMS messages)? If yes, how can I set it up and use it?

Anton Tananaeva month ago

Yes, it can. You need to enable SMS first. Then you can tick the "text" checkbox on the command screen.

AKMa month ago

After enable SMS, how can I communicate between device and platform for messaging, from save commands or where. Now I can only send for Account number. I want to send to device.

Anton Tananaeva month ago

In the device popup there's the send command button. That's what you should use.

AKMa month ago

In my device command function, I cannot use the saved command I added. It only shows ‘No option’ and displays an error (as shown in the figure). How can I fix this?
Screenshot 2025-09-29 120304.png

AKMa month ago

Screenshot 2025-09-29 130425.png

Anton Tananaeva month ago

This probably means your device hasn't sent any data yet.

AKMa month ago

So, how can I fix this for real time work with save command and selected GPS device. Can you advise me?

Anton Tananaeva month ago

You have to have your device connected first before you can send any commands.

AKMa month ago

I already set save commands in device's connection and still no option. That device really worked on traccar platform for real time. What should I do next?

AKMa month ago

There is some configuration setting need to change in my platform. What would be that?

Anton Tananaev25 days ago

What command did you save? What protocol are you using?

AKM25 days ago

I saved an SMS-type command and on the platform, I am using HttpSmsClient.
For the device, I am using the TCP protocol.
Screenshot 2025-10-02 102226.png
Screenshot 2025-10-02 102306.png
Screenshot 2025-10-02 102334.png

Anton Tananaev25 days ago

That is completely wrong. You should be using a custom command, not "Send SMS" command type.

AKM18 days ago

Dear Anton,
I would like to know if it’s possible to configure Traccar to automatically send a command when a device has been offline for a specific period of time.

For example, if a device goes offline for about one hour, I want the platform to automatically send a domain and port command with SMS type for custom command and perform the device to active again in platform.
If it can, please guide me how can I perform for real time working with devices.