55
6196-2220
+CNMA New Message Acknowledgement
Description:
This command allows reception of a new message routed directly to the TE to be
acknowledged. In TEXT mode, only positive acknowledgement to the network (RP-ACK)
is possible. In PDU mode, either positive (RP-ACK) or negative (RP-ERROR) acknowl-
edgement to the network is possible. Acknowledge with +CNMA is possible only if the
+CSMS parameter is set to 1 (+CSMS=1) when a +CMT or +CDS indication is shown
(see +CNMI command). If no acknowledgement is given within the network timeout, an
RP-ERROR is sent to the network, the <mt> and <ds> parameters of the +CNMI com-
mand are then reset to zero (do not show new message indication).
Syntax in text mode:
AT+CNMA
Syntax in PDU mode:
AT+CNMA [ = <n> [ , <length> [ <CR> PDU is entered <ctrl-Z / ESC> ] ] ]
NOTE:
PDU is entered using <ackpdu> format instead of <pdu> format
(e.g.. SMSC address field is not present).
Example of acknowledgement of a new message in TEXT mode:
Command example
Possible responses
Note
AT+CMGF=1 OK
Set
TEXT
mode
AT+CNMI=2,2,0,0,0 OK
<mt>=2
+CMT: “123456”,
Received message
”98/10/01, 12:30 00+00”,
129, 4, 32, 240, “15379”,
129,5<CR><LF>
AT+CNMA
OK
Acknowledge the message
received
Note: send positive
acknowledgement to the
network
AT+CNMA
+CMS ERROR: 340
Try to acknowledge again
Note: no +CNMA
acknowledgment
expected
Содержание GD-01 TCP
Страница 147: ...147 6196 2220...