home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / mail / uucp / 2093 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  3.5 KB

  1. Path: sparky!uunet!ogicse!uwm.edu!spool.mu.edu!umn.edu!csus.edu!netcom.com!gerg
  2. From: gerg@netcom.com (Greg Andrews)
  3. Newsgroups: comp.mail.uucp
  4. Subject: Re: Binding Systems entries to specific Dialers entries (and not Devices)?
  5. Summary: Use the device type/class field in Systems
  6. Keywords: Dialers  Devices  Systems  HDB
  7. Message-ID: <1992Nov18.085647.20388@netcom.com>
  8. Date: 18 Nov 92 08:56:47 GMT
  9. Article-I.D.: netcom.1992Nov18.085647.20388
  10. References: <1992Nov17.193621.11013@elroy.jpl.nasa.gov>
  11. Organization: Netcom Online Communications Services (408-241-9760 login: guest)
  12. Lines: 62
  13.  
  14. earle@elroy.jpl.nasa.gov (Greg Earle - Gainfully Unemployed) writes:
  15. >
  16. >
  17. >tb9600v42     =W-,    "" \dA\pA\pA\pTE1V1X11Q0S2=255S12=255S50=6S58=2S111=30S1\
  18. >80=2S181=1\r\c OK\r \EATDT\T\r\c CONNECT\s38400/LAPM/COMP/9600 STTY=crtscts
  19. >
  20. >tb9600mnp     =W-,    "" \dA\pA\pA\pTE1V1X11Q0S2=255S12=255S50=6S58=2S111=30S1\
  21. >80=3S181=1\r\c OK\r \EATDT\T\r\c CONNECT\s38400/REL/COMP/9600 STTY=crtscts
  22. >
  23. >tb14400mnp    =W-,    "" \dA\pA\pA\pTE1V1X11Q0S2=255S12=255S50=7S58=2S111=30S1\
  24. >80=3S181=1\r\c OK\r \EATDT\T\r\c CONNECT\s38400/REL/COMP/14400 STTY=crtscts
  25. >
  26. >etc. etc. ... which results in Devices entries like
  27. >
  28. >ACU cua0 - 38400 tb14400mnp \T
  29. >ACU cua0 - 38400 tb9600mnp \T
  30. >ACU cua0 - 38400 tb9600v42 \T
  31. >ACU cua0 - 38400 tb9600 \T
  32. >
  33. >So, whenever I put "38400" into the "Class" field of the Systems file entry,
  34. >uucico always tries "tb14400mnp" first, then "tb9600mnp", etc.
  35. >
  36.  
  37. As far as I've been able to tell, there's nothing magic about the string
  38. "ACU" in HDB Systems and Devices file entries.  Aside from built-in types
  39. like "TCP" or "801", it's just a text string.  The device type field and
  40. speed field are remembered, and the Devices file is scanned for lines
  41. that contain matches to both those fields.
  42.  
  43. I've been successful using device types like "UUCP", "ACUNORM", and
  44. "ACUPLAIN" to select a particular line in Devices, which points to
  45. the desired line in Dialers.
  46.  
  47.  
  48. BTW, It's somewhat dangerous to make your dialer look for such specific
  49. connect messages from the modem.  What happens if the other guy turns off
  50. compression in his modem?  You could comple the connection and log into
  51. the computer, but your call fails because the script didn't get the /COMP
  52. suffix from the modem.  Or what if you wanted to test a connection using
  53. a 19200 bps port speed instead of 38400?  The script won't let you connect
  54. because the modem says "CONNECT 19200" instead of "CONNECT 38400".
  55. A quick test that should only require a minor change to Systems now makes
  56. you edit Devices and Dialers also.  (After several calls are wasted while
  57. you figure out why it isn't working)  When the test is done, you have to
  58. change everything back!
  59.  
  60. I find it best to make Dialers ignore the things that can vary from site
  61. to site and day to day (like the connect suffixes), let Devices allow a
  62. range of port speeds, and lock the speed and device type in Systems.  This
  63. will reduce the number of Devices scripts you need (your two mnp examples
  64. would become just one script), and things won't break on you when you need
  65. a little flexibility.  You can still enable the modem's connect suffixes
  66. if you want, it's just the script won't care about them.  However, YOU will
  67. care about them when you're capturing debug dumps of your uucp calls, so I
  68. recommend enabling the suffixes.
  69.  
  70.  
  71. -- 
  72.  .------------------------------------------------------------------.
  73.  |  Greg Andrews   |       UUCP: {amdahl,claris}!netcom!gerg        |
  74.  |                 |   Internet: gerg@netcom.COM                    |
  75.  `------------------------------------------------------------------'
  76.