GSM Modules
27
Format
Text mode (AT+CMGF=1)
AT+CMGS=<de><CR>
<data><Ctrl-Z/ESC>
PDU mode(AT+CMGF=0)
AT+CMGS=<length><CR>
<pdu><Ctrl-Z/ESC>
AT+CMGF=1
OK
Set as text mode
AT+CMGS="13316538879"<CR>
ABC<ctrl/Z>
OK
AT+CMGF=0
OK
Send a “ABC” message to 13316538879
Set as PDU mode
Example
AT+CMGS=17<CR>
0891683108705505f011000b81312
0882624f700f1ff0361f118<Ctrl-Z>
+CMGS:2
OK
Send a “ABC” message to 13028862427
Parameter
<de>
:
message sending number under text mode
<length>
:
length of bytes in TPDU under PDU mode
<data>: message under text mode
4.7 +CPMS: preferred SMS memory
Description
This command is used for preferred message memory.
Note: ME memory messages will count from 51.
Format
AT+CPMS=<mem1>[,<mem2>[<mem3>]]
+CPMS=<used1>,<total>
Example
AT+CPMS="SM_P"
+CPMS: 2, 50, 2, 50, 2, 50
OK
AT+CPMS=?
+CPMS:("SM","ME", "SM_P",
"ME_P", "MT"), ("SM","ME","SM_P",
"ME_P", "MT"), ("SM","ME","SM_P",
"ME_P", "MT")
OK
Check message storage in SIM card
mem1 total capacity 50 entries, 2 used
mem2 total capacity 50 entries, 2 used
mem3 total capacity 50 entries, 2 used
Check supported storage types
:
"SM","ME", "SM_P", "ME_P", "MT"
Parameters
<mem1>
:
used to read, delete message
<mem2>
:
used to write and send message
<mem3>
:
used for messages not saved to PC
<used>
:
used entries
<total>
:
total number of memory