GSM Modules
30
Parameters 1. text mode(+CMGF=1)
<stat>
REC UNREAD: receive unread message
REC READ: receive read message
STO UNSENT: store unsent message
STO SENT: store sent message
ALL: all messages
2.PDU Mode (+CMGF=0)
<stat>
<stat>
:
0: received unread message
1: received read message
2: saved unsent message
3: saved unsent message
4: All messages
<index>
:
message index
<length>
:
TPDU length in PDU mode
<pdu>
:
binary system in PDU mode
<data>
:
message text in text mode
4.10 +CMSS: send messages saved in SIM card
Description
This command is used to send the messages saved in SIM card.
Format
AT+CMSS=<index>[,<da> [,<toda>]]
Return format: +CMSS : <mr>
或
+CMS ERROR: <err>
If the new target number is designated, the new number will replace the number
saved in the message.
AT+CMGF=1
AT+CMGW="1331653****"<CR>
(note the phone number should not
exceed 20 digits)
ABC<ctrl-Z>
+CMGW:2
OK
Set as text mode
Write a message and send it to 1331653****
The message will be saved in index 2
Example
AT+CMSS=2
+CMSS:0
OK
Send the messages saved in index 2
Message sent
CMSS return initial value 0