Multi-Tech Systems MTSGSM User Manual

Page 37

Advertising
background image

Chapter 5 - AT Commands, S-Registers, and Error Codes

MTSGSM

37

Defined values Meaning
<index>

Location value of message to be read

+CMGL

List messages

Syntax

AT+CMGL[=<stat>| used to list messages
The response is +CMGL: <index>,<stat>,<length>,<CR><LF><pdu>
AT+CMGL=? for a list of supported <stat>.
The response is +CMGL: (list of supported <stat>)
Error codes is returned as +CMS ERROR: <err>:

Description

The AT+CMGL command list messages from the preferred message storage. Entire
data units (PDU) is returned.

Defined values Meaning
<stat>
4

All messages

+CGSN

Request product serial number identification

Syntax

AT+CGSN used to get phone serial number info. The response is +CGSN: <sn> .
Error codes is returned as +CME ERROR: <err>:

Description

The AT+CGSN command returns one ore more lines of information text determined

by the phone manufacturer intended to identify the individual phone..

Defined values Meaning
<sn>

Information text determined by the phone manufacturer.

+CHUP

Hangup call

Syntax

AT+CHUP used hangup GSM call

Description

The AT+CHUP command causes hangup of the current GSM call.

+CMGR

Read message

Syntax

AT+CMGR=<index> used to read a message
The response is +CMGR: <stat>,<length><CR><LF><pdu>
Error codes is returned as +CMS ERROR: <err>:

Description

The AT+CMGR command reads a message with location value <index> from
preferred message storage <mem1> to the TE. Status of the message and the entire
message data unit <pdu> is returned.

Defined values Meaning
<index>

Location value of message to be read

+CMGS

Send message

Syntax

AT+CMGS=

<length><CR>PDU is given<ctrl-z>/ESC> used to send messages

Error codes is returned as +CMS ERROR: <err>:

Description

The AT+CMGS command sends a message to the network (SMS-SUBMIT).

Message reference value <mr> is returned to the TE on successful message
delivery. The TA shall send a four character sequence <

CR><LF><greater_than>

<space> (in hex 0xd 0xa 0x3e 0x20) after the command line is terminated with
<CR>; after that PDU can be given. <ctrl-z> (in hex 0x1a) must be used to indicate
the ending of PDU

Defined values Meaning
<length>

Must indicate the number of octets coded in the TP layer data unit to be given.

Advertising