페이지 선택
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in pages
AT Commands According to 3GPP TS 27.005

 

 

No Command Description
C0401 AT+CMGD Delete SMS message
C0402 AT+CMGF Select SMS message format
C0403 AT+CMGL List SMS messages from preferred store
C0404 AT+CMGR Read SMS message
C0405 AT+CMGS Send SMS message
C0406 AT+CMGW Write SMS message to memory
C0407 AT+CMSS Send SMS message from storage
C0408 AT+CNMI New SMS message indications
C0409 AT+CPMS Preferred SMS message storage
C0410 AT+CRES Restore SMS settings
C0411 AT+CSAS Save SMS settings
C0412 AT+CSCA SMS service center address
C0413 AT+CSDH Show SMS text mode parameters
C0414 AT+CSMP Set SMS text mode parameters
C0415 AT+CSMS Select message service

 

 

 

 

C0401     AT+CMGD     Delete SMS Message

 

T) AT+CMGD=?

+CMGD: (list of supported <index>s),(list of supported <delflag>s)

 

OK

Parameters

See Write Command

W) AT+CMGD=<index>[,<delflag>]

TA deletes message from preferred message storage <mem1> location <index>.

OK

ERROR

If error is related to ME functionality:

+CMS ERROR: <err>

Parameters

<index> Integer type; value in the range of location numbers supported by the associated

memory

<delflag>  

0     Delete the message specified in <index>

1     Delete all read messages from preferred message storage, leaving unread messages and

stored mobile originated messages (whether sent or not) untouched

2     Delete all read messages from preferred message storage and sent mobile originated

messages, leaving unread messages and unsent mobile originated messages untouched

3     Delete all read messages from preferred message storage, sent and unsent mobile

originated messages leaving unread messages untouched

4     Delete all messages from preferred message storage including unread messages

Parameter Saving Mode NO_SAVE

 

Max Response Time

5s(delete 1 message)

25s(delete 50 messages)

25s(delete 150 messages)

 

 

 

 

C0402     AT+CMGF     Select SMS Message Format

 

T) AT+CMGF=?

+CMGF: (list of supported <mode>s)

 

OK

Parameter

See Write Command

R) AT+CMGF?

+CMGF: <mode>

 

OK

Parameter

See Write Command

W) AT+CMGF=[<mode>]

TA sets parameter to denote which input and output format of messages to use.

OK

Parameter

<mode>    

0    PDU mode

1    Text mode

 

 

 

 

C0403     AT+CMGL     List SMS Messages From Preferred Store

 

T) AT+CMGL=?

+CMGL: (list of supported <stat>s)

 

OK

Parameter

See Write Command

W) AT+CMGL=<stat>[,<mode>]

 

Parameters

1)   If text mode:

<stat>         

“REC UNREAD”     Received unread messages

“REC READ”     Received read messages

“STO UNSENT”     Stored unsent messages

“STO SENT”     Stored sent messages

“ALL”     All messages

<mode>        

0     Normal

1     Not change status of the specified SMS record

 

2)   If PDU mode:

<stat>         

0     Received unread messages

1     Received read messages

2     Stored unsent messages

3     Stored sent messages

4     All messages

<mode>      

0     Normal

1     Not change status of the specified SMS record

TA returns messages with status value <stat> from message storage <mem1> to the TE.

If status of the message is ‘received unread’, status in the storage changes to ‘received read’.

 

1)   If text mode (+CMGF=1) and Command successful: for SMS-SUBMITs and/or SMS-DELIVERs:

+CMGL: <index>,<stat>,<oa/da>[,<alpha>][,<scts>] [,<tooa/toda>,<length>]<CR><LF><data>

[<CR><LF>+CMGL: <index>,<stat>,<da/oa> [,<alpha>][,<scts>][,<tooa/toda>,<length>]<CR>

<LF><data>[…]]

 

for SMS-STATUS-REPORTs:

+CMGL: <index>,<stat>,<fo>,<mr>[,<ra>][,<tora>],<scts>,<dt>,<st> [<CR><LF>+CMGL:

<index>,<stat>,<fo>,<mr> [,<ra>][,<tora>],<scts>,<dt>,<st>[…]]

 

