How Send Binary Message (UserDataPdu) more that 256 byts

Smpp v3.4 client

Moderator: alt

Locked
mukul
Posts: 7
Joined: Tue Oct 06, 2009 8:34 pm

How Send Binary Message (UserDataPdu) more that 256 byts

Post by mukul » Sat Nov 07, 2009 2:07 pm

I am submitting binary messages (UserDataPdu) as following
here sTextHex is variable of my hex string

example:

foreach (SubmitSm sm in req)
{
sm.UserDataPdu = HexStringToByteArray(sTextHex);
sm.RegisteredDelivery = 1;
}
SubmitSmResp[] resp = Client.Submit(req);

when the length of sTextHex is less then 256 bytes it is running okay but when the length is more than 256 bytes it showing error

error:
Value was either too large or too small for an unsigned byte.


please help me about this
alt
Site Admin
Posts: 988
Joined: Tue Apr 25, 2006 9:45 am

Post by alt » Sun Nov 08, 2009 9:39 pm

You need to split your byte array to parts with length <=140 bytes
and send them as concatenated messages.
mukul
Posts: 7
Joined: Tue Oct 06, 2009 8:34 pm

Post by mukul » Mon Nov 09, 2009 7:18 am

thanks for your reply

but is there any way to submit long binary messages (UserDataPdu)

more than 224 bytes at once without splitting

is there any plan to add this feature to your library

please let us know
alt
Site Admin
Posts: 988
Joined: Tue Apr 25, 2006 9:45 am

Post by alt » Mon Nov 09, 2009 9:19 am

SMPP message_payload field allows to send 64K, but GSM standard limits one message to 140 bytes. Therefore most SMSC does not accept short messages longer than 140 bytes.

Yes, I make plans to add ability to send long bytes array as concatenated messages.
kristiskis
Posts: 1
Joined: Thu May 20, 2010 3:15 am
Location: Ðîññèÿ
Contact:

How Send Binary Message UserDataPdu more that 256 byts

Post by kristiskis » Sun May 30, 2010 5:46 pm

For PTV to work fully you need to have the other devices IP address programmed into your contact list or else it will not work
Locked