Commands

Most GPS devices support commands. They can be used for device configuration, changing state or requesting information. Commands can be sent via the same network connection used to upload data from the device to the server or via SMS. Many devices support both options.

Traccar command support varies by protocol, but all of the protocols should support at least the custom command. The custom command must be in HEX format for most binary protocols and in text for text-based protocols.

SMS needs to be enabled on the server to send commands via SMS, and the device has to have the phone field set correctly. See SMS API configuration for more information on how to enable SMS.

Command results are supported for a limited number of protocols. If received and decoded, a command result event will be generated.

In case a command is sent via the network connection and the device is not online, it will be queued. All commands from the device queue will be sent as soon as the device becomes online. It is not recommended to put a lot of commands in the queue because some devices ignore the next command until they handle the previous one.

By default all regular users can send commands. It is possible to restrict users from sending arbitrary commands using the limit commands setting in the account permissions. Such a user can only send pre-defined saved commands linked to their account.

Saved Commands

Often users need to send the same set of commands frequently. Saved commands are a way to store a command with parameters to be used later. It is most useful for the custom command.

A user can create a saved command with desired parameters from the corresponding settings menu:

Then link it to a device or a group of devices:

To send the command, select it from the list on the send command screen: