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

wkitty42 at windstream.net wkitty42 at windstream.net
Fri Sep 8 18:51:24 CEST 2017


On 09/08/2017 04:34 AM, Bo Berglund wrote:
> Next I unchecked the checkbox before doing the long transfer, and
> lo-and-behold(!) now there are no losses anymore!
> 
> So the action of writing text to the listbox in the LogHex function
> was actually causing the application to lose incoming serial data!


this tells you right off that you should have at least XON/XOFF flow control so 
the receiver can tell the sender to hold up a second and let it get the buffer 
worked down... at least this with good buffer level monitoring...


-- 
  NOTE: No off-list assistance is given without prior approval.
        *Please keep mailing list traffic on the list unless*
        *a signed and pre-paid contract is in effect with us.*



More information about the fpc-pascal mailing list