for SMS-COMMANDs:

+CMGL: <index>,<stat>,<fo>,<ct>[<CR><LF>

+CMGL: <index>,<stat>,<fo>,<ct>[…]]

 

for CBM storage:

+CMGL: <index>,<stat>,<sn>,<mid>,<page>,<pages>

<CR><LF><data>

<CR><LF>+CMGL: <index>,<stat>,<sn>,<mid>,<page>,<pages>

<CR><LF><data>[…]]

OK

 

2)   If PDU mode (+CMGF=0) and Command successful:

+CMGL: <index>,<stat>[,<alpha>],<length>

<CR><LF><pdu><CR><LF>

+CMGL: <index>,<stat>[,alpha],<length>

<CR><LF><pdu>[…]]

OK

 

3)If error is related to ME functionality:

+CMS ERROR: <err>

Parameters

<alpha>     String type(string should be included in quotation marks) alphanumeric

representation of <da> or <oa> corresponding to the entry found in MT phonebook;

implementation of this feature is manufacturer specific; used character set should be the one

selected with Command Select TE Character Set +CSCS

(see definition of this Command in 3GPP TS 27.007)

<da>     GSM 03.40 TP-Destination-Address Address-Value field in string format; BCD

numbers (or GSM default alphabet characters) are converted to characters of the currently

selected TE character set (refer Command +CSCS in 3GPP TS 27.007);

type of address given by <toda>

<data>     In the case of SMS: GSM 03.40 TP-User-Data in text mode responses; format:

if <dcs> indicates that GSM 38 default alphabet is used and <fo> indicates that GSM 03.40

TPUser-Data-Header-Indication is not set:

if TE character set other than “HEX” (refer Command Select TE Character Set +CSCS in 3GPP TS

27.007):ME/TA converts GSM alphabet into current TE character set according to rules of Annex

A

if TE character set is “HEX”: ME/TA converts each 7-bit character of GSM alphabet into two IRA

character long hexadecimal number (e.g. character P (GSM 23) is presented as 17

(IRA 49 and 55))

if <dcs> indicates that 8-bit or UCS2 data coding scheme is used, or <fo> indicates that GSM

03.40 TP-User-Data-Header-Indication is set: ME/TA converts each 8-bit octet 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 CBM Content of Message in text

mode responses; format:

if <dcs> indicates that GSM 38 default alphabet is used:

if TE character set other than “HEX” (refer Command +CSCS in 3GPP TS 27.007): ME/TA converts

GSM alphabet into current TE character set according to rules of Annex A

if TE character set is “HEX”: ME/TA converts each 7-bit character of GSM alphabet into two IRA

character long hexadecimal number

if <dcs> indicates that 8-bit or UCS2 data coding scheme is used: ME/TA converts each 8-bit

octet into two IRA character long hexadecimal number

<length>     Integer type value indicating in the text mode (+CMGF=1) the length of the message

body <data> (or <cdata>) in characters; or 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)

<index>     Integer type; value in the range of location numbers supported by the associated

memory

<oa>     GSM 03.40 TP-Originating-Address Address-Value field in string format; BCD

numbers (or GSM default alphabet characters) are converted to characters of the currently

selected TE character set (refer Command +CSCS in 3GPP TS 27.007);

type of address given by <tooa>

<pdu>     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.

<scts>     GSM 03.40 TP-Service-Center-Time-Stamp in time-string format (refer <dt>)

<toda>     GSM 04.11 TP-Destination-Address Type-of-Address octet in integer format

(when first character of <da> is + (IRA 43) default is 145, otherwise default is 129)

<tooa>     GSM 04.11 TP-Originating-Address Type-of-Address octet in integer format

(default refer<toda>)

E) AT+CMGL

1)   If text mode:

the same as AT+CMGL=”REC UNREAD”, received unread messages

 

2)   If PDU mode:

the same as AT+CMGL=0, received unread messages

 

See more messages please refer to Write Command.

Parameters

See Write Command

Parameter Saving Mode NO_SAVE
Max Response Time

20s(list 50 messages)

20s(list 150 messages)

 

 

 

 

