socket and serial port

Dar Scott dsc at swcp.com
Fri Jun 18 11:29:12 EDT 2004


On Jun 17, 2004, at 11:00 PM, Mark Wieder wrote:

> Well, I have it for sure on Win2k. I haven't had the opportunity to
> experiment any further. I'm quite curious as to what my beige G3 is
> going to do, but it'll have to wait until after the weekend when I can
> drag out the oscilloscope. And now that I reread the documentation, it
> doesn't explicitly say you need to close the port; it just says call
> serialControlString, then open the port. I guess I read that as an
> implied "the port should be closed before opening it".

See if a double open will put a glitch on the rts while you have the 
scope on it.

If you are curious, you might check to see whether is clears the send 
buffer, too.  Uh, that might be a harder test.  It might clear the 
hardware buffer but not the software buffer or vice versa.  Or receive 
buffer.  Or if a single char is lost.

This still can be handy if it does.

This might simplify a messy workaround for no "break".  Still messy, 
though.

I think, "close before open" is implied in the names "close" and 
"open", but I can see how I can be wrong.

Dar



More information about the use-livecode mailing list