
GSM Module
2.5.5
+CMGR: message read
Description
This command is used to read the received message.
Format AT+CMGR=?
AT+CMGF=1
AT+CMGR=1
+CMGR:"REC
UNREAD","133********",,
"04/02/25,12 :58 :04
+
04"
ABCD
OK
+CMTI:
“MT”
:
1
Receive the message, saved at index
1
Set TEXT format
Read the first TEXT message
Example
AT+CMGF=0
AT+CMGR=1
+CMGR: 1,,127
0891683108705505F00408A1705581
060008701091905564236E5C0A656C
76845BA26237FF0C60A85DF27ECF62
10529F5F00901A4E86003100300030
51430047005000520053595799104F
1860E04E1A52A1FF0C4ECE00320030
003000375E74003000326708003000
3165E55F0059CB751F654830028C22
8C22FF016DF1573379FB52A8
516C53F8
Set PDU mode
Read first PDU message
Returned
results
AT+CMGR=<index>
Return format:
The terminal adaptor would return the message of index saved in mem1
-if select text mode (+CMGF=1)
:
+CMGR :<stat>,<oa>,[<alpha>],<scts>[,<tooa>,<fo>,<pid>,<dcs>,
<sca>,<tosca>,<length>]
<CR><LF> <data> (used to read received message)
+CMGR :<stat>,<da>,[<alpha>][,<toda>,<fo>,<pid>,<dcs>,[<vp>],<sca>,
<tosca>,<length>]
<CR><LF> <data> (used to read transmitted message)
--if select PDU mode (+CMGF=0)
:
+CMGR: <stat>,[<alpha>],<lenth>,<CR>,<LF>,<pdu>
OK
-if error occurs, prompt:
+CMS ERROR:<err>
Note: after reading message, the status will change from “REC UNREAD” to
“REC READ”.
34