Explanation of Commonly Used at Commands
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)
4)
SYNTAX:
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)
6)
7)
ATH - This command is used to disconnect remote user link with the GSM module.
SYNTAX:
ATH (Enter)