Skip to main content

Easiest way step by step Text Conversion In To Format PDU (Protocol Data Unit) And Conversion Format PDU (Protocol Data Unit) Into Text In Borland Delphi Using SMSCODEC

To make Easiest way step by step Text Conversion In To Format PDU (Protocol Data Unit) And Conversion Format PDU (Protocol Data Unit) Into Text In Borland Delphi Using SMSCODEC application, please enter the following component into Form1 in Borland Delphi 7 work area:



No
Component Name Properties Value
1 Label1 Caption http://www.averagecoder.com
2 Label12 Caption http://www.ItsToShare.com
3 GroupBox1 Caption ASCII to PDU
4 Button1 Caption ASCII TO PDU
5 Edit1 Text http://www.ItsToShare.com
6 Edit2 Text -
7 Label3 Caption Enter the ASCII string to convert:
8 Label4 Caption PDU result:





GroupBox2 Caption PDU to ASCII

Button2 Caption PDU TO ASCII

Label5 Caption Enter the PDU string to convert

Label6 Caption ASCII result:

Edit3 Text -

Edit6 Text -





GroupBox3 Caption DECODE SMS

Button3 Caption DECODE SMS

Label2 Caption Enter the PDU of Received SMS to Decode:

Label7 Caption Sender number

Edit4 Text 059126181642040C9126184623477
20000609090710123822354747A0E
4ACF416137A88C0FB7E1EC32E86
D06C9CBE372DA5E2683E6EDB90B

Edit5 Text -

Memo1 Lines -





GroupBox4 Caption ENCODE SMS

Button4 Caption Encode SMS

Label8 Caption Sender number

Label9 Caption The Message

Label10 Caption PDU Result (ready to be sent):

Label11 Caption Int.Format. Ex: 638164227427

Edit7 Text -

Edit8 Text -

Memo2 Lines -





SMSCODEC1 - -
  
Then arrange the components become like the following visualization below:





Then type Source Code as follows in each component, don’t forget to make it appropriate with the events:
No Component Event Source Code

Button1 OnClick Edit2.Text := SMSCODEC1.ASCII2PDU7BIT(Edit1.Text);
Edit6.Text := Edit2.Text;

Button2 OnClick Edit3.Text:= SMSCODEC1.PDU7BIT2ASCII(Edit6.Text,0,Length(Edit2.Text));

Button3 OnClick var ResultList: TStringList;
begin
ResultList := SMSCODEC1.DecodeSMS(Edit4.Text);
Edit5.Text := ResultList.Strings[0]; // sender number
Memo1.Text := ResultList.Strings[1]; // The message

Button4 OnClick    Edit8.Text := SMSCODEC1.EncodeSMS(Edit7.Text,Memo2.Text)
This is the screen shoot of Application to Text Conversion In To Format PDU (Protocol Data Unit) And Conversion Format PDU (Protocol Data Unit) Into Text In Borland Delphi Using SMSCODEC



 I hope this article can give benefit to the visitors, readers, developer and me. Thanks for visiting and availability for sharing this article by pressing 
Share this on Facebook
or just press like button under this posting

Popular posts from this blog

Login Form Delphi by Connecting to Ms Access Database.

this the step by step  to making application :

Login Form Delphi by Connecting Ms Access Database.

In making/ building application in Delphi, login Form is an important to protect application so that cannot be open by irresponsible person. This login Form is connected with database so that able to keep a lot of username data and password. Before make the application, please create a database as the picture below:
Picture :Login  form Delphi database Microsoft Access
Save the database in the folder which use to save the application


Next step is create the application

Enter the component and the source code as follows.


No Component NameProperties Value1Label1CaptionUsername2Label2CaptionPassword3Edit1Text -4Edit2Text -5Button1CaptionLogin6Adoconnection1--7AdoQuery1ConnectionADOConnection1

Arrange the component as the picture below:


Figure. Login Form Delphi design form



 Create new form



Form properties can be check in the table below
No Component NameProperties Value1Form1CaptionSuccess…

Step by step Accessing SMS With Delphi: Sending SMS Using Borland Delphi 7 Exploit Comport Component (Siemens))

In this example, will present the way how making SMS delivery program with Delphi, basically, data in data communication series between Delphi and mobile phone happen in Format Protocol Data Unit (PDU). The destination number of sending Message and message that will be sent through Delphi program that is made have to be changed into PDU Form first, next is the data will be sent through serial port to mobile phone. To make the send SMS Application , please enter the following component to Form 1.

No Component NameProperties ValueButton1CaptionConnectButton2CaptionDisConnectButton3CaptionConvert to PDUButton4CaptionSend to HPButton5CaptionClearButton6CaptionStart Send SMSButton7CaptionSet PortEdit1Text-Edit2Text<Type The SMS here>Edit3Text-Label1Caption1) Destination Number :Label2Caption2Label3CaptionPDU lengthLabel4CaptionLabel lengthComLed1--Memo1--Memo2--Comport1--Arrange the Component  in such away so that the visualization program is as follows:


Then type the follow…

The Example Using Chart In Borland Delphi 7

The Example Using Chart In Borland Delphi 7




In this writing will discuss about how to use the chart in Delphi 7. In the example that is made by using Delphi 7, chart will appear 2 data in the form of incremental data number, the first data named data 1 and the second data named data 2. Data 1 is incremental data 1 that is begun from 0 until 10; while data 2 is same. Yet, in the beginning condition of data 1 start from 0 while data 2 start from 1.


To make application as the explanation above, please enter the components in the table below into design form.


NoComponentPropertiesValueNote1Form1CaptionThe Chart of Data on Delphi 72GroupBox1CaptionThe Chart of Data on Delphi 73Label1CaptionData 14Label2CaptionData 25Edit1Text06Edit2Text07Button1CaptionShow to Chart8Button2CaptionClose9Timer1EnabledFalse10Chart--Check the NoteNote:

Double click on chart component, set the property of chart as below:


Click on  Add.. Button

Then the following chart gallery will be shown:



Choose the…