Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending SMS

Status
Not open for further replies.

minckle

Programmer
Mar 17, 2004
142
GB
Using Delphi 5
Im trying to write a program to send a SMS message using PDU mode, which comprises of hex using a 7 bit default alphabet.

is there some where to convert a normal string into the above in delphi 5??

eg. hellohello = E834A81DA6D301

can any 1 give me any clues or webites to learn abot more about it?
and / or
can i do this conversion in Delphi?
 
Delphi includes a range of bitwise operators that will do the trick for you.

These include shl for shifting bits to the left and shr for shifting bits to the right.

The Delphi Help contains information about these operators and other ones such as and, and or which will come in handy.

Andrew
Hampshire, UK
 
Hi,

I wrote an email to SMS gateway not so long ago.

You must take many things into account when writing a PDU encoder / decoder. I'll not give you any source code from my gateway but I'll give you some pointers to get you going :

good SMS gateway (written in C) :

download source code at :
look at the smsc_at.c file for the pdu routines

I based some of my routines on their code (translated/modified it to Delphi offcourse)

for the full specs of SMS look at
for the 2+ and the 3GPP implementations (phase 2 and 3)

some document numbers : etsi_GSM_03.40.pdf
GSM_03.40_ts_100901v070400p_UDH.pdf
ts_123040v050601p.pdf

ask some specific questions if you want more help.

cheers,
Daddy

--------------------------------------
What You See Is What You Get
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top