beautypg.com

Westermo GS-01 User Manual

Page 43

background image

43

6195-2201

+CMGS – Send message

Command syntax in text mode:

AT+CMGS= [ , ]

text is entered

Command syntax in PDU mode:

AT+CMGS=

PDU is entered

The

field is the address of the terminal network to whom the message is sent.
To send the message, simply type character (ASCII 26). The text can contain all
existing characters except and (ASCII 27).
This command is abortable using the character when entering text.
In PDU mode, only hexadecimal characters are used (‘0’...’9’,’A’...’F’).

Example of use:

Application to GSM

AT+CMGS=”+33146290800”

Send a message in text

Please Call me soon, Fred.

mode

GSM to application

+CMGS:

Successful transmission

OK

Application to GSM

AT+CMGS=

Send a message in PDU

mode

GSM to application

+CMGS:

Successful transmission

OK

The message reference which is returned back to the application is allocated by the
GSM module. This number begins with 0 and is incremented by one for each outgoing
message (successful and failure case) ; it is cyclic on one byte (0 follows 255).

Note: this number is not a storage number - outgoing messages are not stored.