GE863-QUAD / PY Software User Guide

GE863-QUAD / PY Software User Guide GE863-QUAD / PY Software User Guide

03.01.2015 Views

GE863-QUAD / PY Software User Guide 1vv0300746 Rev. 1 - 23/10/06 3.4.7 Reading an SMS A new SMS can be read with the command: • send command AT+CMGR= where: : SMS location index • wait for response in the format: Output format for received messages (the information written in italics will be present depending on +CSDH last setting): +CMGR: ,,,[,,,, ,,,] Output format for sent messages: +CMGR: ,,[,,,,,, ,,] Output format for message delivery confirm: +CMGR: ,,,,,,, where: - status of the message "REC UNREAD" - new received message unread "REC READ" - received message read "STO UNSENT" - message stored not yet sent "STO SENT" - message stored already sent - first octet of the message PDU - message reference number - arrival time of the message to the SC - sending time of the message - message status as coded in the PDU - Protocol Identifier - Data Coding Scheme - Originator address, string type represented in the currently selected character set (see +CSCS) - Destination address, string type represented in the currently selected character set (see +CSCS) - string type alphanumeric representation of or , corresponding to an entry found in the phonebook; used character set is the one selected with command +CSCS. NB: this optional field is currently not supported. - Service Centre number ,, - type of number ,, 129 - number in national format Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved page 78 of 117

GE863-QUAD / PY Software User Guide 1vv0300746 Rev. 1 - 23/10/06 145 - number in international format (contains the "+") - text length - TP-User_data • If indicates that GSM03.38 default alphabet is used , each character of GSM alphabet will be converted into current TE character set (see +CSCS) • If indicates that 8-bit or UCS2 data coding scheme is used, each 8-bit octet will be converted into two IRA character long hexadecimal number (e.g. octet 0x2A will be converted as two characters 0x32 0x41) Note: in both cases if status of the message is 'received unread', status in the storage changes to 'received read'. Note: an error result code is sent on empty record . For example: 1- Let's assume you want to read the SMS that is stored at the position index 4. We suppose you already have set up the device for text SMS mode as described on the previous paragraphs: command: AT+CMGR=4 response: +CMGR: "STO UNSENT","+393351234565" Telit Test Message for Text Mode SMS. OK In this case the SMS was successfully read, the text contained was: " Telit Test Message for Text Mode SMS." The message was written to the storage by user (STO) but still not sent (UNSENT) to the destination address that's the number +393351234565 2- Let's assume you want now to read the SMS that is stored at the position index 5: command: AT+CMGR=5 response: +CMGR: "REC UNREAD","+393381234567890", ,"29/06/01,12:30:04+01" Telit Test Message for Text Mode SMS RECEIVING. OK In this case the SMS was successfully read, the text contained was: " Telit Test Message for Text Mode SMS RECEIVING." The message was received (REC) from the number +393381234567890 at 12:30:04 the day 29/06/01 in the European time zone +1. After this read command the message at index 5 becomes REC READ. Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved page 79 of 117

<strong>GE863</strong>-<strong>QUAD</strong> / <strong>PY</strong> <strong>Software</strong> <strong>User</strong> <strong>Guide</strong><br />

1vv0300746 Rev. 1 - 23/10/06<br />

3.4.7 Reading an SMS<br />

A new SMS can be read with the command:<br />

• send command AT+CMGR=<br />

where:<br />

: SMS location index<br />

• wait for response in the format:<br />

Output format for received messages (the information written in italics will be present depending on<br />

+CSDH last setting):<br />

+CMGR: ,,,[,,,,<br />

,,,]<br />

Output format for sent messages:<br />

+CMGR: ,,[,,,,,,<br />

,,]<br />

Output format for message delivery confirm:<br />

+CMGR: ,,,,,,,<br />

where:<br />

- status of the message<br />

"REC UNREAD" - new received message unread<br />

"REC READ" - received message read<br />

"STO UNSENT" - message stored not yet sent<br />

"STO SENT" - message stored already sent<br />

- first octet of the message PDU<br />

- message reference number<br />

- arrival time of the message to the SC<br />

- sending time of the message<br />

- message status as coded in the PDU<br />

- Protocol Identifier<br />

- Data Coding Scheme<br />

- Originator address, string type represented in the currently selected character set (see<br />

+CSCS)<br />

- Destination address, string type represented in the currently selected character set (see<br />

+CSCS)<br />

- string type alphanumeric representation of or , corresponding to an entry found<br />

in the phonebook; used character set is the one selected with command +CSCS. NB: this<br />

optional field is currently not supported.<br />

- Service Centre number<br />

,, - type of number ,,<br />

129 - number in national format<br />

Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved page 78 of 117

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!