home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!wupost!spool.mu.edu!olivea!apple!goofy!mumbo.apple.com!gallant.apple.com!seuss.apple.com!user
- From: absurd@apple.apple.com (Tim Dierks, software saboteur)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: Puzzled: Serial PowerBook I/O
- Message-ID: <absurd-030193155157@seuss.apple.com>
- Date: 4 Jan 93 00:06:59 GMT
- References: <zzT=-a#@engin.umich.edu>
- Sender: news@gallant.apple.com
- Followup-To: comp.sys.mac.programmer
- Organization: MacDTS Marauders
- Lines: 31
-
- In article <zzT=-a#@engin.umich.edu>, Gavin Eadie <Gavin@UMich.EDU> wrote:
- > Friends ... I'm puzzled. The following complete ThinkC program runs to
- > completion on several Macs I've tried (II, IIci, Q-700 and Q-900) but
- > fails to complete on PowerBooks (170 and 145). It's got to be something
- > simple (or maybe not) -- can you help?
-
- Here's an interesting theory I've heard. (Note: conjecture follows)
- When you open up the serial ports, by default hardware handshaking is
- on. In many serial communication setups, the hardware handshake in line
- (HSKi) is not connected to anything, often because the cable being used
- doesn't have a wire for it. On desktop Macs, this pin tends to float
- to the "OK-to-send" state when unconnected; on portable Macs, this pin
- tens to float to the "Don't-send-now" state. Thus, simple programs
- which do not turn hardware handshaking off can work on desktop Macs
- and fail on PowerBooks. Solutions:
- 1) Properly configure hardware handshaking as described in Inside
- Mac IV. (Note; you should use the serHShk control call, not
- the method described in Inside Mac II, and make the call to
- the output driver.)
- 2) Make sure your cable supports hardware handshaking and that
- the computer on the other end of the wire has it properly
- configured.
- Although I know a number of people have fixed this kind of problem
- by doing 1) or 2), this is all only a guess. Your mileage may
- vary. The canonical sample for how to manipulate the serial ports
- is SerDemo by Craig Prouse; it's available on the developer CD; I
- can't find it on ftp.apple.com right now, so I'll mail it out if
- you want to ask for it.
-
- Tim Dierks
- MacDTS, but I speak for myself
-