• Welcome to Forum.Deepsoftware.Com. Please login or sign up.
 
April 26, 2024, 01:38:49 am

News:

SMF - Just Installed!


how does OnSmsReceived work ?

Started by dindinudin, January 06, 2012, 04:16:19 am

Previous topic - Next topic

dindinudin

dear Roman Novgorodov,

i am interested in nrComm Lib product. after i've evaluated, i am stuck with feature OnSmsReceived.
why ListBox1 does not show any SMS that modem has received.
i am using :  latest demo source from your site, nrComm Lib 9.27 trial, Modem Huawei E220, win7 Ultimate SP1, Delphi 2010 Version 14.0.3615.26342.
would you tell me how it supposed to be ?

regards

procedure TForm1.nrGsm1SmsReceived(Sender: TObject; aMem: String;  idSms: Integer; aSms: TnrPduSms);
begin
  if aMem <> ''
    then ListBox1.Items.Add('Sms is received "' + aMem+'",'+ IntToStr(idSms))
    else ListBox1.Items.Add('Sms is received ');

  if aSms <> nil then begin
    if aSms.Report
      then ListBox1.Items.Add(aSms.ReportText)
      else ListBox1.Items.Add('SMS: From: ' + aSms.Phone + ' text: '+ aSms.Text);
  end;

  ListBox1.TopIndex := ListBox1.Count - 1;
  ListBox1.ItemIndex := ListBox1.Count - 1;
end;

Roman Novgorodov

Hello

Thank you for your interest in our product.

There are possible two ways of new sms notification:
1) Device places new SMS into internal memory and notify about its index in memory.
2) Device does not store new SMS and places SMS content (PDU) directly to PC.

Please try to change On SMS combo box on Options tab of GSMDemo.

If it will not help, give us a diagnostic LOG file. See more here:
http://forums.nrcommlib.com/index.php?topic=6.0

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.