Write Message To Memory +Cmgw; Send Message From Storage +Cmss - Multitech CDMA Wireless Modem Reference Manual

Multi-tech systems cdma wireless modem reference guide
Hide thumbs Also See for CDMA Wireless Modem:
Table of Contents

Advertisement

Write Message to Memory +CMGW

Description:
This command stores a message in memory (SMS-SUBMIT). The memory location <index>
is returned (no choice possible as with phonebooks +CPBW). A text or Unicode message is
entered as described for the Send Message +CMGS command.
The <length> parameter is optional, it is used to set the length of the text string. When
<length> is specified, the CMGW command will only process the number of bytes specified
by <length> regardless of whether it contains <ctrl-Z>, <ESC>, or <backspace> characters.
The parameters <priority> and <cbn> are optional. When not specified, they default as
follows:
Priority: 0 (Normal)
Call back number: Not included in the message.
Values:
<oa/da> : Origination/destination address value in string format.
<length> : Length of the text message (in bytes).
<priority>: Message priority:
0 – Normal
1 – Interactive
2 – Urgent
3 – Emergency
<cbn>: Call Back Number
Syntax:
Command syntax: AT+CMGS= <oa/da> [,<length>] [,<priority>] [,<cbn>] <CR>
enter text <ctrl-Z / ESC>
Response syntax: +CMGW: <index> or +CMS ERROR: <err> if writing fails
Command
AT+CMGW="8585551212"<CR>
Hello how are you ?<ctrl-Z>
Note: Write a message
AT+CMGW="8587777777",6<CR>
Hello?<ctrl-Z>
Note: Write a message with specified length of 6 bytes
AT+CMGW="8585551212",2,1,1"5550000"
Please call ASAP<ctrl-Z>
Note: Write message with the specified priority, privacy,
reply option and call back number. Notice length field is
omitted.

Send Message From Storage +CMSS

Description:
This command sends a message stored at location value <index>.
Syntax:
Command syntax: AT+CMSS=<index>[,<da> [,<toda>] ]
Response syntax: +CMSS: <mr> or +CMS ERROR: <err> if sending fails
If a new recipient address <da> is given, it will be used instead of the one stored with the
message.
Command
AT+CMGW="8585551212"<CR>
Today is my birthday <CTRL-Z>
Note: Store message in phonebook.
AT+CMSS=5,8582221212
Note: Send message 5 to a destination number
AT+CMSS=5,8583331212
Note: Send message 5 to a different destination
number
For response mode, <mr> is the number of SMS messages that have been sent since power
up. The maximum count is 65,535 messages.
Note: If the "FD" facility is enabled, only the <da> entries in the FDN phonebook can be set.
Multi-Tech Systems, Inc. CDMA Wireless AT Commands - PN S000294C
Chapter 8 – Short Messages Commands
Possible Responses
+CMGW: 4
OK
Note: Message stored in index 4
+CMGW: <index>
OK
Note: Message stored in <index>
+CMGW: 5
OK
Note: Message stored in index 5
Possible Responses
+CMGW : 5
OK
Note: Message stored with index 5
+CMSS: 1
OK
Note: Successful transmission. One SMS message sent
since power up.
+CMSS: 2
OK
Note: Successful transmission. Two SMS messages sent
since power up.
63

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mtsmc-c seriesMtmmc-c seriesMtcba-c series

Table of Contents