
GSM Module
——Set the message’s input mode as text mode.
at+cmgs="13360504647"
<CR>
hallo
<ctrl/Z>
+CMGS: 1
OK
——Send one message. "13360504647" is the number of message recipient, and hallo is the
message text.
at+cmgw="13360504647"
<CR>
goodbye
<ctrl/Z>
+CMGW: 1
OK
——write a message in "SM"."13360504647" is the number of message recipient, and goodbye
is the message text. From the returned forCMGW, we could see that the message is
saved to the index 1.
at+cpms?
+CPMS: "SM",1,50,"SM",1,50,"SM",1,50
OK
——Check the current memory. From +CPMS, we know there is a message in “SM”, which is
the newly composed message.
at+cmgr=1
+CMGR: "STO UNSENT","13360504647",
goodbye
OK
——Read this message with the index No. From the returned inforCMGR, we know
that the message is not sent.
(
" STO UNSENT "
)
.
at+cmss=1
+CMSS: 1
OK
——Send the saved message.
at+cmgr=1
+CMGR: "STO SENT","13360504647",
goodbye
OK
——Read this message with the index No. From the returned inforCMGR, we know
that the message has been sent.
(
" STO SENT "
)
78