home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / dcom / modems / 16564 < prev    next >
Encoding:
Internet Message Format  |  1992-11-08  |  4.4 KB

  1. Path: sparky!uunet!pmafire!news.dell.com!swrinde!sdd.hp.com!think.com!ames!sun-barr!news2me.EBay.Sun.COM!exodus.Eng.Sun.COM!appserv.Eng.Sun.COM!oobleck!bender
  2. From: bender@oobleck (Duke of Canterbury)
  3. Newsgroups: comp.dcom.modems
  4. Subject: Re: Dialin access to Sun 4/110
  5. Date: 8 Nov 1992 17:43:53 GMT
  6. Organization: SPARK's R US
  7. Lines: 71
  8. Message-ID: <lfqkepINNai3@appserv.Eng.Sun.COM>
  9. References: <1992Nov8.040005.701@crd.ge.com>
  10. Reply-To: bender@oobleck.eng.sun.com
  11. NNTP-Posting-Host: oobleck
  12. X-Newsreader: Tin 1.1 PL3
  13.  
  14. ivory@e7sa.crd.ge.com (John Ivory) writes:
  15. : Okay, I give up.  What are the steps involved in getting my Sun 4/110
  16. : running 4.1.2 SunOS, with a V.32 BIS Zoom modem attatched to /dev/ttya
  17. : to accept incoming calls and allow users to login?
  18. :
  19. : After I make the seemingly correct edits to /etc/ttytab, as well as
  20. : edits to /etc/uucp/Devices (suggested in the pcomm 'Q_and_A' doc),
  21. : and reboot, attempts to dial out on the modem fail because I can no
  22. : longer open that device, dialin's don't seem to connect, and the RD/SD
  23. : lights of the modem just blink busily.  What gives?!
  24.  
  25. John,
  26.   You should check a few things:
  27.  
  28.     - your modem must keep CD low when it's not connected
  29.     to another modem
  30.     - your modem must drop the connection to the other modem
  31.     when DTR from the Sun drops
  32.     - /dev/ttya must have softcarrier disabled (do a man ttysoftcar)
  33.  
  34.   It sounds like the Sun is sending "login:" to your modem, which is echoing
  35. it back to the Sun, which the Sun thinks is a user name, so the Sun sends
  36. "Password:" to the modem, which the modem echos back to the Sun, which
  37. thinks it's a password, which is (probably :-) an invalid username/password
  38. combination, so the Sun sends "Login incorrect:" to your modem followed by
  39. another "login:", your modem echos that stuff back to the Sun and the cycle
  40. starts over again.
  41.  
  42.   The way the serial port login stuff on SunOS 4.X works is that getty does
  43. an open() on the serial port, but the open() blocks in the zs driver (that's
  44. the driver responsible for /dev/ttya and /dev/ttyb) if the CD line from the
  45. modem is not asserted, i.e. the modem isn't connected to another modem.  At
  46. this point, you can use a program like tip or pcomm to dial OUT on the modem
  47. by opening the /dev/cua0 port, which is really just another name for
  48. /dev/ttya but with the high bit set in the device's minor number which tells
  49. the zs driver NOT to wait for CD to be high from the modem on an open().
  50. Once you finish using the modem for dial-out and close() the /dev/cua0
  51. device, if a call comes in and your modem answers it, the modem's CD line
  52. will be asserted, which will continue with the open() that getty did a while
  53. back, but which was up until this time blocking (waiting) in the zs driver.
  54. getty will generate the first "login:" message and then hand off the username
  55. to login to take care of the rest.  Once the incoming caller logs out, the CD
  56. line from the modem will drop, abd init will shortly fire up another getty,
  57. which will block once again in the open(), waiting for CD to be asserted on
  58. the next dial-in connection.
  59.  
  60.   Sun (any other UNIXes) have this strange thing called softcarrier, which
  61. is basically a flag that tells a serial port driver to IGNORE the state of
  62. the CD line from your modem, no matter what the hardware says it's state is,
  63. and instead just pretend that CD is always ACTIVE.  A side effect of this is
  64. that if sotfcarrier is set on a serial port, and you want to use the port
  65. for dial-in modem connections, whenever getty starts up and does an open()
  66. to the port, the open() will immediately succeede (sp?) and getty will spit
  67. out a "login:" message, without waiting for CD from the modem to be asserted.
  68. I have softcarrier enabled on several of the serial ports that I have
  69. connected to terminals, X10 controllers and other stuff that either doesn't
  70. support a CD line, or I haven't been bothered to wire up a calbe with CD
  71. passing all the way through from the device to the Sun serial port.
  72.  
  73.   I know this is long winded and you did specify e-mail, but I thought that
  74. some other people in this group might run into the same problems getting a
  75. dial-in and dial-out modem going, so I posted rather than e-mailed.
  76.  
  77. mike
  78.  
  79. --
  80.  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  81.  mike bender  DOD# 007  for sale: NX-650 & VT110 Shadow    415-863-8913 (home)
  82.     cheap advertising -->    $2500/obo    $2500/obo
  83.  bender@oobleck.eng.sun.com    nothin' witty here    415-336-6353 (work)
  84.  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  85.