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

Flexible Serial Communication Protocol Suite For Delphi/C++ Builder FireMonkey Cross Platform Apps

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++ FireMonkey 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/C++ Builder XE2 – Delphi 10.4.

Platforms: Windows, OS X, Android, and iOS;

Installation Steps:

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

Installation Steps Demo: FProtSuite 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 FProtSuite components:

1. Open Rad Studio 10.4.1 and Create a Blank Multi-Device Application. Navigate to Components bar -> System. Check the FProtSuite Components installed as shown. 

2. Drag and Drop the TFComPort,TFDComSignal, and TFProt3964R component or by adding FComport, FComsignal, FProt3964R.pas into your unit and create these components by code.

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

<strong>TFComPort Properties<strong>

3. Retrieve comport devices in PC. 

[crayon-673ff3133bce4271814742/]

4. Shows Comport Config Dialog. 

[crayon-673ff3133bce9722824452/]

5. Shows the Device info by Device Name.

[crayon-673ff3133bcea840058098/]

6. Opens or closes the comport.

[crayon-673ff3133bceb025138657/]

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

[crayon-673ff3133bced621862615/]

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

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

<strong>TFComSignal Properties<strong>

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

[crayon-673ff3133bcee270593623/]

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

<strong>TFProt3964R Properties<strong>

10. Send data using this protocol.

[crayon-673ff3133bcef610858073/]

11. For receiving data,

[crayon-673ff3133bcf0867345489/]

Sample Application Demo:

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

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

Exit mobile version