SMS commands to devices

AKM 3 months ago

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

Anton Tananaev 3 months ago

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

AKM 3 months 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 Tananaev 3 months ago

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

AKM 3 months 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

AKM 3 months ago

Screenshot 2025-09-29 130425.png

Anton Tananaev 3 months ago

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

AKM 3 months ago

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

Anton Tananaev 3 months ago

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

AKM 3 months 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?

AKM 3 months ago

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

Anton Tananaev 3 months ago

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

AKM 3 months 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 Tananaev 3 months ago

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

AKM 3 months 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.