home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / sysv386 / 12362 < prev    next >
Encoding:
Internet Message Format  |  1992-07-23  |  5.6 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!emory!wa4mei!rsj
  2. From: rsj@wa4mei (Randy Jarrett)
  3. Newsgroups: comp.unix.sysv386
  4. Subject: Re: Fun with uugetty (ISC)
  5. Keywords: uugetty
  6. Message-ID: <1992Jul24.031114.27008@wa4mei>
  7. Date: 24 Jul 92 03:11:14 GMT
  8. References: <winslade.711825566@odin>
  9. Organization: Amateur Radio Gateway WA4MEI, Chamblee, GA
  10. Lines: 113
  11.  
  12. In <winslade.711825566@odin> winslade@odin.unomaha.edu (John Winslade) writes:
  13.  
  14. >First of all, thanks to all who responded to my early plea for help regarding
  15. >the inability to operate a line bidirectionally under ISC 2.whatever.  I'll
  16. >summarize briefly a couple of the conclusions.
  17. >1. The uugetty that is shipped with the BNU package from ISC does not work
  18. >   properly, in that it will not step aside and allow another process to 
  19. >   access the line in an outbound direction.  My test program, which opens
  20. >   dev/ttyd00, while uugetty (WITH the -r option) is monitoring the
  21. >   (without the 'd') /dev/tty00 line, will fail on the open.
  22.  
  23. >   Substituting the new uugetty 2.0 will allow this.  The test program
  24. >   opens the line, writes a few chars to the modem, closes the line, and
  25. >   the uugetty steps back in and re-inits the modem and waits.
  26.  
  27. I don't know why they even ship this with the package.  In the docs they 
  28. tell you not to use it but just use /etc/getty. I don't have the release
  29. notes here but there is a section in there that tells about the changes.
  30.  
  31. In your 'Operating System Guide' in the 'Maintenance Procedures' section,
  32. chapter: 'Adding Modems.....', there is a section on Bidirectional 
  33. Capabilities' that will give you all the information you need on what 
  34. devices to use and modem configuration.
  35.  
  36. >2. Several people recommended the FAS driver.  I've obtained it, but have not
  37. >   installed it yet, since I want to get up a bit on the learning curve
  38. >   and also try to get the stock driver to work as it should.  With the
  39. >   stock driver and new uugetty, it does appear that bidirectional access
  40. >   will work.
  41.  
  42. I was using FAS under 2.xx and it was great.  With release 3.0 they 
  43. added in the handlers for the 16550 chips.  You still need FAS if 
  44. you want to use hardware handshaking.
  45.  
  46. >There are, however, two remaining problems, and I am hoping somebody has
  47. >already pulled hair over these and can prevent any more pulling of mine. ;-)
  48.  
  49. >First is an unpredictable respawn of the uugetty at seemingly random times.
  50. >It will work for a while, then respawn several times, each with a re-init
  51. >of the modem, and finally (init I think) warns that it is respawning too
  52. >quickly and locks it out.  Doing an init q will (usually) bring it back up
  53. >for a while.
  54. >I've enabled max debugging and watched what comes out.  The modem init is
  55. >fine, and the getty process blocks at the read call (as it should) when it
  56. >waits for a character from the line.  It never logs that it got a character
  57. >(unless it really does, like when I call in) but respawns from that point.
  58. >The way I understand Unix, one of two things must happen in order to
  59. >terminate the read call, either a successful read, in which case the read
  60. >call will return normally, or a signal, in which case if no handler or
  61. >action is defined, the process will terminate.  My next step (unless
  62. >somebody has a better idea ;-) will be to try to trap and log signals,
  63. >perhaps even doing the dreded longjmp() back just before the read call
  64. >as a workaround until I figure out what is really going on.
  65.  
  66. Get rid of uugetty and your problems should go away.
  67.  
  68. >Second, <very nasty profanity deleted> I STILL cannot get cu to let me
  69. >to access the line.  I've defined /dev/tty00 as major 3, minor 16 (with
  70. >rlsd control) and /dev/ttyd00 as major 3 and minor 0.  A quickie test
  71. >program can open /dev/ttyd00 and write data to the modem whether or not
  72. >the new uugetty is running.  I've also got a DIR entry for ttyd00 in the
  73. >Devices file.  Each attempt of
  74. >cu -l ttyd00            or
  75. >cu -l /dev/ttyd00
  76.  
  77. >results in NO DEVICES AVAILABLE (yes, all caps) displayed.
  78.  
  79. You shouldn't have to do any configuration on the serial devices. When
  80. you build up a and install the a new kernel it will take care of configuring
  81. the devices for you.  I just checked in the dev directory on two different
  82. ISC systems and here and below is what I find. It looks like either 
  83. you have a typing error in your message or you need to change your minor
  84. numbers around.
  85.  
  86. crw-rw-rw-   1 root     root       3, 32 Jul 13 22:59 acu0
  87. crw-rw-rw-   1 root     root       3, 33 Jul 13 22:59 acu1
  88. crw-rw-rw-   1 root     root       3, 34 Jul 23 22:59 acu2
  89. crw-rw-rw-   1 root     root       3, 35 Jul 23 22:59 acu3
  90.  
  91. crw-rw-rw-   1 root     root       3,  0 Jul 13 22:59 tty00
  92. crw-rw-rw-   1 root     root       3,  1 Jul 13 22:59 tty01
  93. crw-rw-rw-   1 root     root       3,  2 Jul 13 22:59 tty02
  94. crw-rw-rw-   1 root     root       3,  3 Jul 13 22:59 tty03
  95.  
  96. crw-rw-rw-   1 root     root       3, 16 Jul 13 22:59 ttyd0
  97. crw-rw-rw-   1 root     root       3, 17 Jul 13 22:59 ttyd1
  98. crw--w--w-   1 root     news       3, 18 Jul 23 18:33 ttyd2
  99. crw--w--w-   1 root     news       3, 19 Jul 23 22:40 ttyd3
  100.  
  101.  
  102. The section of the manual I mentioned above tells you when and how
  103. to use each of the above devices.
  104.  
  105. >I'm sure I must be overlooking something simple or stupid.  I've read
  106. >every TFM I can find with nothing really explicit on how to troubleshoot
  107. >something like this.
  108. >As before, any and all advice appreciated.
  109. >Thanks    Good day       JSW
  110. >winslade@odin.unomaha.edu      <---- best
  111. >jsw@drbbs.omahug.org
  112. -- 
  113. Randy Jarrett  WA4MEI 
  114. UUCP  ...!{emory,gatech}!wa4mei!rsj   | MAIL: 54 Patterson Rd.
  115. PHONE +1 404 822 4073              | Lawrenceville, GA 30244
  116.