GSM Modules
26
Parameter
<alpha>
:
the name of corresponding <da> or <oa> on the terminal.
<stat>
:
the message status in memory.
<oa>
:
message original number string
<da>
:
message target string
<scts>
:
message service center time string
<lenth>
:
length of message body <data>
<pdu>
:
ME/TA hex value
<stat>:
0:“REC UNREAD” received unread message.
1:“REC READ” received read message.
2:“STO UNSENT” saved unread message.
3:“STO SENT” saved read message
4: “All” all messages
4.5 +CSMS: select SMS service
Description
The command is used to select SMS <service>. Send
(
SMS-MO
)
, receive
(
SMS-MT
)
, cell broadcast SMS-CB.
Format
AT+CSMS = <service>
AT+CSMS?
+CSMS:0,1,1,1
OK
Check the current SMS service
Support receive/transmit message and cell
broadcast
Example
AT+CSMS=0
+CSMS: 1,1,1
OK
AT+CSMS?
+CSMS:0,1,1,1
OK
Set current SMS service as GSM Phase 2
Support receive/transmit message and cell
broadcast
Check the settings
Succeed
Parameter
<service>
0
:
compatible with GSM07.05
Phase 2 version 4.7.0
1
:
compatible with GSM07.05
Phase 2+ version
<mo>
1
:
support send message
<mt>
1
:
support receive message
<bm>
1
:
support cell broadcast
4.6 +CMGS: send message
Description
This command is used to send the message from the terminal to the network.
Return the parameter to the terminal after the message is sent.
Note: there is error prompt as the message is sent to illegal number.