Author Topic: smssend problem  (Read 3025 times)


  • Newbie
  • *
  • Posts: 1
    • View Profile
smssend problem
« on: June 21, 2008, 07:41:28 am »
  download  trial  version  nrcomm   component
and  use      nrgsm    component  to  test   it  and  then   buy  it
from  yours
but   i  have  a  problem
when  i  use      nrgsm.sendsms('mobile #',' text  of  sms',false)
in   a  loop   procedure
this   method  donot  send  any  sms
my code  is   similar  its:

while   true    do
// check   table   for  any  sms   for   send;
while     not  table.eof    do

nrgsm.sendsms('mobile #',' text  of  sms',false);


please   help  me  for   solve  this  problem


Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1008
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: smssend problem
« Reply #1 on: June 21, 2008, 04:48:28 pm »

Please note that after Send() method the SMS is placed in GSM device memory and
device takes a time for send a message.

You can't call Send() method again while a previous message is not sent.

You can use TnrGsm.OnSmsSent event for wait the SMS will completely send.

There is another way. After every Send() method you can call TnrGsm.SmsSendWait() method.
It will block program while sms will be not sent or error will be returned.

Also you can add time delay (sleep(5000)) after every Send() but it is not good way.

Roman Novgorodov
« Last Edit: June 21, 2008, 04:51:20 pm by Roman Novgorodov »
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.