Page 1 of 1

Sending Binary messages

Posted: Tue Feb 20, 2007 1:13 pm
by Ollie
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]

Posted: Wed Feb 21, 2007 11:17 am
by alt
It looks like everything correct.
Any problems?

Posted: Tue Feb 27, 2007 10:59 am
by rumiocean
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.

Posted: Tue Feb 27, 2007 12:48 pm
by alt
Could you show me the values of the following variables:
orgTon, orgNpi, destination, desTon, desNpi, msisdn, msgBody

Posted: Wed Feb 28, 2007 10:10 am
by rumiocean
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.