beautypg.com

At+cmgs send sms message, 6 at+cmgs send sms message – Siemens MC35 User Manual

Page 127

background image

AT Command Set

MC35_ATC_01_V03.02

Page 127 of 228

13.03.2002

5.6 AT+CMGS Send SMS message

Test command

AT+CMGS=?

Response

OK

Parameter

Execute command

1) If text mode
(+CMGF=1):
+CMGS=
[,]
text is entered

2) If PDU mode
(+CMGF=0):
+CMGS=

PDU is given Z/ESC>
ESC aborts message

Response

TA transmits SMS message from TE to network (SMS-SUBMIT). Message
reference value is returned to TE on successful message delivery.
Value can be used to identify message upon unsolicited delivery status re-
port result code.

1) If text mode (+CMGF=1) and sending successful:
+CMGS: [,scts>] OK
2) If PDU mode (+CMGF=0) and sending successful:
+CMGS: [,ackpdu>] OK
3) If error is related to ME functionality:
+CMS ERROR:

Parameter

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

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

integer type value indicating in text mode (+CMGF=1) the length of

the message body (or ) 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.

GSM 03.40 TP-Message-Reference in integer format

GSM 03.40 TP-Service-Centre-Time-Stamp in time-string format
(refer

)

GSM 03.40 TP-Discharge-Time in time-string format: “yy/MM/
dd,hh:mm:ss±zz”, where characters indicate year (two last digits),
month, day, hour, minutes, seconds and time zone. For example,
6th of May 1994, 22:10:00 GMT+2 hours equals
“94/05/06,22:10:00+08”

GSM 03.40 RP-User-Data element of RP-ACK PDU; format is

same as for in case of SMS, but without GSM 04.11 SC
address field and parameter shall be enclosed in double quote
characters like a normal string type parameter

For SMS: GSM 04.11 SC address followed by GSM 03.40 TPDU
in hexadecimal format: ME/TA converts each octet of TP data unit
into hexadecimal numbers containing two IRA characters (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 TPDU in
hexadecimal format.