> 2.11.4 | Sending SMS

> This section comprises the subsections Description, Used AT Commands, Flow Chart, Hints and Example. To move to these subsections please use the Navigation Frame or the appropriate buttons on the toolbar.

> 2.11.4.1 | Description

> This chapter describes the steps required to send a short message. There are two ways:

> • | One way is sending a stored message from memory. This applies only to messages stored as “STO SEND” or “STO UNSENT”.

> • | Another way is to create a new short message in PDU or text mode using the AT+CMGS command. In this case, the message will be sent directly.

> 2.11.4.2 | Used AT commands

> Command | Explanation
> AT+CMGS | Send SMS message
> AT+CMSS | Send SMS message from storage

> For further details about the commands see [2].

> 2.11.4.3 | Flow Chart

> Figure 80: Sending SMS

> 2.11.4.4 | Hints

> Not applicable.

> 2.11.4.5 | Example

> ***************************************
> Comment: Sending SMS
> ***************************************
> ***************************************
> Comment: List all stored unsent messages (PDU mode)
> ***************************************
> Subscr 1 Send: AT+CMGL=2
> Subscr 1 Receive: AT+CMGL=2
> Subscr 1 Receive: +CMGL: 5,2,,31
> Subscr 1 Receive: 0031000C919471798762130000C813C8329BFD6681D0EF3B282C2F83F2EFFA0F
> Subscr 1 Receive:
> Subscr 1 Receive: OK
> ***************************************
> Comment: Send message at index 5
> ***************************************
> Subscr 1 Send: AT+CMSS=5
> Subscr 1 Receive: AT+CMSS=5
> Subscr 1 Receive:
> Subscr 1 Receive: +CMSS: 121
> Subscr 1 Receive:
> Subscr 1 Receive: OK
> ***************************************
> Comment: Send a new message created in PDU mode <ctrl-Z>
> ***************************************
> Subscr 1 Send: AT+CMGS=30
> Subscr 1 Receive: AT+CMGS=30
> Subscr 1 Receive: >
> Subscr 1 Send: 0011000A9171798762130000A713C8329BFD6681D0EF3B282C2F83F2EFFA0F’26’
> Subscr 1 Receive: 0011000A9171798762130000A713C8329BFD6681D0EF3B282C2F83F2EFFA0F’26’
> Subscr 1 Receive:
> Subscr 1 Receive: +CMGS: 122
> Subscr 1 Receive:
> Subscr 1 Receive: OK
> ***************************************
> Comment: Try to send a SMS in PDU mode with wrong length
> ***************************************
> Subscr 1 Send: AT+CMGS=25
> Subscr 1 Receive: AT+CMGS=25
> Subscr 1 Receive: >
> Subscr 1 Send: 0011000A9171798762130000A713C8329BFD6681D0EF3B282C2F83F2EFFA0F’26’
> Subscr 1 Receive: 0011000A9171798762130000A713C8329BFD6681D0EF3B282C2F83F2EFFA0F'26'
> Subscr 1 Receive: +CMS ERROR: unknown error