Moxa Technologies G2150I Carrying Case User Manual


 
OnCell G2150I AT Command Set Short Message Commands
7-15
AT+CMGD=1,0 OK
Note: The message from the preferred message storage at the
location 1 is deleted
AT+CMGD=1,1 OK
Note: All READ messages from the preferred message storage are
deleted
AT+CMGD=1,2 OK
Note: All READ messages and SENT mobile originated messages
are deleted
AT+CMGD=1,3 OK
Note: All READ, SENT, and UNSENT messages are deleted
AT+CMGD=1,4 OK
Note: All messages are deleted
Defined values:
<index> If <DelFlag> = 0
• (1-20) if the preferred message storage is “BM”
• SIM dependant integer values (in the range of SIM location number) if the preferred
message storage is “SM” or “SR”.
If <DelFlag> is > 0, <index> is ignored.
<DelFlag>
0 Delete message at location <index> (default value).
1 Delete All READ messages
2 Delete All READ and SENT messages
3 Delete All READ, SENT and UNSENT messages
4 Delete All messages
If <DelFlag> is omitted, default value is used.
Note: When the preferred message storage is “SR”, as SMS status reports are assumed to have
a “READ” status, if <DelFlag> is greater than 0, all SMS status reports will be deleted.
Service Center Address: +CSCA
Description: This command is used to indicate to which service center the message must be sent.
The product has no default value for this address. If the application tries to send a message without
having indicated the service center address, an error will be generated. Therefore, the application
must indicate the SC address when initializing the SMS. This address is then permanently valid.
The application may change it if necessary.
Command syntax: AT+CSCA=<sca>
Command Possible responses
AT+CMGS= “+33146290800”<CR>
Hello, how are you?<ctrl-Z>
Note: Send a message
+CMS ERROR: 330
Note: service center unknown
AT+CSCA=“0696741234”
Note: Service center initialization
OK
AT+CMGS=“+33146290800”<CR>
Happy Birthday ! <ctrl-Z>
+CMGS: 1
OK
Note: Successful transmission