Site icon Embarcadero RAD Studio, Delphi, & C++Builder Blogs

Powerful Serial Communication Protocol Suite For Delphi/C++ Builder Application On Windows

Serial Communications is a core communication between PC and peripheral devices Such as a programmable instrument or another computer. Do you feel challenged or tired in writing code to communicate with serial devices from your Delphi/C++ applications?  How about Siemens protocols such as 3964 and 3964R?  Don’t worry,  WINSOFT offers us easy and robust components to do the job with better user control.

Features:

Versions Supported: Delphi 5 – Delphi 10.4/C++ and Lazarus 2.0.10

Platforms: Windows;

Installation Steps:

Prerequisites: Ensure 10.4 MB minimum free space available in the system.

Installation Steps Demo:

ProtSuite Installation Demo

Key Serial Communication concepts:

RS232 Serial Communications is a communication of bits that sends and receives data between PC ( Data Terminal Equipment DTE) to remote Device or another PC (Data Communications Equipment DCE).

Request To Send (RTS) Outgoing flow control signal controlled by DTE. Clear To Send (CTS) Incoming flow control signal controlled by DCE. Data Set Ready (DSR) Incoming handshaking signal controlled by DCE. Data Terminal Ready (DTR) Outgoing handshaking signal controlled by DTE.Carrier Detect (CD) Incoming signal from a modem. Ring Indicator (RI) Incoming signal from a modem. More details: Serial Intro.

How to build applications using ProtSuite components:

1. Open Rad Studio 10.4.1 and Create a Windows VCL Application. Navigate to Components bar -> System. Check the ProtSuite Components installed as shown. 

2. Drag and Drop the TComPort,TComSignal, and TProt3964R component or by adding Comport, Comsignal, Prot3964R.pas into your unit and create these components by code.

TComPort: Enables to communicate with devices connected to serial port.

<strong>TComport Properties<strong>

3. Retrieve comport devices in PC. [crayon-67367af9e6ec8906407043-i/]

4. Shows Comport Config Dialog. [crayon-67367af9e6ece547468387-i/]

5. Shows the Device info by Device Name.

[crayon-67367af9e6ecf094497683/]

6. Opens or closes the comport.

[crayon-67367af9e6ed1869316357/]

7.Use comport SetRTS,ClearRTS,SetDTR,ClearDTR routines for respective operations.

[crayon-67367af9e6ed2338787412/]

8.Use Comport events for better handling of the data transmission/receiving which includes OnError.

TComSignal: To visually indicate, using specified colors, the status of the communicating signal.

<strong>TComSignal Properties<strong>

9. Use OnSignal to change color of the associated control based on signal value.

[crayon-67367af9e6ed3141614036/]

TProt3964R: Enables to send and receive data using 3964/3964R communictaion protocols.

<strong>TProt3964R Properties<strong>

10. Send data using this protocol.

[crayon-67367af9e6ed4267735533/]

11. For receiving data,

[crayon-67367af9e6ed5083311500/]

Sample Application Demo:

Conclusion:  Just 11 steps, you can communicate with comport devices using 3964R protocol from your applications. WINSOFT made these components to make developer life easy and you can save your time and effort.

In our picks for your next read, we have the C++ bit set ready to help you increase productivity in programming with its modern features.

Check out the full WINSOFT Communication Protocol Suite for Access in Delphi and C++Builder.

Exit mobile version