User's Manual

Page 25 of 31
4.2 SMS
4.2.1 Message Format
U6100 supports two kinds of message format, PDU and TEXT which can be set by AT command AT+CMGF,
AT+CMGF=0 means PDU format, and AT+CMGF=1 means TEXT format.
4.2.2 Set Message Storage Location
The command AT+CPMS=<mem1>,<mem2>,<mem3> is used to set message storage location.
<mem1>, <mem2>, <mem3> can be set as SM and ME, SM means SIM cardME means the U6100 module.
<mem1>: The parameter set here means memory storage used as read and delete message function. It can be operated
by t h e f o ll o w e d AT c o mm a n d s : AT +CM G L , AT + CMGR a nd AT+C M G D;
<mem2>: The parameter set here means memory storage used as writing and send message function. It can be operated
by the followed AT commands: AT+CMSS and AT+CMGW;
<mem3>: Received messages will be storage in this memory if routing to PC is not set;
Response:
If no error:
+CPMS:<used1>,<total1>,<used2>,<total2>,<used3>,<total3>
OK
<used1, 2, 3> Number of messages currently storage in <mem1, 2, 3>
<total1, 2, 3> Number of message capacity of <mem1, 2, 3>
If error:
+CMS ERROR:<err>
The command AT+CPMS? is used to display the remained capacity of memory.
AT+C PM S?
Response:
If no error:
+CPMS:<mem1>,<used1>,<total1>,<mem2>,<used2>,<total2>,<mem3>,<used3>,<total3> OK
If error: