home *** CD-ROM | disk | FTP | other *** search
/ HAM Radio 1 / HamRadio.cdr / packet / packetcl / kant.doc < prev    next >
Text File  |  1988-12-10  |  8KB  |  199 lines

  1.  
  2. Notes on using Kantronics KPC-4 and KAM dual port TNCs with the W0RLI Mailbox:
  3. ------------------------------------------------------------------------------
  4.  
  5. Date: July 23, 1988
  6. From: Greg Day - KC8JN @ KC8JN
  7.       Wintersville, OH 43952
  8.  
  9. This information is provided for those SYSOPs using the W0RLI Mailbox software
  10. with either a Kantronics KPC-4 or KAM dual port TNC, to allow for port
  11. switching during mail forwarding.  Because the command structure for port
  12. switching is the same for both the KPC-4 VHF TNC and the KAM VHF/HF TNC, the
  13. following discussion will pertain to the KPC-4 only, but will apply to use of
  14. the KAM as well.
  15.  
  16. Because the KPC-4 uses software commands to switch between the two radio ports,
  17. and since the TNC provides only one serial (RS-232) port for connection to the
  18. computer, it is necessary to implement a method by which the SYSOP may easily
  19. switch ports, both from the console and during mail forwarding.  This is
  20. accomplished through the use of the KPC-4 STREAMSW parameter to permit
  21. switching between the streams on port 1 or port 2.  The use of this method of
  22. switching streams (radio ports) requires the use of a 2.70 or later version
  23. ROM.  The MAXUSERS parameter MUST be set to 0/0 to allow for a single exclusive
  24. connect from either port (the TNC will switch to the proper stream or radio
  25. port upon a valid connect from either port).  The actual switching of streams
  26. (radio ports) is accomplished through the issuance of a stream switch character
  27. (set by the STREAMSW parameter) unique to the port desired followed by a
  28. selected channel number, which for use with the Mailbox system will always be
  29. "A".  This stream switching information may be issued when in either the
  30. command or converse modes, but will be confined to the command mode when using
  31. the Mailbox software.
  32.  
  33. The SYSOP should create the following two files to allow for easy stream (radio
  34. port) switching from the local console:
  35.  
  36. For port 1, save to a file named "P1" under the \BBS subdirectory:
  37.  
  38.      ^CSTR 35/36
  39.  
  40.      #ASTR 0
  41.      C X
  42.      D
  43.      S
  44.  
  45. For port 2, save to a file named "P2" under the \BBS subdirectory:
  46.  
  47.      ^CSTR 35/36
  48.  
  49.      $ASTR 0
  50.      C X
  51.      D
  52.      S
  53.  
  54. An explanation of the above command sequence is in order.
  55.  
  56. 1) The first line issues a CTRL-C (to get the "cmd:" prompt) and sets the
  57.    stream switch (STREAMSW) characters temporarily to "#" for port 1 and "$"
  58.    for port 2.
  59.  
  60. 2) The second line is simply a "CR".  I have found this necessary to make the
  61.    TNC accept the succeeding commands properly without returning an "$ EH"
  62.    error message.
  63.  
  64. 3) The third line actually switches the stream (radio port) using the
  65.    stream switch character ("#" for port 1 or "$" for port 2) followed by the
  66.    channel letter (ALWAYS use "A" since you will be dealing with only one
  67.    channel with the mailbox).  The remainder of the line sets the STREAMSW
  68.    characters for both ports back to null (0/0) so that incoming characters
  69.    from the console will not inadvertently switch the stream (radio ports).
  70.  
  71. 4) The fourth and fifth lines are necessary to correct a "bug" in Kantronics
  72.    TNC software.  The problem is that the TNC retains the channel letter
  73.    ("A" in this case) in the internal TNC buffer and sends it as the first
  74.    character of the connect line (i.e. "A*** CONNECTED to .........") which
  75.    confuses the Mailbox software causing it to not recognize the connect.  This
  76.    is true only when doing mail forwarding, but is implemented in the console
  77.    switching to clear the buffer to prevent subsequent problems (when
  78.    forwarding).  The only way I have found to clear the buffer is to do a
  79.    connect then immediately disconnect.  The "A" channel character will appear
  80.    prefixed to the "retry count exceeded" message upon the disconnect.  Of
  81.    course the "X" is simply a dummy call to which the TNC will NOT connect. The
  82.    unfortunate situation here is that the TNC will transmit the connect frame
  83.    once before the disconnect takes effect, but this should not cause undue
  84.    channel loading.
  85.  
  86. 5) The last line issues the STATUS command and will list the current selected
  87.    stream (radio port) of the TNC.  This is merely a confirmation message to
  88.    the SYSOP at the console and is not necessary.  The STATSHRT command should
  89.    be set to ON to make this function operate correctly.
  90.  
  91. To use the above from the console, type the following:
  92.  
  93.      Op P1        (for switching to port 1 on serial port "p")
  94. or
  95.      Op P2        (for switching to port 2 on serial port "p")
  96.  
  97. Under 'RLI 6.12 the above will send the file to the TNC and activate the port
  98. for local (SYSOP) access and use.
  99.  
  100. With earlier versions of the Mailbox, use the "Dp" command to send the file to
  101. the proper serial port.
  102.  
  103. Now to set up the forwarding file (FWD.MB) to accomplish stream (radio port)
  104. switching when forwarding:
  105.  
  106. Use the "P" scripts under 'RLI 6.12 to send commands to the TNC for stream
  107. (radio port) switching.  The following are the lines used to accomplish port
  108. switching (please note that these are NOT the same as the old "P lists in
  109. earlier W0RLI Mailbox versions):
  110.  
  111.      PSTR 35/36
  112.      P#ASTR 0
  113.      PS
  114.      PC FWD
  115.      PD
  116.  
  117. Again, the "S" command (third line) will cause the current stream (radio port)
  118. status to be displayed and is optional (STATSHRT must be set ON).  The "FWD" is
  119. a dummy call and is used with the connect and disconnect commands (fourth and
  120. fifth lines) to correct the Kantronics "bug" mentioned earlier and clear the
  121. buffer.  Stream switching is done using either the "#" or "$" characters
  122. (followed by the "A" channel character) in the second line.
  123.  
  124. It is necessary to place the above information into a dummy forwarding list
  125. prior to all other forwarding lists needed for a given port (frequency).  The
  126. reason this is done (and the port switching is not done at the beginning of
  127. each individual list) is that since the method for clearing the extraneous
  128. channel character from the TNC buffer (Kantronics' "bug") requires the use
  129. of a connect and disconnect, the disconnect will prevent the forwarding from
  130. occurring.  Thus it is necessary to do the stream (radio port) switching
  131. separately from the succeeding forwarding lists.
  132.  
  133. The dummy forwarding list should be set up as follows:
  134.  
  135.      PSTR 35/36
  136.      P#ASTR 0
  137.      PS
  138.      PC FWD
  139.      PD
  140.      FA0023*
  141.      *
  142.      *** EOF
  143.  
  144. The above will cause a dummy connect for all forwarding attempts and all BBS
  145. calls (the "*" insures this).  Note that above example will switch to stream
  146. (radio port) 1 using the "#".  To switch to stream (radio port) 2 use the "$"
  147. in the second line.
  148.  
  149. A complete forwarding file might look like this:
  150.  
  151.      PSTR 35/36                (Switch to port 2)
  152.      P$ASTR 0                   (       "        )
  153.      PS
  154.      PC FWD
  155.      PD
  156.      FA0023*
  157.      *
  158.      *** EOF
  159.      CC K8AL-2
  160.      NC K8EIW-5
  161.      NC CLE
  162.      NC KB8CI
  163.      FA0023KB8CI
  164.      @C:\BBS\KB8CI.FWD
  165.      *** EOF
  166.      CC K8AL-2
  167.      NC N8FSY
  168.      FA0023N8FSY
  169.      C:\BBS\N8FSY.FWD
  170.      *** EOF
  171.      PSTR 35/36                (Switch to port 1)
  172.      P#ASTR 0                   (       "        )
  173.      PS
  174.      PC FWD
  175.      PD
  176.      FA0023*
  177.      *
  178.      *** EOF
  179.      CC AD8J-1                   (Beginning of port 1 forwarding)
  180.      NC W2XO
  181.      FA0421W2XO
  182.      @C:\BBS\W2XO.FWD
  183.      *** EOF
  184.      CC AD8J-1
  185.      NC KA3NVP
  186.      FA0421KA3NVP
  187.      @C:\BBS\KA3NVP.FWD
  188.  
  189. The one drawback to the above implementation is that it will not switch streams
  190. when using the "X call" command from the console.  In that case it will be
  191. necessary to switch streams (radio ports) using the "Op" command, return to the
  192. command prompt, then issue the "X call" command.
  193.  
  194. If you have any questions regarding the use of the Kantronics TNCs with the
  195. W0RLI Mailbox, pleae contact me via packet "@ KC8JN", located in eastern Ohio.
  196.  
  197. 73, Greg - KC8JN
  198.  
  199.