[Lazarus] Using 5dpo for serial comm...
Bo Berglund
bo.berglund at gmail.com
Sun Oct 10 08:43:56 CEST 2010
On Sun, 10 Oct 2010 01:37:09 +0100, Paulo Costa <paco at fe.up.pt> wrote:
>> But with TSdpoSerial I can't find any such property as TxWaiting or
>> similar to check.
>> Is it not needed or possible? Maybe the component can handle any size
>> string I send to it without choking?
>>
>> But what about the user feedback? I would really want to be able to
>> show the actual data flow to the user in a progress bar since the
>> whole operation takes considerable time.
>> So how can I know how many bytes have actually left the transmit
>> buffer (or how many that still remain to be sent).
>
>TSdpoSerial exposes a property SynSer: TBlockSerial where there are more
>methods like:
> function SendingData: integer; virtual;
> {:Returns the number of bytes waiting to be sent in the output buffer.
> 0 is returned when the output buffer is empty.}
>
>Probably it is what you need.
>
>Paulo Costa
Thanks, this is exactly what I need!
So if there are more detailed items needed I could look at the SynSer
documentation, right?
--
Bo Berglund
Developer in Sweden
More information about the Lazarus
mailing list