C0404     AT+CMGR      Read SMS Message

 

T) AT+CMGR=? OK

 

 

 

 

 

W) AT+CMGR=<index>[,<mode>]

Parameters

<index>     Integer type; value in the range of location numbers supported by the associated

memory

<mode>      

0     Normal

1     Not change status of the specified SMS record

TA returns SMS message with location value <index> from message storage <mem1> to the TE.

If status of the message is ‘received unread’, status in the storage changes to ‘received read’.

 

1) If text mode (+CMGF=1) and Command successful:

for SMS-DELIVER:

+CMGR: <stat>,<oa>[,<alpha>],<scts>[,<tooa>,<fo>,<pid>,<dcs>

<sca>,<tosca>,<length>]<CR><LF><data>

for SMS-SUBMIT:

+CMGR: <stat>,<da>[,<alpha>][,<toda>,<fo>,<pid>,<dcs>[,<vp>]

,<sca>,<tosca>,<length>]<CR><LF><data>

 

for SMS-STATUS-REPORTs:

+CMGR: <stat>,<fo>,<mr>[,<ra>][,<tora>],<scts>,<dt>,<st>

 

for SMS-COMMANDs:

+CMGR: <stat>,<fo>,<ct>[,<pid>[,<mn>][,<da>][,<toda>]

,<length><CR><LF><cdata>]

 

for CBM storage:

+CMGR: <stat>,<sn>,<mid>,<dcs>,<page>,<pages><CR><LF><data>

 

2)   If PDU mode (+CMGF=0) and Command successful:

+CMGR: <stat>[,<alpha>],<length><CR><LF><pdu>

 

OK

 

3)   If error is related to ME functionality:

+CMS ERROR: <err>

Parameters

<alpha>     String type (string should be included in quotation marks) alphanumeric

representation of <da> or <oa> corresponding to the entry found in MT phonebook;

implementation of this feature is manufacturer specific

<da>     GSM 03.40 TP-Destination-Address Address-Value field in string format; BCD

numbers (or GSM default alphabet characters) are converted to characters of the currently

selected TE character set (specified by +CSCS in 3GPP TS 27.007);

type of address given by <toda>

<data>     In the case of SMS: GSM 03.40 TP-User-Data in text mode responses; format:

if <dcs> indicates that GSM 03.38 default alphabet is used and <fo> indicates that GSM 03.40

TPUser-Data-Header-Indication is not set:

if TE character set other than “HEX” (refer Command Select TE Character Set +CSCS in 3GPP TS

27.007):ME/TA converts GSM alphabet into current TE character set according to rules of Annex

A

if TE character set is “HEX”: ME/TA converts each 7-bit character of GSM alphabet into two IRA

character long hexadecimal number (e.g. character P (GSM 23) is presented as 17

(IRA 49 and 55))

if <dcs> indicates that 8-bit or UCS2 data coding scheme is used, or <fo> indicates that GSM

03.40 TP-User-Data-Header-Indication is set: ME/TA converts each 8-bit octet 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 CBM Content of Message in text

mode responses; format:

if <dcs> indicates that GSM 38 default alphabet is used:

if TE character set other than “HEX” (refer Command +CSCS in 3GPP TS 27.007): ME/TA converts

GSM alphabet into current TE character set according to rules of Annex A

if TE character set is “HEX”: ME/TA converts each 7-bit character of GSM alphabet into two IRA

character long hexadecimal number

if <dcs> indicates that 8-bit or UCS2 data coding scheme is used: ME/TA converts each 8-bit

octet into two IRA character long hexadecimal number

<dcs>     Depending on the Command or result code: GSM 03.38 SMS Data Coding Scheme

(default 0), or Cell Broadcast Data Coding Scheme in integer format

<fo>     Depending on the Command or result code: first octet of GSM 03.40 SMS-DELIVER,

SMS-SUBMIT (default 17), SMS-STATUS-REPORT, or SMS-COMMAND (default 2) in integer format

<length>     integer type value indicating in the text mode (+CMGF=1) the length of the

message body <data> (or <cdata>) in characters; or 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)

<mid>     GSM 03.41 CBM Message Identifier in integer format

