I have an application through which I am sending and receiving SMS using GSM Modem. I want to receive Delivery reports when a message is delivered successfully at the receiver's end.
I have tested the GSM modem through hyper terminal using the following commands
AT+CSMP=49,167,0,0 <CR>
AT+CNMI=2,2,0,1,0 <CR>
AT+CMGS="[phoneNumber]" <CR>
> Message content <ctrl Z>
+CMGS: 72
OK
+CDS:6,72,"[phoneNumber]" ,129,"08/11/17,10:16:18+22" , "08/11/17,10:16:21+22" , 0
I am able to receive delivery reports as shown above until a new message indication arrives.
After that delivery reports indications are not forwarded from the modem to the Hyper terminal.
+CMT: "+[PhoneNumber]" , , "08/11/17, 11:59:28+22"
New Message contents
I find that the parameters for CNMI have changed
AT+CNMI?
+CNMI: 2,0,0,0,0
Please could you explain why this is happening? I would like to know how to receive delivery reports without affecting the new message indications.
Thanks in advance