[fpc-pascal] Using Serial in a TCP/RS232 gateway, how to set buffer sizes?

Bo Berglund bo.berglund at gmail.com
Wed Sep 6 23:06:47 CEST 2017


On Wed, 06 Sep 2017 22:52:12 +0200, Bo Berglund
<bo.berglund at gmail.com> wrote:

>I have now added extra binary logging to the relaying program only to
>find that the data received and processed are missing about 50 k of
>the 1M transmission.
>Next I will edit serial.pp and up the buffers from 2K to 60K or so.

By the way:
I have sent the Delphi test program I am debugging over to people at
the remote location and they have connected their laptop directly to
the data system and with that setup there is no data loss.
So this leaves me with only the Lazarus/FPC network relaying app to
fix...

I could also create another test program, a serial sniffer that could
be set up to just log whatever appears on the serial lines. I need a
3-way cable for that of course.


-- 
Bo Berglund
Developer in Sweden




More information about the fpc-pascal mailing list