SMS

4-12 AT Commands Reference Manual June 30, 20 08

Writing, Saving and Sending Messages (Using AT+CMGW and AT+CMSS)

Writing messages into the database, with or without destination address. In TEXT mode, the

header parameters will be set according to CSMP settings:

AT+CMGW //Writing a message without destination address
> message text <ctrl z>
+CMGW: 142
OK
AT+CMGW="054565132" //Writing a message with destination address
> message text <ctrl z>
+CMGW: 143
OK
:
AT+CMSS=143 //Send a message to the destination address with which it was stored,
using the message index
OK
AT+CMSS=143,"054565029" //Send a message to a destination address, regardless of the
destination address with which it was stored (if any), using the message index
OK
AT+CMSS=3,"054565029" //In this way, received messages (stored in the inbox) can also be sent
OK
AT+CSMP=25,"05/03/15,21:22:23+08"
OK
AT+CMGW="0544565034"
A<CTRL+Z>
+CMGW: 129
OK
AT+CMGR=129
+CMGR: "STO UNSENT", "0544565034",,129,25,0,0,"05/03/15,21:22:23+08","+972521100059",145,1
A
OK
AT+CM GF= 0
OK
AT+CMGR=129
+CMGR: 2,,1
079179521201009519FF0A8150446505430000503051122232800141
AT+CM GW= 24
> 079179521201009519000c917952428650290000AABBAABBAABB010441424344
+CMGW: 146
OK