Standard Horizon GM29 manual 13.11 AT+CMGR Read Message, At+Cmgr=?

Models: GM29

1 266
Download 266 pages 35.21 Kb
Page 198
Image 198

GM29 INTEGRATOR’S MANUAL

13.11 AT+CMGR Read Message

PDU Mode

Description

Command

Possible Responses

 

 

 

Read

AT+CMGR=

+CMGR: <stat>,[<alpha>],<length>]

message

<index>

<CR><LF><pdu>

 

 

• +CMS ERROR: <err>

 

 

• OK

 

 

• ERROR

 

 

 

Show if the

AT+CMGR=?

• OK

command is

 

• ERROR

supported

 

 

 

 

 

Returns message with location value <index> from preferred message storage <mem1> to the TE. Status of the message and entire message data unit <pdu> is returned. If status of the message is ‘received unread’, status in the storage changes to ‘received read’. If reading fails, final result code +CMS ERROR: <err> is returned.

<stat>

Description

 

 

0

Received unread message (i.e. new message)

 

 

1

Received read message

 

 

2

Stored unsent message (only applicable to SMs)

 

 

3

Stored sent message (only applicable to SMs)

 

 

 

 

<index>

Description

 

 

Integer type

Value in the range of location numbers supported by the

 

associated memory

 

 

<alpha>

Description

 

 

String type

Manufacturing specific. Should be left empty but not

 

omitted

 

 

<length>

Description

 

 

Integer type

Value indicating in PDU mode (+CMGF=0), the length of

 

the actual TP data unit in octets (i.e. the RP layer SMSC

 

address octets are not counted in the length)

 

 

<pdu>

Description

 

 

 

In the case of SMS: GSM 04.11 SC address followed by

 

GSM 03.40 TPDU in hexadecimal format: ME/TA converts

 

each octet of TP data unit into two IRA character long

 

hexadecimal number (e.g. octet with integer value 42 is

 

presented to TE as two characters 2A (IRA 50 and 65))

 

In the case of CBS: GSM 03.41 TPDU in hexadecimal format

 

 

198

LZT 123 7361 R1A

Page 198
Image 198
Standard Horizon GM29 manual 13.11 AT+CMGR Read Message, At+Cmgr=?