home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / mac / programm / 20574 < prev    next >
Encoding:
Internet Message Format  |  1993-01-03  |  2.2 KB

  1. 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
  2. From: absurd@apple.apple.com (Tim Dierks, software saboteur)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Puzzled: Serial PowerBook I/O
  5. Message-ID: <absurd-030193155157@seuss.apple.com>
  6. Date: 4 Jan 93 00:06:59 GMT
  7. References: <zzT=-a#@engin.umich.edu>
  8. Sender: news@gallant.apple.com
  9. Followup-To: comp.sys.mac.programmer
  10. Organization: MacDTS Marauders
  11. Lines: 31
  12.  
  13. In article <zzT=-a#@engin.umich.edu>, Gavin Eadie <Gavin@UMich.EDU> wrote:
  14. > Friends ... I'm puzzled.  The following complete ThinkC program runs to
  15. > completion on several Macs I've tried (II, IIci, Q-700 and Q-900) but
  16. > fails to complete on PowerBooks (170 and 145).  It's got to be something
  17. > simple (or maybe not) -- can you help?
  18.  
  19. Here's an interesting theory I've heard. (Note: conjecture follows)
  20. When you open up the serial ports, by default hardware handshaking is
  21. on.  In many serial communication setups, the hardware handshake in line
  22. (HSKi) is not connected to anything, often because the cable being used
  23. doesn't have a wire for it.  On desktop Macs, this pin tends to float
  24. to the "OK-to-send" state when unconnected; on portable Macs, this pin
  25. tens to float to the "Don't-send-now" state.  Thus, simple programs
  26. which do not turn hardware handshaking off can work on desktop Macs
  27. and fail on PowerBooks.  Solutions:
  28.     1) Properly configure hardware handshaking as described in Inside
  29.        Mac IV.  (Note; you should use the serHShk control call, not
  30.        the method described in Inside Mac II, and make the call to
  31.        the output driver.)
  32.     2) Make sure your cable supports hardware handshaking and that
  33.        the computer on the other end of the wire has it properly
  34.        configured.
  35. Although I know a number of people have fixed this kind of problem
  36. by doing 1) or 2), this is all only a guess.  Your mileage may
  37. vary.  The canonical sample for how to manipulate the serial ports
  38. is SerDemo by Craig Prouse; it's available on the developer CD; I
  39. can't find it on ftp.apple.com right now, so I'll mail it out if
  40. you want to ask for it.
  41.  
  42. Tim Dierks
  43. MacDTS, but I speak for myself
  44.