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

  1. Path: sparky!uunet!wupost!waikato.ac.nz!comp.vuw.ac.nz!cc-server4.massey.ac.nz!acmebbs!kilroy
  2. Newsgroups: comp.os.coherent
  3. Subject: Interesting Modem Problem
  4. Message-ID: <1992Jul25.001833.1953@acme.gen.nz>
  5. From: kilroy@acme.gen.nz (earthbound misfit, I)
  6. Date: Sat, 25 Jul 92 00:18:33 GMT
  7. Organization: ACME BBS - Public Access Usenet, Palmerston North, New Zealand
  8. Lines: 57
  9.  
  10. I had an interesting problem with serial ports and the new V.32bis modem
  11. I bought that I thought people might find enlightening, and it raises one
  12. or two questions that some readers might be able to answer.
  13.  
  14. The details: ACME BBS is a 16MHz SX with 4MB of ram, 130MB IDE hard
  15. drive. There are 4 serial ports on the machine, com4 is disabled and I'm
  16. enabling com2fr, com1pr, and com3l for logins; the first 2 are on modems
  17. and the latter is for a serial cable connected to another machine, the
  18. V.32bis is on com2fr and com1pr is an internal 2400.
  19.  
  20. Anyway, I was having a problem with people connecting to the fast modem
  21. and getting a screenful of garbage instead of the login banner. Hmmm,
  22. interesting, it looked like a baud rate conflict somewhere, but the
  23. problem would disappear whenever I looked at it (I'd try calling line 1
  24. (the V.32bis on com2) from line 2 (the 2400 on com1 - confused?) and have
  25. no problems). Oh, and outgoing UUCP polls to my feed site would continue
  26. without a hitch at all times.
  27.  
  28. Some further digging finally tracked down the problem. I had the modem
  29. and serial port configured to operate at 19200bps, that was how it was
  30. described in /etc/ttys and all the uucp control files. But for a couple
  31. of days I'd slowed things down to 9600 to compare UUCP transfer rates
  32. and when I switched things back to 19200 I forgot one thing -
  33. /usr/bin/modeminit. It was still setting baud rate via stty to 9600.
  34.  
  35. My modeminit is changed from the standard Coherent one somewhat, for
  36. starters it's actually /etc/modeminit rather than living in /usr/bin.
  37. Mine actually just calls a script called /etc/modemreset which does the
  38. work of spitting a command string to the port at the right speed, so
  39. /etc/modeminit is similar in concept to something like /etc/drvld.all.
  40. The misconfigured modeminit was initialising the modem and presumably the
  41. serial drivers to 9600 baud on com2, so later attempts by login (reading
  42. from /etc/ttys) to use the port at 19200 were causing speed mismatches.
  43.  
  44. I don't really understand some of the lower levels of Coherent, this OS
  45. is my first experience of a Unix-style system. But I assume that the
  46. problem was this - the incorrect stty call in modeminit was setting the
  47. serial driver (and initially the modem) to 9600 bps. Later i/o through
  48. that port (eg via login) would try and use the port at 19200, and while
  49. the modem was happy (it autobauds on the serial port) one half of the
  50. serial driver was receiving things at 19200 but trying to spit them out
  51. to the modem at 9600, hence the garbage appearing at login attempts.
  52.  
  53. One of the things that made the problem so hard to trace (took me several
  54. days to narrow it down) was that as soon as someone reported a failure to
  55. log in on that line, I'd disable it and check the modem status with
  56. kermit, at 19200. It appears that kermit does lots of low-level things to
  57. the port to speak to it, and would reset the serial driver to the correct
  58. (19200) speed in doing so. Login attempts after that time would succeed
  59. until the machine was rebooted. And UUCP kept going, which suggests to me
  60. that uucico reads the current baud rate setting of the port and uses that
  61. instead of what /usr/lib/L-devices says.
  62.  
  63.                         - k
  64. -- 
  65. Craig Harding            kilroy@acme.gen.nz             ACME BBS +64 63 3551342
  66. "Jub'f Xvob?"
  67.