13. SHORT MESSAGE SERVICES - POINT TO POINT
Text Mode
Description | Command | Possible Responses |
|
|
|
Read | AT+CMGR= | • if text mode (+CMGF=1), command |
message | [<index>] | successful and |
|
| +CMGR: |
|
| <stat>,<oa>,[<alpha>],<scts>,[<tooa>, |
|
| <fo>,<pid>,<dcs>,<sca>,<tosca>, |
|
| <length>]<CR><LF><data> |
|
| • if text mode (+CMGF=1), command |
|
| successful and |
|
| +CMGR: |
|
| <stat>,<da>,[<alpha>],[<toda>,<fo>, |
|
| <pid>,<dcs>,[<vp>],<sca>,<tosca>, |
|
| <length>]<CR><LF><data> |
|
| • if text mode (+CMGF=1), command |
|
| successful and |
|
| +CMGR: |
|
| <stat>,<fo>,<mr>,[<ra>],[<tora>], |
|
| <scts>,<dt>,<st> |
|
| • if text mode (+CMGF=1), command |
|
| successful and |
|
| +CMGR: |
|
| <stat>,<fo>,<ct>[,<pid>,[<mn>],[<da>], |
|
| [<toda>],<length><CR><LF><cdata>] |
|
| • if text mode (+CMGF=1), command |
|
| successful and CBM storage: |
|
| +CMGR: |
|
| <stat>,<sn>,<mid>,<dcs>,<page>, |
|
| <pages><CR><LF><data> |
|
| • +CMS ERROR: <err> |
|
| • OK |
|
| • ERROR |
|
|
|
Show if the | AT+CMGR=? | • OK |
command is |
| • ERROR |
supported |
|
|
|
|
|
Returns messages with location index <index> from message storage <mem1> to the TE. About text mode parameters in Italics, refer command Show Text Mode Parameters (+CSDH), If the status of the message is ‘received unread’, status in the storage changes to ‘received read’. If listing fails final result code +CMS ERROR: <err> is returned.
<index> | Description |
|
|
Integer type | Value in the range of location numbers supported by |
| <mem1> |
|
|
<stat> | Description |
|
|
0 | Received unread message (new message) |
|
|
1 | Received read message |
|
|
2 | Stored unsent message (only applicable to SMs) |
|
|
3 | Stored sent message (only applicable to SMs) |
|
|
199
LZT 123 7361 R1A