Moxa Technologies G2150I Carrying Case User Manual


 
OnCell G2150I AT Command Set Short Message Commands
7-6
AT+CPM S?
Note: Read
+CPMS: “SM”,4,10,”ME”,4,99,”ME”,4,99
OK
Note: Read SMS from SIM; write, store SMS
from/to flash
Defined values:
<mem1> Memory used to list, read, and delete messages. It can be:
• SM: SMS message storage in SIM (default)
• ME: SMS message storage in Flash.
• SR: Status Report message storage (in SIM if the EF-SMR file exists, otherwise in the
ME non volatile memory)
• BM: CBM message storage (in volatile memory).
Note: “SR” ME non volatile memory is cleared when another SIM card is inserted. It is kept,
even after a reset, while the same SIM card is used.
<mem2> Memory used to write and send messages
• SM: SMS message storage in SIM (default).
• ME: SMS message storage in Flash.
<mem3> Memory to which received SMS are preferred to be stored
• SM: SMS message storage in SIM (default).
• ME: SMS message storage in Flash.
If the command is correct, the following message indication is sent:
+CPMS: <used1>,<total1>,<used2>,<total2>,<used3>,<total3>
When <mem1> is selected, all following +CMGL, +CMGR and +CMGD commands are related to
the type of SMS stored in this memory.
The maximum number of SMS in flash is 99.
When the G2150I is switched on, <mem1>, <mem2>, and <mem3> are initialized to SM.
Preferred Message Format: +CMGF
Description: The message formats supported are text mode and PDU mode. In PDU mode, a
complete SMS Message including all header information is given as a binary string (in
hexadecimal format). Therefore, only the following set of characters is allowed: {0, 1, 2, 3, 4, 5, 6,
7, 8, 9, A, B, C, D, E, F}. Each pair or character is converted to a byte (e.g.: ‘41’ is converted to
the ASCII character ‘A’, whose ASCII code is 0x41 or 65). In Text mode, all commands and
responses are in ASCII characters. The selected format is stored in EEPROM by the +CSAS
command.
Command syntax: AT+CMGF=<mode>
Command Possible responses
AT+CMG F?
Note: Current message format
+CMGF:1
OK
Note: Text mode
AT+CMG F=?
Note: Possible message format
+CMGF: (0,1) OK
Note: Text or PDU modes are available
Example, sending an SMS Message in PDU mode
Command Possible responses
AT+CMG F=0
Note: Set PDU mode
OK
Note: PDU mode valid
AT+CMGS=14<CR>
0001030691214365000004C9E9340B
Note: Send complete MSG in PDU mode, no
SC address
+CMGS: 4
OK
Note: MSG correctly sent, <mr> is returned