SMS commands to devices

AKM last year

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

Anton Tananaev last year

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

AKM last year

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 Tananaev last year

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

AKM last year

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

AKM last year

Screenshot 2025-09-29 130425.png

Anton Tananaev last year

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

AKM last year

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

Anton Tananaev last year

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

AKM last year

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?

AKM last year

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

Anton Tananaev last year

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

AKM last year

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 Tananaev last year

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

AKM last year

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.