<oa>     GSM 03.40 TP-Originating-Address Address-Value field in string format; BCD

numbers (or GSM default alphabet characters) are converted characters of the currently

selected TE character set (specified by +CSCS in 3GPP TS 27.007);

type of address given by <tooa>

<pdu>     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.

<pid>     GSM 03.40 TP-Protocol-Identifier in integer format (default 0)

<sca>     GSM 04.11 RP SC address Address-Value field in string format; BCD numbers (or

GSM default alphabet characters) are converted to characters of the currently selected TE

character set (specified by +CSCS in 3GPP TS 27.007); type of address given by <tosca>

<scts>     GSM 03.40 TP-Service-Centre-Time-Stamp in time-string format (refer <dt>)

<stat>         

0     “REC UNREAD” Received unread messages

1     “REC READ” Received read messages

2     “STO UNSENT” Stored unsent messages

3     “STO SENT” Stored sent messages

4     “ALL” All messages

<toda>     GSM 04.11 TP-Destination-Address Type-of-Address octet in integer format

(when first character of <da> is + (IRA 43) default is 145, otherwise default is 129)

<tooa>     GSM 04.11 TP-Originating-Address Type-of-Address octet in integer format

(default refer<toda>)

<tosca>     GSM 04.11 RP SC address Type-of-Address octet in integer format

(default refer <toda>)

<vp>     Depending on SMS-SUBMIT <fo> setting: GSM 03.40 TP-Validity-Period either in integer

format (default 167) or in time-string format (refer <dt>)

Parameter Saving Mode NO_SAVE
Max Response Time 5s

 

 

 

 

C0405     AT+CMGS      Send SMS Message

 

T) AT+CMGS=? OK

 

 

 

 

 

W)

1) If text mode (+CMGF=1):

AT+CMGS=<da>[,<toda>]

<CR>text is entered <ctrl-Z/ESC>

ESC quits without sending

 

2) If PDU mode (+CMGF=0):

AT+CMGS=<length>

<CR>PDU is given <ctrl-Z/ESC>

Parameters

<da>     GSM 03.40 TP-Destination-Address Address-Value field in string format(string

should be included in quotation marks); BCD numbers (or GSM default alphabet characters) are

converted to characters of the currently selected TE character set (specified by +CSCS in 3GPP

TS 27.007); type of address given by <toda>

<toda>     GSM 04.11 TP-Destination-Address Type-of-Address octet in integer format

(when first character of <da> is + (IRA 43) default is 145, otherwise default is 129)

<length>     Integer type value (not exceed 160 bytes) indicating in the text mode (+CMGF=1)

the length of the message body <data>    (or <cdata>) in characters; or 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)

TA sends message from a TE to the network (SMS-SUBMIT). Message reference value <mr> is

returned to the TE on successful message delivery. Optionally (when +CSMS <service> value is

1 and network supports) <scts> is returned. Values can be used to identify message upon

unsolicited delivery status report result code.

 

1) If text mode(+CMGF=1) and sending successful:

+CMGS: <mr>

OK

 

2)   If PDU mode(+CMGF=0) and sending successful:

+CMGS: <mr>

 

OK

 

3)If error is related to ME functionality:

+CMS ERROR: <err>

Parameter

<mr>     GSM 03.40 TP-Message-Reference in integer format

Parameter Saving Mode NO_SAVE
Max Response Time 60s

Reference

3GPP TS 27.005

Note

Reject incoming call when sending messages.

 

 

 

 

C0406     AT+CMGW     Write SMS Message To Memory

 

T) AT+CMGW=? OK

W)

1) If text mode (+CMGF=1):

AT+CMGW=<oa/da>[,<tooa/toda>][,<stat>] <CR> text is entered <ctrl-Z/ESC> <ESC> quits without sending

 

2) If PDU mode (+CMGF=0):

AT+CMGW=<length>[,<stat>] <CR>PDU is given <ctrl-Z/ESC>

TA transmits SMS message (either SMS-DELIVER or SMS-SUBMIT) from TE to memory storage

<mem2>. Memory location <index> of the stored message is returned. By default message

status will be set to ‘stored unsent’, but parameter <stat> allows also other status values to be

