home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / wizards / 3790 < prev    next >
Encoding:
Internet Message Format  |  1992-09-03  |  5.7 KB

  1. Xref: sparky comp.unix.wizards:3790 comp.unix.misc:3499
  2. Newsgroups: comp.xenix.sco,comp.unix.wizards,comp.unix.misc
  3. Path: sparky!uunet!sun-barr!ames!agate!dog.ee.lbl.gov!hellgate.utah.edu!fcom.cc.utah.edu!cs.weber.edu!terry
  4. From: terry@cs.weber.edu (A Wizard of Earth C)
  5. Subject: Re: SCO ODT 1.0 (1.0.0y):  UUCP hangup bugs; uugetty fix?
  6. Message-ID: <1992Sep4.063704.17716@fcom.cc.utah.edu>
  7. Keywords: uucp, uugetty, stty, hupcl, clocal
  8. Sender: news@fcom.cc.utah.edu
  9. Organization: Weber State University  (Ogden, UT)
  10. References: <1992Sep03.222723.14461@tcsrtp.uucp>
  11. Date: Fri, 4 Sep 92 06:37:04 GMT
  12. Lines: 135
  13.  
  14. In article <1992Sep03.222723.14461@tcsrtp.uucp> uunet!duke.cs.duke.edu!wolves!tcsrtp!royc writes:
  15. >
  16. >1)  If I use the modem control device (sat tty1A) so that DCD
  17. >  is listened to and causes hang up
  18. >    a)  stty clocal fails to alter behavior of uugetty
  19. >    b) uugetty fns inbound AOK but always talks even with '-r'
  20. >    c)  which in turn creates a lock file and stops outbound usage
  21. >    d)  I can't 'cu -l tty1A' until DCD is high ...
  22. >       (using DSR for DCD fixes)
  23.  
  24. The modem control device is definitely the correct one.  The problem appears
  25. to be that you have not set your modem so:
  26.  
  27. o    Respond to DTR
  28. o    Verbose replies
  29. o    Send Result codes
  30. o    No character echo    <---
  31. o    Autoanswer
  32. o    Respond to DCD        <---
  33. o    RJ11 single line
  34. o    The modem should listen to commands
  35.  
  36. (Items marked with "<---" are probably incorrect).
  37.  
  38. The switch settings for a Hayes Smartmodem 300 or 1200 are:
  39.  
  40.     1    up
  41.     2    up
  42.     3    down
  43.     4    down
  44.     5    up
  45.     6    up
  46.     7    up
  47.     8    down
  48.  
  49. An Avatek modem should have switched 6 and 7 down.  An additional switch
  50.     (can't remember which one) needs to be down for autoanswer.
  51. An NCR 1200 should have all switches but 1,2,6, and 9 up.
  52. A MicroCom 2400 should have switches 1, 5, and 6 up (on the front) and
  53.     switched 5 and 7 down (on the back)..
  54. A Peachtree 1200 modem should all switches but 3, 4, and 6 down.
  55. A US Robotics Courier or Microlink should have switches 3,4,8, and 9 down.
  56. A US Robotics Password should have all switches up.
  57. A "soft-programmed" modem should have the following commands typed at it:
  58.     AT&C0
  59.     AT&D1
  60.     AT&W
  61. You should reset to factory defaults before doing this.
  62.  
  63. >
  64. >... all on a 9pin connector.
  65. >
  66.  
  67. Also, for a 9 pin connector, the cable should force RTS high on the computer
  68. side by tying it to DTR (since 9 pin connectors are 1 pin short of full
  69. modem control, which requires 10 if chassis ground takes a pin).  Pins 4 and 5
  70. should be tied together (in the connector hood!  No connection to the cable!)
  71. on the modem side.
  72.  
  73. The PC's serial port is DTE.  A 9 pin DCE port (such as on an Altos) needs
  74. the following cable:
  75.  
  76.     2 --- 3
  77.     3 --- 2
  78.     5 --- 7
  79.     6 --- 8
  80.     4 -+- 20
  81.     8 -+
  82.  
  83. This indicates that 4 and 8 on the 9 pin computer side should be tied to pin
  84. 20 on the 25 pin modem side.
  85.  
  86. On 25 pin to 25 pin, 6 does not connect through -- instead, it connects to
  87. pin 8 on the same side.  Pin 8 will connect to pin 20 on the other side
  88. if 2&3 have to be crossed, or pin 8 on the other side if this is not the
  89. case.  4&5 should be tied together on the computer and modem ends with no
  90. connection in between (unless you have the device driver writer tell you
  91. different, in which case, he's probably ignoring a lockup-on-line-loss
  92. window or is unfamiliar with your modem).  Chassis ground should be connected
  93. on one end only (the one with the best ground) it's purpose is to act as
  94. a Faraday cage for wire noise (all loose wires in a cable should hook to
  95. chassis ground on one end only) and connecting both ends may result in a
  96. ground loop (ie: pin 1-1 is connected and pin 7-7 is connected and the
  97. power supplies have different ideas of a 0 voltage reference).
  98.  
  99. If you are using a Bell 103-C DataSet, feel free to connect pins 4 & 5, as
  100. this is one of the few modems that understands CTS/RTS and how to handle it
  101. as UNIX perceives it with regards to DTR/DCD transitions.  (Built in
  102. monopoly).
  103.  
  104. >    Basically, uugetty ought to keep its mouth shut
  105. >    until a character whatever happens to the cvontrol
  106. >    lines on a modem control port and 'clocal'/'-clocal'
  107. >
  108. >    should WORK RIGHT on tty lines ...
  109.  
  110. Basically, using tty1A instead of tty1a will make getty or uugetty keep
  111. quiet until the modem asserts DCD.
  112.  
  113. Your *modem* should ignore data from the computer until DTR is asserted
  114. and your *modem* should reset as if powered off-then-on-again on an
  115. on-to-off transition of DTR by the computer.
  116.  
  117. Your *computer* should use a modem control port (requires a kernel or boot
  118. monitor patch on Sun -- call Telebit) and have -CLOCAL and HUPCL set in the
  119. /etc/gettydefs file.  Your *computer* should ignore RTS and assert CTS at
  120. all times if DCD is not high to work with Hayes style modems, but doesn't
  121. (hence the cable mods).
  122.  
  123.  
  124. Oh, and *never* use an internal modem and expect it to work; there's no
  125. way you can modify the cable, and the cheap ones won't have appropriate
  126. pullup and pulldown resistors to assert/deassert the proper signals prior
  127. to a connection being made (at which time the line is held active low or
  128. active high, as appropriate.  If you are good at card surgery (like cutting
  129. the IRQ 2/IRQ 9 vertical retrace interrupt line so your VGA card lets you
  130. jumper your ethernet card to IRQ 2/IRQ 9), you may want to buy an internal
  131. modem and solder your own pullup/pulldown resistors.
  132.  
  133. If you need any more help, buy a comm product (like TERM from Century
  134. Software, 801-268-3088) and make the vendor support you.
  135.  
  136.  
  137.  
  138.                     Terry Lambert
  139.                     terry_lambert@gateway.novell.com
  140.                     terry@icarus.weber.edu
  141. ---
  142. Any opinions in this posting are my own and not those of my present
  143. or previous employers.
  144. -- 
  145. -------------------------------------------------------------------------------
  146.                                                        terry@icarus.weber.edu
  147.  "I have an 8 user poetic license" - me
  148. -------------------------------------------------------------------------------
  149.