Forum.Deepsoftware.Com

DeepSoftware Products => nrComm Lib VCL (32bit / 64bit) => nrComm Lib => GSM/SMS => Topic started by: henry64 on April 29, 2011, 01:42:11 PM

Title: Keep receiving the samme SMS from the network
Post by: henry64 on April 29, 2011, 01:42:11 PM
Hi

I'm expirencing  a very strang thing, I keep receiving the same sms over and over again. Do you have any clue why that happens?

It's like the network have not received an ACK for the SMS so it keeps trying to deliver it.

Title: Re: Keep receiving the samme SMS from the network
Post by: Roman Novgorodov on May 01, 2011, 06:07:16 AM
Hello

Thank you for your information.

Please try send acknowledgement in sms event handler:

procedure TForm1.nrGsm1SmsReceived(Sender: TObject; aMem: String;
  idSms: Integer; aSms: TnrPduSms);
begin
  nrComm1.SendString('AT+CNMA'#13);
end;

Let me know if it helps, we will change built in driver.

Roman Novgorodov
DeepSoftware.Com
Title: Re: Keep receiving the samme SMS from the network
Post by: henry64 on May 02, 2011, 06:34:38 AM
Hi Roman

Well it actually stops the problem, I leave it up to your to decide if that's the right way to implement it - I have no clue  :-X

regards
Title: Re: Keep receiving the samme SMS from the network
Post by: Roman Novgorodov on May 02, 2011, 06:45:36 AM
Hello

Thank you for your information.

We will fix this problem in the next release nrComm Lib (this week).

Roman Novgorodov
DeepSoftware
Title: Re: Keep receiving the samme SMS from the network
Post by: henry64 on May 02, 2011, 07:06:35 AM
This ACK also solves the problem that I only got a delivery report on the first sms sent, for all successive sms's I got no report. 
Title: Re: Keep receiving the samme SMS from the network
Post by: Roman Novgorodov on May 03, 2011, 04:17:23 PM
Please try
nrComm1.SendString('AT+CNMA=0'#13);

Roman Novgorodov
DeepSoftware
Title: Re: Keep receiving the samme SMS from the network
Post by: henry64 on May 03, 2011, 06:15:32 PM
That seems to work too  8)