Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 16567, TPortControl v.2.01 for synchronous RS232 serial communication

by Vladimir Afanasyev Email: Anonymous


Increasing process/thread priority to RealTime before communications and decreising after.
Locking important methods in physical memory during session.
Using TransmitCommChar function for nonbuffering output.
Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For C++Builder, Version 4.0  to 6.0 4532 downloads
Copyright: Open Source or other


Size: 267,553 bytes
Updated on Thu, 30 Oct 2003 05:29:47 GMT
Originally uploaded on Wed, 19 Sep 2001 05:00:29 GMT
SHA1 Hash: 33370F04064469381A4E623BA57EED8E9D70B5E4
MD5 Hash: A904F188A6F2AAE42A09B0290A3442BD

    Explore the files in this upload

Description
TPortControl - the component for synchronous RS232 serial comminications
30.10.2003. I add simple sample that demonstrates how to use TPortControl. The main idea it is creating new thread where creates and uses TPortControl instance.
ver. 2.01
1. My new article in codeproject:
Serial ports. Enumeration and FIFO control
http://www.codeproject.com/useritems/Serial_portsEnum_FIFO.asp
2. small changes for FIFO control
ver. 2.00
1. Thanks to Nick Reinschmidt (mail@heelena.com, http://www.heelena.com) for his solution for porting components from BCB5 to BCB6
2. Ashley Chen point me on some ugly bugs that I never find without his help.
3. I also add enumeration all ports existing in system. It works in design time as well as run time (Win98/Me/2000/XP).
4. I add some methods for FIFO control (UART 16650 compat.): Enable/Disable FIFO, Set/Get current FIFO size.
ver. 1.53:
1. change codepage (to 0409) for help
2. fix small bug in SetPortTimeouts property
ver. 1.52:
I am very thankful to Adam Cathels (Inca Scanning Systems) from
Melbourne Australia for his work for adaptation TPortControl
in C++ Builder 4. Many thanks, again.
ver. 1.02:
1. Some bugs was corrected
2. Add method ClearBuffers
3. Change way of conversion method address to TFarProc.

The main ideas of the TPortControl component is:
1. Increasing process and thread priority up to the Real-Time before communications and decreising after.
2. Locking most important methods of the TPortControl in the physical storage (Windows NT/2000) during the session.
3. Using TransmitCommChar function for non-buffering output.

For more information, see www.softwinware.narod.ru

   Latest Comments  View All Add New

Move mouse over comment to see the full text
Reply  Posted by Vladimir Afanasyev on Mar 07 2003
re: The bug of TPortControl component

Server Response from: ETNACDC03