0% found this document useful (0 votes)
32 views

Explanation of Commonly Used at Commands

This document explains commonly used AT commands for controlling a GSM module from a computer. The AT command checks communication between the module and computer. The +CMGF command sets the SMS mode to either text or PDU. The +CMGW command stores a message in the SIM by typing it after the phone number. The +CMGS command sends an SMS message by entering the message serial number. Other commands allow dialing a number with ATD, answering a call with ATA, and disconnecting with ATH.

Uploaded by

debashish1135
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views

Explanation of Commonly Used at Commands

This document explains commonly used AT commands for controlling a GSM module from a computer. The AT command checks communication between the module and computer. The +CMGF command sets the SMS mode to either text or PDU. The +CMGW command stores a message in the SIM by typing it after the phone number. The +CMGS command sends an SMS message by entering the message serial number. Other commands allow dialing a number with ATD, answering a call with ATA, and disconnecting with ATH.

Uploaded by

debashish1135
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Explanation of commonly used AT commands:

1)
AT - This command is used to check communication between the module and the
computer.
For example,
AT
OK
The command returns a result code OK if the computer (serial port) and module are
connected properly. If any of module or SIM is not working, it would return a result code
ERROR.
2)

+CMGF - This command is used to set the SMS mode. Either text or PDU mode can be
selected by assigning 1 or 0 in the command.
SYNTAX:
AT+CMGF=<mode>
0: for PDU mode
1: for text mode
The text mode of SMS is easier to operate but it allows limited features of SMS. The
PDU
(protocol data unit) allows more access to SMS services but the operator
requires bit level knowledge of TPDUs. The headers and body of SMS are accessed in
hex format in PDU mode so it allows availing more features.
For example,
AT+CMGF=1
OK

3)

+CMGW - This command is used to store message in the SIM.


SYNTAX:
AT+CMGW= Phone number> Message to be stored Ctrl+z
As one types AT+CMGW and phone number, > sign appears on next line where one
can type the message. Multiple line messages can be typed in this case. This is why the
message is terminated by providing a Ctrl+z combination. As Ctrl+z is pressed, the
following information response is displayed on the screen.
+CMGW: Number on which message has been stored

4)

+CMGS - This command is used to send a SMS message to a phone number.

SYNTAX:

AT+CMGS= serial number of message to be send.

As the command AT+CMGS and serial number of message are entered, SMS is sent to
the particular SIM.
For example,
AT+CMGS=1
OK
5)

ATD - This command is used to dial or call a number.


SYNTAX:
ATD<Phone number>;(Enter)
For example,
ATD123456789;

6)

ATA - This command is used to answer a call. An incoming call is indicated by a


message RING which is repeated for every ring of the call. When the call ends NO
CARRIER is displayed on the screen.
SYNTAX:
ATA(Enter)
As ATA followed by enter key is pressed, incoming call is answered.
For example,
RING
RING
ATA

7)

ATH - This command is used to disconnect remote user link with the GSM module.
SYNTAX:
ATH (Enter)

You might also like