given.

 

If writing is successful:

+CMGW: <index>

 

OK

If error is related to ME functionality:

+CMS ERROR: <err>

Parameters

<oa>     GSM 03.40 TP-Originating-Address Address-Value field in string format(string

should be included in quotation marks); BCD numbers (or GSM default alphabet characters) are

converted to characters of the currently selected TE character set (specified by +CSCS in 3GPP

TS 27.007);type of address given by <tooa>

<da>     GSM 03.40 TP-Destination-Address Address-Value field in string format(string

should be included in quotation marks); BCD numbers (or GSM default alphabet characters) are

converted to characters of the currently selected TE character set (specified by +CSCS in 3GPP

TS 27.007); type of address given by <toda>

<tooa>     GSM 04.11 TP-Originating-Address Type-of-Address octet   in integer format

(default refer <toda>)

<toda>     GSM 04.11 TP-Destination-Address Type-of-Address octet in integer format

(when first character of <da> is + (IRA 43) default is 145, otherwise default is 129)

129     Unknown type(IDSN format number)

161     National number type(IDSN format)

145     International number type(ISDN format)

177     Network specific number(ISDN format)

<length> Integer type value (not exceed 160 bytes) indicating in the text mode (+CMGF=1) the

length of the message body <data> (or <cdata>) in characters; or 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)

<stat>     in the text mode (+CMGF=1):

“STO UNSENT”     Stored unsent messages

“STO SENT”     Stored sent messages

in PDU mode (+CMGF=0):

0     Received unread messages

1     Received read messages

2     Stored unsent messages

3     Stored sent messages

<pdu>     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.

<index>     Index of message in selected storage <mem2>

E) AT+CMGW

TA transmits SMS message (either SMS-DELIVER or SMS-SUBMIT) from TE to memory storage

<mem2>. Memory location <index> of the stored message is returned. By default message

status will be set to ‘stored unsent’, but parameter <stat> allows also other status values to be

given.

 

If writing is successful:

+CMGW: <index>

 

OK

If error is related to ME functionality:

+CMS ERROR: <err>

Parameter Saving Mode NO_SAVE
Max Response Time 5s

  

 

 

 

C0407     AT+CMSS     Send SMS Message From Storage

 

T) AT+CMSS=? OK
W) AT+CMSS=<index>[,<da>,<toda>]

TA sends message with location value <index> from message storage <mem2> to the network

(SMS-SUBMIT). If new recipient address <da> is given, it shall be used instead of the one stored

with the message. Reference value <mr> is returned to the TE on successful message delivery.

Values can be used to identify message upon unsolicited delivery status report result code.

 

1) If text mode(+CMGF=1) and sending successful:

+CMSS: <mr>

 

OK

 

2) If PDU mode(+CMGF=0) and sending successful:

+CMSS: <mr>

 

OK

 

3)If error is related to ME functionality:

+CMS ERROR: <err>

Parameters

<index>     Integer type; value in the range of location numbers supported by the associated memory

<da>     GSM 03.40 TP-Destination-Address Address-Value field in string format(string

should be included in quotation marks); BCD numbers (or GSM default alphabet characters) are

converted to characters of the currently selected TE character set (specified by +CSCS in 3GPP

TS 27.007); type of address given by <toda>

<toda>     GSM 04.11 TP-Destination-Address Type-of-Address octet in integer format

(when first character of <da> is + (IRA 43) default is 145, otherwise default is 129)

<mr>     GSM 03.40 TP-Message-Reference in integer format

Parameter Saving Mode NO_SAVE
Max Response Time 60s

 

 

 

 

C0408     AT+CNMI     New SMS Message Indications

 

T) AT+CNMI=?

+CNMI: (list of supported <mode>s),(list of supported <mt>s),(list of supported <bm>s),

(list of supported <ds>s),(list of supported <bfr>s)

 

OK

Parameters

See Write Command

R) AT+CNMI?

+CNMI: <mode>,<mt>,<bm>,<ds>,<bfr>

 

OK

Parameters

See Write Command

W) AT+CNMI=<mode>[,<mt>[,<bm>[,<ds>[,<bfr

>]]]]

