AT Command Set

5.7 AT+CMGW Write SMS message to memory

Test command

AT+CMGW=?

Execute command

1)If text mode (+CMGF=1): +CMGW[=<oa/da> [,tooa/toda>[,stat>]]] <CR> text is entered ctrl-Z/ESC><ESC> quits without sending

2)If PDU mode (+CMGF=0): +CMGW=<length> [,stat]<CR> PDU is given <ctrl- Z/ESC>

Response

OK

Response

TA transmits SMS (either SMS-DELIVER or SMS-SUBMIT) from TE to memory storage <mem2>. Memory location <index> of the stored message is returned. Message status will be set to ‘stored unsent’ unless otherwise given in parameter <stat>.

Note: SMS-COMMANDs and SMS-STATUS-REPORTs cannot be stored in text mode.

If writing is successful:

+CMGW: <index> OK

If error is related to ME functionality:

+CMS ERROR: <err>

Parameter

<oa> GSM 03.40 TP-Originating-Address Address value field in string format; BCD numbers (or GSM default alphabet characters) are converted into characters; type of address given by <tooa>

<da> GSM 03.40 TP-Destination-Address Address-Value field in string format; BCD numbers (or GSM default alphabet characters) are converted into characters; type of address given by <toda>

<tooa> GSM 04.11 TP-Originating-Address Type-of-Address octet in inte- ger format (default refer <toda>)

<toda> GSM 04.11 TP-Destination-Address Type-of-Address octet in in- teger format (when first character of <da> is + (IRA 43) default is 145, otherwise default is 129)

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

In text mode, the maximum length of an SMS depends on the used coding scheme: It is 160 characters if the 7 bit GSM coding scheme is used, and 140 characters according to the 8 bit GSM coding scheme.

<stat> integer type in PDU mode (default 0), or string type in text mode (defauld “REC UNREAD“); indicates the status of message in memory; defined values:

0

“REC UNREAD”

Received unread messages (default)

1

“REC READ”

Received read messages

2

“STO UNSENT”

Stored unsent messages

3

“STO SENT”

Stored sent messages

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

03.40TPDU in hexadecimal format: ME/TA converts each octet of TP data unit into hexadecimal numbers containing two IRA char- acters (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

MC35_ATC_01_V04.00

Page 136 of 238

02.04.2002

Page 136
Image 136
Siemens MC35 manual AT+CMGW Write SMS message to memory, At+Cmgw=?, +CMGW index OK

MC35 specifications

The Siemens MC35 is a compact and versatile modem designed primarily for mobile communication, data transmission, and machine-to-machine (M2M) applications. Launched in the early 2000s, it quickly became popular due to its blend of performance, reliability, and ease of integration, making it a solid choice for developers and businesses.

One of the key features of the MC35 is its support for GSM and GPRS technologies. This allows it to connect seamlessly to various networks, enabling users to transmit data at speeds that were impressive for its time. The GPRS capability can offer data rates of up to 171.2 kbps, allowing for efficient data transfer even in areas with limited connectivity.

The MC35 is designed to support both SMS and voice functionalities, making it adaptable for a range of applications. This includes remote monitoring, telemetry, and alarm signaling. The ability to send and receive SMS messages is a significant advantage for applications that require immediate alerts and notifications, enhancing its utility in security systems and industrial automation.

Furthermore, the modem is equipped with a range of interfaces, including serial communication (RS232), which makes it compatible with various hardware devices. This facilitates easy integration into existing systems, whether for industrial machinery or consumer electronics. Additionally, it features a robust software development kit (SDK), which enables developers to create custom applications tailored to their specific requirements.

Power consumption is another notable characteristic of the Siemens MC35. It is engineered to be energy-efficient, which is especially important for battery-operated devices or systems that require a prolonged operation without frequent recharging or maintenance.

In terms of physical characteristics, the MC35 is compact and lightweight, allowing it to fit into various enclosure designs without occupying much space. Its durability ensures it can perform reliably in different environments, making it suitable for outdoor and industrial applications.

To summarize, the Siemens MC35 stands out as a reliable modem with a rich feature set that includes GSM and GPRS support, SMS and voice capabilities, easy integration through various interface options, and energy-efficient operation. Its adaptability makes it a valuable tool for a wide array of communication and data transmission tasks, solidifying its place in the evolution of mobile communications technology.