SARA-R4/N4 series - AT Commands Manual
UBX-17003787 - R09
9 Short Messages Service
Page 68 of 307
Type
Syntax
Response
Example
OK
Read
AT+CPMS?
+CPMS: <mem1>,<used1>,<total1>,
<mem2>,<used2>,<total2>,
<mem3>,<used3>,<total3>
OK
+CPMS: "MT",4,350,"MT",4,350,
"MT",4,350
OK
Test
AT+CPMS=?
+CPMS: (list of supported
<mem1>s),(list of supported
<mem2>s),(list of supported
<mem3>s)
OK
+CPMS: ("MT","ME","SM","BM",
"SR"),("MT","ME","SM"),("MT","ME",
"SM")
OK
9.3.3 Defined values
Parameter
Type
Description
<mem1>
String
Memory used to read and delete messages. The supported values may vary:
•
"ME": ME message storage
•
"SM": (U)SIM message storage
•
"MT" (factory-programmed value): "ME"+"SM", "ME" preferred
•
"BM": Broadcast Message storage
•
"SR": Status Report storage
The default value is the currently set value.
<mem2>
String
Memory used to write and send SMS. The supported values may vary:
•
"ME": ME message storage
•
"SM": (U)SIM message storage
•
"MT" (factory-programmed value): "ME"+"SM", "ME" preferred
The default value is the currently set value.
<mem3>
String
Memory preferred to store the received SMS. The supported values may vary:
•
"ME": ME message storage
•
"SM": (U)SIM message storage
•
"MT" (factory-programmed value): "ME"+"SM", "ME" preferred
The default value is the currently set value.
<used1>
Number
Number of used message locations in <mem1>
<total1>
Number
Total number of message locations in <mem1>
<used2>
Number
Number of used message locations in <mem2>
<total2>
Number
Total number of message locations in <mem2>
<used3>
Number
Number of used message locations in <mem3>
<total3>
Number
Total number of message locations in <mem3>
9.4 Preferred message CMGF
+CMGF
SARA-R404M SARA-R410M-01B SARA-R410M-02B SARA-R410M-52B SARA-R412M
Modules
SARA-N4
Syntax
PIN required
Settings saved Can be aborted
Response time Error reference
Attributes
full
Yes
No
-
9.4.1 Description
Indicates to the MT which input and output format of messages shall be used.
9.4.2 Syntax
Type
Syntax
Response
Example
Set
AT+CMGF=[<mode>]
OK
AT+CMGF=1
OK
Read
AT+CMGF?
+CMGF: <mode>
OK
+CMGF: 1
OK