SMS command

From Wiki Knowledge Base | Teltonika Networks
Pages with broken file links > SMS command

AT commands via Windows terminal[edit | edit source]

  • You will be accessing TRM2xx modem via AT command’s port. Check which port is AT port via Device Manager. In this example it is COM13:

Device manager.png


  • The following example will use Terminal v1.9b. Scan all ports by pressing ReScan.

Terminal rescan.png


  • Select COM13, set the Baud rate to 115200, data bits to 1, parity none, Stop bits to 1 and press Connect.

Select.png


  • First enter the ATE1 command to enable local echo (to see the output like “OK” to any command).

Ate.png


  • Second enable SMS text mode with AT+CMGF. The command specifies the input and output format of the short messages. In this case enter AT+CMGF=1.

AT+CMGF.png


  • Issue AT+CMGS=”<phone number>” to enter SMS text input prompt mode. After invoking the write command, wait for the prompt “>”:

700px


  • In the text area type the SMS text. When finished – hit Ctrl+Z to send the SMS. Once Ctrl+Z is hit and SMS is sent – you shall see your text and “+CMGS: “ code that denotes how many symbols were sent.

700px

AT commands via Ubuntu terminal[edit | edit source]

  • After connecting the modem to your computer, we scan all connected devices. We see four USB devices, one of which will be for AT commands (usually USB2 or USB3).

Scan dev.png


  • Now connect via minicom (USB2 in this case):

Minicom.png


  • After successful login, enter the following commands:

Commands.png

1. First enter the ATE1 command to enable local echo (to see the output like “OK” to any command).

2. Enable SMS text mode with AT+CMGF. The command specifies the input and output format of the short messages. In this case enter AT+CMGF=1.

3. Issue AT+CMGS=”<phone number>” to enter SMS text input prompt mode. After invoking the write command, wait for the prompt “>” In the text area type the SMS text. When finished – hit Ctrl+Z to send the SMS. Once Ctrl+Z is hit and SMS is sent – you shall see your text and “+CMGS: “ code that denotes how many symbols were sent.