home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / amiga / comms / network / uucp.zoo / Systems.doc < prev    next >
Text File  |  1988-03-23  |  6KB  |  154 lines

  1. SYSTEMS.DOC
  2.  
  3.   UUPC dials in to a feed site automatically.  To do this, uupc requires a
  4. systems file to:
  5.  
  6.     o tell what feed site you want to dial up.
  7.     o tell what bps speed you want to communicate at.
  8.     o tell what the phone number is, and any alternate numbers.
  9.     o tell who you are, and what your password is.
  10.  
  11. The following describes the layout of a "systems" file where this information
  12. is stored, and tells you how I set one up to dial in to van-bc - my feed
  13. site in Vancouver, Canada.
  14.  
  15.  
  16. THE SYSTEMS FILES CONTENTS
  17.  
  18.  
  19.   UU  supports  two  methods of dialing at present.  One of these will not
  20. work  with modems using the older Hayes protocol, like the Fastlink, which
  21. does  not recognize the dial up sequence "ATX4 DP ...".  The other is more
  22. flexible,  bypassing the "ATX4" problem, and allowing you to autodial  two
  23. feed site phone numbers.
  24.  
  25. The  systems file is ":usr/lib/uucp/systems" on your pcmail disk.  It is a
  26. very primitive script file used for dial-up.  Here are the two methods you
  27. can  use.   I will tell you what the more esoteric parts are later in this
  28. note.   I  have  split  system  file  contents  into  several lines in the
  29. following  description  to  make  it  readable.   Your  real  systems file
  30. contains  one  line  which  can be up to 512 characters.  There should be
  31. a space inserted when you join the lines.
  32.  
  33. Method 1: New Hayes Protocol - not recommended.
  34. -----------------------------------------------
  35.  
  36. van-bc Any 0 HAYES DT939-4782 g ogin:--ogin: <nodename>
  37. sword:-\c-sword: <password>
  38.  
  39. I won't go into details on this one, but just mention that it has a few
  40. problems:
  41.  
  42.   a) van-bc has two lines, but this mode only dials one of them.
  43.   b) It first tries 2400 BPS, then 1200 BPS.  If only use 1200 BPS,
  44.      it is a bit of a waste of time.
  45.   c) It requres the new Hayes protocol, since an "ATX4" is automatically
  46.      sent for you.  This sequence is not recognized by the older Hayes-
  47.      compatible modems.
  48.  
  49. Method 2: Recommended
  50. ---------------------
  51.  
  52. van-bc Any 0 DIR 2400 g OK-ATZ-OK ATDT939/4782
  53. CONNECT-\d+++\dATDT939/4756-CONNECT \0
  54. ogin:--ogin <nodename> sword:-\c-sword: <password>
  55.  
  56. van-bc        is the name of the van-bc feed site.
  57.  
  58. Any        not sure what this is for.
  59.  
  60. 0        What serial port to use.  Ignored since the ami only has
  61.         one port.
  62.  
  63. DIR        use the alternate dial up sequence which follows the "g".
  64.  
  65. 1200        The modem speed you want to use.  Use 2400 if you have it.
  66.  
  67. g        The protocol used to transfer data.  This is like xmodem
  68.         protocol, but in uu a windowed g packet protocol is the
  69.         only one available.
  70.  
  71. The  following information is organized in pairs, separated by blanks.  UU
  72. waits  for  a response given by the first field, then sends out the second
  73. field.   It  gets  a little complicated, because the script allows for any
  74. number  of  alternate send/expect pairs separated by a hyphen in the first
  75. field.  For example, the first pair is:
  76.  
  77. OK-ATZ-OK    Wait for an "OK" response from the modem.  If not received
  78. ATDT939/4782    within about 30 seconds, send "ATZ" and continue if "OK"
  79.         received.  If any of the first field alternative
  80.         conditions are satisfied, then send the second field.  In
  81.         this case it autodials Stuart's first line number 939-4782
  82.         using touch tone dialing if "OK" is received, or failing
  83.         that, if "OK" is received after sending "ATZ".
  84.  
  85. The next pair sends out van-bc's alternate number, 939-4756, if "CONNECT"
  86. is not received on dialing the first number.  If either is successful,
  87. it sends out \0, ie nothing in response.
  88.  
  89. ogin:--ogin    This pair waits for a response of "login:", or "login",
  90. <nodename>    and if received sends out the name of your node - uujlami
  91.         in my case,  uudaami for you.  Note that only the last 4
  92.         or 5 characters are checked for.  This passes a potential
  93.         problem of van-bc sending Login, or Login: instead of
  94.         login, or login:.
  95.  
  96. sword:-\c-sword:  You guessed it.  This waits for a password prompt from
  97. <password>    van-bc, and sends your password.
  98.  
  99. What are the benefits of this method?
  100.  
  101. Well,
  102.  
  103.    a) It tries both of van-bc's lines before it gives up.
  104.    b) You specify what speed you want to use - either 1200 or 2400 BPS.
  105.    c) You bypass the problem of the older Hayes-compatible modems not
  106.       recognising ATX4.
  107.    d) It waits for up to 30 seconds for a response, but you can add more
  108.       delay if needed by adding "\d" to the second field.  Each \d will
  109.       give an extra 2 seconds delay.  For example, you could extend the
  110.       waiting time for "CONNECT" to 40 seconds by replacing "ATDT939/4782"
  111.       above with "ATDT939/4782\d\d\d\d\d".
  112.    e) You can change the timeout with a string of the form
  113.     DELAY<seconds>
  114.       for example
  115.     DELAY3foo
  116.       sets the timeout to 3 seconds (a reasonable value once the modem
  117.       connection is established (after CONNECT)) and then sends the string foo.
  118. --------------------------------------------------
  119.  
  120. Here are some other special characters you can use in the second field,
  121. or in the first alternate field:
  122.  
  123. BREAK   send a break character. Sending a break is a common way to tell the
  124.     remote system that it should change the line speed or reset the line
  125.     or some such. (Sending a break pulls the serial transmit signal to 0
  126.     for nearly a second. This is not at all the same as sending a <NUL>).
  127.  
  128. \b    Send a backspace character.
  129. \B
  130.  
  131. \c    ignore the rest of the field.  Do not send a carriage return
  132. \C    (c/r).
  133.  
  134. \d    delay two seconds.
  135.  
  136. \n    send a newline character - a c/r on the Amiga.
  137.  
  138. \r    send a c/r.
  139. \R
  140. \m
  141. \M
  142.  
  143. \s    send a blank character.
  144. \S
  145.  
  146. \t    Send a tab character.
  147. \T
  148.  
  149. \0    Just a place holder.  It means to send nothing.
  150.  
  151. \z1200\    Change speed to 1200BPS.  You can use any other valid BPS rate
  152. \Z1200\ you want.
  153.  
  154.