Installation · Free builder

SMS command and APN builder for GPS trackers

Build the text messages that set a tracker's APN, server, report interval and time zone. Check the length and the characters before you send, then copy the matching modem AT lines. Nothing is sent from this page.

Message format

Use the style printed in your device manual. Space-separated: login, password, command, value. Comma and #: COMMAND,value# with no login.

SIM network

From your SIM contract. Letters, digits, hyphen and dot, up to 100 characters.

Only if your SIM contract gives one.

Only if your SIM contract gives one.

Server

An IPv4 address or a domain name from your platform.

The port your platform listens on for this protocol.

TCP keeps a connection open. UDP sends single datagrams.

Reporting and clock
seconds

Seconds between position reports while the vehicle moves. See the SIM data calculator for the cost of short intervals.

seconds

Seconds between reports while parked.

h from UTC

Hours from UTC, for example 3 or 5.5. Use a minus sign for the west.

Admin number

Digits with an optional + at the start. Leave empty to leave this step out of the sheet.

Device login

Leave login and password empty if the device needs none. The message then starts with two spaces.

Letters, digits and symbols without spaces, up to 20 characters.

Example values. Replace them with the details of your SIM and your platform.

Show how the length is counted
Length (GSM 7-bit) = 1 per character + 1 extra for each of ^ { } \ [ ~ ] | and the euro sign One SMS if length <= 160, otherwise parts = ceil(length / 153) Any character outside the GSM alphabet: UCS-2, 70 per SMS, parts = ceil(length / 67)

The count is of the text only. The headers of the SMS are not part of the 160.

Setup sheetText to copy · nothing is sent

Keep the command sheet for the job

A report with the messages in order, their lengths and the checks after each one. Logins and passwords are left out.

Command sheet

Get the command sheet for this installation

  • The messages of the first setup, in order
  • Length and number of SMS for each message
  • What to check after each message
  • The modem AT lines for the same APN
  • Placeholders in place of every login and password

From your phone to the tracker

Phone1 SendSMS center2 RelaySIM3 ReceiveModem4 ApplyReply SMS
Fig. 1 A text command goes from your phone through the operator to the SIM, and the modem applies it.
  1. Set the APN

    Without a correct APN the tracker can receive texts but cannot open a data session, so it never appears on the platform.

    SIM
  2. Set the server

    Address, port and protocol. They must match the platform you will use.

    Server
  3. Set the report interval

    Moving and parked intervals. Shorter intervals use more SIM data.

    Reporting
  4. Set the time zone

    Hours from UTC for the clock of the device.

    Clock
  5. Ask for the status

    Compare the reply with what you sent. If a value differs, correct one setting at a time.

    Check

What does the SMS command and APN builder do?

Most GPS trackers are set up by text message. You send the device a short command with the APN, the server address, the report interval and the time zone. One wrong character, a missing space or a message that grows past one SMS is enough to leave the unit offline. This builder fills a command pattern with your values, checks every value, counts the SMS length and shows the text to copy. Nothing is sent from the page.

The Setup sheet tab gives the messages of a first setup in order. The One command tab builds a single command, such as a new interval, and lets you type the pattern printed in your manual. The Modem AT lines tab writes the AT commands that set the same APN directly on a cellular module.

Why the text has to be exact

  • The APN decides whether the SIM gets data. A tracker with a wrong APN still receives texts, but it cannot open a data session, so it never shows on the platform.
  • The separators are part of the command. In a space-separated command a space inside a password splits it in two. In a comma format a comma does the same.
  • The SMS alphabet is small. One character outside it, such as an Arabic letter, cuts the limit from 160 to 70 characters.

Inputs you need

  • The format of your device. It is printed in the manual: space-separated with a login and password, or comma-separated ending with #.
  • The APN and, if the SIM contract gives them, the APN login and password.
  • The server address, port and protocol of the platform that will receive the reports.
  • The intervals and the time zone you want on the unit.
  • The device login and password, if your unit asks for them.

How the messages are built

Each command has a pattern, for example the login, the password, the word apn and the APN value. The builder replaces every placeholder with your value. It checks the value first: an APN may use letters, digits, hyphen and dot, a port is 1 to 65535, a time zone is between -12 and 14. It also refuses a value that contains the separator of the chosen format. Empty optional values leave no extra spaces behind.

Limits the builder checks (standard values)
ItemLimit
One SMS, GSM 7-bit160characters
Each part of a joined SMS, GSM 7-bit153characters
One SMS with any other character (UCS-2)70characters
Each part of a joined SMS, UCS-267characters
APN length100characters at most
Server port1 to 65,535

