[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Read full 8-bit character from serial port?



Thanks all for the many replies!

I'm muddling along with the old IN#2 routine using QForth 2.2.  It
works most of the time but certain combinations of characters seem to
cause other characters to be lost.  I'm reading a simple packet of
data, an address byte, a length (number of remaining bytes to read) and
some data.  Last two bytes are a CRC-16.

For example, if I send:

\x00\x03\x00\x99\xCF

everything works fine.  But, if I change the address to \x01:

\x01\x03\x00\xAE\xFF

the final \xFF doesn't get read.  The software is waiting for 3
additional bytes and if I hit the spacebar on the Apple IIgs it gets
read as \xA0 and completes the input.  Odd.

Unfortunately, I can't spent too much time fiddling with this.  I just
wanted to use the Apple a bit to help with a project but I can't
justify loads of time and then charge the client for it.

Thanks again!

Ron