TA selects the procedure for how the receiving of new messages from the network is indicated

to the TE when TE is active, e.g. DTR signal is ON.

If TE is inactive (e.g. DTR signal is OFF), message receiving should be done as specified in GSM

03.38.

 

OK

or

ERROR

Parameters

<mode>      

0     Buffer unsolicited result codes in the TA. If TA result code buffer is full, indications can

be buffered in some other place or the oldest indications may be discarded and replaced with

the new received indications.

1     Discard indication and reject new received message unsolicited result codes when TA-

TE link is reserved (e.g. in on-line data mode). Otherwise forward them directly to the TE.

2     Buffer unsolicited result codes in the TA when TA-TE link is reserved (e.g. in on-line

data mode) and flush them to the TE after reservation.

Otherwise forward them directly to the TE.

<mt>     (the rules for storing received SMs depend on its data coding scheme

(refer GSM 03.38 [2]), preferred memory storage (+CPMS) setting and this value):

0     No SMS-DELIVER indications are routed to the TE.

1     If SMS-DELIVER is stored into ME/TA, indication of the memory location is routed to

the TE using unsolicited result code: +CMTI: <mem>,<index>

2     SMS-DELIVERs (except class 2) are routed directly to the TE using unsolicited result

code:

+CMT: [<alpha>],<length><CR><LF><pdu> (PDU mode enabled)

or

+CMT:

<oa>,[<alpha>],<scts>[,<tooa>,<fo>,<pid>,<dcs>,<sca>,<tosca>,<lengt h>]<CR><LF><data>

(text mode enabled; about parameters in italics, refer Command Show Text Mode Parameters

+CSDH).

Class 2 messages result in indication as defined in <mt>=1.

3     Class 3 SMS-DELIVERs are routed directly to TE using unsolicited result codes defined in

<mt>=2. Messages of other classes result in indication as defined in <mt>=1.

<bm>     (the rules for storing received CBMs depend on its data coding scheme (refer GSM

03.38 [2]), the setting of Select CBM Types (+CSCB) and this value):

0     No CBM indications are routed to the TE.

2     New CBMs are routed directly to the TE using unsolicited

result code:

+CBM: <length><CR><LF><pdu> (PDU mode enabled)

or

+CBM: <sn>,<mid>,<dcs>,<page>,<pages><CR><LF><data> (text mode enabled).

<ds>           

0     No SMS-STATUS-REPORTs are routed to the TE.

1     SMS-STATUS-REPORTs are routed to the TE using unsolicited result code:

+CDS: <length><CR><LF><pdu> (PDU mode enabled)

or

+CDS: <fo>,<mr>[,<ra>][,<tora>],<scts>,<dt>,<st> (text mode enabled)

2     If SMS-STATUS-REPORT is stored into ME/TA, indication of the memory location is routed

to the TE using unsolicited result code:

+CDSI: <mem3>,<index>

<bfr>           

0     TA buffer of unsolicited result codes defined within this Command is flushed to the TE

when <mode> 1…3 is entered (OK response shall be given before flushing the codes).

1     TA buffer of unsolicited result codes defined within this command is cleared when <mode>

1…3 is entered

Unsolicited result code

 

1.Indicates that new message has been received

If <mt>=1:

+CMTI: <mem3>,<index>

If <mt>=2 (PDU mode enabled):

+CMT: [<alpha>],<length><CR><LF><pdu>

If <mt>=2 (text mode enabled):

+CMT:

<oa>,<scts>[,<tooa>,<fo>,<pid>,<dcs>,<sca>,<tosca>,<length>]<CR>< LF><data>

 

2.   Indicates that new cell broadcast message has been received

If <bm>=2 (PDU mode enabled):

+CBM: <length><CR><LF><pdu>

If <bm>=2 (text mode enabled):

+CBM: <sn>,<mid>,<dcs>,<page>,<pages><CR><LF><data>

 

3.   Indicates that new SMS status report has been received

If <ds>=1 (PDU mode enabled):

+CDS: <length><CR><LF><pdu>

If <ds>=1 (text mode enabled):

+CDS: <fo>,<mr>[,<ra>][,<tora>],<scts>,<dt>,<st>

