2,950 bytes added
, 11:41, 28 November 2019
__TOC__
==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:
<th rowspan="5" style="border-bottom: 1px solid white;" width="600;">[[File:Device manager.png|600px]]</th>
----
*The following example will use Terminal v1.9b. Scan all ports by pressing ReScan.
<th rowspan="5" style="border-bottom: 1px solid white;" width="600;">[[File:Terminal rescan.png|700px]]</th>
----
*Select COM13, set the Baud rate to 115200, data bits to 1, parity none, Stop bits to 1 and press Connect.
<th rowspan="5" style="border-bottom: 1px solid white;" width="600;">[[File:Select.png|700px]]</th>
----
*First enter the ATE1 command to enable local echo (to see the output like “OK” to any command).
<th rowspan="5" style="border-bottom: 1px solid white;" width="600;">[[File:Ate.png|700px]]</th>
----
*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.
<th rowspan="5" style="border-bottom: 1px solid white;" width="600;">[[File:AT+CMGF.png|700px]]</th>
----
*Issue AT+CMGS=”<phone number>” to enter SMS text input prompt mode. After invoking the write command, wait for the prompt “>”:
<th rowspan="5" style="border-bottom: 1px solid white;" width="600;">[[File:AT.png|700px]]</th>
----
*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.
<th rowspan="5" style="border-bottom: 1px solid white;" width="600;">[[File:Sample text.png|700px]]</th>
==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).
<th rowspan="5" style="border-bottom: 1px solid white;" width="600;"> [[File:Scan dev.png|400px]]</th>
----
*Now connect via minicom (USB2 in this case):
<th rowspan="5" style="border-bottom: 1px solid white;" width="600;"> [[File:Minicom.png|500px]]</th>
----
*After successful login, enter the following commands:
<th rowspan="5" style="border-bottom: 1px solid white;" width="600;"> [[File:Commands.png|400px]]</th>
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.