Binary messages

.NET library for SMPP protocol
Locked
EJOC
Posts: 4
Joined: Mon Oct 10, 2011 2:55 pm

Binary messages

Post by EJOC » Mon Oct 10, 2011 3:28 pm

Hi,

I'm trying to send binary messages but without much success.

I see that if I add sm.UserDataPdu and sm.UserData:Pdu.Headers, The UDH is added to the PDU however, I see no change to the ESM class and the UDHI is still flagged to 0. Am I missing something?

Also, with your dll, it seems that intelisense (autocomplete) isn't working. How can I change this to explore in more details all of the functionalities of the product.

Best Regards,
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: Binary messages

Post by alt » Tue Oct 18, 2011 8:04 pm

Hi EJOC,

yes, when you set sm.UserData:Pdu.Headers, sm.EsmClass is not changed. But when SubmitSm is converted to stream it sets UDHI to 1.

when you create binary messages don't forget to add concatenation to sms parts headers. GSM standard limits SubmitSm short_message to 140 bytes including UDH.

Does anybody else has problem with intelisense?
NickAskew
Posts: 60
Joined: Tue Oct 07, 2008 1:35 pm

Re: Binary messages

Post by NickAskew » Mon Oct 24, 2011 6:51 pm

RE: Intelisense
I am using the compiled library v1.0.11.1 and Intellisense is working fine for me in Visual Studio 2008 and Visual Studio 2010.
ProcessFlows UK Ltd
http://www.processflows.co.uk/
EJOC
Posts: 4
Joined: Mon Oct 10, 2011 2:55 pm

Re: Binary messages

Post by EJOC » Tue Oct 25, 2011 4:01 pm

Hi Alt,

Sorry for the late reply. Busy on other topics.
I got the concatenated messages working. Thanks for the help.

I'm using sharpdevelop. Can that be the reason why intellisense doesn't work? I'll give it a go with Visual studio and let you know my findings.

In the meantime, I detected another small issue. When I use the smpp server, the system ID is Inetlab.SMPP/1.0.11.0. This text has more bytes than those allowed in the specification (maximum is 16). How can this be changed?
EJOC
Posts: 4
Joined: Mon Oct 10, 2011 2:55 pm

Re: Binary messages

Post by EJOC » Wed Oct 26, 2011 4:30 pm

Hi,

I just wanted to add that with Visual Studio it seems that Intelisense works. Strange that with sharpdevelop it doesn't since with most third party libraries this doesn't happen.

Still haven't found a way to change the system ID though. This is a problem because our gateway can't connect as it informs us of invalid systemID size.


Best,
EJOC
Posts: 4
Joined: Mon Oct 10, 2011 2:55 pm

Re: Binary messages

Post by EJOC » Wed Oct 26, 2011 5:49 pm

Hi Again,

Just to let you know that I found out how to change the system ID. Once I had intelisense it became much easier to find it.

Best,
ta8as1
Posts: 1
Joined: Mon Feb 20, 2012 6:02 pm

Re: Binary messages

Post by ta8as1 » Mon Feb 20, 2012 6:11 pm

Dear All
Good afternoon
i'm using the Inetlab.SMPP.dll lib
i need to send SMS as bytes array via SMPP
i set sm.UserDataPdu = SMS_Body ( SMS_Body is an array of 140 bytes)
now i need to know what the value for the (sm.UserDataPdu.Headers)
can any one help me?
i need it urgent please !
if any one can send me a sample code alos

my Env is:
c# , .net 3.5

Thanks


Tarek
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: Binary messages

Post by alt » Mon Feb 27, 2012 8:20 pm

User Data Header content depends on what are you going to send in binary message.
is it any kind of EMS message?
Locked