home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / COMMUNIC / K9X88D_3.ZIP / DOCS.ZIP / PCKERMIT.HLP < prev    next >
Encoding:
Text File  |  1987-08-22  |  20.2 KB  |  487 lines

  1. PCKERMIT.HLP                                            Aug. 21, 1987
  2.  
  3. PC-DOS Kermit with Sliding Windows                      Rev 2.1
  4. ----------------------------------                      8/21/87
  5.  
  6. PCKERMIT.EXE USER GUIDE
  7. =======================
  8.  
  9. Introduction
  10. ------------
  11.  
  12. PCKERMIT version 2.1 is an update for the first implementation of the
  13. "Sliding Window Extension" to Kermit (the extension is popularly called Super
  14. Kermit).  This extension allows data packets to be sent continuosly under
  15. most conditions, unlike "Kermit Classic" or XMODEM, both of which must wait
  16. for the other side to return an acknowledgment after each data packet has
  17. been sent.
  18.  
  19. This update adds support for 19,200 Baud, Pop-up status window, and some
  20. minor bug fixes.
  21.  
  22. The continuous transmission of data is especially helpful when there are
  23. delays in the communications path, such as via satelite transmission or over
  24. the public data networks (Telenet, Uninet, Tymnet, etc).
  25.  
  26.  
  27. NOT A TERMINAL PROGRAM
  28. ----------------------
  29.  
  30. PCKERMIT.EXE is not a terminal program.  It simply implements the Kermit
  31. protocol, including the sliding window extension.  It will work with older
  32. "Kermit Classic" implemenations as well, via automatic negotiation between
  33. the two Kermit programs.
  34.  
  35. PCKERMIT.EXE runs as a "one-shot" execution then returns to the caller.  A
  36. single file or multiple files (wildcard filename) are transferred until
  37. execution is completed or the transfer is abnormally aborted.  If execution
  38. is performed by the user from the DOS command line, termination of PCKERMIT
  39. returns control to PC-DOS.
  40.  
  41.  
  42. USE OF PCKERMIT.EXE
  43. -------------------
  44.  
  45. PCKERMIT does not establish a carrier with a remote system.  The connection
  46. must be established using a separate terminal program, and the remote Kermit
  47. selected using the separate terminal program.
  48.  
  49. Then you return to the MSDOS prompt and start PCKERMIT for the actual file
  50. transfer.
  51.  
  52. Here is a sample transfer taken from my screen, receiving a file using parity
  53. of mark.  (The example shows downloading a file from the IBMSIG on The
  54. Source.)
  55.  
  56. ---------------Start of example------------------
  57.  
  58. {On The Source}
  59.  
  60. -> ibmsig library download arce.com ke                {request ARCE.COM file}
  61.  
  62. You need a copy of KERMIT on your personal computer in order to download files
  63. with KERMIT.
  64.  
  65. RETURN to download "arce.com" or <N>ext:              {Press the RETURN key}
  66. [KERMIT rev 7.75]
  67. Begin the receive procedure on your personal computer.
  68. . S~/ @-#Y1 ,0$                                       {Normal Kermit exchange}
  69.  
  70. The IBM Personal Computer DOS                         {The exit to DOS}
  71. Version 2.10 (C)Copyright IBM Corp 1981, 1982, 1983
  72.  
  73. E:\temp>pckermit -p n -b 2400 -r              {The PCKERMIT command}
  74.  
  75.        {The transfer status window pops up over the current screen.}
  76.  
  77. ProComm╔═══════════════PCKERMIT version 2.1, August 21, 1987═════════════╗
  78.        ║                     Jan A. van der Eijk                         ║
  79.        ║               P.O. Box 3652, Gaithersburg, MD 20878             ║
  80. The IBM║                     BBS (301) 428-7931                          ║
  81. Version║     Receiving: ARCE.COM as ARCE.COM                             ║
  82.        ║ Creation date: 06/22/87 - 18:29:32  Window size:  16            ║
  83. E:\temp║     File size: 6494         Eight bit prefixing:  No            ║
  84.        ║   Packet size: 90              Data compression:  No            ║
  85.        ║ Checksum type: 6-bit          Bytes transferred:  5273          ║
  86.        ║  Last Message: Transfer completed properly                      ║
  87.        ║ Ctrl-B Abort Batch   Ctrl-F Abort File   Ctrl-K Abort Kermit    ║
  88.        ╚═════════════════════════════════════════════════════════════════╝
  89.  
  90. E:\temp>exit                              {Back to MSDOS}
  91.  
  92.        {Start my terminal program again}
  93.  
  94. ---------------End of example--------------------
  95.  
  96.  
  97. The command syntax of the stand-alone Kermit program is shown in Figure 1.
  98. Here are examples of execution from the DOS command line:
  99.  
  100. PCKERMIT
  101.    or
  102. PCKERMIT -H               Help: Will give you the screen of figure 1 below
  103.  
  104. PCKERMIT -R               Receive: Will receive a file using the PCKERMIT
  105.                           defaults of 1200 baud, parity none, on COM1.
  106.  
  107. PCKERMIT -S FILENAME.EXT  Send: Will send a file using the PCKERMIT
  108.                           defaults of 1200 baud, parity none, on COM1.
  109.  
  110.  
  111. PCKERMIT -R -P M          Receive: Will receive a file using Parity Mark
  112.  
  113.  
  114. PCKERMIT -L COM2 -B 2400 -P M -R
  115.  
  116.                           This will use serial line COM2 at 2400 baud and
  117.                           parity of mark to receive a file.
  118.  
  119. Upper or lower case does not matter; neither does the order of the options
  120. (i.e., PCKERMIT -R -P M  will do the same thing as PCKERMIT -P M -R)
  121.  
  122.  
  123.  
  124. --------------Start of Figure 1-------------------------------------------
  125.  
  126. Figure 1. PCKERMIT command syntax.
  127.  
  128.   PCKERMIT version 2.1, August 21, 1987, by Jan A. van der Eijk
  129.                P.O. Box 3652, Gaithersburg, MD 20878
  130.                      BBS (301) 428-7931
  131.   Kermit Receive and Send protocol module for MS-DOS operating systems.
  132.   Usage: PCKERMIT [-x arg [-x arg]...[-yyy]..]]
  133.   x is an option that requires an argument, y an option with no argument:
  134.      -s file(s)   send
  135.      -r           receive
  136.      -a name      alternate name, used with -s, -r
  137.      -h           help - print this message
  138.   settings --                                                        default
  139.      -l line      communication line device ( COM1, COM2 )            [COM1]
  140.      -b baud      line speed, e.g. 1200                               [1200]
  141.      -p x         parity, x is one of e,o,m,s,n                        [N]
  142.      -m size      maximum window size to use ( <= 31 )                 [31]
  143.      -n           non binary file transfer, affect CR/LF
  144.      -t           line turnaround handshake = xon, half duplex
  145.      -w           write over preexisting files
  146.      -q           be quiet during file transfer
  147.      -c           carrier detect signal required to be present
  148.  
  149. --------------End of Figure 1---------------------------------------------
  150.  
  151. Note 1:  If -t is used, -m should not be used.
  152.  
  153. Note 2:  The usage of -w is reversed from standard Columbia CKERMIT.
  154.  
  155.  
  156. USE OF BATCH FILES
  157. ------------------
  158.  
  159. Two small batch files can greatly simplify use of PCKERMIT:
  160.  
  161.  
  162. SEND.BAT would look like this using Mark parity at 1200 baud on COM1:
  163.  
  164. PCKERMIT -P M -S %1
  165.  
  166.  
  167. REC.BAT would look like this using Mark parity at 1200 baud on COM1:
  168.  
  169. PCKERMIT -P M -R
  170.  
  171. This makes it easy to send a file by just typing
  172.  
  173. SEND filename.ext
  174.  
  175. and receive a file by typing
  176.  
  177. REC
  178.  
  179. at the MSDOS prompt.  Change the PCKERMIT command line to reflect your
  180. communications setup (add -B 300 for 300 baud, etc.).
  181.  
  182. You could include the name of your terminal software at the end of the batch
  183. file so you went directly back to your terminal software when finished with
  184. the transfer.
  185.  
  186.  
  187. KEYBOARD INTERRUPTS
  188. -------------------
  189.  
  190. During a file transfer PCKERMIT responds (sometimes slowly) to the following
  191. keystrokes:
  192.  
  193. CTRL-F to cancel File,  CTRL-R to Resend current packet
  194. CTRL-B to cancel Batch, CTRL-K to abort Kermit and exit
  195.  
  196. These functions are available even at the start of PCKERMIT before it tells
  197. you they are available.  In particular, Control-K can be used if the
  198. "Send-Init" exchange does not seem to be working.
  199.  
  200. Please note that PCKERMIT checks the keyboard infrequently under some
  201. conditions.  WAIT at least 20 - 30 seconds before repeating a keystroke in
  202. order to avoid stacking up repeated commands.  This is particularly true of
  203. CTRL-F (cancel file) where you might cancel more than one file.
  204.  
  205. Also, the Control-F and Control-B (cancel file and cancel batch) functions
  206. sometimes require a NAK and a resend or a timeout before they actually work.
  207. This is not a protocol problem, but is due to the way PCKERMIT flushes its
  208. buffer before sending the abort packet.  In some cases, the flushing of the
  209. buffer truncates a packet and the following abort packet is not seen as a
  210. separate packet.
  211.  
  212. Here is a more detailed explanation of the functions:
  213.  
  214.   CTRL-F will cancel an individual file in a wildcard transaction, but then
  215.   continue with the next file in the batch.
  216.  
  217.   CTRL-B will cancel the entire batch of files, according to protocol, and
  218.   then return you to the DOS prompt.
  219.  
  220.   CTRL-K will abort the file transfer and return you to the DOS prompt.
  221.   PCKERMIT sends an Error packet indicating it is aborting, but otherwise
  222.   does not worry about protocol.
  223.  
  224.   CTRL-R will resend the current packet; this can be used as a manual
  225.   timeout.  When windowing is in effect, this feature should be tried only as
  226.   a last resort as it has not been fully tested.
  227.  
  228.  
  229. FUNCTIONS SUPPORTED BY PCKERMIT (Subject to agreement by the other Kermit)
  230. -------------------------------
  231.  
  232.    Windowing (full-duplex chanell required)
  233.    Data Compression
  234.    8-bit quoting (whenever parity is not "none")
  235.    File Attributes:
  236.      File Length
  237.        On Receive: accepts either
  238.           the attribute ! (Ascii 33) - Approximate File Length in K bytes
  239.           the attribute 1 (Ascii 49) - Exact file length
  240.  
  241.        On Send:
  242.           sends the attribute 1 (Ascii 49) - Exact File Length
  243.  
  244.      Time and Date:
  245.        Both Receive and Send
  246.           the attribute # (Ascii 35)  - Creation date
  247.  
  248.        NOTE: when PCKERMIT receives the creation date file attribute, it
  249.        automatically writes the received file with that date, rather than
  250.        the current date.
  251.  
  252.  
  253. FILE RENAMING
  254. -------------
  255.  
  256. PCKERMIT will rename received files to avoid conflicting with an existing
  257. file. (If you wish to overwrite files of the same name, use the -W option on
  258. the command line.)
  259.  
  260. The first duplicate filename received is renamed to with a .~1 extension,
  261. then .~2  and so on.
  262.  
  263. The addition of ~1, etc, after the filename is not ideal because the
  264. extension is completely lost.  Often files are being received with same root
  265. but different extensions. If they are updates, it may take a while to sort
  266. things out.
  267.  
  268.  
  269. PCKERMIT AT A GLANCE
  270. --------------------
  271.  
  272.   Local operation:                   Yes
  273.   Remote operation:                  N/A
  274.   Transfers text files:              Yes
  275.   Transfers binary files:            Yes
  276.   Wildcard send:                     Yes
  277.   ^X/^Y interruption:                Yes  (Different keystrokes, though)
  278.   Filename collision avoidance:      Yes
  279.   Can time out:                      Yes
  280.   8th-bit prefixing:                 Yes
  281.   Repeat count prefixing:            Yes
  282.   Alternate block checks:            Yes
  283.   Terminal emulation:                No
  284.   Communication settings:            Yes
  285.   Transmit BREAK:                    No
  286.   IBM mainframe communication:       ???
  287.   Transaction logging:               No
  288.   Session logging:                   No
  289.   Raw transmit:                      ???
  290.   Act as server:                     No
  291.   Talk to server:                    No
  292.   Advanced server functions:         No
  293.   Advanced commands for servers:     No
  294.   Local file management:             Yes
  295.   Handle file attributes:            Yes
  296.   Command/init files:                No
  297.   Command macros:                    No
  298.  
  299.  
  300.  
  301. PCKERMIT KNOWN PROBLEMS (BEWARE FILE)
  302. -------------------------------------
  303.  
  304. PCKERMIT version 1.18
  305. 1. FILE RENAMING WHEN DUPLICATE FILE NAME IS RECEIVED
  306.  
  307. Long filenames can duplicate existing filenames because they are not
  308. evaluated by PCKERMIT.  The long filename is sent to DOS, which truncates it
  309. to the first FILENAME.EXT characters.
  310.  
  311. 2. COMM port parameters possibly not returned to previous state:
  312.  
  313. The commercial comm library used in creating this program reportedly contains
  314. a bug which may cause PCKERMIT to leave the comm port in a different state
  315. than it found it.  This is not a problem when using PCKERMIT from the MSDOS
  316. prompt.  However, if you call PCKERMIT from WITHIN a terminal package, when
  317. you RETURN to the terminal package from PCKERMIT the serial port may not be
  318. set the way that terminal package expects.  This is unconfirmed.  You may
  319. wish to always run version 1.18 from DOS until this problem can be verified,
  320. and if needed corrected.  {Has been corrected.}
  321.  
  322.  
  323. SLIDING WINDOW DEFINITION
  324. -------------------------
  325.  
  326. The Kermit sliding window extension is defined in the file KWINDOW5.DOC.  If
  327. the definition is unclear or ambiguous to you in any respect, please contact
  328. Columbia University or Source Telecomputing at the address below.
  329.  
  330.  
  331. SLIDING WINDOW KERMIT STANDARDIZATION
  332. -------------------------------------
  333.  
  334. The Kermit Sliding Window Definition is still labeled experimental by
  335. Columbia University in order to help iron out all problems before the final
  336. definition is published and to aid in coordinating efforts on sliding window
  337. Kermits.
  338.  
  339. For more information, send SourceMail to STC356 on The Source.
  340.  
  341.  
  342. PCKERMIT.DOC
  343. ------------
  344.  
  345. PCKERMIT was created to be used by developers to aid them in implementing
  346. KERMIT and the new, faster "Sliding Window Kermit".  Complete documentation
  347. for developers is in the file PCKERMIT.DOC.
  348.  
  349.  
  350. COLUMBIA UNIVERSITY
  351. -------------------
  352.  
  353. Columbia University maintains the Kermit protocol.  The following is taken
  354. from their file COMMER.DOC, which describes Columbia University's policy
  355. regarding commerical use of Kermit:
  356.  
  357. "              POLICY ON COMMERCIAL USE AND DISTRIBUTION OF KERMIT
  358.  
  359.                                  Frank da Cruz
  360.  
  361.               Columbia University Center for Computing Activities
  362.  
  363.                                    June 1984
  364.  
  365.  
  366. The KERMIT file transfer protocol has always been open, available, and free to
  367. all.  The protocol was developed at the Columbia University Center for
  368. Computing Activities, as were the first several KERMIT programs.  Columbia has
  369. shared these programs freely with the worldwide computing community since 1981,
  370. and as a result many individuals and institutions have contributed their own
  371. improvements or new implementations in the same spirit.  In this manner, the
  372. number of different systems supporting KERMIT implementations has grown from
  373. three to about sixty in less than three years.  If Columbia had elected to keep
  374. the protocol secret, to restrict access to source code, or to license the
  375. software, the protocol would never have spread to cover so many systems, nor
  376. would the programs be in use at so many sites, nor would the quality of many of
  377. the implemementations be so high.
  378.  
  379. Although KERMIT is free and available to anyone who requests it, it is not in
  380. the "public domain".  The protocol, the manuals, the Columbia implementations,
  381. and many of the contributed implementations bear copyright notices dated 1981
  382. or later, and include a legend like
  383.  
  384.   Permission is granted to any individual or institution to copy or use
  385.   this document and the programs described in it, except for explicitly
  386.   commercial purposes.
  387.  
  388. This copyright notice is to protect KERMIT, Columbia University, and the
  389. various contributors from having their work usurped by others and sold as a
  390. product.  In addition, the covering letter which we include with a KERMIT tape
  391. states that KERMIT can be passed along to others; "we ask only that profit not
  392. be your goal, credit be given where it is due, and that new material be sent
  393. back to us so that we can maintain a definitive and comprehensive set of KERMIT
  394. implementations".
  395.  
  396. Within this framework, it is acceptable to charge a reproduction fee when
  397. supplying KERMIT to others.  The reproduction fee may be designed to recover
  398. costs of media, packaging, printing, shipping, order processing, or any
  399. computer use required for reproduction.  The fee should not reflect any program
  400. or documentation development effort, and it should be be independent of how
  401. many implementations of KERMIT appear on the medium or where they came from.
  402. It should not be viewed as a license fee.  For instance, when Columbia ships a
  403. KERMIT tape, there is a $100.00 reproduction fee which includes a 2400' reel of
  404. magnetic tape, two printed manuals, various flyers, a box, and postage; there
  405. is an additional $100.00 order processing charge if an invoice must be sent.
  406. The tape includes all known versions of KERMIT, including sources and
  407. documentation.
  408.  
  409. Commercial institutions may make unlimited internal use of KERMIT.  However,
  410. a question raised with increasing frequency is whether a company may
  411. incorporate KERMIT into its products.  A hardware vendor may wish to include
  412. KERMIT with its standard software.  A software house may wish to incorporate
  413. KERMIT protocol into its communications package, or to distribute it along with
  414. some other product.  A timesharing vendor or dialup database may wish to
  415. provide KERMIT for downloading.  All these uses of KERMIT are permissible, with
  416. the following provisos:
  417.  
  418. . A KERMIT program may not be sold as a product in and of itself.  In addition
  419.   to violating the prevailing spirit of sharing and cooperation, commercial
  420.   sale of a product called "KERMIT" would violate the trade mark which is held
  421.   on that name by Henson Associates, Inc., creators of The Muppet Show.
  422.  
  423. . Existing KERMIT programs and documentation may be included with hardware or
  424.   other software as part of a standard package, provided the price of the
  425.   hardware or software product is not raised significantly beyond costs of
  426.   reproduction of the KERMIT component.
  427.  
  428. . KERMIT protocol may be included in a multi-protocol communication package as
  429.   one of the communication options, or as a communication feature of some
  430.   other kind of software package, in order to enhance the attractiveness of the
  431.   package.  KERMIT protocol file transfer and management should not be the
  432.   primary purpose of the package.  The price of the package should not be
  433.   raised significantly because KERMIT was included, and the vendor's literature
  434.   should make a statement to this effect.
  435.  
  436. . Credit for development of the KERMIT protocol should be given to the Columbia
  437.   University Center for Computing Activities, and customers should be advised
  438.   that KERMIT is available for many systems for only a nominal fee from
  439.   Columbia and from various user group organizations, such as DECUS and SHARE.
  440.  
  441. Columbia University holds the copyright on the KERMIT protocol, and may grant
  442. permission to any person or institution to develop a KERMIT program for any
  443. particular system.  A commercial institution that intends to distribute KERMIT
  444. under the conditions listed above should be aware that other implementations of
  445. KERMIT for the same system may appear in the standard KERMIT distribution at
  446. any time.  Columbia University encourages all developers of KERMIT software and
  447. documentation to contribute their work back to Columbia for further
  448. distribution.
  449.  
  450. Finally, Columbia University does not warrant in any way the KERMIT software
  451. nor the accuracy of any related documentation, and neither the authors of any
  452. KERMIT programs or documentation nor Columbia University acknowledge any
  453. liability resulting from program or documentation errors.
  454.  
  455. These are general guidelines, not a legal document to be searched for
  456. loopholes.  To date, KERMIT has been freely shared by all who have taken the
  457. time to do work on it, and no formal legalities have proven necessary.  The
  458. guidelines are designed to allow commercial enterprises to participate in the
  459. promulgation of KERMIT without seriously violating the KERMIT user community's
  460. trust that KERMIT will continue to spread and improve at no significant cost to
  461. themeselves.  The guidelines are subject to change at any time, should more
  462. formal detail prove necessary.
  463.  
  464. Commercial organizations wishing to provide KERMIT to their customers should
  465. write a letter stating their plans and their agreement to comply with the
  466. guidelines listed above.  The letter should be addressed to:
  467.  
  468.  
  469.         KERMIT Distribution
  470.         Columbia University Center for Computing Activities
  471.         612 West 115th Street
  472.         New York, NY  10025
  473. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  474. Additions to version PCKERMIT version 2.0
  475.  
  476.    - 19200 bps support.
  477.  
  478.    - Pop-up status window.
  479.  
  480.    - Minor Bug fixes.
  481.  
  482. Fixes in version 2.1
  483.  
  484.    - Wrote my own windowing routines to fix the interrupt
  485.      problems in version 2.0.
  486.  
  487.