April 13, 2021, 12:44:05 am

News:

SMF - Just Installed!


ReportText is empty

Started by macio, March 22, 2016, 03:23:32 pm

Previous topic - Next topic

macio

When listing reports with nrGsm1SmsListItem procedure aSms.ReportText and aSms.Text are empty and saved reports are not marked in aSms.Report as reports but ordinary smses.

I have set:
On SMS receive: Read and Show
Confirm: Checked
Driver: Wavecom Modem

I can see that delivery reports are saved to SR memory.

Example from log (I sent sms nr 71 and got report saved to SR memory nr 2. Now I would like to get the date and reference from delivery report):

[2016-03-22 16:29:23] nrGsm: OK Returned !!! \0Dh\0AhOK\0Dh\0Ah
[2016-03-22 16:29:23] nrGsm: OK Returned !!! \0Dh\0Ah>
[2016-03-22 16:29:27] nrGsm: Sms Sent Notify:  71
[2016-03-22 16:29:27] nrGsm: OK Returned !!!  71\0Dh\0Ah\0Dh\0AhOK\0Dh\0Ah
[2016-03-22 16:29:27] nrGsm: Queue finished
[2016-03-22 16:29:34] nrGsm: Sms Notify:  "SR",2 mem: SR, id: 2
[2016-03-22 16:29:34] nrGsm: cmd: AT+CPMS=<q><SMSrmem><q><cr>
[2016-03-22 16:29:34] nrGsm: OK Returned !!! \0Dh\0Ah+CPMS: 2,5,1,25,1,25\0Dh\0Ah\0Dh\0AhOK\0Dh\0Ah
[2016-03-22 16:29:34] nrGsm: cmd: AT+CMGF=0<cr>
[2016-03-22 16:29:34] nrGsm: OK Returned !!! \0Dh\0AhOK\0Dh\0Ah
[2016-03-22 16:29:34] nrGsm: cmd: AT+CMGR=<SMSid><cr>
[2016-03-22 16:29:34] nrGsm: OK Returned !!! \0Dh\0Ah+CMGR: 1,,25\0Dh\0Ah02440B918427647006F6613022415081406130224170934000\0Dh\0Ah\0Dh\0AhOK\0Dh\0Ah

The question is: is it possible to get the details of the report by reading items of SR? What is the best way to get the details from reports?
I enclose diagnostic log (sorry, somehow I can't send attachments).

Best regards

macio

Any suggestions how to deal with reports? How to get information when the sms was received?

macio

We found the reason why delivery reports are empty. Example of received reports:

AT+CMGL=4
+CMGL: 1,1,,25
024A0B918427647006F6613052215332406130522153824000
+CMGL: 2,1,,25
024A0B918427647006F6613052215332406130522153824000

But the procedure DoProcessSmsListItem can only cope with PDU with two leading zeroes added, like this:
00024A0B918427647006F6613052215332406130522153824000

Can you modify your code so that it can cope with PDU saved by our wavecom modem?

Roman Novgorodov

Hello

We investigate problem.
But other tools like PDU spy can not decode message 024A0B918427647006F6613052215332406130522153824000 correctly too.
But message
00024A0B918427647006F6613052215332406130522153824000 is decoded without problem.

It does not seem as nrComm Lib bug.
We will check more

Roman Novgorodov
DeepSoftware llc
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.