home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / aux / 4101 < prev    next >
Encoding:
Internet Message Format  |  1992-11-23  |  4.1 KB

  1. Path: sparky!uunet!mcsun!sunic!dkuug!ruc.dk!david
  2. From: david@ruc.dk (David Stodolsky)
  3. Newsgroups: comp.unix.aux
  4. Subject: Serial ports, modem control
  5. Summary: What not flow and hang-up control on Mac ports?
  6. Keywords: I/O DTR CTS DCD flow control hang-up carrier detect
  7. Message-ID: <1992Nov23.201817.1039@ruc.dk>
  8. Date: 23 Nov 92 20:18:17 GMT
  9. Organization: Roskilde Universitetscenter, Danmark
  10. Lines: 80
  11.  
  12.  
  13. Modem control seems to be the most confused issue in the area of Mac
  14. communications. I have reviewed all the info I could find and most of it
  15. is not clear. In some cases the info is just plain wrong, even when
  16. obtained from reliable sources. Since serial I/O is an infamous
  17. unresolved problem in A/UX, I thought it would be nice to at least be
  18. sure that the modem connections were used to their best advantage.
  19.  
  20. An accepted truism is that the Mac doesn't have enough lines for both
  21. hardware handshaking and hang-up control. However, if we look at the
  22. ports, this is not necessarily an operational truth, even though it is
  23. physically true. 
  24.  
  25. I will assume that we are using a Apple "standard cable" (see below),
  26. this is different than the set up in the FAQ. (Even in the case of
  27. hang-up control, some suggest CTS going to HSKi, while others suggest
  28. DCD.) I assume a Telebit T-2500 modem.
  29.  
  30. While there are not 4 lines available for the two types of handshaking,
  31. the standard cable allows "reuse" of the HSKo line. That is, this line
  32. can function as RTS for flow control and as DTR for a hang-up command.
  33. The T-2500 permits specification of a delay time for DTR action, this
  34. permits it to ignore RTS/CTS exchanges that may take place on the DTR
  35. line.
  36.  
  37. Even if this can not be set, most modems permit reset using a special
  38. character sequence (+++) surrounded by guard periods. So even if
  39. HSKo/HSKi are used only for flow control, it still seems like it is
  40. possible to use other means to force the modem to hang-up. "Break" is
  41. another option to force the modem to return to the command mode. What is
  42. not possible with some of these options is the automatic reload of a
  43. default configuration, but once in the command mode this can occur
  44. explicitly (if this is permitted by software).
  45.  
  46. This assumes that he GPi (General Purpose input) can be used to input
  47. carrier presence info (DCD). I read in the "Technical Intro to the Mac
  48. Family" that this input was added to permit handling of synchronous
  49. modems. Can it be used for sensing the presence of the carrier? If so,
  50. then it seems like both flow control and hang-up control can be achieved
  51. with the standard Mac ports.
  52.  
  53. I have not looked at the software side of this, so I don't know what the
  54. practical implications of my argument are. Any takers? 
  55.  
  56. =================================================================
  57.  
  58. From: macintosh/comm-faq/part1
  59. Last-modified: Sun Oct 11 1992
  60.  
  61.         However, if you are using a
  62.         high-speed modem that can ignore DTR, and/or Remote AppleTalk,
  63.         you should instead use the pinout in Figure 1.2.2, which
  64. appears
  65.         to be the pinout recommended by Apple:
  66.  
  67.                 Macintosh (DTE)                           Modem (DCE)
  68.                     DIN-8                                    DB-25
  69.  
  70.                 Pin  Signal                               Signal  Pin
  71.                  1    HSKo   ----------------------+----   RTS     4
  72.                                                    '----   DTR    20
  73.  
  74.                  2    HSKi   ---------------------------   CTS     5
  75.                  3    TxD-   ---------------------------   TxD     2
  76.  
  77.                  4    GND    ----+----------------------   GND     7
  78.                  8    RxD+   ----'
  79.  
  80.                  5    RxD-   ---------------------------   RxD     3
  81.                  6    TxD+   (nc)                    
  82.                  7    GPi    ---------------------------   DCD     8
  83.  
  84.                     shield   ---------------------------   shield
  85.  
  86.                                 Figure 1.2.2
  87. -- 
  88. David S. Stodolsky                Messages: + 45 46 75 77 11 x 24 41
  89. Department of Computer Science                 Tel: + 45 31 95 92 82
  90. Bldg. 20.1, Roskilde University Center        Internet: david@ruc.dk
  91. Post Box 260, DK-4000 Roskilde, Denmark        Fax: + 45 46 75 42 01
  92.