Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!uwm.edu!uwvax!rang From: rang@cs.wisc.edu (Anton Rang) Newsgroups: comp.sys.mac.programmer Subject: Serial driver: Why is CTSHold being set? Summary: I can never do any output.... Keywords: serial driver Message-ID: Date: 6 Jun 90 04:22:40 GMT Sender: news@spool.cs.wisc.edu Organization: UW-Madison CS department Lines: 40 I'm starting my first project using the serial driver soon, and was playing around with a simple test program. Unfortunately, I soon became stuck. I can get the driver open, but then nothing else happens. It seems to think that the handshaking isn't right. What I do: 1. Call RAMSDOpen (on port A). 2. Call SerReset for the port A input and output drivers. 3. At this point, I want to do a write. But it just hangs. Calling SerStatus reports that 'holdCTS' is on. Presumably, this means that the driver is convinced my modem isn't ready. But (1) my modem has CTS forced on, and (2) all the communications software I have works fine. I've tried calling SerHShake to disable handshaking (which I thought was the default), and it doesn't change anything, which is pretty much what I expected. I'm sure I must be missing something obvious. Anyone have suggestions or sample code? Many thanks in advance! Anton (rang@cs.wisc.edu) P.S. I'd like to wind up with an application which can handle incoming data while in the background under MultiFinder. Anyone have any suggestions on the best (or worst) ways to go about this? I've thought about setting up a big input buffer and periodically checking how many characters are in the buffer, using PBRead to extract them, and either queueing them for later or processing them. Will this work? P.P.S. OK, so I'm curious. Is there a trap which will display the about box for the communications toolbox? :-) +---------------------------+------------------+-------------+ | Anton Rang (grad student) | rang@cs.wisc.edu | UW--Madison | +---------------------------+------------------+-------------+