[Gambas-user] Issue/Problem with Serial Port Component

ron ronstk at ...239...
Mon Jun 5 01:44:28 CEST 2006


On Monday 05 June 2006 01:22, nando wrote:
> The problem here is that if you read *ALL* LOF(SPort) every _read event,
> there will not be a _read event for the last bunch.
> 

Interesting,

Aren't those 120 bytes send in one block?
Then the question is how is the _read event fired?

There must be a byte given the length on start or
a timeout for getting the next byte from serial device.

If send in one part then a READ LOF() should read all
and there is no more to read for a last bunch.

So there must be something in the ASCII stream that
triggers the _Read event before all 120 bytes as available.

Is the first time the _Read event occur the LOF(SPort) the 
same as the ASC(left(s))-1 ???


Ron




More information about the User mailing list