The GSM alphabet, the characters that count twice and the 70-character UCS-2 limit are in 3GPP TS 23.038. The 140-octet message, which holds 160 GSM 7-bit characters, is in 3GPP TS 23.040. Both read in version 19.0.0 on 3 November 2026. The 153 and 67 characters per joined part, the 100-character APN limit of TS 23.003 and the AT commands of TS 27.007 are still to verify against the official text. The command patterns are typical formats. Replace them with the pattern in your device manual.

The modem lines use the 3GPP commands AT+CGDCONT to define the APN and AT+CGAUTH to set PAP or CHAP login. Some modules use their own command for the same job, so check the AT manual of your module.

Worked example

A device takes the space-separated format. Login u1, password p1 and APN net.example, with no APN login, give the message u1 p1 apn net.example. That is 21 characters, all in the GSM alphabet, so it is one SMS with 139 characters to spare. In the comma format the same APN is APN,net.example#, which is 16 characters.

Now put a backtick in the device password. The backtick is not in the GSM alphabet, so the whole message becomes UCS-2 and the limit is 70 instead of 160. The builder shows the change before you send. For the modem, the same APN with PAP login bob and password x1 becomes AT+CGDCONT=1,"IP","net.example" followed by AT+CGAUTH=1,1,"bob","x1".

Reading your results

  • Ready. The values are accepted and the message fits one SMS in the GSM 7-bit alphabet.
  • More than one SMS. The message is longer than the limit. Shorten a value or confirm that the device reads joined messages.
  • Non-GSM character. A character forces UCS-2. Replace it if the device manual allows.
  • Fix. A value is not accepted. The red note names the field and the rule.

Common mistakes

  • Using the APN of another SIM. Public and M2M plans of the same operator can use different APNs.
  • Losing the leading spaces. With no login and password a space-separated command starts with two spaces. Some apps trim them.
  • Copying through a chat app. Some apps replace straight quotation marks with curly ones, which breaks the AT lines.
  • Sending the next command too soon. Wait for the reply before you send the next message.
  • Changing several settings at once. When the status differs, correct one setting at a time.

Assumptions and limits

The command patterns here are typical formats, not the command list of a Tracom device, and they are editable data in the page configuration. This builder cannot know the firmware on your unit or what a command does on it, so check every command against your device manual. It builds no command that cuts the engine, releases a relay or resets a unit to factory settings. APNs depend on your SIM contract, so operator APNs are not listed. The length counts the text only. Tracom does not send any message: you copy the text and send it from your own phone or platform.

Related Tracom solution

Change settings by text message, without a visit

Tracom devices accept real-time SMS adjustments and over-the-air updates. Use this builder to prepare and check the text. The command list of your own device stays the authority for what each command does. After the first setup, estimate the SIM plan with the tracker SIM data calculator.

  • Real-time SMS adjustments. Change a setting by text message, without a visit.
  • Over-the-air updates. Settings and firmware reach the device without a visit.
  • SCMS portal. Manage device settings for the fleet from one place.
Questions

SMS command and APN questions

Setting up a new batch of trackers? Contact Tracom.

What does this builder produce?

It fills a command pattern with your APN, server, interval and time zone and shows the text to copy. It checks each value, counts the SMS length and writes the AT lines that set the same APN on a modem. It sends nothing.

Should I choose the space-separated or the comma and # format?

Choose the one your device manual prints. A space-separated command looks like login, password, command, value. A comma command looks like COMMAND,value# with no login. If the manual shows another pattern, type it into the One command tab with the placeholders.

Why does my message need more than one SMS?

A single SMS holds 160 characters in the GSM 7-bit alphabet. One character outside it, such as an Arabic letter or a backtick, switches the whole text to UCS-2 and the limit drops to 70. The characters ^ { } \ [ ~ ] | and the euro sign count twice. Joined messages carry 153 or 67 characters per part, and some devices read only the first part.

Where do I find the APN of my SIM?

In your SIM contract or on the operator's plan sheet. APNs for M2M and fleet plans differ by contract and are often private, so this page does not list operator APNs. Type the one your supplier gave you.

Are my logins and passwords stored or sent?

No. They stay in the fields on this page. They are left out of the shared link, the PDF report and the CSV, where placeholders take their place.

Does Tracom publish its device commands here?

Not yet. The patterns are typical formats, not the command list of a Tracom device, and this page builds no command that cuts the engine or resets a unit. Tracom cannot see your SIM contract or the firmware on your unit, so check every command against the manual of your device before you send it.

Set up your trackers

Talk to Tracom about SIM and device setup

Tell us the device, the SIM supplier and the platform you use. We will help you check the settings before the first installation.

Related tools

Keep going with the next installation question

Get the report

Enter your details and we will email you the file.

Use your real name so the file arrives addressed to you. Don't worry, we won't flood you with emails or calls.

Scroll to Top