64 Operation
WAGO-TO-PASS®
761
761-510 GPRS Modem, RS-232
Manual
Version 1.0.2
Table 46: Reading SMS
AT+CMGR Reading SMS
Test
Command
AT+CMGR=?
Response OK
Effective command
Command
AT+CMGR=<index>
Response
In text mode (+CMGF=1)
If command successful and SMS-DELIVER:
+CMGR: <stat>,<oa>,<scts>,<length>
<CR><LF><data><CR><LF>
If command successful and SMS-SUBMIT:
+CMGR: <stat>,<da>,<length>
<CR><LF><data><CR><LF>
Otherwise:
+CMS ERROR: <err>
In PDU mode (+CMGF=0) and successfully executed
command:
+CMGR: <stat>,[<alpha>],<length><CR><LF><pdu>
OK
Parameter See
+CMGL
Note
Effective command returns the message from the memory space
<index> from the preferred SMS memory <mem1>. The status of
the message and complete message content <pdu> is output. If the
status of the message is 'received unread', it is set to 'received
read'.