Reference

3GPP TS 27.005

Note

This command is used to select the procedure how receiving of new messages from the network

is indicated to the TE when TE is active, e.g. DTR signal is ON.

If TE is inactive (e.g. DTR signal is OFF).

If set <mt>=2,<mt>=3 or <ds>=1, make sure <mode>=1, otherwise it will return error..

 

 

 

 

C0409     AT+CPMS     Preferred SMS Message Storage

 

T) AT+CPMS=?

+CPMS: (list of supported <mem1>s),(list of supported <mem2>s),(list of supported <mem3>s)

 

OK

Parameters

See Write Command

R) AT+CPMS?

+CPMS: <mem1>,<used1>,<total1>,<mem2>,<used2>,<total2>,<mem3>,<used3>,<total3>

 

OK

ERROR

Parameters

See Write Command

W) AT+CPMS=<mem1>[,<mem2>[,<mem3>]]

TA selects memory storages <mem1>,<mem2> and <mem3> to be used for reading, writing, etc.

+CPMS: <used1>,<total1>,<used2>,<total2>,<used3>,<total3>

OK

ERROR

Parameters

<mem1>     Messages to be read and deleted from this memory storage “SM”SIM message storage

<mem2>     Messages will be written and sent to this memory storage “SM”SIM message storage

<mem3>     Received messages will be placed in this memory storage if routing to PC is not set (“+CNMI”)

“SM”SIM message storage

<usedx>     Integer type; Number of messages currently in <memx>

<totalx>     Integer type; Number of messages storable in <memx>

Parameter Saving Mode NO_SAVE

 

 

 

 

C0410     AT+CRES     Restore SMS Settings

  

T) AT+CRES=?

+CRES: list of supported <profile>s

 

OK

Parameter

See Write Command

W) AT+CRES=<profile>

Execution command restores message service settings from non-volatile memory to active

memory.

A TA can contain several profiles of settings.

Settings specified in commands Service Centre Address +CSCA and Set Message Parameters

+CSMP are restored. Certain settings may not be supported by the storage

(e.g. (U)SIM SMS parameters) and therefore can not be restored.

OK

ERROR

Parameter

<profile>      

0     Restore SM service settings from profile 0

E) AT+CRES

Same as AT+CRES=0.

OK

If error is related to ME functionality:

+CMS ERROR <err>

Parameter Saving Mode NO_SAVE
Max Response Time 5s

 

 

 

 

C0411     AT+CSAS     Save SMS Settings

 

T) AT+CSAS=?

+CSAS: list of supported <profile>s

 

OK

Parameter

See Write Command

W) AT+CSAS=<profile>

Execution command saves active message service settings to a non-volatile memory.

Settings specified in commands Service Centre Address +CSCA and Set Message Parameters +CSMP are

saved.

Certain settings may not be supported by the storage (e.g. (U)SIM SMS parameters) and therefore can not

be saved.

OK

ERROR

Parameter

<profile>          

0     Save SM service setting in profile 0

E) AT+CSAS

Same as AT+CSAS=0

OK

 

If error is related to ME functionality:

+CMS ERROR <err>

Parameter Saving Mode NO_SAVE
Max Response Time 5s

 

 

 

 

C0412     AT+CSCA     SMS Service Center Address

  

T) AT+CSCA=? OK
R) AT+CSCA?

+CSCA: <sca>,<tosca>[,<scaAlpha>]

 

OK

Parameters

See Write Command

W) AT+CSCA=<sca>[,<tosca>]

TA updates the SMSC address, through which mobile originated SMS are transmitted.

In text mode, setting is used by send and writes commands.

In PDU mode, setting is used by the same commands, but only when the length of the SMSC

address coded into <pdu> parameter equals zero.

 

Note: The Command writes the parameters in NON-VOLATILE memory.

OK

If error is related to ME functionality:

+CME ERROR: <err>

Parameters

<sca>     GSM 04.11 RP SC address Address-Value field in string format(string should be

included in quotation marks); BCD numbers (or GSM default alphabet characters) are converted

to characters of the currently selected TE character set (specified by +CSCS in 3GPP TS 27.007);

