Wavecom GSM Modem
This confidential document is the property of WAVECOM and may not be copied or circulated without permission
37
5.12. Send message +CMGS
The <address> field is the address of the terminal network to whom the
message is sent ; <exitmethod> is ^Z : ASCII 26. The text can contain all
existing character except ^Z.
Example of use :
Application to GSM
AT+CMGS="+33146290800"<CR>
Hello, how are you ?^Z
Send a message in text
mode
GSM to application
+CMGS : <mr>
OK
Successful transmission
Application to GSM
AT+CMGS=<length><CR>
<pdu>^Z
Send a message in PDU
mode
GSM to application
+CMGS : <mr>
OK
Successful transmission
The message reference <mr> 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.
5.13. Set Text Mode Parameters +CSMP
This command shall be used to select value for the <vp>, <pid>, the
<dcs>. The application must send the following command :
AT+CSMP=<fo>, <vp>, <pid>,<dcs>
In text mode <vp> is coded only in "
relative"
format. This means one
octet (see document [4] for more details).
Application to GSM
AT+CSMP?
current values
GSM to application
+CSMP: 0,0,0,0
OK
no validity period
dcs = PCCP437 alphabet
( 8 bits -> 7 bits )
Application to GSM
AT+CSMP=16,32,64,244
validity period = 32
dcs = GSM 8 bits alphabet
GSM to application
OK
command correct