Groups | Search | Server Info | Login | Register


Groups > comp.lang.pascal.delphi.misc > #715

Re: Delphi D4: using pointers to transfer data from COMM queue to circular queue

From "P E Schoen" <paul@pstech-inc.com>
Newsgroups comp.lang.pascal.delphi.misc
Subject Re: Delphi D4: using pointers to transfer data from COMM queue to circular queue
Date 2016-08-19 03:58 -0400
Organization A noiseless patient Spider
Message-ID <np6e6g$37h$1@dont-email.me> (permalink)
References <np68cv$irr$1@dont-email.me>

Show all headers | View raw


I mentioned elsewhere that I used TCriticalSections previously during the 
transfers from the ComDrv32 component input buffer to the larger CommBuffer, 
and also when processing the CommBuffer to detect and compensate for errors. 
This seemed to work for the SerialNG component, but for ComDrv32 it seemed 
to increase the errors. Removing them, I got some errors starting at 20 
seconds as before, but after 700 seconds there are only 146 errors compared 
to nearly 1000 previously. There is probably a thread running to receive the 
characters into the COM16 file.

I tried various settings for the serial port component with inconsistent 
results. What is consistent is that errors always start when the CommBuffer 
is nearly full and the data must be split to fill the buffer and then start 
again at the beginning. I may need to check my arithmetic.

Paul 

Back to comp.lang.pascal.delphi.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Delphi D4: using pointers to transfer data from COMM queue to circular queue "P E Schoen" <paul@pstech-inc.com> - 2016-08-19 02:19 -0400
  Re: Delphi D4: using pointers to transfer data from COMM queue to circular queue "P E Schoen" <paul@pstech-inc.com> - 2016-08-19 03:58 -0400
    Re: Delphi D4: using pointers to transfer data from COMM queue to circular queue "P E Schoen" <paul@pstech-inc.com> - 2016-08-19 04:42 -0400
      Re: Delphi D4: using pointers to transfer data from COMM queue to circular queue Hans-Peter Diettrich <DrDiettrich1@aol.com> - 2016-08-19 12:34 +0200
    Re: Delphi D4: using pointers to transfer data from COMM queue to circular queue Hans-Peter Diettrich <DrDiettrich1@aol.com> - 2016-08-19 12:30 +0200
      Re: Delphi D4: using pointers to transfer data from COMM queue to circular queue "P E Schoen" <paul@pstech-inc.com> - 2016-08-19 20:54 -0400
        Re: Delphi D4: using pointers to transfer data from COMM queue to circular queue Hans-Peter Diettrich <DrDiettrich1@aol.com> - 2016-08-20 12:43 +0200
          Re: Delphi D4: using pointers to transfer data from COMM queue to circular queue "P E Schoen" <paul@pstech-inc.com> - 2016-08-20 19:15 -0400
            Re: Delphi D4: using pointers to transfer data from COMM queue to circular queue Hans-Peter Diettrich <DrDiettrich1@aol.com> - 2016-08-21 12:50 +0200
              Re: Delphi D4: using pointers to transfer data from COMM queue to circular queue "P E Schoen" <paul@pstech-inc.com> - 2016-08-22 07:12 -0400
  Re: Delphi D4: using pointers to transfer data from COMM queue to circular queue Hans-Peter Diettrich <DrDiettrich1@aol.com> - 2016-08-19 12:27 +0200

csiph-web