type of address given by <tosca>

<tosca>     Service center address format GSM 04.11 RP SC address Type-of-Address octet in

integer format (default refer <toda>)

<scaAlpha>     String type(string should be included in quotation marks) Service center

address alpha data

Parameter Saving Mode NO_SAVE
Max Response Time 5s

 

 

 

 

C0413     AT+CSDH     Show SMS Text Mode Parameters

  

T) AT+CSDH=?

+CSDH: (list of supported <show>s)

 

OK

Parameter

See Write Command

R) AT+CSDH?

+CSDH: <show>

OK

Parameter

See Write Command

W) AT+CSDH=<show>

TA determines whether detailed header information is shown in text mode result codes.

OK

Parameter

<show>      

0     Do not show header values defined in commands +CSCA and +CSMP

(<sca>,<tosca>,<fo>,<vp>,<pid> and <dcs>) nor

<length>,<toda> or <tooa> in +CMT, +CMGL, +CMGR result codes for SMS-DELIVERs and

SMS-SUBMITs in text mode

1     Show the values in result codes

E) AT+CSDH OK
Parameter Saving Mode NO_SAVE

 

 

 

 

C0414     AT+CSMP     Set SMS Text Mode Parameters

  

T) AT+CSMP=? OK

Parameters

See Write Command

R) AT+CSMP?

+CSMP: <fo>,<vp>,<pid>,<dcs>

 

OK

Parameters

See Write Command

W) AT+CSMP=[<fo>[,<vp>,<pid>,<dcs>]]

TA selects values for additional parameters needed when SM is sent to the network or placed in

a storage when text mode is selected (+CMGF=1).

It is possible to set the validity period starting from when the SM is received by the SMSC (<vp>

is in range 0… 255) or define the absolute time of the validity period termination

(<vp> is a string).

 

Note: The Command writes the parameter <fo> in NON-VOLATILE memory.

OK

Parameters

<fo>     Depending on the command or result code: first octet of GSM 03.40 SMS-DELIVER,

SMS-SUBMIT (default 17),

SMS-STATUS-REPORT, or SMS-COMMAND (default 2) in integer format.

SMS status report is supported under text mode if <fo> is set to 49.

<vp>     Depending on SMS-SUBMIT <fo> setting: GSM 03.40 TP-Validity-Period either in integer

format (default 167) or in time-string format (refer <dt>)

<pid>     GSM 03.40 TP-Protocol-Identifier in integer format (default 0).

<dcs>     GSM 03.38 SMS Data Coding Scheme in Integer format.

Parameter Saving Mode NO_SAVE

 

 

 

 

C0415     AT+CSMS     Select Message Service

 

T) AT+CSMS=?

+CSMS: (list of supported <service>s)

 

OK

Parameter

See Write Command

R) AT+CSMS?

+CSMS: <service>,<mt>,<mo>,<bm>

 

OK

Parameters

See Write Command

W) AT+CSMS=<service>

+CSMS: <mt>,<mo>,<bm>

 

OK

If error is related to ME functionality:

+CME ERROR: <err>

Parameters

<service>      

0     GSM 03.40 and 03.41 (the syntax of SMS AT commands is compatible with 3GPP TS 27.005

Phase 2 version 4.7.0; Phase 2+ features which do not require new Command syntax may be

supported (e.g. correct routing of messages with new Phase 2+ data coding schemes))

1     GSM 03.40 and 03.41 (the syntax of SMS AT commands is compatible with 3GPP TS 27.005

Phase 2+ version; the requirement of <service> setting 1 is mentioned under corresponding

command descriptions)

<mt>     Mobile Terminated Messages:

0     Type not supported

1     Type supported

<mo>     Mobile Originated Messages:

0     Type not supported

1     Type supported

<bm>     Broadcast Type Messages:

0     Type not supported

1     Type supported

Parameter Saving Mode NO_SAVE

 

 

 

 

Adsense

 

 WiFi IoT Module

 

www.mxchip.com

 

 

 Bluetooth Module

www.feasycom.com

 

 

 5G/LTE/CAT-M1/NB-IoT

 

www.simcom.com

 

Viewed Page List