Author Topic: How can i concatenate multipart sms recived?  (Read 1167 times)

hp1361

  • Newbie
  • *
  • Posts: 2
    • View Profile
How can i concatenate multipart sms recived?
« on: July 03, 2012, 04:33:32 am »
hi

How can i concatenate multipart sms received?

please show in an example

thanks

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: How can i concatenate multipart sms recived?
« Reply #1 on: December 26, 2012, 03:25:48 pm »
Hello

TnrGsm component concatenates multi pat sms by itself. You do not need any additional manipulations.

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.

aalekizoglou

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: How can i concatenate multipart sms recived?
« Reply #2 on: March 05, 2014, 09:59:17 am »
Roman,

is this happening only on SMS receive event? When I read SMS from SM memory, with the latest trial, I get multiparts as separate list items.

Update: Well it also gives me separate items for multiparts on SMS receive event. It just calls the event two times for 2 parts SMS
« Last Edit: March 05, 2014, 02:08:36 pm by aalekizoglou »

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: How can i concatenate multipart sms recived?
« Reply #3 on: March 05, 2014, 04:48:40 pm »
Hello

It seems like my message above is not true.
Absolutely.

TnrGsm separates long text and sends multipart SMS'es.

But incoming long messages are stored as separated parts.
Your code needs to concatenates them by ID.

Sorry for incorrect info.
Our small old project based on TnrGsm (MyGsm) concatenates multipart SMS but this functionality was not included into TnrGsm component.

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.

aalekizoglou

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: How can i concatenate multipart sms recived?
« Reply #4 on: March 06, 2014, 11:45:39 am »
Roman,

I understand. I suppose I need to concatenate based on the the PartId. Is this a unique ID generated from nrGSM component, among various multipart SMS received and inmemory?

I am thinking to concatenate based on the PartId and the PartNumber/PartCount properties. Of course there might be cases when the modem received the parts in an unsorted manner, e.g. first comes the 2nd part, then comes the 1st part, then the 3rd and last part. I'll take care of this with an in memory array placing the parts in the right order.

suga

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: How can i concatenate multipart sms recived?
« Reply #5 on: August 03, 2014, 10:55:26 am »
can you tell me how to concat multipart sms? demo or something :) :)