---
title: "SMS commands (XG37xx/XG47xx/LX40)"
canonical: "https://docs.xirgoglobal.com/space/SD/27144436/SMS+commands+(XG37xx%2FXG47xx%2FLX40)"
format: markdown
---
When sending an SMS message, a **password must be configured** in the *Device Settings Template*.

To set a password for sms commands, go to: Device settings template → Connectivity → SMS settings → Password →Password

![image-20260709-113155.png](media://7acca818-47d3-4fa9-b2d9-ac1ac9c6cf0d)

#### NOTE: SMS settings must be configured with the admin template V9 or later, combined with firmware version 02_001 or later.


| **Public SMS commands** |
| --- |
| **SMS commands** | **Properties** | **Example** | **Answer from device** |
| bestpassword | **The start of every SMS text to send a command.** This allows to skip the signature generation step. This command works from the FM500Q hardware version and the latest firmware. |  |  |
| T | Output command<br>01h - output ID, OUT1 = 00, OUT2 = 01, OUT3 = 02<br>22h - unique ID, must be different value compared to previous 5 commands<br>01h - form id,<br>- 00 - turns output off for [data A] * 10 ms, then returns to on;
- 01 - turns output on for [data A] * 10 ms, then returns to off;
- 02 - multiple impulses, uses data A, B and C;
- 03 - sets output on for 500 ms then off for [data A] * 10 ms, repeated twice;
- 04 - turns OUT1 on for [data A] * 10 ms, then returns to on. After that turns OUT2 off for [data A] * 10 ms, then returns to on for [data A] * 10 ms;<br>0032h - data A (inpulse length), 0x32 converts to 50 decimal<br>T<time>,<output ID [1B]><unique ID [1B}><form ID [1B]><data A [2B]><data B [2B]><data C [2B]> | T2019.06.20 10:25:22,0122013200 | - |
| F | Force connectivity to fmset | bestpassword F | - |
| GA | Erase Data and Event memory | bestpassword GA | - |
| GE | Erase Event memory | bestpassword GE | - |
| GD | Erase Data memory | bestpassword GD | - |
| V | Get versions of:<br>- device firmware
- bootloader
- modem firmware
- GNSS
- hardware | bestpassword V | FW ver: QF0_01_117 Bootloader ver: 21 Modem FW: BG96MAR02A07M1G_01.016.01.016 GPS FW: QUECTEL PCB rev: 0 Assembly rev: 0  HW Identifier: 255 |
| W | Defines the connection settings. This command must be followed by [apn name],*[apn user],[apn psw],[preferred ip 0.0.0.0 auto dhcp],[remote server ip or domain name],[UDP/TCP]*<br>**note: **before sending please check remote server domain and ip in configuration settings address window in the setting template. Make sure that [devices.xgfleet.eu](http://devices.xgfleet.eu):1888 is used. | bestpassword Winternet,,,0.0.0.0,[devices.xgfleet.eu](http://devices.xgfleet.eu),1888, | - |
| R | Reboots the MCU and Modem. | bestpassword R | - |
| Z | Forces the device to send its status via SMS | bestpassword Z | in1=1,in2=0,in3=0,in4=0,in5=1,in6=1,in7=1, GPS:54.919742 37.361893,22km/h, SAT=12 GSM:25001 ,092D,-56dBm JAMM=0 GPRS:0, Vpwr=28.58V Vbat=0.00V |
| S | Set StaticSingal status | bestpassword S1=0 | - |
| B | Reboot GPS (event 110-5) | bestpassword B | - |
| Y | Erase GSM operator list | bestpassword Y | - |
| QH | Resend Data and Event memory | bestpassword QH | - |
| O1 | CAN1 dump | bestpassword O1 | - |
| O2 | CAN2 dump | bestpassword O2 | - |
| OA1 | CAN1 dump with ACK | bestpassword OA1 | - |
| OA2 | CAN2 dump with ACK | bestpassword OA2 | - |
| ODO | Change ODO value | bestpassowrd ODO 120.00 | - |
| ORF | Format Records area | bestpassword ORF | - |
| D card1 | Sends the information of the drivers card to the installed Tacho program. | bestpassword D card1 | - |
| D card2 | Sends the information of the drivers card to the installed Tacho program. | bestpassword D card2 | - |
| D tacho1 | Sends the data packet of the tacho to the installed Tacho program (event 104-3) | bestpassword D tacho1 | - |
| D tacho2 | Sends the data packet of the tacho to the installed Tacho program (event 104-4) | bestpassword D tacho2 | - |
| D clear | Clears connection and file download requests (event 104-5) | bestpassword D clear |  |
| D trtp** | Where ** - hexadecimal value of TRTP, for example 15 (event 104-6) | bestpassword D trtp15 |  |
| D tacho dtc r | Read DTCs stored in tachograph (event 104-7) | bestpassword D tacho dtc r |  |
| D tacho dtc e | Erase DTCs stored in tachograph (event 104-8) | bestpassword D tacho dtc e |  |
| D tacho format | Clears files stored in device flash memory (event 104-10) | bestpassword D tacho format |  |
| D vin | Sends message with vehicle identification number. Used for checking Status of the tachograph. (event 104-58) | bestpassword D vin | - |
| D dump | Forces device to repeat CAN scanning. (event 107-14) | bestpassword D dump | - |