Specifications

Chapter 22 – Verizon® Specific AT Commands
Multi-Tech Systems, Inc. CDMA AT Commands Reference Guide (PN S000294K) 180
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.
Values Notes: 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.
Defaults are used when parameters are not specified.
The <priority>, <privacy>, <reply option>, and <cbn> parameters are optional.
Values: <oa/da> Origination/destination address value in string format.
<length> Length of the text message (in bytes).
<priority> message priority:
0 Normal (Default)
1 Interactive
2 Urgent
3 Emergency
<privacy> Message privacy:
0 Normal (Default)
1 Restricted
2 Confidential
3 Secret
<reply> Message reply option:
0 No Acknowledge (Default)
1 Delivery Acknowledge
<cbn> Call Back Number (not included by default)
Syntax: Command syntax: AT+CMGS= <oa/da> [,<length>] [,<priority>] [,<privacy>] [,<reply>] [,<cbn>] <CR>
entered text <ctrl-Z / ESC>
Response syntax: +CMGW: <index> or +CMS ERROR: <err> if writing fails
Command Possible Responses
AT+CMGW=”8585551212”<CR>
Hello how are you ?<ctrl-Z>
Note: Write a message
+CMGW: 4
OK
Note: Message stored in index 4
AT+CMGW=”8587777777”,6<CR>
¥IÅàø?<ctrl-Z>
Note: Write a message with specified length of 6 bytes
+CMGW: <index>
OK
Note: Message stored in <index>
AT+CMGW=”8585551212”,,2,1,1,”5550000”
Please call ASAP<ctrl-Z>
Note: Write message with the specified priority, privacy,
reply option & call back number. Note length field is omitted.
+CMGW: 5
OK
Note: Message stored in index 5
Service Programming Code +WSPC
Description: This command allows for entry of the service programming code (either MSL or OTKSL). Upon successful
entry of this code, all other service provisioning AT commands may be used. If this code is not properly
entered prior to attempting other provisioning AT commands, all provisioning commands will return ERROR.
If the OTKSL is used to enter provisioning mode, only the +WIMI, +WMDN, and +WCMT commands will be
allowed. All other commands will return ERROR.
This command supports fifteen attempts to enter the correct service programming code. If fifteen incorrect
attempts are performed, the ME will report a message and go into offline mode.
Once the correct SPC code is entered, the modem transitions to the Service Programming state. This state
is not exited until a commit is done (+WCMT). While in the Service Programming state, subsequent
validations of the SPC code are ignored until the Service Programming state is reset.
Values: <lock type>
0 OTKSL – One Time Key Subsidy Lock
1 MSL – Master Subsidy Lock
<code> Six character programming code.
Syntax: Command syntax: AT+WSPC=<lock type>,<code>
Command Possible Responses
AT+WSPC?
Note: Service programming code request
ERROR
Note: Invalid request
AT+WSPC=? ERROR Note: Invalid request
AT+WSPC=1,111111
Note: Enter service programming code 111111
ERROR
Note: Code invalid
AT+WSPC=1,000000
Note: Enter service programming code 000000
OK
Note: Code valid