9 replies
by gheard
Have you tried using the SetCommMask()/WaitCommEvent() functions to tell when data is finished being received?
There's also the GetCommState() function that will give you (en masse) the state of a serial device (or at least the ability to; whether or not the entire status is retrieved depends on the hardware/driver).
It's been a while since I've done any low-level serial I/O; but, when I was doing it, I recall having to wait for the events to tell whether data was complete or not. The events are sent when the status bits get toggled.
Generally, on a half-duplex port, CTS should be set if nothing is coming in. Theoretically; this should also be true for a full-duplex port--but, if it's full-duplex you an send data any time you want.
by gheard
by gheard
Windows Standard Serial Communications for Visual Basic Programmer's Manual
by gheard
by gheard
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending