Sending Binary messages

Smpp v3.4 client

Moderator: alt

Locked
Ollie
Posts: 5
Joined: Tue Feb 20, 2007 12:58 pm

Sending Binary messages

Post by Ollie » Tue Feb 20, 2007 1:13 pm

Great tool, works well with VB.net as well as C#!

Was wondering how to tell it to send a binary message such as a WAP push bookmark instead of readable text.

Im using the SubmitSm method and a custom function to convert Hex pairs to a Byte array.

Something like...?

Dim data As New ALT.SMS.SubmitSm

With Data
Dim UDH As New ALT.SMS.UserDataHeader
UDH.Data = HexStringToByteArray(UDHHexString)

.UserDataPdu.Headers.Add(UDH)

.UserDataPdu.ShortMessage = HexStringToByteArray(DataHexString)
End With

Dim Resp As SubmitSmResp = MySmppClient.Submit(data)
[/quote]
alt
Site Admin
Posts: 988
Joined: Tue Apr 25, 2006 9:45 am

Post by alt » Wed Feb 21, 2007 11:17 am

It looks like everything correct.
Any problems?
rumiocean
Posts: 2
Joined: Mon Feb 26, 2007 10:02 am

Post by rumiocean » Tue Feb 27, 2007 10:59 am

please help me, i faced some problem. My code sample is here

private ALT.SMS.SmppClient Altsmpp = new ALT.SMS.SmppClient();
---------
---------
Altsmpp.SubmitText(SubmitMode.Payload, orgTon, orgNpi, destination, desTon, desNpi, msisdn, DataCodings.Default, msgBody); // this line shows the problem, Object reference not set to an instance of an object.
alt
Site Admin
Posts: 988
Joined: Tue Apr 25, 2006 9:45 am

Post by alt » Tue Feb 27, 2007 12:48 pm

Could you show me the values of the following variables:
orgTon, orgNpi, destination, desTon, desNpi, msisdn, msgBody
rumiocean
Posts: 2
Joined: Mon Feb 26, 2007 10:02 am

Post by rumiocean » Wed Feb 28, 2007 10:10 am

orgTon=0
orgNpi=0
destination=3333
desTon=1
desNpi=1
msisdn=123456789
msgBody=25C81004D454C4F44593A2A3456235A34623542A3466332A3466322A3466332A342366332A342364332A342363332A3312345332A332367332A332367332A342364332A342364332A342364322A342363332A342364332A3466312A332367332A3466332A3466332A342364332A342364332A3466332A342364342A342363322E2A235642

that is my configaration. I have another query, How can i alive the connection, is there any keep alive interval, if any please let me know.
If sdk has any documentation please give me a copy.
Locked