[Hilo] How to get SMS Delivery report?

[Hilo] How to get SMS Delivery report? How to receive an acknowledgment after sending a SMS?

Answer: To enable the SMS Delivery report URC, you need to set <AT+CNMI=2,1,2,1,0> whatever SMS is PDU or TEXT mode.
Also, if in text mode, you need to enable the report feature by setting <AT+CSMP=49,167,0,0>… (Please make sure the report bit is 1. 49 = 110001(B))
If in PDP mode, you need to enable the report feature in the PDU field.

Be careful, AT+CSMP has an effect only on all NEW SMS sent or written into the SIM. All OLD SMS already stored in the SIM will not be impacted.

For example:
1/ Example when send PDU SMS:
AT+CNMI=2,2,0,1,1 ----Set 1 to enable the URC of +CDS (status report)
OK
AT+CMGF=0 ----When set PDU SMS, it’ll ignore the configuration of AT+CSMP
OK
AT+CSMP?
+CSMP: 17,167,0,0 ----The configuration of CSMP(Disable the status report) is ignored when sending PDU SMS.
OK
AT+CMGS=17
> 0031000B813115606603F60000A703E170F8 --The PDU includes status report from SMSC
+CMGS: 88
OK
+CDS: 34
0891683110808805F006590B813115606603F6315080118512233150801185522300

2/ Example when send TEXT SMS:
AT+CMGF=1 ----When send TEXT SMS, then it’ll use the configuration of AT+CSMP
OK
AT+CNMI=2,2,0,1,1 ----Set 1 to enable the URC of +CDS (status report)
OK
AT+CSMP=49,167,0,0 ----Set 49 to enable the status report, 1 day validity.
OK
AT+CMGS=“1351066xxxx”
> hello, this is a message
+CMGS: 17
OK
+CDS: 32,17,"+861353815xxxx",145,“12/11/27,10:12:17+32”,“12/11/27,10:12:17+32”,0