SMS sending command

From Teltonika Networks Wiki

AT commands via Windows terminal

  • 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:


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


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


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


  • 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.


  • 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.

AT commands via Ubuntu terminal

  • 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).


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


  • After successful login, enter the following commands:

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.