• Welcome to Forum.Deepsoftware.Com. Please login or sign up.
 

Need help... Huawey e220 & send to multiple numbers... (newbee)

Started by raudio, November 03, 2010, 12:06:53 pm

Previous topic - Next topic

raudio

HI

I need to make an application to send and receive messages (sms).
what license do I need to buy?
I will develop in Delphi 7 and need to distribute my application ...
I tested the modem Huawei e220 with GSMDEMO and noticed that did not receive the messages automatically (skip store and show), only when I click on (get sms list).
I also wanted to know if is possible to send SMS to multiple numbers simultaneously.
The app will work in an ACCESS database with 3 tables (smsin) (smsout) and (contacts).

LOG attached..

Thanks in adavanced

Roman Novgorodov

Hello

Thank you for your interest in our product.

The LOG file shows that you are using too old version of nrComm Lib v9.05
Please download latest trial version 9.12 of nrComm Lib or download latest compiled GSMDemo from our site.

About mass sms sending and access tables.
Library does not offer such ready solution. TnrGsm component can help you resolve this task but you need a lot of job.

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

raudio

Thanks,
I will tryit with the new version.
about the license? what license should i buy??? I only need to use TnrGsm component...
I've searched here in the forum, and i think i found one possible solution for the sendig multiple SMS (please see the topic).

http://forums.nrcommlib.com/index.php?topic=35.0

What i need is to send one message to several numbers...

thanks

Roman Novgorodov

November 03, 2010, 04:05:03 pm #3 Last Edit: November 03, 2010, 05:12:10 pm by Roman Novgorodov
Hello

Please try this solution with trial version before buy full release of library.

The TnrGsm component is included into Standard Edition of nrComm Lib.

GSM specification (and PDU format of message) does not support sending message to multiply addresses.

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

raudio

I tested the modem Huawei e220 with the new version of GSMDEMO and noticed that did not receive the messages automatically (skip store and show), only when I click on (get sms list).

Please see the log file.


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;
  // access database
   ADOTable1.Insert;
   AdoTable1.FieldByName('msg').Value:=aSms.AsText;
   AdoTable1.FieldByName('sender').Value:=aSms.Phone;
   ADOTable1.FieldByName('receivedtime').AsDateTime := Now;
   ADOTable1.Post;


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

end;


about sending...

note that this is only a example of what i need to do...
i did not tryit because i cant compile it in delphi 7

procedure TForm1.Button2Click(Sender: TObject);
begin

      AdoTable1.First;
      while not ADOTable1.EOF do
begin

  //nrGSm1.SmsSend(Edit1.Text,Memo1.Text, chConfirm.Checked);

  //this is only one example of what i need to do

  1 - nrGSm1.SmsSend (adotable field number, adotable field text or Memo1.Text, chConfirm.Checked);


  1 - nrGSm1.SmsSend (AdoTable1.FieldByName ('number').AsString, Memo1.Text, chConfirm.Checked);


      ?TnrGsm.OnSmsSent ?
      ?TnrGsm.SmsSendWait(); ?

      Adotable1.Next;

end;


thanks in adavanced


i cant upload the log file (the upload directory is not...)

Roman Novgorodov

Hello

Thank you for your information.

Please upload LOG  file. Now forums engine works correctly.

Also note that LOG file should contain diagnostic information. Please use GSMDemo and click "Diagnostic"

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


Roman Novgorodov

Hello

Thank you for information.
We see in log that your device is detected correctly and correct driver is used.

If you send sms in loop you can try following synchronous method:

SmsSendWaitRefID(aPhone, aText:WideString; aConfirm :boolean):string;

It sends sms and waits result.

For getting notifications about new messages you can play with On SMS Receive setting on Options tab.

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

raudio

Thanks for your reply.
I will tryit as soon as possible.
About new messages... ive tested with a nokia 6230I, and the messages are received automatically, but with the huawey modem, i always have to click on the getsmslist button.
about the license ... to develop and distribute my application I have to buy the standard edition, correct?

Roman Novgorodov

Hello

Yes you can distribute your compiled binaries.
You can not distribute nrComm Lib setup and sources.

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