Author Topic: Multipart SEND  (Read 2482 times)

herczegz

  • Newbie
  • *
  • Posts: 3
    • View Profile
Multipart SEND
« on: February 11, 2009, 09:14:32 pm »
Hi Roman,

I tried the gsm VCL and I can't send multipart message. Can you help me wiht a short example?
(Delphi7 nrcomm V8.15)


thaks!

Herczeg

« Last Edit: February 11, 2009, 09:16:34 pm by herczegz »

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: Multipart SEND
« Reply #1 on: February 12, 2009, 04:58:43 am »
Hello

Usual TnrGsm separates long message on needed number of SMS parts.
You should just call method:
SmsSend(aPhone, aText:WideString; aConfirm :boolean)

If you need more deep control of SMS sending, you can form a PDU structure and use:
SmsSend(aPDU:TnrPduSms);

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.

herczegz

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Multipart SEND
« Reply #2 on: February 23, 2009, 07:59:28 pm »
Hi!
Thank you!!!
Mutipart SMS is now ok, but i have a problem. If I send message with less as 160 char with this chars: à,ì,è,ù your VLC coded the message automatical 16bit though in my language is: à,ì,è,ù on 7 bit coding in GSM spec. (Hungaryan and Italien)
I try send message with pdu mode, and set manual the 7bit coding, but i becom ACCESS VIOLATION if i try set pdu parameters.
Thanks!

exampe code:
procedure TForm1.FzttSMS1Click(Sender: TObject);
 var aSmsa: TnrPduSms;
begin
 aSmsa.Incoming := False; //<------ACCESS VIOLATION in this line
end;

end.

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: Multipart SEND
« Reply #3 on: February 24, 2009, 03:53:49 am »
Hello

Please create the instance of class before use the object.

aSmsa := TnrPduSms.Create(False);

You can start to read about Object Oriented Programming (OOP) from here:
http://en.wikipedia.org/wiki/Object-oriented_programming

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.