home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / hp9000basic / hpbkerdoc.txt < prev    next >
Text File  |  2020-01-01  |  129KB  |  3,599 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.                                HP-BASIC  KERMIT USER GUIDE
  11.  
  12.  
  13.                  For The Hewlett-Packard Family 9000 Series 200 and 300 Computers
  14.  
  15.                                    HP-BASIC  WORKSTATIONS
  16.  
  17.  
  18.                                          VERSION 1.0
  19.  
  20.  
  21.                                        Andrew Campagnola
  22.  
  23.                                         Hewlett-Packard
  24.                                  Measurement Systems Operation
  25.                               815 SW 14 St. Loveland, Colorado  80537
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.                                     Copyright (C) 1981,1988
  38.                     Trustees of Columbia University in the City of New York
  39.  
  40.              Permission is granted to any individual or institution to use, copy,
  41.             or redistribute this document so long as it is not sold for profit.
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.                         Kermit-RMB   Table Of Contents
  63.  
  64.  
  65.                 Section              Topic
  66.  
  67.                 1.0             Kermit-RMB Title Block
  68.                 2.0             History Of Kermit-RMB
  69.                 3.0             Kermit-RMB Capability Summary
  70.                 4.0             Computer System Requirements
  71.                 5.0             Using Kermit-RMB
  72.                         5.1     Examples of Kermit-RMB usage
  73.                         5.2     Connecting HP Workstations for Kermit
  74.                         5.2.1   Connecting the 98644 (9 Pin) Interface
  75.                         5.2.2   Connecting the 98626/98628 Interfaces
  76.                         5.2.3   Connecting to Modems
  77.                         5.3     Testing the RS-232 Connection
  78.                 6.0             The HP-BASIC File System
  79.                         6.1     Specifying Filenames and Mass Storage
  80.                         6.2     BASIC File Formats
  81.                         6.3     Kermit Handling of Files
  82.                         6.3.1   Sending Files
  83.                         6.3.2   Receiving Files
  84.                 7.0             Kermit Program Setup
  85.                         7.1     The Kermit Distribution Disc
  86.                         7.2     Printing the User Manual
  87.                         7.3     Loading and Running Kermit
  88.                         7.4     Minimizing Kermit Program Size
  89.                         7.5     Kermit Initialization File HPK_INIT
  90.                         7.6     Ram Disc Operation
  91.                 8.0             Kermit-RMB Command Descriptions
  92.                         8.1     Kermit Command Syntax Reference
  93.                         8.2     Unique Commands for Kermit-RMB
  94.                         8.3     General Kermit Command Groups
  95.                         8.4     Program Management Commands
  96.                         8.5     Local File Management Commands
  97.                         8.6     Terminal Connection and Emulator Commands
  98.                         8.7     File Transfer Commands
  99.                         8.8     Ascii File Transmission Commands
  100.                         8.9     Kermit SET Command Options
  101.                         8.10    Status and Show Commands
  102.                         8.11    Log and Close Commands
  103.                         8.12    Macro Definitions
  104.                         8.13    Kermit Server Commands (Not Implemented)
  105.                         8.14    Remote Server Commands (Not Implemented)
  106.                 9.0             Missing Features in Kermit-RMB
  107.                                 Future Enhancements
  108.                                 Bug Reports
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.               Kermit-RMB 1.0   Users Manual                                  Page 2
  117.  
  118.  
  119.  
  120.  
  121.                 1.  Kermit-RMB
  122.  
  123.                 This document is available either as an ordinary, plain DOS
  124.                 text disk file, or a HP-LIF ASCII file.
  125.  
  126.                 Program:  Andrew Campagnola - Hewlett-Packard Company
  127.  
  128.                 Language:  Hewlett-Packard Series 200/300 BASIC (Rev.  5.x)
  129.  
  130.                 Version:  1.0
  131.  
  132.                 Release:  1 Mar 1989
  133.  
  134.  
  135.                 2.  History
  136.  
  137.                 This is the first full version of KERMIT for the HP BASIC
  138.                 Workstation written.  Keith Moore wrote a BASIC-CSUB which
  139.                 implements the KERMIT send and receive protocol for ascii
  140.                 files while at New Jersey Division Labs.  His efforts there,
  141.                 and a positive response to the availability of his KERMIT for
  142.                 HP BASIC combined with the universal need for a native BASIC
  143.                 terminal emulator spurred on this project.
  144.  
  145.                 The KERMIT file transfer protocol was developed at Columbia
  146.                 University in 1981 under the direction of Frank DaCruz and
  147.                 first written by Bill Catchings for CP/M at the Center for
  148.                 Computing Activities.  Now over 200 versions of the KERMIT
  149.                 program are monitored and supported by that group.
  150.  
  151.                 KERMIT received its name from a muppets poster on the wall
  152.                 during the conception of the protocol at Columbia in 1981.
  153.                 After attempts to define K-E-R-M-I-T as an acronym failed it
  154.                 was admitted that KERMIT was named after KERMIT the Frog with
  155.                 Jim Henson's permission.  It was later discovered that KERMIT
  156.                 is a Celtic word for "free", and other justifications arose.
  157.  
  158.                 Like all Kermit programs, you are encouraged to use, copy, and
  159.                 distribute HP-BASIC Kermit freely.
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.               Kermit-RMB 1.0   Users Manual                                  Page 1
  177.  
  178.  
  179.  
  180.  
  181.            3.       Kermit-RMB Capabilities At A Glance:
  182.  
  183.            Local operation:                Yes
  184.            Remote operation:               Yes  Requires HP NJD REMCON BIN
  185.            Transfers text files:           Yes
  186.            Transfers binary files:         Yes  (BDAT, ASCII, HP-UX)
  187.            Wildcard send:                  No
  188.            File transfer interruption:     Yes
  189.            Filename collision avoidance:   Yes
  190.            Can time out:                   Yes
  191.            8th-bit prefixing:              Yes
  192.            Repeat count compression:       Yes  - receive only
  193.            Alternate block check types:    No
  194.            Terminal emulation:             VT100
  195.            Communication settings:         Speed, Parity, Echo   (Full duplex only)
  196.            Transmit BREAK:                 Yes
  197.            IBM mainframe communication:    No
  198.            Transaction (Packet) logging:   Yes
  199.            Session logging (raw download): Yes
  200.            Raw upload (Transmit)           Yes
  201.            Act as server:                  No
  202.            Talk to server:                 No
  203.            Advanced server functions:      No
  204.            Advanced commands for servers:  No
  205.            Local file management:          Yes
  206.            Command/init files:             Yes
  207.            Command macros:                 Yes
  208.            Extended-length packets:        No
  209.            Attribute packets:              Yes
  210.            Sliding windows:                No
  211.  
  212.  
  213.                Kermit-RMB is a program that implements the Kermit file
  214.                transfer protocol for the entire HP Series 200/300 BASIC
  215.                Workstation family of computers.
  216.  
  217.                This user manual assumes that you are new to Kermit but
  218.                familiar with the operation of the HP BASIC Workstation and
  219.                ideas of data communication.  A very brief overview is given
  220.                here, but for details consult the early chapters of the
  221.                Kermit User Guide, or Frank DaCruz' book:
  222.  
  223.                      Kermit, A File Transfer Protocol, by
  224.                      Frank da Cruz
  225.                      Digital Press (1987)
  226.                      order number EY-6705E-DP
  227.                      (phone 1-800-343-8321)
  228.  
  229.                which also includes excellent background tutorials on
  230.                computers, file systems, and data communication (including
  231.                modems, cabling, etc).
  232.  
  233.  
  234.  
  235.  
  236.               Kermit-RMB 1.0   Users Manual                                  Page 2
  237.  
  238.  
  239.  
  240.                For further information about obtaining Kermit programs and
  241.                user documentation, write to:
  242.  
  243.  
  244.                Columbia University
  245.                Center for Computing Activities
  246.                Kermit Distribution
  247.                612 West 115th Street
  248.                New York, NY  10025  (USA)
  249.  
  250.  
  251.  
  252.            4.0      System Requirements
  253.  
  254.                Kermit-RMB was developed on a 9816 Workstation using BASIC
  255.                5.1.  The 9816 was configured with 1Mb RAM and a 98626 Serial
  256.                Interface Card. A Memory Volume was not used.
  257.  
  258.                Kermit-RMB version 1.0 runs on any Series 200/300 computer
  259.                with 1 Mb of memory.  BASIC 5.x is required.  The Operating
  260.                System and Kermit program will load and run in less than 1 Mb
  261.                but without the use of a Memory Volume.
  262.  
  263.                Kermit will run on any HP serial interface available for the
  264.                Series 200 and 300 computers. These include the following:
  265.  
  266.                98644    Built-in 25 Pin Serial Interface on the S/310
  267.                98644    Built-in 9 Pin Serial Interface on S/320 and up
  268.                98626    50 Pin Serial Interface Card fro S/200 and S/300
  269.                98628    50 Pin Datacomm Interface Card for S/200 and S/300
  270.  
  271.  
  272.                Kermit-RMB implements both Ascii and Binary file transfer as
  273.                well as providing a near complete Kermit user interface.
  274.                File transfer is provided using both KERMIT Protocol Packets
  275.                (SEND-RECEIVE) and raw upload and download (TRANSMIT - LOG
  276.                SESSION).  Aside from the normal functions of Kermit for file
  277.                transfer, Kermit-RMB also provides useful functions such as:
  278.  
  279.  
  280.                ASCII file printing to screen and printer     PRINT / TYPE
  281.                A Hex Editor and dump utility                 DUMP
  282.                VT-100 Terminal emulation                     CONNECT
  283.                A File Type Conversion Utility                CONVERT
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.               Kermit-RMB 1.0   Users Manual                                  Page 3
  297.  
  298.  
  299.  
  300.              5.0   Using Kermit-RMB
  301.  
  302.                Kermit-RMB performs two major functions, terminal emulation
  303.                and file transfer.  File transfer can be done using either
  304.                the Kermit file transfer protocol (SEND & RECEIVE) , or else
  305.                (without error checking), raw ASCII transmission methods.  To
  306.                use Kermit for "raw" uploading or downloading of files, see
  307.                the descriptions of the TRANSMIT and LOG SESSION commands.
  308.  
  309.                Two computers use the KERMIT transfer protocol to send files to
  310.                each other by running a KERMIT program on each computer. This is
  311.                an important point - Kermit running on one computer cannot send
  312.                or receive files from another computer running some other file
  313.                transfer program (ie. Xmodem, or HP Advancelink) because the
  314.                protocols (or encoding) used is not the same. Therefore one key
  315.                advantage of using Kermit is that many computers on the market
  316.                have a version of Kermit written for them. You should be aware
  317.                that many terminal emulator programs, especially for the PC
  318.                contain the capability of performing file transfers using a
  319.                variety of protocols, including Kermit. Check into this before
  320.                assuming your terminal emulator cannot support Kermit.
  321.  
  322.                If you are trying to transfer files to a computer system and do
  323.                not have a Kermit program for that system you should contact
  324.                Columbia University to see if one exists.
  325.  
  326.                Without Kermit running on each computer, your only other option
  327.                is to use simple ascii transmission which does not "encode" files
  328.                using any protocol.  For example the Kermit Transmit command
  329.                could be used with most any PC Terminal Emulator that performs
  330.                "File Logging".  The disadvantage of using this method is the
  331.                lack of binary file transfers or parity error detection.
  332.  
  333.  
  334.                5.1  Kermit - to - Kermit File Transfer
  335.  
  336.                Once you have obtained versions of Kermit for each computer
  337.                on each end of the file transfer you are ready to begin making
  338.                the RS-232 connection and transferring files. Making the physical
  339.                connection is discussed in the next section after this overview
  340.                of using Kermit.
  341.  
  342.                There are two scenarios for file transfers I'll discuss here and
  343.                give examples for. One involves transferring files between two
  344.                computers that are next to each other (let's say in the same
  345.                lab), and the other scenario of transferring files between two
  346.                computers that are remote to each other (let's say from a local
  347.                instrument controller to a remote VAX in the computer center
  348.                - or in a remote building accessed via modem).  Remember -
  349.                both scenarios involve an RS-232 connection between the two
  350.                computers that must be established first.
  351.  
  352.  
  353.                (1) Local - to - local  File Transfer
  354.  
  355.  
  356.               Kermit-RMB 1.0   Users Manual                                  Page 4
  357.  
  358.  
  359.  
  360.  
  361.                Assume you have connected a Series 300 to a Personal Computer
  362.                in your lab using the HP-24542G Serial Printer Cable (This
  363.                conenection is discussed later). To transfer a file from the
  364.                Series 300 to the PC would involve the following:
  365.  
  366.            A.  Start each computer, load and run Kermit on each side.
  367.  
  368.                Kermit comes up on each computer with its local prompt:
  369.  
  370.                MS-KERMIT> may be the prompt you see on the PC - MSDOS version
  371.                and
  372.                KERMIT-RMB> is the prompt you'll see on the HP side.
  373.  
  374.  
  375.            B.  Configure the receiver (PC) and begin the receive process:
  376.  
  377.                You tell Kermit what to do by issuing commands to kermit at its
  378.                prompt the same way you issue commands to DOS or Unix.
  379.  
  380.                MS-KERMIT> SET BAUD 9600      (19200 would work also)
  381.                MS-KERMIT> SET TIMER OFF      (Let the sender be the timer)
  382.                MS-KERMIT> RECEIVE
  383.  
  384.                Kermit on the PC will begin the receive process and you will
  385.                see the Kermit receive screen which shows you the status of the
  386.                file transfer. (The screen may vary depending on the version)
  387.  
  388.                At this point the MS-Kermit is waiting to receive a "start"
  389.                signal from the sending Kermit (HP side). Normally Kermit will
  390.                wait for a signal for just so long and then "timeout" and quit
  391.                trying to receive a file if it hasn't heard from the sender.
  392.                Since we shut this off by using the SET TIMER OFF command, the
  393.                MS-Kermit will now wait indefinitely for the sender to begin.
  394.  
  395.  
  396.             C. Configure the sender (HP) and begin the send process:
  397.  
  398.                KERMIT-RMB> SET BAUD 9600     (Baud must be identical)
  399.                KERMIT-RMB> SEND TESTDATA:,700
  400.  
  401.                HP Kermit begins the sending process by displaying the send file
  402.                status screen on the crt. Before actually sending the file the HP
  403.                Kermit will do a few things like make sure the file is really
  404.                there, check the file type and size of the file so it can tell
  405.                the PC Kermit what it will be sending. Then it sends the "start"
  406.                signal that the PC kermit has been waiting for, and the file
  407.                transfer begins.
  408.  
  409.                The sending Hp Kermit sends the file by "chopping" it into pieces
  410.                about 100 bytes long, putting each piece into a "packet" and
  411.                sending the packet to the receiving Kermit. The receiving Kermit
  412.                unwraps the "file data" from the packet and stores each piece of
  413.                file data into the destination file. When the entire file has
  414.  
  415.  
  416.               Kermit-RMB 1.0   Users Manual                                  Page 5
  417.  
  418.  
  419.  
  420.                been sent the sending kermit notifies the receiving end of this
  421.                andthen each side shuts down the file transfer and returns you to
  422.                the local prompt. You should also see some message to the effect
  423.                "file transfer complete" indicating a successful transfer.
  424.  
  425.                At the prompt you can now issue another command, send or receive
  426.                another file, or quit by entering the "QUIT" command.
  427.  
  428.                MS-KERMIT> QUIT
  429.                C:>
  430.  
  431.                KERMIT-RMB> QUIT
  432.                Kermit Done.
  433.  
  434.  
  435.              (2) Local - to - Remote File Transfer
  436.  
  437.                Local to Remote file transfer works identically the same with
  438.                one difference.  You probably don't want to have to walk over
  439.                to the computer center and start Kermit there every time you
  440.                want to transfer a file.  It would be alot easier if you
  441.                could "logon" to the remote computer and give it commands as
  442.                if you were sitting in front of the computer yourself.  In
  443.                order to logon to a remote computer it must be a multi-user
  444.                (multi-tasking no doubt) system.  Unix systems and VAXs are
  445.                probably the most familiar multi-user engineering systems
  446.                that you know of.  In general, Personal Computers do not
  447.                handle remote logon and use.
  448.  
  449.                To logon to a remote computer you use the terminal emulator
  450.                built into Kermit to start Kermit and a file transfer
  451.                running.  The Kermit command "CONNECT" starts the terminal
  452.                emulator.  Once the file transfer is running on the remote
  453.                computer you exit the terminal emulator by typing the "escape
  454.                sequence", get back to the local Kermit prompt (KERMIT-RMB>)
  455.                and begin the file transfer on the HP end.
  456.  
  457.                The following example shows this process; the other computer
  458.                is a Unix system, but the method is the same with most
  459.                others.  When you type a command, you terminate it with a
  460.                carriage return, which you can't see in the example.  The
  461.                mysterious "^]c" is Kermit-RMB's escape sequence, which you
  462.                enter by holding down the Control (Ctrl) key and pressing "]"
  463.                (right square bracket), and then typing the letter C.  This
  464.                example assumes the Kermit-RMB program is stored on disk as
  465.                the PROGram file "HPKERMIT".
  466.  
  467.             Program Dialog:             Explanation:
  468.  
  469.             LOAD "HPKERMIT",1
  470.  
  471.             HP-9000 Kermit-RMB  Version 1.0  1 Mar 1989
  472.             ? for help
  473.  
  474.  
  475.  
  476.               Kermit-RMB 1.0   Users Manual                                  Page 6
  477.  
  478.  
  479.  
  480.             Kermit-RMB>set baud 1200    Set the right baud rate.
  481.             Kermit-RMB>connect          Connect as a terminal.
  482.  
  483.                You will see the terminal emulator screen on the HP system
  484.                with a "modeline" at the bottom telling you the baud and
  485.                terminal settings, and most important, the Kermit escape
  486.                sequence.
  487.  
  488.                At this point you are connected to the remote system.
  489.                Type a carriage return to get its attention.
  490.  
  491.  
  492.             Login: andyc                Login to the host.
  493.             password: xxxxxx            (Passwords normally don't echo.)
  494.             %                           The remote system prompt
  495.  
  496.             % kermit                    Start the remote kermit program
  497.             C-Kermit>                   The remote Kermit command prompt
  498.             C-Kermit> receive           Start the remote receive program.
  499.  
  500.             ^]c                         Escape back to the S200/300.
  501.  
  502.             Kermit-RMB>
  503.  
  504.                You have now escaped out of the terminal emulator and the
  505.                local HP Kermit prompt is again active. You are still
  506.                connected and logged on to the remote computer, and the
  507.                remote Kermit program is waiting for the "start" signal from
  508.                your end.
  509.  
  510.             Kermit-RMB> send DATAFILE:,700       send a file.
  511.  
  512.               (The file is transferred...)
  513.  
  514.             Kermit-RMB>                  Transfer complete, prompt reappears.
  515.  
  516.  
  517.                In this example, the user loads "KERMIT",1 and sees the
  518.                program's herald and its prompt, "Kermit-RMB>".  Then the
  519.                appropriate communication speed ("baud rate") is set, you
  520.                connect as a terminal, and log in to your ID on the Unix
  521.                system.  To start Kermit on the Unix system the command
  522.                kermit is given, and when it starts the C-Kermit prompt
  523.                appears.  You tell it to receive a file by typing the RECEIVE
  524.                command, and then escape back to the S200/300, and tell
  525.                Kermit-RMB to send the file with the SEND command.  After the
  526.                file is transferred, the user would normally connect back to
  527.                the Unix system, exit from the Kermit program there, and log
  528.                out:
  529.  
  530.             Kermit-RMB> connect      Connect again.
  531.             C-Kermit>quit
  532.             %                        The remote system prompt appears
  533.             % logout                 Logout from Unix or type Ctrl-D.
  534.  
  535.  
  536.               Kermit-RMB 1.0   Users Manual                                  Page 7
  537.  
  538.  
  539.  
  540.             ^]c                      Escape back to the S200/300.
  541.  
  542.             Kermit-RMB>
  543.             Kermit-RMB> quit
  544.  
  545.                To transfer a file in the other direction, simply exchange
  546.                the "send" and "receive" commands above.  That's the easiest
  547.                and quickest way to use Kermit.  If you have problems getting
  548.                the file transfer to work use the Kermit STATUS command to
  549.                view the current Serial Port settings and look for any
  550.                obvious incorrect settings (port, speed, parity), fix them
  551.                with SET commands (described in Section 8), and try again.
  552.  
  553.                Many problems can crop up when you attempt to connect two
  554.                unlike systems over RS-232.  If all communication parameters
  555.                appear to be identical, then check the cabling between the
  556.                two systems - this is often the problem.  Next is a quick
  557.                guide to RS-232 Cabling for HP Workstations:
  558.  
  559.  
  560.  
  561.  
  562.  
  563.  
  564.  
  565.  
  566.  
  567.  
  568.  
  569.  
  570.  
  571.  
  572.  
  573.  
  574.  
  575.  
  576.  
  577.  
  578.  
  579.  
  580.  
  581.  
  582.  
  583.  
  584.  
  585.  
  586.  
  587.  
  588.  
  589.  
  590.  
  591.  
  592.  
  593.  
  594.  
  595.  
  596.               Kermit-RMB 1.0   Users Manual                                  Page 8
  597.  
  598.  
  599.  
  600.              5.2  CONNECTING HP WORKSTATIONS For KERMIT
  601.  
  602.                Below are instructions for connecting the HP Series 200 and
  603.                300 directly to a Personal Computer, modem, or your existing
  604.                data switch.
  605.  
  606.  
  607.                HP SIDE:
  608.  
  609.                There are a few different serial interface connections for
  610.                the HP Workstation:
  611.  
  612.                1. Built-in 98644 (9 Pin) interface on S/320,330,350,360 or
  613.  
  614.                   Built-in 98644 (25 Pin) on S/310.
  615.  
  616.                2. 98626 Plug-in Serial I/O Card (50 Pin) for S/200/300. or
  617.                   98628 Plug-in Datacomm I/O Card (50 Pin) for S/200/300.
  618.  
  619.                3. Modem Connections
  620.               --------------------------------------------------------------
  621.  
  622.                 Note:
  623.  
  624.                The following cables and pin diagrams are provided because
  625.                they are existing cable products that you may have available to
  626.                you already. The cables contain wiring which uses modem
  627.                handshake lines to manage the connection. Two computers either
  628.                local or remote can also be "direct" connected using a 3-wire
  629.                connection using pins 2,3 and 7. In this case there is no
  630.                hardware handshake, and you are responsible for manually
  631.                connecting and disconnecting.
  632.  
  633.  
  634.             5.2.1   To connect the S/320/330/350/360  9-Pin Port to the
  635.                     Personal Computer 9-Pin COM Port, use:
  636.  
  637.  
  638.                HP 92221P   9-Pin Male (HP)  to  9-Pin Female (PC)
  639.  
  640.                |----------------|                               |-------|
  641.                | HP 320/330/350 | --------  HP 92221P  -------- |  PC   |
  642.                |----------------| (9M)                     (9F) |-------|
  643.  
  644.  
  645.                Alternately,
  646.                The S/320 and on come shipped with a 9 Pin - to - 25 Pin
  647.                Serial adapter cable to provide an equivalent of the S/310 25
  648.                Pin Serial Port configuration on the other S/300 computers.
  649.  
  650.                To connect the S/300 25-Pin Port to a 9 Pin Personal Computer
  651.                interface, use the Vectra PC Serial Printer Cable, or an
  652.                equivalent:
  653.  
  654.  
  655.  
  656.               Kermit-RMB 1.0   Users Manual                                  Page 9
  657.  
  658.  
  659.  
  660.  
  661.  
  662.                HP 24542G 25-Pin Male (HP)  to  9-Pin  Female (PC)
  663.  
  664.  
  665.                |-----------|                                   |--------|
  666.                | HP 310    | -----------  HP 24542G  --------- |   PC   |
  667.                |-----------| (25-M)                      (9-F) |--------|
  668.  
  669.  
  670.  
  671.                |-----------|    9-->25 Adapter                 |--------|
  672.                | HP 320,30 | <-----------------< <-HP 24542G-< |   PC   |
  673.                |-----------|    HP 98561-61604                 |--------|
  674.  
  675.  
  676.  
  677.  
  678.                or obtain an equivalent according to the pin assignment
  679.                below:
  680.  
  681.                   (s/300)  25 Pin Male         9 Pin Female  (PC)
  682.  
  683.                           (1) Shell ---|
  684.                           (2) TX    ------->    (2) RD
  685.                           (3) RD    <-------    (3) TX
  686.                           (4) RTS   ------->    (1) CD
  687.                        /- (5) CTS   <-------    (4) DTR
  688.                        \- (6) DSR   <--|
  689.                           (7) GND   --------    (5) GND
  690.                           (8) CD    <-------    (7) RTS
  691.                           (9) nc                (9) RI
  692.                           (20)DTR   ------->  /-(6) DSR
  693.                                         |-->  \-(8) CTS
  694.                           (22)RI    ---|
  695.  
  696.  
  697.                   The adapter cable for the 9 Pin Built-in HP interface is
  698.                   HP 98561-61604  (9 Pin male to 25 Pin female)
  699.  
  700.                   9 Pin Male (CPU)      25 Pin Female (equivalent to 310)
  701.  
  702.                    DTR  (1) -------->   (20) DTR
  703.                    TX   (2) -------->   (2)  TX         The adaptor cable
  704.                    RD   (3) <--------   (3)  RD         just maps the 9
  705.                    RTS  (4) -------->   (4)  RTS        Pin to the 25 Pin
  706.                    CTS  (5) <--------   (5)  CTS        Interface. No
  707.                    DSR  (6) <--------   (6)  DSR        jumpering is done.
  708.                    GND  (7) <------->   (7)  GND
  709.                    CD   (8) <--------   (8)  CD
  710.                    RI   (9) <--------   (22) RI
  711.                    PGND (shell) -----   (shell) PGND
  712.                                 |----   (1) PGND
  713.  
  714.  
  715.  
  716.               Kermit-RMB 1.0   Users Manual                                 Page 10
  717.  
  718.  
  719.  
  720.  
  721.  
  722.                CONNECTING to 25 PIN PC Interface:
  723.  
  724.  
  725.                The HP 13242G Printer Cable (25 Pin - 25 Pin) is used to
  726.                connect from the S/300 25 pin interface to a 25 Pin PC.
  727.  
  728.  
  729.                HP 13242G  25-Pin Male (HP)  to  25-Pin Female (PC)
  730.  
  731.  
  732.                |----------------|                               |-------|
  733.                | HP 310 (or adp)| --------  HP 13242G  -------- |  PC   |
  734.                |----------------| (25-M)                  (25-F)|-------|
  735.  
  736.  
  737.                The HP 92221P cable is equivalent to the combination of the
  738.                adapter (HP 98561-61604) and the 13242G Cable.
  739.  
  740.  
  741.              5.2.2.  Connecting to the 98626 or 98628 Interface (50 Pin)
  742.  
  743.  
  744.                Both the 98626 and 98628 Serial Interfaces use the 50 to 25 DTE
  745.                Pin Cable (P/N 5061-4215) to provide an equivalent S/300
  746.                25 - Pin Serial Port.
  747.  
  748.                Once the 50 Pin DTE Cable is used, then the HP 24542H cable
  749.                is used to finish the connection. Below is the
  750.                pin assignment for the 50 Pin and 24542H cables.
  751.  
  752.  
  753.  
  754.              |----------------|    HP 5061-4215       HP 24542H   |-------|
  755.              | S/200  (50-Pin)| <----------------->  >----------< |  PC   |
  756.              |----------------|   50           25      25     9   |-------|
  757.  
  758.  
  759.  
  760.                98626/98628                               24542H
  761.  
  762.                 (50 PIN M)    (25 PIN M)       (25 PIN F)           (PC 9 F)
  763.  
  764.                  TX      (12) ----> (2)       (2)  TX    ----->    (2) RD
  765.                  RD      (42) <---- (3)       (3)  RD    <-----    (3) TX
  766.                  RTS     (13) ----> (4)       (4)  RTS   ----->    (1) CD    P
  767.            S   * CTS     (44) <---- (5)    /- (5)  CTS   <-----    (4) DTR   C
  768.            /   * DSR     (45) <---- (6)    \- (6)  DSR   <-|
  769.            3     DTR     (14) ----> (20)      (20) DTR   ----->  /-(6) DSR   C
  770.            0                                                |->  \-(8) CTS   O
  771.            0   * CD      (46) <---- (8)       (8)  CD    <-----    (7) RTS   M
  772.                                                             |--    (9) RI
  773.                  RI      (9)  <---- (22)      (22) RI    --|
  774.  
  775.  
  776.               Kermit-RMB 1.0   Users Manual                                 Page 11
  777.  
  778.  
  779.  
  780.                  GND     (48) ----- (7)       (7)  GND   ------    (5) GND
  781.                  Shell   (24) ----- (1)       (1)  Shell --|
  782.  
  783.                  * HW Handshake Lines Used when  'SET HANDSHAKE ON'  is used
  784.  
  785.  
  786.  
  787.            5.2.3. Modem Connections
  788.  
  789.                                        DCE
  790.              |----------------|    HP 5061-4215       |-------|
  791.              | S/200   50-Pin | <----------------->   | MODEM |
  792.              |----------------|   50           25     |-------|
  793.  
  794.  
  795.  
  796.              |----------------|    HP   ?             |-------|
  797.              | S/300   25-Pin | <----------------->   | MODEM |
  798.              |----------------|   25           25     |-------|
  799.  
  800.  
  801.  
  802.              |----------------|    HP   ?             |-------|
  803.              | S/300    9-Pin | <----------------->   | MODEM |
  804.              |----------------|   9            25     |-------|
  805.  
  806.  
  807.  
  808.  
  809.  
  810.  
  811.  
  812.  
  813.  
  814.  
  815.  
  816.  
  817.  
  818.  
  819.  
  820.  
  821.  
  822.  
  823.  
  824.  
  825.  
  826.  
  827.  
  828.  
  829.  
  830.  
  831.  
  832.  
  833.  
  834.  
  835.  
  836.               Kermit-RMB 1.0   Users Manual                                 Page 12
  837.  
  838.  
  839.  
  840.  
  841.              5.3   TESTING THE RS-232 CONNECTION:
  842.  
  843.  
  844.                The best way to test the RS-232 Connection is to run the
  845.                terminal emulator on the computer at each end of the
  846.                connection. Although this verifies communication is occuring,
  847.                it does not guarantee that all parameters are set correctly.
  848.                It is safe to assume that baud rate, transmit and receive
  849.                lines, and parity are compatible. This is usually enough to
  850.                allow Kermit to send and receive files. Other issues may
  851.                involve hardware handshake lines (DTR,DSR and RTS,CTS) and
  852.                the number of data bits per frame (7 or 8).
  853.  
  854.                If nothing occurs after both computers "connect" then Kermit
  855.                provides some very helpful commands for determining the
  856.                problem. Below also is a list of Kermit commands for
  857.                modifying the RS-232 parameters of the Serial Port.
  858.  
  859.  
  860.                KERMIT-RMB> CONNECT
  861.  
  862.                This will start the terminal emulator. If successful, you
  863.                will see a flashing cursor in the upper-left corner of the
  864.                screen, and along the bottom of the screen will appear a
  865.                "modeline" showing the Kermit escape sequence, baud rate,
  866.                data bits setting, parity, and ON or OFF for parity check.
  867.                If this does not occur, then serial communications never
  868.                started - this either indicates that a hardware handshake has
  869.                been enabled and the required modem signals are not present,
  870.                or there is a problem with the serial interface - selftest,
  871.                or operation.
  872.  
  873.                To correct the problem, return back to Kermit by pressing the
  874.                escape sequence:  CTRL-]
  875.  
  876.                You will see an 'escape options' line appear along the bottom
  877.                showing the terminal escape options. You complete the escape
  878.                option by typing one of the leters shown.
  879.  
  880.                Type C to return to kermit.
  881.  
  882.                At the Kermit prompt use the SET command to shut off
  883.                handshaking:
  884.  
  885.                < remove the rs-232 cable attached to the serial interface>
  886.  
  887.                KERMIT-RMB> SET HANDSHAKE OFF
  888.                KERMIT-RMB> SET LOCAL-ECHO ON     Turn on terminal echo
  889.                KERMIT-RMB> CONNECT               Try the connection again
  890.  
  891.  
  892.                If there is still no cursor, or echo of the keys you type,
  893.                there is possible indication of a program error - contact
  894.  
  895.  
  896.               Kermit-RMB 1.0   Users Manual                                 Page 13
  897.  
  898.  
  899.  
  900.                Kermit Distribution for assistance.
  901.  
  902.                Once the local terminal emulator is running, try connecting
  903.                the two computers together - attach the rs-232 cable to both
  904.                ports, and run the status command to verify that both Kermits
  905.                are set up correctly:
  906.  
  907.  
  908.                1. KERMIT-RMB> STATUS
  909.  
  910.                Run the status command on each computer. It will list such
  911.                parameters as Baud Rate, Data Bits, Handshake used (RTS/CTS
  912.                etc) Software flow control (XON/XOFF etc). Make sure these
  913.                parameters are identical for each side.
  914.  
  915.                2. KERMIT-RMB> SHOW  TERM
  916.                   KERMIT-RMB> SHOW  COMM
  917.                   KERMIT-RMB> SHOW  MODEM
  918.  
  919.                These commands are similar to the status command and show
  920.                parameters related to the command - Comm, Terminal, Modem.
  921.  
  922.                KERMIT COMMANDS FOR SERIAL PORT CONFIG and DEBUG
  923.  
  924.                KERMIT-RMB> HELP or ?
  925.  
  926.                KERMIT-RMB> STATUS
  927.  
  928.                KERMIT-RMB> SHOW ?   [comm, term, modem ]
  929.  
  930.                KERMIT-RMB> SET  ?   [baud, parity, handshake, flow, echo ]
  931.  
  932.                KERMIT-RMB> CLEAR       (resets the serial port)
  933.  
  934.                KERMIT-RMB> SET PORT ?  (displays the installed cards)
  935.  
  936.  
  937.  
  938.  
  939.  
  940.  
  941.  
  942.  
  943.  
  944.  
  945.  
  946.  
  947.  
  948.  
  949.  
  950.  
  951.  
  952.  
  953.  
  954.  
  955.  
  956.               Kermit-RMB 1.0   Users Manual                                 Page 14
  957.  
  958.  
  959.  
  960.              6.0   The HP-BASIC File System
  961.  
  962.                The features of the HP-BASIC file system of greatest interest
  963.                to Kermit users are the form of the file specifications, and
  964.                the formats of the files themselves.
  965.  
  966.               6.1   File Specifications
  967.  
  968.                HP-BASIC file specifications  are of the form
  969.  
  970.                  "/PATHNAME/FILENAME:,7xx,Unit"     (assuming HP-IB 7 used)
  971.  
  972.                If no path or Mass Storage Specifier (:,7xx,x) is provided
  973.                the current source directory or lif volume is used.  The
  974.                default source and destination directories are set to the
  975.                current MSI when Kermit is run.  To see the settings use the
  976.                STATUS command, and to change them use the SET SOURCE and SET
  977.                DESTINATION commands:
  978.  
  979.  
  980.                KERMIT-RMB> STATUS
  981.  
  982.                KERMIT-RMB> SET SOURCE  :,700,0
  983.  
  984.                KERMIT-RMB> SET DESTINATION  /KERMIT:,702,0
  985.  
  986.  
  987.                When Receiving files the Default DESTINATION MSI is used if
  988.                a msi is not specified as part of the filename specification.
  989.                For sending files the Default SOURCE MSI is used in a similar
  990.                way.
  991.  
  992.                The device, path, name, and type fields may contain uppercase
  993.                letters, digits, and the special character underscore.
  994.  
  995.  
  996.                Illegal characters include all other special characters and
  997.                punctuation including period, colon, and semi-colon.
  998.  
  999.                Files received with illegal filenames are converted to legal
  1000.                LIF filenames by converting illegal characters to underscore,
  1001.                and truncating the filename at the maximum allowable length.
  1002.                This is 10 Characters for LIF Files and 14 for HFS.
  1003.  
  1004.                In Kermit 1.0 all filenames are converted to uppercase when
  1005.                kermit receives a send or receive command.
  1006.  
  1007.  
  1008.              6.2  File Formats
  1009.  
  1010.                 HP-BASIC systems store files in 3 "user" file types and with
  1011.                 two data formats - ON and OFF.  This allows much flexibility
  1012.                 in the use of the file system, but also introduces some
  1013.                 complexity as far as handling data files.
  1014.  
  1015.  
  1016.               Kermit-RMB 1.0   Users Manual                                 Page 15
  1017.  
  1018.  
  1019.  
  1020.  
  1021.                 The file types addresed by Kermit-RMB are HP-UX, BDAT, and
  1022.                 ASCII.  The remaining three - SYSTM, BIN, and PROG are not
  1023.                 user accessable from Kermit and need to be converted to the
  1024.                 HP-UX file type in order to be transferred.  This can be done
  1025.                 using the unique Kermit-RMB command Convert:
  1026.  
  1027.                 Kermit-RMB> CONVERT prog_file TO HP-UX
  1028.  
  1029.                 The CONVERT command is discussed in section 8.2 - Unique
  1030.                 commands for Kermit-RMB.
  1031.  
  1032.                 A brief description of the user file types may help to sort
  1033.                 out the complexity.
  1034.  
  1035.  
  1036.                FILE TYPE          Written With             Written With
  1037.                                   FORMAT ON                FORMAT OFF
  1038.                _____________________________________________________________
  1039.  
  1040.                ASCII        Same as Format OFF.    LIF ascii undelimited records.
  1041.                                                    4-digit length fields start
  1042.                                                    each record.
  1043.  
  1044.                 Ascii will always be stored as length-header undelimited
  1045.                 string data regardless of number or string representations.
  1046.                 The FORMAT ON parameter is ignored when ASCII files are
  1047.                 accessed.
  1048.  
  1049.  
  1050.                HP-UX       Identical to DOS Text        Lines and Numbers
  1051.                            with CR-LF delimiters        use the null char
  1052.                            for each line.               as a delimiter.
  1053.  
  1054.  
  1055.  
  1056.                Hp-ux files are handled differently according to the file
  1057.                type set in Kermit.  The SET FILE TYPE [binary | ascii]
  1058.                command is used to set this indication.
  1059.  
  1060.  
  1061.                BDAT        CR-LF delimited lines -      Memory Image of data
  1062.                            same as hp-ux but includes   with no delimiters.
  1063.                            a 1-sector file header.      The internal data
  1064.                                                         is undelimited and only
  1065.                                                         decoded if the internal
  1066.                                                         file format is known.
  1067.  
  1068.                 Version 1.0 of Kermit cannot handle mixed intger,real,string
  1069.                 BDAT files written with Format OFF.  To transfer a BDAT-Format
  1070.                 OFF file you will need to manually create a file (Format OFF)
  1071.                 of all integers, or all reals, or convert the file to a BDAT
  1072.                 Format ON file.
  1073.  
  1074.  
  1075.  
  1076.               Kermit-RMB 1.0   Users Manual                                 Page 16
  1077.  
  1078.  
  1079.  
  1080.                 The File Mode setting in Kermit determines whether the BDAT
  1081.                 data (format off) is to be converted to ascii numeric
  1082.                 representation before sending.
  1083.  
  1084.  
  1085.  
  1086.  
  1087.  
  1088.  
  1089.  
  1090.  
  1091.  
  1092.  
  1093.  
  1094.  
  1095.  
  1096.  
  1097.  
  1098.  
  1099.  
  1100.  
  1101.  
  1102.  
  1103.  
  1104.  
  1105.  
  1106.  
  1107.  
  1108.  
  1109.  
  1110.  
  1111.  
  1112.  
  1113.  
  1114.  
  1115.  
  1116.  
  1117.  
  1118.  
  1119.  
  1120.  
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126.  
  1127.  
  1128.  
  1129.  
  1130.  
  1131.  
  1132.  
  1133.  
  1134.  
  1135.  
  1136.               Kermit-RMB 1.0   Users Manual                                 Page 17
  1137.  
  1138.  
  1139.  
  1140.                6.3 Kermit-RMB handling of files
  1141.  
  1142.  
  1143.                 Kermit-RMB will open the specified file being sent and
  1144.                 determine its file type when the file is opened.  Depending on
  1145.                 the file Mode (ASCII or BIN), the file data will be sent
  1146.                 accordingly:
  1147.  
  1148.                 Note: Throughout the Kermit File Handling sections reference
  1149.                 is made to File Type and File Mode. These two terms should be
  1150.                 understood clearly before reading further.
  1151.  
  1152.                 File Type  - Refers to the HP BASIC File Types of ASCII, BDAT
  1153.                              and HP-UX. These are the three user file types
  1154.                              and are accessable from BASIC programs. The hp-ux
  1155.                              file type was just intoduced in BASIC 5.0 for
  1156.                              compatibility with the hp-ux and DOS operating
  1157.                              systems. Before the hp-ux type was introduced the
  1158.                              ASCII type was intended for ascii file
  1159.                              compatibility between differing operating
  1160.                              systems. BDAT (Binary Data) files allow storage
  1161.                              of numeric data in a form quickly accessable by
  1162.                              BASIC.
  1163.  
  1164.  
  1165.                 File Mode -  Refers to the method used by Kermit when sending
  1166.                              files. The two Modes are ASCII and BINARY. In
  1167.                              ASCII Mode, all transmission is of an ascii text
  1168.                              representation. In BINARY Mode the transmission
  1169.                              is identical to file contents - which may have
  1170.                              been either text or unreadable binary. You will
  1171.                              see BINARY referred to also as BIN.
  1172.  
  1173.  
  1174.                 Changing File Mode
  1175.  
  1176.                 To make maters confusing, Kermit normally refers to handling
  1177.                 modes as "file type". The normal kermit command to change mode
  1178.                 is SET FILE TYPE. In Kermit-RMB the command has been changed
  1179.                 (aliased) to SET FILE MODE <mode>. In this and other Kermit
  1180.                 documentation you may see the mode and SET MODE functions
  1181.                 referred to as file type and SET FILE TYPE.
  1182.  
  1183.                 Kermit-RMB starts up in ascii mode and can be set this way
  1184.                 using the set command:
  1185.  
  1186.                 KERMIT-RMB> SET FILE MODE ASCII
  1187.  
  1188.                 To set file Mode BINARY the same Kermit command is used:
  1189.  
  1190.                 KERMIT-RMB> SET FILE MODE BIN
  1191.  
  1192.  
  1193.                END-OF-FILE
  1194.  
  1195.  
  1196.               Kermit-RMB 1.0   Users Manual                                 Page 18
  1197.  
  1198.  
  1199.  
  1200.  
  1201.                Some DOS files use the CP/M convention of indicating the end of
  1202.                a file my marking the file with a Control-Z CHR$(26) character.
  1203.                If the EOF-MODE is set to CTRL-Z then CHR$(26) will be appended
  1204.                to the file as it is sent.  You may want to set this flag when
  1205.                sending files to a DOS PC by using the SET EOF ON command.
  1206.  
  1207.                The EOF-MODE is ignored when receiving files - the CTRL-Z
  1208.                character if sent will remain in the file and show up as a SB
  1209.                special character in HP-BASIC.  It can be editied out if not
  1210.                needed.
  1211.  
  1212.                To set ctrl-Z on or off use the following KERMIT command:
  1213.  
  1214.                 Kermit-RMB> SET FILE EOF CTRL-Z
  1215.  
  1216.                 Kermit-RMB> SET FILE EOF OFF
  1217.  
  1218.  
  1219.  
  1220.  
  1221.  
  1222.  
  1223.  
  1224.  
  1225.  
  1226.  
  1227.  
  1228.  
  1229.  
  1230.  
  1231.  
  1232.  
  1233.  
  1234.  
  1235.  
  1236.  
  1237.  
  1238.  
  1239.  
  1240.  
  1241.  
  1242.  
  1243.  
  1244.  
  1245.  
  1246.  
  1247.  
  1248.  
  1249.  
  1250.  
  1251.  
  1252.  
  1253.  
  1254.  
  1255.  
  1256.               Kermit-RMB 1.0   Users Manual                                 Page 19
  1257.  
  1258.  
  1259.  
  1260.  
  1261.                 6.3.1.  Sending Files
  1262.  
  1263.  
  1264.              +  ASCII FILE TYPE
  1265.  
  1266.  
  1267.                 ASCII MODE
  1268.  
  1269.                 Contents are treated as text and read from the file line by
  1270.                 line.  A CR-LF sequence is appended to the end of each line
  1271.                 before the file is sent.  The receiving Kermit will see
  1272.                 ascii text delimited with standard CR-LF (^M^J) delimiters.
  1273.  
  1274.                 BINARY MODE
  1275.  
  1276.                 ASCII Files are sent the same way regardless of File Mode.
  1277.  
  1278.  
  1279.  
  1280.              +  HP-UX FILE  TYPE
  1281.  
  1282.                 ASCII MODE
  1283.  
  1284.                 In ASCII Mode HP-UX files are read with Format-ON.
  1285.                 Therefore HP-UX files are expected to have CR-LF line
  1286.                 delimiters written with Format-ON.  If the HP-UX file was
  1287.                 written with Format-OFF, File Mode BIN should be set prior to
  1288.                 sending the file.
  1289.  
  1290.                 BINARY MODE
  1291.  
  1292.                 While sending HP-UX files with BINARY mode set the file is
  1293.                 read as an image and no delimiters are looked for.  The file
  1294.                 is transferred as a direct image of the file with no added
  1295.                 CR-LF item delimiters, or terminators.
  1296.  
  1297.  
  1298.  
  1299.  
  1300.              +  BDAT FILE  TYPE
  1301.  
  1302.                 For BDAT file types the Kermit File Mode (ASCII or BIN) refers
  1303.                 to the way the file data is transmitted, not the way the file
  1304.                 is read.  This gives you the option to send BDAT binary image
  1305.                 data as either ASCII or BINARY.  The Kermit SEND command has a
  1306.                 special optional form for BDAT files to allow this.
  1307.  
  1308.  
  1309.                 SEND <BdatFile> [<File Contents Specifier>]
  1310.  
  1311.  
  1312.                 ASCII MODE
  1313.  
  1314.  
  1315.  
  1316.               Kermit-RMB 1.0   Users Manual                                 Page 20
  1317.  
  1318.  
  1319.  
  1320.                 BDAT files are read according to instructions in the Kermit
  1321.                 SEND Command line, and the data is converted to ascii strings
  1322.                 and sent with CR-LF delimiters.
  1323.  
  1324.                 Kermit assumes that the file was written with Format ON unless
  1325.                 a special identifier is included with the SEND Command:
  1326.  
  1327.                 SEND Filename           Will read the file with FORMAT-ON
  1328.  
  1329.                 SEND Filename INT       Will access the file with Format OFF
  1330.                                         and read the file as 16 bit integers.
  1331.  
  1332.                 SEND Filename REAL      Will access the file with Format OFF
  1333.                                         and read the contents as 64 Bit Reals.
  1334.  
  1335.  
  1336.                 It is up to the Kermit-RMB user to know if the ascii file was
  1337.                 created and written using a FORMAT-ON or OFF attribute.
  1338.                 Sending BDAT files written in binary mode (Format off) without
  1339.                 instructing Kermit will generate the error message, "File
  1340.                 Contents Not Ascii" and the file transfer will abort.
  1341.  
  1342.  
  1343.                 In all cases the data read from the file is sent in ascii text
  1344.                 form.  BDAT Format-OFF data is converted (on the fly) to ascii
  1345.                 numeral and text data.
  1346.  
  1347.                 The 1-Sector file header on BDAT files will not be sent with
  1348.                 the file.
  1349.  
  1350.                 BINARY MODE
  1351.  
  1352.                 When sending a BDAT file with BINARY mode set, the contents of
  1353.                 the file are sent without conversion to ascii numeric
  1354.                 representation.  If the file was written with Format OFF -
  1355.                 INTEGER (16 bit) or REAL (64 bit) data, then you must indicate
  1356.                 this in the Kermit SEND Command Line:
  1357.  
  1358.                 SEND Filename INT
  1359.                 SEND Filename REAL
  1360.  
  1361.  
  1362.  
  1363.  
  1364.  
  1365.  
  1366.  
  1367.  
  1368.  
  1369.  
  1370.  
  1371.  
  1372.  
  1373.  
  1374.  
  1375.  
  1376.               Kermit-RMB 1.0   Users Manual                                 Page 21
  1377.  
  1378.  
  1379.  
  1380.  
  1381.  
  1382.                 6.3.2   Receiving Files
  1383.  
  1384.                 SYNTAX:
  1385.  
  1386.                 KERMIT-RMB> RECEIVE [Filetype] [Filename] [File Len] [Recl]
  1387.  
  1388.  
  1389.              A. KERMIT-RMB> RECEIVE
  1390.  
  1391.                 With no optional parameters specified, Kermit makes the
  1392.                 following defaults:
  1393.  
  1394.                 File type:       hp-ux
  1395.                 File Name:       given by sending Kermit
  1396.                 File Length:     given by sending Kermit, or Default 100Kb
  1397.                 Recl:            256
  1398.  
  1399.  
  1400.                 Kermit-RMB will create an HP-UX file type by default.  The
  1401.                 filename from the sending Kermit wil be used.  If the name is
  1402.                 an illegal HP-BASIC name then it will be converted to a legal
  1403.                 name.  name.
  1404.  
  1405.                 In this example Kermit will use the filename provided by the
  1406.                 remote Kermit, and use the default DESTINATION MSI when
  1407.                 creating and storing the file.
  1408.  
  1409.  
  1410.                 B.  Filetype and Filename
  1411.  
  1412.                Kermit-RMB> RECEIVE                   Creates an hp-ux file
  1413.                Kermit-RMB> RECEIVE  ASCII            Creates an ASCII File
  1414.                Kermit-RMB> RECEIVE  ASCII  NEWNAME
  1415.                Kermit-RMB> RECEIVE  BDAT             Creates a BDAT File
  1416.                Kermit-RMB> RECEIVE  BDAT   NEWNAME
  1417.  
  1418.                Kermit-RMB will create a file with the name specified and if a
  1419.                optional file type is provided that file type will be created
  1420.                instead of a hp-ux type.
  1421.  
  1422.  
  1423.                FILE LENGTH:
  1424.  
  1425.                If an HFS file is specified as the destination MSI then no
  1426.                filelength needs to be specified. HFS files are extensible, and
  1427.                therefore Kermit needs no knowledge about the length of the
  1428.                file. If the remote Kermit sends Attribute packets which inform
  1429.                the receiving kermit of the current files length, then that
  1430.                figure will be used in creating the destination file.
  1431.  
  1432.                A problem arises when receiving to a LIF type disc, and neither
  1433.                the local kermit user specifies filelength, nor the remote
  1434.  
  1435.  
  1436.               Kermit-RMB 1.0   Users Manual                                 Page 22
  1437.  
  1438.  
  1439.  
  1440.                Kermit sends an attribute packet for the file length. In this
  1441.                case the local kermit will create a destination file of default
  1442.                length 100 Kb (if disc or ram volume size permits) and try to
  1443.                accomodate the incomming file. If the incomming file is larger
  1444.                than 100 Kb then a spill file will be created of 100 Kb and the
  1445.                file will continue to be received. This process will continue
  1446.                until the file is received, or disc space is consumed. If a
  1447.                spill file cannot be created, then an Error message will be
  1448.                sent to the sending Kermit which will abort the file transfer.
  1449.  
  1450.  
  1451.                 INCOMPLETE and DUPLICATE FILES:
  1452.  
  1453.  
  1454.                 Kermit provides two commands for handling incomplete and
  1455.                 duplicate files.
  1456.  
  1457.                 KERMIT-RMB> SET INC [KEEP | DISCARD]
  1458.  
  1459.                 Depending on the value of this parameter an aborted receive
  1460.                 (incomplete) file will either be erased (DISCARD) or saved in
  1461.                 its incomplete form on the disc (KEEP).
  1462.  
  1463.  
  1464.                 DUPLICATE FILE NAMES:
  1465.  
  1466.  
  1467.                 KERMIT-RMB> SET FILE WARN [ON | OFF]
  1468.  
  1469.                 This command instructs Kermit to either OVERWRITE a duplicate
  1470.                 file, or RENAME the incomming file to a unique filename.  With
  1471.                 Filewarn ON the file will be renamed.  If Filewarn is OFF,
  1472.                 then the existing file will be purged before the destination
  1473.                 file is created.  Loss of data could occur if file warn is
  1474.                 off, and the receive file process is aborted.
  1475.  
  1476.                 Kermit-RMB starts up with FILE WARN ON (rename files) and
  1477.                 INComplete ON (Save aborted files).
  1478.  
  1479.  
  1480.                 Kermit will receive all files and store them as an identical
  1481.                 image of the file as it was received.  The file is not changed
  1482.                 in any way, and End-of-line or end-of-file sequences are not
  1483.                 appended or stripped off.  Therefore, there is no difference
  1484.                 in receiving files wheter file type is set to ascii or binary.
  1485.                 It will be up to the HP-BASIC programmer to understand the
  1486.                 internal contents of a file in order to understand how it must
  1487.                 be accessed, and with Format ON or OFF.
  1488.  
  1489.  
  1490.              C. The last permutation of the receive command is
  1491.  
  1492.                 Kermit-RMB> RECEIVE BDAT  ,  50
  1493.  
  1494.  
  1495.  
  1496.               Kermit-RMB 1.0   Users Manual                                 Page 23
  1497.  
  1498.  
  1499.  
  1500.  
  1501.                 This instructs Kermit to use the filename being sent by the
  1502.                 sending kermit but override the HP-UX file type and create a
  1503.                 BDAT file type instead.  The 50 instructs Kermit to create a
  1504.                 file with 50 defined records, and since no record length is
  1505.                 specified then default of 256 bytes will be used.  The , is a
  1506.                 place holder for filename.  You can still specify the
  1507.                 destination MSI by specifying it without a filename
  1508.  
  1509.  
  1510.                 Kermit-RMB> RECEIVE BDAT :,702,1 , 8
  1511.  
  1512.  
  1513.                 In this example a BDAT file with record length of 8 bytes is
  1514.                 created to store the received file.  No file length was
  1515.                 specified in this example - Kermit depends on the sending
  1516.                 Kermit to notify the receiver of the proper file size to
  1517.                 create.  If neither occurs then 391 sectors (100 Kb) is
  1518.                 created by default.
  1519.  
  1520.  
  1521.  
  1522.  
  1523.  
  1524.  
  1525.  
  1526.  
  1527.  
  1528.  
  1529.  
  1530.  
  1531.  
  1532.  
  1533.  
  1534.  
  1535.  
  1536.  
  1537.  
  1538.  
  1539.  
  1540.  
  1541.  
  1542.  
  1543.  
  1544.  
  1545.  
  1546.  
  1547.  
  1548.  
  1549.  
  1550.  
  1551.  
  1552.  
  1553.  
  1554.  
  1555.  
  1556.               Kermit-RMB 1.0   Users Manual                                 Page 24
  1557.  
  1558.  
  1559.  
  1560.  
  1561.  
  1562.  
  1563.                7.0   Program Setup and Invocation
  1564.  
  1565.                The HP-BASIC Kermit program can be run from any disk without
  1566.                any special installation procedure. All the files start with
  1567.                HPK____ to uniquely identify them on Columbia University's
  1568.                distribution system. Once received you can rename them.
  1569.  
  1570.  
  1571.                7.1  The Kermit Distribution Disc
  1572.  
  1573.  
  1574.                The KERMIT Distribution disc contains the following files:
  1575.  
  1576.                HPKERMIT        Kermit Program File
  1577.                HPK_HELP        Kermit HELP File
  1578.                HPK_INIT        Kermit Initialization File
  1579.                HPK_DOC         Kermit User Manual
  1580.                HPKGET_ME       'GET-ME' ASCII program file with document print
  1581.                                instructions
  1582.                HPK_MISC        Source Code for compiled sections, and Hex
  1583.                                editor (DUMP) utility
  1584.  
  1585.  
  1586.  
  1587.                7.2   Printing the Kermit-RMB User Manual
  1588.  
  1589.  
  1590.                To print this document (which you've probably figured out by
  1591.                now) use the Kermit PRINT Command:
  1592.  
  1593.                KERMIT-RMB> PRINT  HPK_DOC:,7xx  701
  1594.  
  1595.                Adjust the printer address and file MSI according to your
  1596.                system.
  1597.  
  1598.                To read the file on the CRT (not recommended) use the type
  1599.                command:
  1600.  
  1601.                KERMIT-RMB> TYPE  RMBK_DOC:,7xx
  1602.  
  1603.  
  1604.  
  1605.                7.3  Loading and Running Kermit-RMB
  1606.  
  1607.  
  1608.                To load and run Kermit use the BASIC LOAD Command:
  1609.  
  1610.  
  1611.                LOAD "HPKERMIT:,7xx",1
  1612.  
  1613.                You will see the Kermit prompt appear and the program banner
  1614.  
  1615.  
  1616.               Kermit-RMB 1.0   Users Manual                                 Page 25
  1617.  
  1618.  
  1619.  
  1620.  
  1621.                HP 9000  Kermit-RMB
  1622.                Version 1.0   1 Mar 1989
  1623.  
  1624.                ?  for help
  1625.  
  1626.                Kermit-RMB>
  1627.  
  1628.                Kermit-RMB> is the Kermit prompt at which you can type any
  1629.                Kermit command.
  1630.  
  1631.                Kermit-RMB> VERSION              Kermit will echo the version
  1632.  
  1633.  
  1634.                You may type Kermit commands repeatedly until
  1635.                you are ready to quit the program, using the QUIT command.
  1636.  
  1637.  
  1638.  
  1639.                7.4 Minimizing the Kermit Program Size
  1640.  
  1641.  
  1642.                Kermit programs usually contain more than just send file and
  1643.                receive file code. To minimize the amout of RAM required to run
  1644.                Kermit, some functions (subprograms) have been removed from the
  1645.                HPKERMIT program and placed in the HPK_MISC file, and the
  1646.                HPK_HELP file.  If you are not concerned about program size,
  1647.                then these functions can be loaded with the LOADSUB command,
  1648.                and connected permanently by re-storing the program again with
  1649.                the RE-STORE "HPKERMIT" command.  The following Subprograms
  1650.                exist in these files and can be loaded:
  1651.  
  1652.  
  1653.                FILE        SUB NAME           COMMAND   Description
  1654.  
  1655.                HPK_HELP    SUB Kermit_help    HELP      Kermit Help Command
  1656.                HPK_MISC    SUB Hex_edit       DUMP      Debug tool to examine
  1657.                                                         files
  1658.  
  1659.                The HPK_MISC file also contains the BASIC source code for the
  1660.                Kermit Encode_packet and Decode_packet CSUBS in HPKERMIT. These
  1661.                are provided in case you want to examine, edit, or recompile in
  1662.                the future.
  1663.  
  1664.                Minimizing Kermit
  1665.  
  1666.                There are also subprograms in Kermit which you may not intend
  1667.                to make use of that can be deleted from the main program.
  1668.                Following is a list of subprograms and functionality you may
  1669.                want to delete from HP Kermit. I suggest you backup the
  1670.                HPKERMIT file before modifying it. The number of program lines
  1671.                 in each subprogram is noted in ().
  1672.  
  1673.  
  1674.  
  1675.  
  1676.               Kermit-RMB 1.0   Users Manual                                 Page 26
  1677.  
  1678.  
  1679.  
  1680.                Subprogram Name       Functionality
  1681.  
  1682.                Terminal  (680)       VT-100 terminal for logging on to remote
  1683.                                      computers and starting Kermit there. If
  1684.                                      you are using kermit between local
  1685.                                      computers only you dont need this.
  1686.  
  1687.                Transmit  (140)       Raw ASCII file transmission - not
  1688.                                      required if you are only using SEND and
  1689.                                      RECEIVE commands
  1690.  
  1691.                Convert   (140)       Used with the CONVERT command to convert
  1692.                                      file types from ASCII, BDAT, HP-UX, and
  1693.                                      PROG.  This command is intended to be
  1694.                                      used to convert PROG files to HP-UX, so
  1695.                                      they can be sent by Kermit. See section
  1696.                                      8.2 for a description of the CONVERT
  1697.                                      command.
  1698.  
  1699.                Phyread               Used by the Convert and Dump (Hexedit)
  1700.                Phywrite              commands to access the disc volume
  1701.                Get_vol_info          directory, and disc file sectors.
  1702.                Get_file_info
  1703.  
  1704.  
  1705.  
  1706.  
  1707.                7.5   Kermit Initialization (HPK_INIT File)
  1708.  
  1709.  
  1710.                 Upon initial startup, the program looks for a file on the
  1711.                 system's current MSI called HPK_INIT and if found executes the
  1712.                 kermit commands in the file.  The HPK_INIT file is a special
  1713.                 case of a "TAKE" file which is an ascii file containing a
  1714.                 Kermit Commands. See section 8.1 "Program Management Commands"
  1715.                 for a description of the TAKE command and writing TAKE files.
  1716.  
  1717.                 This initialization file may contain command macro
  1718.                 definitions, communications settings for one or more ports, or
  1719.                 any other Kermit-RMB commands, and you may create it using any
  1720.                 text editor capable of saving LIF ASCII files.
  1721.  
  1722.  
  1723.  
  1724.  
  1725.             7.6    RAM Disk Operation:
  1726.  
  1727.                 If sufficient memory exists Kermit will create a RAM Disc and
  1728.                 use it for transfering and modifying files.
  1729.  
  1730.                 The file will first be copied to the RAM disc, and then sent
  1731.                 from there.
  1732.  
  1733.  
  1734.  
  1735.  
  1736.               Kermit-RMB 1.0   Users Manual                                 Page 27
  1737.  
  1738.  
  1739.  
  1740.  
  1741.  
  1742.  
  1743.  
  1744.  
  1745.  
  1746.  
  1747.  
  1748.  
  1749.  
  1750.  
  1751.  
  1752.  
  1753.  
  1754.  
  1755.  
  1756.  
  1757.  
  1758.  
  1759.  
  1760.  
  1761.  
  1762.  
  1763.  
  1764.  
  1765.  
  1766.  
  1767.  
  1768.  
  1769.  
  1770.  
  1771.  
  1772.  
  1773.  
  1774.  
  1775.  
  1776.  
  1777.  
  1778.  
  1779.  
  1780.  
  1781.  
  1782.  
  1783.  
  1784.  
  1785.  
  1786.  
  1787.  
  1788.  
  1789.  
  1790.  
  1791.  
  1792.  
  1793.  
  1794.  
  1795.  
  1796.               Kermit-RMB 1.0   Users Manual                                 Page 28
  1797.  
  1798.  
  1799.  
  1800.               8.0    Kermit-RMB Command Descriptions
  1801.  
  1802.  
  1803.                 During interactive operation, all the edit function keys on the
  1804.                 keyboard are available to edit the command you are entering. The
  1805.                 recall key will recall previous commands executed. The command
  1806.                 line when recalled must stil contain the kermit prompt Kermit-RMB>
  1807.                 in order to be parsed correctly.
  1808.  
  1809.  
  1810.  
  1811.                 The notation used in command descriptions is as follows:
  1812.  
  1813.                 [square brackets]      An optional field.  This field may be
  1814.                                        omitted.
  1815.  
  1816.                 {curly braces}         A list of alternatives, separated by commas.
  1817.                                        Choose one of the items from the list.
  1818.  
  1819.  
  1820.                 The following sections describe all the HP-BASIC Kermit commands.
  1821.                 Since some command descriptions may contain references to other
  1822.                 commands that haven't been explained yet, you might find that this
  1823.                 manual makes more sense on a second reading. Notice that some
  1824.                commands can be abreiviated using the first letter of the
  1825.                command, for example:
  1826.  
  1827.                > SET BAUD 1200          > S B 1200
  1828.                > SET FILE TYPE BIN      > S F T BIN
  1829.                > QUIT                   > Q
  1830.  
  1831.                 HP-BASIC Kermit supplies a good amount of the full set of
  1832.                 Kermit commands.  Commands with asterics are unique to
  1833.                 Kermit-RMB and not found in other Kermits.  Here's a summary:
  1834.  
  1835.  
  1836.  
  1837.               8.1    Kermit-RMB command syntax
  1838.  
  1839.  
  1840.                CLEAR                    Reset Serial Port Transfers
  1841.             *  CLS                      Clear Screen
  1842.                CLOSE,CLO                Close Log File
  1843.                   PACKET,PAC,P
  1844.                   SESSION,S,S
  1845.                CONNECT,C,CON            Start Terminal Emulator
  1846.             *  CONVERT
  1847.                COPY
  1848.                CD, MSI
  1849.                DEFINE,DEF
  1850.                DELETE,DEL
  1851.                DO
  1852.                CAT,DIR
  1853.             *  DUMP
  1854.  
  1855.  
  1856.               Kermit-RMB 1.0   Users Manual                                 Page 29
  1857.  
  1858.  
  1859.  
  1860.                ECHO
  1861.                EXIT
  1862.                HELP,?
  1863.                LOCAL
  1864.                LOG
  1865.                    SESSION,SES
  1866.                    PACKET,PAC
  1867.                OUTPUT
  1868.                PRINT,TYPE
  1869.                QUIT,Q
  1870.                RECEIVE
  1871.                   ASCII,BDAT,HPUX
  1872.                RENAME
  1873.                SEND
  1874.                SET,S
  1875.  
  1876.                        BAUD,SPEED,B
  1877.                        BLOCK-CHECK
  1878.                        DEBUG
  1879.                        DELAY
  1880.                        DESTINATION,DEFAULT,DES,DEF
  1881.                        DUPLEX
  1882.                           ON,FULL
  1883.                           OFF,HALF
  1884.                        ECHO,LOCAL-ECHO
  1885.                           OFF,REMOTE
  1886.                           ON,LOCAL
  1887.                        EOF
  1888.                           CTRL-Z,Z,ON
  1889.                           NONE,OFF,NO CTRL-Z
  1890.                        ESCAPE,ESC
  1891.                        FILE,F
  1892.                           NAME
  1893.                           TYPE,T
  1894.                              BINARY,IMAGE,B
  1895.                           WARNING,WARN
  1896.                           SUPERCEDE
  1897.                        FLOW-CONTROL,FLO,FC
  1898.                           XON,XOFF,X
  1899.                           ENQ,ENQ/ACK
  1900.                        HANDSHAKE,HS
  1901.                        INCOMPLETE
  1902.                           OFF,DISCARD
  1903.                           ON,KEEP,K
  1904.                        LINE,PORT
  1905.                        MARK
  1906.                        PARITY
  1907.                        RECEIVE,REMOTE
  1908.                           END-OF-PACKET,EOP,EOL
  1909.                           PACKET-LENGTH,PL
  1910.                           PAD-CHARACTER,PC
  1911.                           PADDING
  1912.                           PAUSE
  1913.                           START-OF-PACKET,SOP,MARK
  1914.  
  1915.  
  1916.               Kermit-RMB 1.0   Users Manual                                 Page 30
  1917.  
  1918.  
  1919.  
  1920.                           TIMEOUT
  1921.  
  1922.                        RETRY,RET
  1923.                        SEND
  1924.  
  1925.                            END-OF-PACKET,EOP,EOL
  1926.                            PACKET-LENGTH,PL,LEN
  1927.                            PAD-CHARACTER,PC
  1928.                            PADDING,PAD
  1929.                            PAUSE
  1930.                            PREFIX
  1931.                               CONTROL
  1932.                               8BIT
  1933.                               REPEAT,REP
  1934.                               TIMEOUT,TIM
  1935.                               START-OF-PACKET,SOP
  1936.                        TERMINAL,T
  1937.                                VT100
  1938.                        TIMER
  1939.  
  1940.                MACRO
  1941.                STATUS
  1942.                TAKE
  1943.                TRANSMIT
  1944.                TYPE
  1945.                VERSION
  1946.  
  1947.                 Commands for TAKE files
  1948.  
  1949.                ECHO
  1950.                COMMENT                  Comment a macro file
  1951.  
  1952.  
  1953.  
  1954.  
  1955.               8.2    Unique commands for Kermit-RMB:
  1956.  
  1957.  
  1958.                 DUMP  {filespec}
  1959.  
  1960.                 The file specified is copied to the ramdisc and dumped in
  1961.                 HEX/ASCII format one sector at a time. I used this to verify
  1962.                 that binary files were being transferred properly. The
  1963.                 dump utility also allows you to edit the contents of a disc
  1964.                 sector and write the modified sector to disc.
  1965.  
  1966.                 After the first sector is displayed the following keys ae
  1967.                 active:
  1968.  
  1969.  
  1970.                 TAB             switches edit cursor from Hex to Ascii Edit
  1971.  
  1972.                 The following functions require the CTRL key to be held down
  1973.                 simultaneously:
  1974.  
  1975.  
  1976.               Kermit-RMB 1.0   Users Manual                                 Page 31
  1977.  
  1978.  
  1979.  
  1980.  
  1981.                 +               dumps next sector
  1982.                 -               dumps previous sector
  1983.                 /               dumps the directory sector holding that
  1984.                                 file's directory entry.
  1985.                 *               returns you to the first data sector of file
  1986.                 # or N          allows you to specify a sector to be dumped
  1987.                 Q               quit
  1988.                 K               convert hex number to decimal,ascii, and
  1989.                                 Kermit representation.
  1990.                 P               Dump Alpha Screen to Printer
  1991.                 H               Display this Help
  1992.                 space bar       write disc sector to disc (you will be asked
  1993.                                 to confirm).
  1994.  
  1995.  
  1996.  
  1997.               CONVERT  filespec  [TO]  filetype
  1998.  
  1999.  
  2000.                 KERMIT-RMB> CONVERT  Progfile:,702  hp-ux
  2001.  
  2002.                 The specified file is copied to the ramdisc and its
  2003.                 directory entry is changed to the specified filetype. The
  2004.                 original file is not touched unless it was already on the
  2005.                 ramdisc.
  2006.  
  2007.  
  2008.                 Caution:
  2009.                 This command does not convert the contents of the file!  Only
  2010.                 the directory entry is changed to the filetype specified.
  2011.  
  2012.                 For example, converting an ASCII filetype to HP-UX will not
  2013.                 change the ASCII text length headers to CR-LF text delimiters.
  2014.  
  2015.  
  2016.                TRANSFERRING PROG FILES
  2017.  
  2018.                 Note: The documentation for the SEND command does not indicate
  2019.                 the ability to send PROG type files. This capability was not
  2020.                 fully debugged before releasing version 1.0. However, if the
  2021.                 file specified with the SEND command is a PROG file, it will
  2022.                 be copied to the ramdisc (the original is not touched),
  2023.                 converted to an hp-ux file and sent to the receiving Kermit.
  2024.  
  2025.                 The reason this capability is not documented with the SEND
  2026.                 command is that getting the file back as a PROG file is not
  2027.                 100% guaranteed. (Kind of like taking off in a jet without
  2028.                 landing gear). On some occaisions the file when received back
  2029.                 would not load correctly or run.
  2030.  
  2031.                 As soon as this capability is debugged it will be included
  2032.                 with the next release of Kermit. I didn't want to hold up this
  2033.                 release any further. If you need this capability, let Columbia
  2034.  
  2035.  
  2036.               Kermit-RMB 1.0   Users Manual                                 Page 32
  2037.  
  2038.  
  2039.  
  2040.                 University, or myself know, and we'll be in touch as soon as
  2041.                 PROG file transfer is debugged.
  2042.  
  2043.                 Using a PC Hex Editor and the BASIC Hex editor (which was
  2044.                 written solely for this purpose) I've determined that the
  2045.                 original PROG file contents can be sent and received back
  2046.                 fully in tact. The problem arises in restoring the original
  2047.                 PROG file directory entry. It appears that the PROG
  2048.                 directory entry uses some other pointer than the logical
  2049.                 end of file in marking the file. This pointer is lost
  2050.                 after the file is sent, so restoring it when the file is
  2051.                 received is not always possible. I've used the DUMP command
  2052.                 to edit the PROG directory entry so that the file will load
  2053.                 and run correctly.
  2054.  
  2055.                 I believe that the solution may be to send the Directory entry
  2056.                 along with the file when it is sent, and parse it off when the
  2057.                 file is received again. Keep in touch.
  2058.  
  2059.  
  2060.  
  2061.              8.3     GENERAL KERMIT COMMAND GROUPS
  2062.  
  2063.  
  2064.                 The Kermit Command descriptions that follow have been broken
  2065.                 into functional groupings under the folowing categories:
  2066.  
  2067.                         8.4     Program Management Commands
  2068.                         8.5     Local File Management Commands
  2069.                         8.6     Terminal Connection and Emulator Commands
  2070.                         8.7     File Transfer Commands
  2071.                         8.8     Ascii File Transmission Commands
  2072.                         8.9     Kermit SET Command Options
  2073.                         8.10    Status and Show Commands
  2074.                         8.11    Log and Close Commands
  2075.                         8.12    Macro Definitions
  2076.                         8.13    Kermit Server Commands (Not Implemented)
  2077.                         8.14    Remote Server Commands (Not Implemented)
  2078.  
  2079.  
  2080.  
  2081.  
  2082.  
  2083.  
  2084.  
  2085.  
  2086.  
  2087.  
  2088.  
  2089.  
  2090.  
  2091.  
  2092.  
  2093.  
  2094.  
  2095.  
  2096.               Kermit-RMB 1.0   Users Manual                                 Page 33
  2097.  
  2098.  
  2099.  
  2100.  
  2101.               8.4  Program Management Commands
  2102.  
  2103.  
  2104.                 HELP or ?
  2105.  
  2106.                 Displays a one screen introduction to frequently used Kermit
  2107.                 commands and their editing keys, and suggests using the
  2108.                 question mark command to see the terse list of primary level
  2109.                 Kermit commands.  Also available are HELP 1-6 screens which
  2110.                 are described in the general help.
  2111.  
  2112.  
  2113.                 VERSION
  2114.  
  2115.                 displays the Kermit-RMB program version number, which you
  2116.                 should know in case you are reporting bugs or seeking
  2117.                 technical assistance.
  2118.  
  2119.  
  2120.                 The EXIT Command
  2121.  
  2122.                 Syntax:  EXIT or QUIT
  2123.  
  2124.                 EXIT and QUIT are synonyms for each other.  From Kermit-RMB
  2125.                 they shutdown the program and reset defaults such as key
  2126.                 labels on, cursor on etc.
  2127.  
  2128.                 If you are in the Kermit shell from the terminal escape
  2129.                 CTRL-]K then EXIT returns you to the terminal session.
  2130.                 Don't use QUIT to exit the Kermit Shell.
  2131.  
  2132.  
  2133.                 The serial port RS-232 signals are left alone upon EXIT, so
  2134.                 that modem connections are not broken.  Kermit-RMB may be
  2135.                 restarted with the connection intact.  Use HANGUP to
  2136.                 explicitly break a modem connection; and use SHOW MODEM or
  2137.                 SHOW COMMUNICATIONS to view the status of modem signals
  2138.                 CARRIER DETECT, DATA SET (modem) READY, and CLEAR TO SEND.
  2139.  
  2140.  
  2141.                 The TAKE Command
  2142.  
  2143.                 Syntax:  TAKE filespec
  2144.  
  2145.                The TAKE command gives you way a to collect Kermit-RMB commands
  2146.                into a single file, so that you can execute many commands by
  2147.                typing a single (TAKE) command.  TAKE instructs Kermit-RMB to
  2148.                execute commands from the file that you specify.
  2149.  
  2150.  
  2151.                Kermit-RMB>take modem_cmd
  2152.  
  2153.                This directs Kermit-RMB to find the MODEM_CMD file, open it,
  2154.  
  2155.  
  2156.               Kermit-RMB 1.0   Users Manual                                 Page 34
  2157.  
  2158.  
  2159.  
  2160.                execute the commands in it, close it, and return to the
  2161.                Kermit-RMB> prompt when done.
  2162.  
  2163.  
  2164.  
  2165.                 To use the HP BASIC program editor to modify the file use the
  2166.                 BASIC GET command:
  2167.  
  2168.                 GET "HPK_INIT"       Warning: Remeber this will erase the
  2169.                                              Kermit program from memory.
  2170.  
  2171.                 The BASIC program editor may be used to create an init file by
  2172.                 beginning each line with a comment and saving the file as
  2173.                 ascii.
  2174.  
  2175.  
  2176.                 As an example of a KERMINIT command file:
  2177.  
  2178.  
  2179.                 10 !comment -- KERMINIT, HP-BASIC Kermit initialization file
  2180.  
  2181.                 20 !comment -- Don't overwrite my files!
  2182.  
  2183.                 25 !set warning on
  2184.  
  2185.                 30 !!  a double !!  is also a comment
  2186.  
  2187.                 40 !def HP set par odd,set loc on,set hands xon,set flo -
  2188.  
  2189.                 50 !none,set tim on ; semi-colon starts a comment
  2190.  
  2191.                 60 !def modem set port 2, set speed 1200
  2192.  
  2193.                 70 !comment -- I always start out by connecting to UNIX
  2194.  
  2195.                 80 !set port 9 !  use select code 9
  2196.  
  2197.                 90 !set speed 4800 !  a second !  starts a comment
  2198.  
  2199.                 100 !stop
  2200.  
  2201.  
  2202.                 INIT files are created with the following rules:
  2203.  
  2204.                 Line numbers are optional - if used start each line with a !
  2205.                 mark following the line number.
  2206.  
  2207.                 End the file with a STOP command.
  2208.  
  2209.                 !! and comment    are comment lines
  2210.  
  2211.                 ! separates a command from its comment
  2212.  
  2213.                 Only comments after the COMMENT command will be echoed to the
  2214.  
  2215.  
  2216.               Kermit-RMB 1.0   Users Manual                                 Page 35
  2217.  
  2218.  
  2219.  
  2220.                 screen when the file is executed.
  2221.  
  2222.  
  2223.  
  2224.  
  2225.                 The ECHO Command
  2226.  
  2227.                 Syntax:  ECHO [string]
  2228.  
  2229.                 The ECHO command writes the string to the screen, without
  2230.                 adding a carriage return or line feed.  ECHO may be used to
  2231.                 report progress during execution of a TAKE command file, or
  2232.                 to issue prompts during the execution of a script.
  2233.  
  2234.                 ECHO Part one completed...
  2235.  
  2236.  
  2237.                 The COMMENT Command
  2238.  
  2239.                 Syntax:  COMMENT text
  2240.  
  2241.                 The COMMENT command lets you add comments to a TAKE command
  2242.                 file.  The word COMMENT (or any unique prefix thereof) must
  2243.                 appear as the first word on the line. Double !! in the take
  2244.                 file will also act as a comment line.
  2245.  
  2246.  
  2247.            8.5   Local File Management Commands
  2248.  
  2249.                 These commands are executed on your local S200/300, directly
  2250.                 without having to use the local command before execution.
  2251.                 This allows you to execute the most common file management
  2252.                 commands without leaving KERMIT.  All file specifications
  2253.                 may include device and/or directory fields.  The local file
  2254.                 management commands are:
  2255.  
  2256.                 CD , MSI  {path:MSI}
  2257.  
  2258.                 Changes the current working directory to the given path and
  2259.                 MSI.  All references to local file management commands will
  2260.                 refer to the current MSI. Don't confuse this with the
  2261.                 SET DEFAULT {MSI} which specifies the default path for SEND,
  2262.                 RECEIVE, TRANSMIT, and LOG commands.
  2263.  
  2264.                 DELETE , DEL , ERASE  {filespec}
  2265.  
  2266.                 Deletes the specified file. No wildcards.
  2267.  
  2268.  
  2269.                 CAT or DIR  [path:MSI]
  2270.  
  2271.                Performs a CATalog of the current MSI or the MSI included in
  2272.                the command specification.
  2273.  
  2274.  
  2275.  
  2276.               Kermit-RMB 1.0   Users Manual                                 Page 36
  2277.  
  2278.  
  2279.  
  2280.  
  2281.                 SPACE  [MSI]
  2282.  
  2283.                Tells how much space is available on the current disc, and what
  2284.                the largest contiguous space is on a LIF disc.  The number of
  2285.                sectors fragmented on the disc is also reported.
  2286.  
  2287.  
  2288.                 TYPE or PRINT  filespec  [device]
  2289.  
  2290.                TYPE displays the specified local file on the screen.  PRINT
  2291.                will print the file to the device specified - ie 1 or CRT,
  2292.                701.
  2293.  
  2294.  
  2295.  
  2296.             8.6   COMMANDS FOR TERMINAL CONNECTION
  2297.  
  2298.                 The CONNECT command connects your S200/300 as a terminal to
  2299.                 the remote system so that you may conduct a session there.
  2300.  
  2301.                 For completeness, the descriptions below contain copious
  2302.                 reference to the SET commands, which let you modify all sorts
  2303.                 of terminal and communication parameters (the SET commands are
  2304.                 described in a later section).  Kermit-RMB is initially set up
  2305.                 with the following parameters, so that you only need to issue
  2306.                 SET commands for those that need to be changed:
  2307.  
  2308.  
  2309.                 Default Kermit Startup
  2310.  
  2311.                 PORT 9   Or the lowest serial port select code found.
  2312.                          if more than one port is found you will be asked to
  2313.                          select one.
  2314.  
  2315.  
  2316.                 TERMINAL VT102
  2317.                 SPEED 2400
  2318.                 PARITY None  (Data Bits 8)
  2319.                 FLOW-CONTROL None
  2320.                 HANDSHAKE None
  2321.                 LOCAL-ECHO Off
  2322.                 ESCAPE Control-]
  2323.  
  2324.  
  2325.  
  2326.                 The CONNECT Command
  2327.  
  2328.                 Syntax:  CONNECT , C
  2329.  
  2330.                The CONNECT command establishes an interactive terminal
  2331.                connection to the remote system using the currently selected
  2332.                communications port with all settings currently in effect for
  2333.                that port, emulating the currently selected type of terminal
  2334.  
  2335.  
  2336.               Kermit-RMB 1.0   Users Manual                                 Page 37
  2337.  
  2338.  
  2339.  
  2340.                which is only VT-100 at this point.
  2341.  
  2342.                During CONNECT, the characters you type are sent out the
  2343.                communication port, and the characters that arrive at the
  2344.                port are displayed on the screen.  If you SET LOCAL-ECHO ON,
  2345.                Kermit-RMB itself will display the characters you type on the
  2346.                screen.
  2347.  
  2348.                Before you issue the CONNECT command, be sure to set the
  2349.                correct communication speed (SET SPEED) and any other
  2350.                necessary communication parameters (e.g.  SET PARITY, SET
  2351.             |  LOCAL-ECHO).  If you have SET DEBUG ON, then received control
  2352.             |  characters will be displayed in special notation and no
  2353.             |  particular terminal will be emulated.
  2354.  
  2355.                In addition characters that are sent to the screen will also
  2356.                be recorded in a disk file if you have issued a LOG SESSION
  2357.                command.
  2358.  
  2359.                 The CONNECT command turns your S200/300 into a terminal to
  2360.                 the other computer.  To get back to the S200/300, type the
  2361.                 escape sequence followed by the letter C (for "Close
  2362.                 connection").  Usually the escape character is Ctrl-]
  2363.                 (Control-Rightbracket).  That means, hold down the Ctrl key,
  2364.                 press "]", release both, and then type the letter C.
  2365.  
  2366.                 Kermit-RMB> C      Connect to remote system.
  2367.  
  2368.                 Conduct terminal session here...
  2369.  
  2370.                 ^]c Escape back to S200/300.
  2371.  
  2372.                 Kermit-RMB> Prompt reappears.
  2373.  
  2374.                 This is called "escaping back".  You can use the SET ESCAPE
  2375.                 command to change the escape character to something besides
  2376.                 "^]".
  2377.  
  2378.                 Escape sequences:
  2379.  
  2380.                When you press the escape sequence (CTRL-]) while in the
  2381.                terminal emulator, a list of available sequence options is
  2382.                displayed on the screen.  Below is a list of these options:
  2383.  
  2384.                CTRL-] C    Cancel Terminal Emulation - return to KERMIT-RMB>
  2385.                  "    K    Invoke a Kermit Shell - use EXIT to return from
  2386.                            the Kermit shell to terminal mode.
  2387.                  "    B    Send a BREAK signal out the com port.
  2388.                  "    Q    Quit Session logging (raw download) if on
  2389.                  "    R    Resume Session Logging if previously
  2390.                            discontinued.
  2391.                  "    M    Toggle the modeline ON/OFF
  2392.                  "    E    Toggle Local-echo
  2393.  
  2394.  
  2395.  
  2396.               Kermit-RMB 1.0   Users Manual                                 Page 38
  2397.  
  2398.  
  2399.  
  2400.  
  2401.                 Escape-Level Commands
  2402.  
  2403.                The escape character, normally Control-], is used to regain the
  2404.                attention of Kermit-RMB during CONNECT (you can change the
  2405.                escape character using SET ESCAPE).  When you type the escape
  2406.                character, Kermit-RMB waits for you to follow it with a single
  2407.                character command.  For instance, the single character command
  2408.                "B" sends a break signal over the serial line.  Typing any
  2409.                other character (except the space bar, which is the "null
  2410.                command") after the escape character will cause Kermit-RMB to
  2411.                beep, but will do no harm.
  2412.  
  2413.  
  2414.             ?   Help -- Lists the available single-character commands.
  2415.             0   (the digit zero) Transmit a NUL (ASCII 0).
  2416.             B   Transmit a BREAK signal.
  2417.             C   Close the connection and return to Kermit-RMB prompt level.
  2418.             K   Create a Kermit Shell
  2419.             M   Toggle the mode line, i.e. turn it off if it is on or vice versa.
  2420.             E   Toggle Local-Echo ON/OFF
  2421.             Q   Temporarily quit logging the remote session.
  2422.             R   Resume logging the remote session.
  2423.  
  2424.  
  2425.                 When using Kermit to connect two S200/300s "back to back,"
  2426.                 SET LOCAL-ECHO ON so that when you CONNECT to the other
  2427.                 S200/300 you can see what you are typing.  You should also
  2428.                 SET TERMINAL NEWLINE ON, so that that a linefeed will be
  2429.                 automatically supplied for each carriage return you type.
  2430.  
  2431.  
  2432.                TERMINAL EMULATION
  2433.  
  2434.                Kermit-RMB emulates a minimal VT-100 terminal, and is the
  2435.                only terminal emulation provided. Any escape character
  2436.                received will begin decoding of an escape sequence. If a
  2437.                valid VT-100 sequence is detected it is executed - if the
  2438.                sequence is unknown then the entire sequence is displayed on
  2439.                the CRT. Presence of these sequences during a VT-100 terminal
  2440.                session will indicate those VT-100 sequences that are not
  2441.                implemented.
  2442.  
  2443.             |   The Mode Line
  2444.  
  2445.                When you first issue the CONNECT command, a message will
  2446.                display the status of the terminal line parameters such as
  2447.                baud rate, parity, and escape sequence.
  2448.  
  2449.                 Esc: ^]C  baud: 9600  parity: odd  off
  2450.  
  2451.  
  2452.  
  2453.              8.7    COMMANDS FOR FILE TRANSFER
  2454.  
  2455.  
  2456.               Kermit-RMB 1.0   Users Manual                                 Page 39
  2457.  
  2458.  
  2459.  
  2460.  
  2461.                 Kermit-RMB's SEND and RECEIVE invoke the Kermit file
  2462.                 transfer protocol for error-checked transmission of files
  2463.                 between Kermit-RMB and another Kermit program on the other
  2464.                 end of the connection.  There are also commands for "raw"
  2465.                 transfer of files (no error checking) with systems that
  2466.                 don't have Kermit programs:  LOG SESSION (for capturing text
  2467.                 files on your S200/300) and TRANSMIT (for uploading text
  2468.                 files to the remote system).
  2469.  
  2470.  
  2471.  
  2472.                 During file transfer, Kermit-RMB normally displays its
  2473.                 progress on the screen as shown below.  The items in
  2474.                 the right-hand column are updated more or less at random.
  2475.  
  2476.  
  2477.                        File name: TESTDAT
  2478.                Bytes transferred: 1460
  2479.                    % transferred: 10
  2480.                          Sending: In progress
  2481.  
  2482.                Number of packets: 74
  2483.                Number of retries: 2
  2484.                       Last error:
  2485.                     Last warning:
  2486.  
  2487.  
  2488.                     Kermit-RMB File Transfer Display Screen
  2489.  
  2490.  
  2491.  
  2492.                File transfers involving floppy disks will be slow and noisy.
  2493.                Hard disks are much faster (and quieter), and RAM disks
  2494.                faster still (and totally silent).  But if you store new
  2495.                files on a RAM disk, be sure to move them to a real disk
  2496.                before turning off your S200/300.
  2497.  
  2498.                Before attempting to transfer files to the S200/300, make sure
  2499.                you have enough room on the selected device.  Kermit does not
  2500.                provide a way for you to change disks during a file transfer.
  2501.                However, the Kermit protocol will help you out a by creating
  2502.                "spill files" which will hold the file data if the original
  2503.                file created is too small to hold the incomming file.  Kermit
  2504.                will also attempt to prevent transfer of files that are too big
  2505.                to fit in the available space.  Kermit-RMB supports "file
  2506.                attributes" exchange, and if the other Kermit supports this
  2507.                option too, then the receiving program will check free disk
  2508.                space before letting the transfer proceed.
  2509.  
  2510.                Other attributes exchanged by Kermit-RMB include the file's
  2511.                creation date and time, the system of origin, and the file
  2512.                type.  Some of these attributes are implemented.
  2513.  
  2514.  
  2515.  
  2516.               Kermit-RMB 1.0   Users Manual                                 Page 40
  2517.  
  2518.  
  2519.  
  2520.  
  2521.                 The SEND Command
  2522.  
  2523.                 Syntax:  SEND filespec1  [filetype]
  2524.  
  2525.                The SEND command causes a file or file group to be sent from
  2526.                the local HP-BASIC system to the Kermit on the remote system.
  2527.  
  2528.                Currently Kermit-RMB does not support server commands.
  2529.  
  2530.                filespec1 may contain the wildcard characters "*" to match
  2531.                zero or more characters within a field If filespec1 contains
  2532.                wildcard characters then all matching files will be sent, in
  2533.                the same order that HP-BASIC would show them in a directory
  2534.                listing.
  2535.  
  2536.  
  2537.                If the optional filetype is specified, then only files of
  2538.                that filetype will be included in the list of files to be
  2539.                transferred.
  2540.  
  2541.                If the SEND command is specified by itself on the command line,
  2542.                then you will be presented with a valid syntax description help
  2543.                on the screen.
  2544.  
  2545.  
  2546.                 If a file can't be opened for read access, the message
  2547.  
  2548.                 Cannot access file - blank filename will exit
  2549.                 /default/file:,msi
  2550.  
  2551.                Correct the name of the file you want to send at this time, and
  2552.                press enter.
  2553.  
  2554.  
  2555.                 Once you give Kermit-RMB the SEND command, the name of each file
  2556.                 will be displayed on your screen as the transfer begins.  Packet,
  2557.                 retry, and other counts will be displayed along with informational
  2558.              |  messages during the transfer, in the style specified by SET
  2559.              |  DISPLAY.  If the file is successfully transferred, you will
  2560.              |  see "Complete", otherwise there will be an error message.
  2561.  
  2562.                 Several single-character commands may be given while a file
  2563.                 transfer is in progress:
  2564.  
  2565.              |  ^X (Control-X) Stop sending the current file and go on to
  2566.                 the next    one, if any.
  2567.  
  2568.              |  ^Z Stop sending this file, and don't send any further files.
  2569.  
  2570.              |  ^C Return to Kermit-RMB command level immediately without
  2571.                    sending any kind of notification to the remote system.
  2572.                    (^Z  or even ^E is preferable.)
  2573.  
  2574.  
  2575.  
  2576.               Kermit-RMB 1.0   Users Manual                                 Page 41
  2577.  
  2578.  
  2579.  
  2580.              |  ^E Like ^C, but send an Error packet to the remote Kermit in
  2581.                    an attempt to bring it back to server or interactive
  2582.                    command level.
  2583.  
  2584.              |  CR Simulate a timeout:  resend the current packet, or NAK
  2585.                    the expected one.
  2586.  
  2587.                 Control-X, Control-Z, and Control-E send the proper protocol
  2588.                 messages to the remote Kermit to bring it gracefully to the
  2589.                 desired state.  Control-C leaves the remote Kermit in
  2590.                 whatever state it happens to be in, possibly retransmitting
  2591.                 its last packet over and over, up to its retry limit.  You
  2592.                 should only have to use Control-C in dire emergencies (the
  2593.                 remote Kermit is stuck, the remote system crashed, etc), or
  2594.                 at those times when you realize that you have given a file
  2595.                 transfer command to Kermit-RMB without first having told the
  2596.                 remote Kermit about it.
  2597.  
  2598.  
  2599.  
  2600.                 The RECEIVE Command
  2601.  
  2602.                 Syntax:  RECEIVE [filespec] [filetype] [BDAT Rec Length]
  2603.  
  2604.                 The RECEIVE command tells Kermit-RMB to receive a file or
  2605.                 file group from the other system.  The file is stored under
  2606.                 the name it was transmitted with, except that any illegal
  2607.                 characters are translated to _.  Kermit-RMB passively waits
  2608.                 for the file to arrive; this command is not to be used when
  2609.                 talking to a Kermit server (use GET for that).  You should
  2610.                 already have issued a SEND command to the remote Kermit and
  2611.                 escaped back to Kermit-RMB before issuing the RECEIVE
  2612.                 command.  The RECEIVE command is intended for situations
  2613.                 where the file name and sending operation originates at the
  2614.                 other side.
  2615.  
  2616.                 If the optional filespec is provided, incoming files will be
  2617.                 stored under that name.  The first incoming file is renamed
  2618.                 and any additional files either overwrite the first (if FILE
  2619.                 WARNING is OFF) or are renamed slightly from the filespec
  2620.                 (digits are added to the end of the filename) if
  2621.                      SET FILE WARNING ON
  2622.                 has been spacified.  The filespec may include any
  2623.                 combination of the following fields:
  2624.  
  2625.                 Device MSI    Store the file on the designated device,
  2626.                 in the current directory for that device.  If no device
  2627.                 designator is given, store it on the current default device.
  2628.  
  2629.              |  Directory path Store the file in the designated directory on
  2630.              |  the current disk.  If no path given, store the file in the
  2631.              |  current directory.
  2632.  
  2633.                 File name Store the file under the name given.  If no name
  2634.  
  2635.  
  2636.               Kermit-RMB 1.0   Users Manual                                 Page 42
  2637.  
  2638.  
  2639.  
  2640.                 is given, store it under the name it was sent under,
  2641.                 converted, if necessary, to suit DOS conventions, and
  2642.                 modified, if SET WARNING ON, to avoid overwriting any file
  2643.                 of the same name in the same directory.
  2644.  
  2645.                 If an incoming file does not arrive in its entirety, Kermit-RMB
  2646.                 will normally discard it and it will not appear in your directory.
  2647.                 You may change this behavior by using the command SET INCOMPLETE
  2648.                 KEEP, which will cause as much of the file as arrived to be saved
  2649.                 on the disk.
  2650.  
  2651.                 The same single-character commands are available as during SEND:
  2652.  
  2653.              |  ^X Request that the remote Kermit stop sending the current
  2654.                    file, and proceed to the next one immediately.  Since
  2655.                    this is an optional feature of the Kermit protocol, the
  2656.                    remote Kermit might not honor the request.
  2657.  
  2658.              |  ^Z Request that the remote Kermit terminate the entire
  2659.                    transfer; this is also an optional feature that may or
  2660.                    may not be supported by the remote Kermit.
  2661.  
  2662.                 ^C, ^E, and CR operate in the same way as they do during
  2663.                 SEND.  In this case, ^E should always do what ^Z is supposed
  2664.                 to do.
  2665.  
  2666.                 If WARNING is OFF and you type ^X or ^Z to interrupt the
  2667.                 transfer, you'll either get a partial new file, or else both
  2668.                 the old and the new file of that name will be lost,
  2669.                 depending on SET INCOMPLETE.  In any case, when WARNING is
  2670.                 off, old files with the same name as incoming files will not
  2671.                 survive.
  2672.  
  2673.  
  2674.  
  2675.               8.8   Commands for Raw Uploading and Downloading
  2676.  
  2677.                 Kermit-RMB can be used to send files to, or capture files
  2678.                 from, remote systems that do not have Kermit programs
  2679.                 available.  No error checking or correction is done, so the
  2680.                 results can very likely contain corrupted characters, spurts
  2681.                 of noise, gaps, or extraneous system messages or prompts.
  2682.                 The command for uploading is TRANSMIT, and for downloading
  2683.                 LOG SESSION.
  2684.  
  2685.              |  To minimize loss of data during these operations, be sure to
  2686.              |  SET the FLOW-CONTROL and HANDSHAKE parameters to match the
  2687.              |  characteristics of the system on the other end.
  2688.  
  2689.  
  2690.                 The TRANSMIT Command
  2691.  
  2692.                 Syntax:  TRANSMIT filespec
  2693.  
  2694.  
  2695.  
  2696.               Kermit-RMB 1.0   Users Manual                                 Page 43
  2697.  
  2698.  
  2699.  
  2700.                The TRANSMIT command provides a basic raw upload
  2701.                facility to send ASCII, BDAT, or HP-UX files to the host
  2702.                without packets, error checking, or retransmissions, but
  2703.                using all the currently selected communication parameters for
  2704.                flow control, parity, etc.  Information is read from the disk
  2705.                file a line at a time, sent out the serial port.  A disk file
  2706.                line ends with carriage-return-linefeed (CRLF).
  2707.  
  2708.                 Typically, before using this command to upload a file, you would
  2709.                 start a text editor (preferably a line-oriented, rather than
  2710.                 full-screen, editor) on the remote host and put it into text
  2711.                 insertion mode.  When the file has been completely transmitted,
  2712.                 you would manually enter the required sequence for getting the
  2713.                 editor out of text insertion mode, and then make any necessary
  2714.                 corrections by hand.
  2715.  
  2716.                 Here's an example for VAX/VMS:
  2717.  
  2718.  
  2719.                 Kermit-RMB>set flow xon/xoff
  2720.  
  2721.                 Kermit-RMB>connect                   Connect to VAX.
  2722.  
  2723.                 $ edt foo_txt                        Start the EDT editor.
  2724.  
  2725.                 *i Put it into "insert" mode.
  2726.  
  2727.                 ^]c Escape back to Kermit-RMB.
  2728.  
  2729.                 Kermit-RMB>transmit foo_txt
  2730.  
  2731.                 Upload the file a line at a time.  ...  The lines are displayed on
  2732.                 your screen.
  2733.  
  2734.                 Kermit-RMB>connect
  2735.  
  2736.                 When done, connect back to the VAX.
  2737.  
  2738.                 ^Z Type Ctrl-Z to exit EDT insert mode.
  2739.  
  2740.                 *exit Exit from EDT to save the file.
  2741.  
  2742.                 $
  2743.  
  2744.                 If transmission appears to be stuck, you can wake it up by
  2745.                 typing a carriage return on the keyboard.  You can cancel
  2746.              |  the TRANSMIT command by typing a Control-C.  Control-Z's or
  2747.                 other control characters in the file may have adverse
  2748.                 effects on the host.  For this reason, you should use
  2749.                 TRANSMIT only for files that contain 7-bit printing ASCII
  2750.                 characters, spaces, tabs, carriage returns, linefeeds, and
  2751.                 possibly formfeeds.
  2752.  
  2753.  
  2754.  
  2755.  
  2756.               Kermit-RMB 1.0   Users Manual                                 Page 44
  2757.  
  2758.  
  2759.  
  2760.                 The LOG SESSION Command
  2761.  
  2762.                 Syntax:  LOG SESSION [filespec]
  2763.  
  2764.                 The LOG SESSION command lets you copy the characters that
  2765.                 appear on your screen during CONNECT into the specified file
  2766.                 on the S200/300.  You can use this command to download files
  2767.                 by displaying (usually with a command like TYPE) the file on
  2768.                 the remote system while logging is in effect.
  2769.  
  2770.                 Example:
  2771.  
  2772.                 Kermit-RMB>LOG SESSION  :,0,0
  2773.  
  2774.                 Starts a file on the Ram Disc called SES_LOG by default. You
  2775.                 will need to have the terminal emulator active in order to
  2776.                 trap activity at the serial port.
  2777.  
  2778.  
  2779.                 Kermit-RMB>connect
  2780.  
  2781.                 Any activity appearing at the serial port will now be sent to
  2782.                 the CRT screen and to the log file SES_LOG.
  2783.  
  2784.                 If you are connected to a PC for example you can now copy the
  2785.                 file to the PC Serial port and capture it on the HP side:
  2786.  
  2787.                 C:\> COPY  TEXTFILE COM1:
  2788.  
  2789.                 If you were using MS-KERMIT on the PC you could use the
  2790.                 TRANSMIT command to copy the file to the serial port:
  2791.  
  2792.  
  2793.                 MS-KERMIT> TRANSMIT  TEXTFILE
  2794.  
  2795.                 The TRANSMIT command on the PC Kermit sends one line of the
  2796.                 file each time <enter> is pressed.
  2797.  
  2798.                 To stop session logging temporarily from the terminal emulator
  2799.                 you use the "Q" escape option:
  2800.  
  2801.                 CTRL-] Q       Suspends Session Logging,  but leaves the file
  2802.                                open.
  2803.  
  2804.  
  2805.                 To resume logging use the "R" option:  CTRL-] R
  2806.  
  2807.                 To close the file and end session logging use the CLOSE
  2808.                 command at the Kermit prompt:
  2809.  
  2810.  
  2811.                 CTRL-] C                       Leave the terminal emulator
  2812.                 KERMIT-RMB> CLOSE SESSION      and close the log file.
  2813.  
  2814.  
  2815.  
  2816.               Kermit-RMB 1.0   Users Manual                                 Page 45
  2817.  
  2818.  
  2819.  
  2820.  
  2821.                 During terminal emulation, the LOG command records all the
  2822.                 characters that arrive from the remote host in the specified
  2823.                 file, If you have SET LOCAL-ECHO ON, the characters you type
  2824.                 will also be recorded.  Logging may be suspended and resumed
  2825.                 within a terminal session with the CONNECT escape-level
  2826.                 commands Q and R.
  2827.  
  2828.  
  2829.  
  2830.             8.9   The SET Command
  2831.  
  2832.                 Syntax:  SET parameter [parameter] value
  2833.  
  2834.                 The SET command establishes or modifies parameters for file
  2835.                 transfer or terminal connection.  You can examine their
  2836.                 values with the SHOW or STATUS commands.  The following SET
  2837.                 commands are available in Kermit-RMB:
  2838.  
  2839.                 ATTRIBUTES  Controls whether Kermit-RMB uses Attribute
  2840.                             packets
  2841.  
  2842.                 BAUD        Communications port line speed (synonym for
  2843.                             SPEED)
  2844.  
  2845.                 DEBUG        Display packet contents during file transfer
  2846.  
  2847.                 DEFAULT-DISK Default disk drive for file i/o
  2848.  
  2849.                 DELAY       Wait number seconds before Sending a file
  2850.  
  2851.                 DESTINATION Default destination device for incoming files
  2852.  
  2853.                 DISPLAY     For selecting the type of file transfer display
  2854.  
  2855.                 END-OF-LINE Packet termination character
  2856.  
  2857.                 EOF         Method for determining or marking end of file
  2858.  
  2859.                 ESCAPE      Escape character for CONNECT
  2860.  
  2861.                 FLOW-CONTROL Enable or disable XON/XOFF
  2862.  
  2863.                 HANDSHAKE   Half-duplex line turnaround option
  2864.  
  2865.                 INCOMPLETE  What to do with an incompletely received file
  2866.  
  2867.                 LOCAL-ECHO  Specify which computer does the echoing during
  2868.                             CONNECT
  2869.  
  2870.                 MODE-LINE   Whether to display a mode line during terminal
  2871.                             emulation
  2872.  
  2873.                 PARITY      Character parity to use
  2874.  
  2875.  
  2876.               Kermit-RMB 1.0   Users Manual                                 Page 46
  2877.  
  2878.  
  2879.  
  2880.  
  2881.                 PORT        Select a communications port
  2882.  
  2883.                 PROMPT      Change the "Kermit-RMB>" prompt to something
  2884.                             else
  2885.  
  2886.                 RECEIVE     Request remote Kermit to use specified
  2887.                             parameters
  2888.  
  2889.                 RETRY       Packet retransmission threshold
  2890.  
  2891.                 SEND        Use the specified parameters during file
  2892.                             transfer
  2893.  
  2894.                 SPEED       Communications port line speed (synonym for
  2895.                             BAUD)
  2896.  
  2897.                 TAKE-ECHO   Control echoing of commands from TAKE files
  2898.  
  2899.                 TERMINAL    Emulation and parameters
  2900.  
  2901.                 TIMER       Enable/disable timeouts during file transfer
  2902.  
  2903.                 WARNING     Specify how to handle filename collisions
  2904.  
  2905.  
  2906.  
  2907.                 The SET commands are now described in detail, in
  2908.                 alphabetical order.
  2909.  
  2910.  
  2911.  
  2912.                 SET ATTRIBUTES
  2913.  
  2914.              |  Syntax:  SET ATTRIBUTES {ON, OFF}
  2915.  
  2916.                 Disables or enables use of Kermit file Attribute protocol
  2917.                 packets, which contain the size, time, and date of files
  2918.                 transferred with packets.  This command is a safety feature
  2919.                 so that a small misunderstanding with another Kermit cannot
  2920.                 block transfers.  SHOW FILE tells whether attributes are on
  2921.                 or off; they are normally ON.
  2922.  
  2923.  
  2924.                 SET BAUD, SPEED
  2925.  
  2926.                 Syntax:  SET BAUD  {baud rate}
  2927.  
  2928.  
  2929.  
  2930.                 SET DEBUG
  2931.  
  2932.                 Syntax:  SET DEBUG {ON, OFF}
  2933.  
  2934.  
  2935.  
  2936.               Kermit-RMB 1.0   Users Manual                                 Page 47
  2937.  
  2938.  
  2939.  
  2940.                 With DEBUG PACKET, Kermit will display the actual packets on
  2941.                 your screen during file transfer.  With the normal file
  2942.                 transfer display, regular-length packets sent and received
  2943.                 are displayed in fixed-size slots.
  2944.  
  2945.                 With DEBUG ON
  2946.                 control characters are
  2947.                 displayed in uparrow ("^") notation and characters with the
  2948.                 8th bit set are preceded by the tilde ("~") sign, and your
  2949.                 session log (if any) will record 8-bit bytes, rather than
  2950.                 7-bit ASCII, regardless of SET DISPLAY or SET PARITY.
  2951.  
  2952.                 SET DEBUG ON turns on both SESSION and PACKET debugging, and SET
  2953.                 DEBUG OFF turns them both off.
  2954.  
  2955.  
  2956.                 SET DEFAULT-DISK
  2957.  
  2958.                 Syntax:  SET DEFAULT-DISK  {MSI}
  2959.  
  2960.                 Specify the default disk drive to use for file transfer,
  2961.                 directory listings, and so forth. Use CD or MSI to change
  2962.                 the current directory for file management commands.
  2963.  
  2964.  
  2965.                 SET DELAY
  2966.  
  2967.             |   Syntax:  SET DELAY number
  2968.  
  2969.                 Wait the specified number of seconds before starting a file
  2970.                 transfer.  Intended for use when the other side needs appreciable
  2971.                 time to become ready, such as rearranging cables, changing
  2972.                 programs, etc.
  2973.  
  2974.  
  2975.  
  2976.  
  2977.                 SET END-OF-LINE
  2978.  
  2979.                 Syntax:  SET SEND END-OF-LINE number
  2980.  
  2981.                 If the remote system needs packets to be terminated by anything
  2982.                 other than carriage return, specify the decimal value, 0-31, of
  2983.                 the desired ASCII character.
  2984.  
  2985.  
  2986.                 SET EOF
  2987.  
  2988.              |  Syntax:  SET EOF {CTRL-Z, NOCTRL-Z}
  2989.  
  2990.                 Controls how the end of file is handled.  CTRL-Z specifies a
  2991.                 Control-Z character should be appended to the end of an incoming
  2992.                 file.
  2993.  
  2994.  
  2995.  
  2996.               Kermit-RMB 1.0   Users Manual                                 Page 48
  2997.  
  2998.  
  2999.  
  3000.  
  3001.                 SET ESCAPE
  3002.  
  3003.                 Syntax:  SET ESCAPE character
  3004.  
  3005.                 Specify the control character you want to use to "escape" from
  3006.                 remote connections back to Kermit-RMB.  On most systems the
  3007.                 default is "^]" (Control- Rightbracket), which was chosen because
  3008.                 it is a character you would otherwise rarely type.
  3009.  
  3010.  
  3011.  
  3012.                 SET FLOW-CONTROL
  3013.  
  3014.                 Syntax:  SET FLOW-CONTROL {XON/XOFF, ENQ/ACK, NONE}
  3015.  
  3016.                 Specify the full duplex flow control to be done on the
  3017.                 currently selected port.  The options are XON/XOFF and NONE.
  3018.                 The specified type of flow control will be done during both
  3019.                 terminal emulation and file transfer.  By default, XON/XOFF
  3020.                 flow control is selected.  XON/XOFF should not be used on
  3021.                 half-duplex (local echo) connections, or when the other
  3022.                 system does not support it.  If XON/XOFF is used, HANDSHAKE
  3023.                 should be set to NONE.
  3024.  
  3025.  
  3026.  
  3027.                 SET INCOMPLETE
  3028.  
  3029.                 Syntax:  SET INCOMPLETE {DISCARD, KEEP}
  3030.  
  3031.                 Specifies what to do with files that arrive incompletely:
  3032.                 discard them or keep them.  They are normally discarded.
  3033.  
  3034.  
  3035.                 SET LOCAL-ECHO
  3036.  
  3037.                 Syntax:  SET LOCAL-ECHO {ON, OFF}
  3038.  
  3039.                 Specify how characters are echoed during terminal emulation
  3040.                 on the currently selected port.  ON specifies that
  3041.                 characters are to be echoed by Kermit-RMB (because neither
  3042.                 the remote computer nor the communications circuitry has
  3043.                 been requested to echo), and is appropriate for half-duplex
  3044.                 connections.  LOCAL-ECHO is OFF by default, for full-duplex,
  3045.                 remote echo operation.
  3046.  
  3047.  
  3048.  
  3049.                 SET PARITY
  3050.  
  3051.                 Syntax:  SET PARITY {EVEN, ODD, MARK, SPACE, NONE}
  3052.  
  3053.                 Specify the character parity to be used on the currently
  3054.  
  3055.  
  3056.               Kermit-RMB 1.0   Users Manual                                 Page 49
  3057.  
  3058.  
  3059.  
  3060.                 selected port.  You will need to SET PARITY to ODD, EVEN,
  3061.                 MARK, or possibly SPACE when communicating with a system, or
  3062.                 over a network, or through modems, concentrators,
  3063.                 multiplexers, or front ends that require or impose character
  3064.                 parity on the communication line.  For instance, most HP
  3065.                 mainframe computers use EVEN or MARK parity; Telenet
  3066.                 normally uses MARK parity.  If you neglect to SET PARITY
  3067.                 when the communications equipment requires it, the symptom
  3068.                 may be that terminal emulation works (well or maybe only
  3069.                 partially), but file transfer or script INPUT commands do
  3070.                 not work at all.
  3071.  
  3072.                 NONE means that no parity processing is done, and the 8th
  3073.                 bit of each character can be used for data when transmitting
  3074.                 binary files.  If parity is other than none, then there will
  3075.                 be 7 data bits.
  3076.  
  3077.                 If you have set parity to ODD, EVEN, MARK, or SPACE, then
  3078.                 Kermit-RMB will request that binary files be transferred
  3079.                 using 8th-bit-prefixing.  If the other Kermit knows how to
  3080.                 do 8th-bit-prefixing (this is an optional feature of the
  3081.                 Kermit protocol, and some implementations of Kermit don't
  3082.                 have it), then 8-bit binary files can be transmitted
  3083.                 successfully.  If NONE is specified, 8th-bit- prefixing will
  3084.                 not be requested.  Note that there is no advantage to using
  3085.                 parity.  It reduces Kermit's file transfer efficiency
  3086.                 without providing additional error detection.  The SET
  3087.                 PARITY command is provided only to allow Kermit to adapt to
  3088.                 conditions where parity is required, or 8-bit transmission
  3089.                 is otherwise thwarted.
  3090.  
  3091.              |  If parity is in use, then the display during terminal
  3092.              |  emulation, as well as any session log, will be 7-bit ASCII,
  3093.              |  unless you have SET DEBUG ON.
  3094.  
  3095.  
  3096.  
  3097.                 SET PORT
  3098.  
  3099.                 Syntax:  SET PORT {number}
  3100.  
  3101.  
  3102.  
  3103.                 SET PROMPT
  3104.  
  3105.                 Syntax:  SET PROMPT [string]
  3106.  
  3107.                 This command allows you to change the HP-BASIC Kermit program's
  3108.                 prompt to any other string.
  3109.  
  3110.  
  3111.  
  3112.                 SET RECEIVE
  3113.  
  3114.  
  3115.  
  3116.               Kermit-RMB 1.0   Users Manual                                 Page 50
  3117.  
  3118.  
  3119.  
  3120.                 Syntax:  SET RECEIVE parameter value
  3121.  
  3122.                 This command lets you modify the ways in which Kermit-RMB
  3123.                 asks the other Kermit to behave.  That is, it controls the
  3124.                 file transfer protocol options for packets sent to
  3125.                 Kermit-RMB by the other Kermit.  The parameters and values
  3126.                 you specify in the SET RECEIVE command are sent to the other
  3127.                 Kermit during initial negotiations.
  3128.  
  3129.  
  3130.              |  END-OF-LINE number The ASCII value of terminating character
  3131.                 to look for on incoming packets.  Normally carriage return.
  3132.                 Use this command if the other Kermit is terminating its
  3133.                 packets with some other control character.
  3134.  
  3135.  
  3136.              |  PADCHAR number Ask the remote Kermit to use the given
  3137.                 control character (expressed as a decimal number 0-31, or
  3138.                 127) for interpacket padding.  Kermit-RMB should never
  3139.                 require any padding.
  3140.  
  3141.                 PADDING number Ask the remote Kermit to insert the given
  3142.                 number of padding characters before each packet it sends.
  3143.                 Kermit-RMB never needs padding, but this mechanism might be
  3144.                 required to keep some intervening communication equipment
  3145.                 happy.
  3146.  
  3147.                 START-OF-PACKET number If the remote Kermit will be marking
  3148.                 the beginning of packets with a control character other than
  3149.                 Control-A, use this command to tell Kermit-RMB about it (the
  3150.                 number should be the decimal ASCII value of a control
  3151.                 character).  This will be necessary only if the hosts or
  3152.                 communication equipment involved cannot pass a Control-A
  3153.                 through as data, or if some piece of communication equipment
  3154.                 is echoing packets back at you.
  3155.  
  3156.                 TIMEOUT number Ask the remote Kermit to time out and
  3157.                 retransmit after the given number of seconds if a packet
  3158.                 expected from Kermit-RMB has not arrived.  Use this command
  3159.                 to change the other Kermit's normal timeout interval.
  3160.  
  3161.  
  3162.                 SET RETRY
  3163.  
  3164.                 Syntax:  SET RETRY number
  3165.  
  3166.                 Sets the number of times a packet is retransmitted before
  3167.                 the protocol gives up.  The number of retries can be between
  3168.                 1 and 63, and is 5 by default.  This is an especially useful
  3169.                 parameter when the communications line is noisy or the
  3170.                 remote host is very busy.  The initial packet of a file
  3171.                 exchange is given three times as many retries to allow both
  3172.                 systems to become ready.
  3173.  
  3174.  
  3175.  
  3176.               Kermit-RMB 1.0   Users Manual                                 Page 51
  3177.  
  3178.  
  3179.  
  3180.  
  3181.                 SET SEND
  3182.  
  3183.                 Syntax:  SET SEND parameter value
  3184.  
  3185.                 The SET SEND command is used primarily to override
  3186.                 negotiated protocol options, or to establish them before
  3187.                 they are negotiated.
  3188.  
  3189.                 END-OF-LINE number ASCII value of packet terminator to put
  3190.                 on outbound packets.  Normally carriage return.  Use this
  3191.                 command if the other Kermit needs its packets terminated
  3192.                 with a nonstandard control character.
  3193.  
  3194.                 PACKET-LENGTH number Use this as the maximum length for
  3195.                 outbound packets, regardless of what the other Kermit asks
  3196.                 for.  Normally, you would use this command only to send
  3197.                 shorter packets than the other Kermit requests, because you
  3198.                 know something the other Kermit doesn't know, e.g.  there's
  3199.                 a device on the communication path with small buffers.
  3200.  
  3201.                 PADCHAR number Use the specified control character for
  3202.                 interpacket padding.  Some hosts may require some padding
  3203.                 characters (normally NUL or DEL) before a packet, and
  3204.                 certain front ends or other communication equipment may need
  3205.                 certain control characters to put them in the right modes.
  3206.                 The number is the ASCII decimal value of the padding
  3207.                 character, (0 - 31, or 127).
  3208.  
  3209.                 PADDING number How many copies of the pad character to send
  3210.                 before each packet, normally zero.
  3211.  
  3212.                 PAUSE number How many milliseconds to pause before sending
  3213.                 each packet, 0-127, normally zero.  This may help
  3214.                 half-duplex or slow systems prepare for reception of our
  3215.                 packet.  Padding characters are sent only after the time
  3216.                 limit expires.
  3217.  
  3218.                 QUOTE number Use the indicated printable character for
  3219.                 prefixing (quoting) control characters and other prefix
  3220.                 characters.  The only reason to change this would be for
  3221.                 sending a very long file that contains very many "#"
  3222.                 characters (the normal control prefix) as data.
  3223.  
  3224.                 START-OF-PACKET number Mark the beginning of outbound
  3225.                 packets with some control character other than Control-A.
  3226.                 This will be necessary if the remote host or the
  3227.                 communication channel cannot accept a Control-A as data, or
  3228.                 if it echoes back your packets.  The remote host must have
  3229.                 been given the corresponding SET RECEIVE START-OF-PACKET
  3230.                 command.
  3231.  
  3232.                 TIMEOUT number Change Kermit-RMB's normal timeout interval;
  3233.                 this command is effective only if TIMER is set to be ON; it
  3234.  
  3235.  
  3236.               Kermit-RMB 1.0   Users Manual                                 Page 52
  3237.  
  3238.  
  3239.  
  3240.                 is normally ON, with a default interval of 13 seconds.
  3241.  
  3242.  
  3243.                 SET SPEED
  3244.  
  3245.                 Syntax:  SET SPEED rate
  3246.  
  3247.                 Set the transmission speed (in bits per second, commonly
  3248.                 called baud) of the currently selected terminal
  3249.                 communications port to 300, 1200, 1800, 2400, 4800, 9600.
  3250.                 19200 baud has not been tested.
  3251.  
  3252.                 Kermit-RMB appears to log packets at an effective rate of
  3253.                 1200 baud.  Transfers to a 2048 byte buffer allow baud rates
  3254.                 of about any speed, but the packet decoding will proceed at
  3255.                 about 1200 baud.  (uncompiled BASIC).
  3256.  
  3257.  
  3258.                 SET BAUD is a synonym for SET SPEED.
  3259.  
  3260.  
  3261.  
  3262.  
  3263.                 SET TAKE-ECHO
  3264.  
  3265.             |   Syntax:  SET TAKE-ECHO {ON, OFF}
  3266.  
  3267.                 Specifies whether screen display should occur during
  3268.                 implicit or explicit TAKE operations on KERMINIT or other
  3269.                 Kermit-RMB command files, and during evaluation of macro
  3270.                 definitions by the DO command.  Handy for finding errors in
  3271.                 TAKE files or macro definitions.
  3272.  
  3273.  
  3274.                 SET TERMINAL
  3275.  
  3276.                 Syntax:  SET TERMINAL {type}
  3277.  
  3278.                 VT-100 is the only terminal available with rev. 1.0
  3279.  
  3280.  
  3281.              |  NEWLINE-MODE {ON, OFF}
  3282.  
  3283.                 ON sends a carriage-return-linefeed combination (CRLF) when
  3284.                 you type carriage return (CR) during terminal emulation.
  3285.                 OFF (default) just sends a CR when you type CR.  Useful in
  3286.                 conjunction with SET LOCAL-ECHO ON when CONNECTing two
  3287.                 S200/300's back-to-back.
  3288.  
  3289.                 SET TIMER
  3290.  
  3291.                 Syntax:  SET TIMER {ON, OFF}
  3292.  
  3293.                 This command enables or disables the timer that is used
  3294.  
  3295.  
  3296.               Kermit-RMB 1.0   Users Manual                                 Page 53
  3297.  
  3298.  
  3299.  
  3300.                 during file transfer to break deadlocks that occur when
  3301.                 expected packets do not arrive.  By default, the timer is
  3302.                 ON.  If the other Kermit is providing timeouts, you can
  3303.                 safely turn the timer OFF to avoid unnecessary
  3304.                 retransmissions that occur when two timers go off
  3305.                 simultaneously.
  3306.  
  3307.  
  3308.                 SET WARNING
  3309.  
  3310.                 Syntax:  SET WARNING {ON, OFF}
  3311.  
  3312.                 Specify what to do when an incoming file is about to be
  3313.                 stored under the same name as an existing file in the target
  3314.                 device and directory.  If ON, Kermit will warn you when an
  3315.                 incoming file has the same name as an existing file, and
  3316.                 automatically rename the incoming file (as indicated in the
  3317.                 warning message) so as not to destroy (overwrite) any
  3318.                 existing one.  If OFF, the pre-existing file is destroyed,
  3319.                 even if the incoming file does not arrive completely.
  3320.                 WARNING is ON by default as a safety measure, and the
  3321.              |  current setting may be observed in the SHOW FILE display.
  3322.  
  3323.                 The new name is formed by adding numbers starting at the
  3324.                 last character of the name.
  3325.  
  3326.  
  3327.  
  3328.              8.10    The STATUS and SHOW Commands
  3329.  
  3330.                 Syntax:  STATUS
  3331.  
  3332.                 The STATUS command displays the values of all the current
  3333.                 SET options.  There are currently no operands for the STATUS
  3334.              |  command.  Use the SHOW command to see logically-grouped
  3335.              |  settings, e.g.  SHOW COMMUNICATIONS, SHOW TERMINAL.
  3336.  
  3337.  
  3338.              |  The SHOW Command
  3339.  
  3340.                 Syntax:  SHOW option
  3341.  
  3342.                 Most parameters that may be altered with SET commands are
  3343.                 displayed by the STATUS command.  The SHOW command is used
  3344.                 for displaying macro definitions, key redefinitions, file
  3345.                 transfer statistics, translations, and other common
  3346.                 groupings.
  3347.  
  3348.                 SHOW COMMUNICATIONS displays the settings of the current
  3349.                 serial port (port, speed, parity, echo, etc) and the status
  3350.                 of modem signals Carrier Detect, Data Set (modem) Ready, and
  3351.                 Clear To Send.
  3352.  
  3353.                 SHOW FILE displays the file transfer control settings, such
  3354.  
  3355.  
  3356.               Kermit-RMB 1.0   Users Manual                                 Page 54
  3357.  
  3358.  
  3359.  
  3360.                 as the current path, file discard, attributes packets
  3361.                 on/off, warning, end-of-file convention, etc.
  3362.  
  3363.                 SHOW KEY allows you to determine a key's identification code
  3364.                 and what it will send in CONNECT mode, most useful for
  3365.                 obtaining the identification of a key when SET KEY commands
  3366.                 will be placed in a TAKE file.  This command can be done
  3367.                 only interactively (use a ?  to see all defined keys).
  3368.                 Refer to the SET KEY description for details.
  3369.  
  3370.                 SHOW LOGGING Displays the names of the session, packet, and
  3371.                 transaction logs, and tells whether logging is in effect.
  3372.  
  3373.                 SHOW MACROS [macroname] displays the definitions of all
  3374.                 currently defined macros, as well as the amount of space
  3375.                 left for new macro definitions.  A macro name, or
  3376.                 abbreviation, can be included to restrict the list, e.g.
  3377.                 SHOW MACRO HP will display the definition of the HP macro,
  3378.                 and SHOW MACRO X will list the definitions of all macros
  3379.                 whose names begin with X.
  3380.  
  3381.                 SHOW MODEM displays the status of the modem signals DSR
  3382.                 (dataset ready, modem tells the S200/300 that it is turned
  3383.                 on and in data mode), CTS (clear to send, modem grants the
  3384.                 S200/300 permission to send data), and CD (carrier detect,
  3385.                 local modem tells the S200/300 that it is connected to the
  3386.                 remote modem).  The results may be misleading if your
  3387.                 asynchronous adapter, or the connector or cable that is
  3388.                 attached to it, is strapped to supply these modem signals
  3389.                 itself.
  3390.  
  3391.                 SHOW PROTOCOL displays the values of the Kermit
  3392.                 protocol-related parameters, including all the SET SEND and
  3393.                 SET RECEIVE parameters, plus whether the timer, attribute
  3394.                 packets, and logging are enabled.
  3395.  
  3396.                 SHOW SCRIPTS displays the script-related variables.
  3397.  
  3398.                 SHOW SERVER displays which server functions are enabled and
  3399.                 disabled.
  3400.  
  3401.                 SHOW STATISTICS displays counts of characters sent and
  3402.                 received during file transfers, for both the most recent
  3403.                 transfer and the entire session, and an estimate of the
  3404.                 average baud rate while sending and listening.
  3405.  
  3406.                 SHOW TERMINAL displays the terminal settings, which terminal
  3407.                 is being emulated, the tab stops, etc.
  3408.  
  3409.                 SHOW TRANSLATION displays the entries in the 256 byte input
  3410.                 translation table.  Values are expressed numerically to
  3411.                 avoid confusion with different display adapters, and the
  3412.                 command shows only entries for which input and output codes
  3413.                 differ.
  3414.  
  3415.  
  3416.               Kermit-RMB 1.0   Users Manual                                 Page 55
  3417.  
  3418.  
  3419.  
  3420.  
  3421.  
  3422.  
  3423.              8.11  The LOG and CLOSE Commands
  3424.  
  3425.  
  3426.                 Syntax:  LOG {PACKET, SESSION}  [Filespec]
  3427.                          CLOSE {PACKET, SESSION,}
  3428.  
  3429.                 The LOG comman tells Kermit-RMB to record the terminal
  3430.                 session, or the file transfer protocol packets themselves in
  3431.                 a log file.  Open log files may be closed (and the
  3432.                 associated logging disabled) using the CLOSE command.  Open
  3433.                 log files are also closed when you EXIT from Kermit.
  3434.  
  3435.                 LOG SESSION is used to record your terminal emulation
  3436.                 typescript.  It was described above, in the section on file
  3437.                 transfer.
  3438.  
  3439.  
  3440.                 The LOG PACKETS Command
  3441.  
  3442.  
  3443.                 Syntax:  LOG PACKETS [filespec]
  3444.  
  3445.                 The packet log is for diagnostic purposes and records each
  3446.                 Kermit protocol packet sent and received in printable
  3447.                 format.  Control characters are written as caret-letter and
  3448.                 characters with the high bit set are shown as their 7-bit
  3449.                 part preceeded by a tilde.  The default filename is
  3450.                 PKT_LOG.  If you experience difficulty with file
  3451.                 transfers the packet log is valuable in discovering who said
  3452.                 what to whom, even though a copy of the Kermit book is
  3453.                 needed to unravel the meaning of each character in a packet.
  3454.  
  3455.             8.12    Macro Definitions
  3456.  
  3457.                 Like TAKE files, macros provide a way of collecting many
  3458.                 commands into a single command.  The difference between a
  3459.                 macro and a TAKE file is that Kermit keeps all its macro
  3460.                 definitions in memory, and can execute them as many times as
  3461.                 you like, without having to look them up on disk, whereas
  3462.                 every time you issue a TAKE command, Kermit has to access a
  3463.                 disk.  But...  you can have as many TAKE command files as
  3464.                 you like, and they can be as long as you want, whereas
  3465.                 Kermit-RMB's memory for storing macro definitions is
  3466.                 limited.  You can put macro definitions and DO commands for
  3467.                 them in TAKE files, or for that matter, you can put TAKE
  3468.              |  commands in macro definitions.  There is a limit of 25
  3469.                 defined macros at a time.
  3470.  
  3471.  
  3472.                 The DEFINE Command
  3473.  
  3474.  
  3475.  
  3476.               Kermit-RMB 1.0   Users Manual                                 Page 56
  3477.  
  3478.  
  3479.  
  3480.                 Syntax:  DEFINE macro-name [command [, command [, ...]]]
  3481.  
  3482.                 Kermit-RMB command macros are constructed with the DEFINE
  3483.                 command.  Any Kermit-RMB commands may be included.  Example:
  3484.  
  3485.                 define telenet set parity zero, set baud 1200, connect
  3486.  
  3487.                 A macro can be undefined by typing an empty DEFINE command
  3488.                 for it, like
  3489.  
  3490.                 define telenet
  3491.  
  3492.             |   A macro definition may be up to 255 character long. Use a
  3493.                 hyphen to continue lines longer than 80 characters.
  3494.  
  3495.  
  3496.                 The DO Command
  3497.  
  3498.                 Syntax:  DO macro-name [parameters...]
  3499.  
  3500.                 A Kermit-RMB macro is invoked using the DO command.  For
  3501.                 instance:
  3502.  
  3503.                 Kermit-RMB> DEF TEST  SET BAUD 2400 , LOG PACKET , SEND HEX
  3504.  
  3505.                 Kermit-RMB> DO TEST
  3506.  
  3507.  
  3508.              8.13   Kermit Server Commands
  3509.  
  3510.                 Kermit Server capability is not implemented in version 1.0
  3511.  
  3512.  
  3513.  
  3514.              8.14   Commands for Controlling Remote Kermit Servers
  3515.  
  3516.                 Kermit Client capability is not implemented in version 1.0
  3517.  
  3518.                 This functionality in some Kermit programs allows users to
  3519.                 send commands to the remote computer's operating system for
  3520.                 execution.
  3521.  
  3522.  
  3523.  
  3524.  
  3525.  
  3526.  
  3527.  
  3528.  
  3529.  
  3530.  
  3531.  
  3532.  
  3533.  
  3534.  
  3535.  
  3536.               Kermit-RMB 1.0   Users Manual                                 Page 57
  3537.  
  3538.  
  3539.  
  3540.              9.0  Future Enhancements, Missing Features and Reporting Bugs
  3541.  
  3542.  
  3543.                 The most important missing feature in Kermit-RMB is the Server
  3544.                 and Client capability. The Server operation allows a "client"
  3545.                 kermit process to request file send and receive from a remote
  3546.                 Kermit without having to interact each time to execute the
  3547.                 Kermit SEND or RECEIVE command. Instead, the remote Kermit is
  3548.                 issued the SERVER command once after which the GET and RECEIVE
  3549.                 commands are used to initiate file transfers.
  3550.  
  3551.                 The REMOTE command group allows you to issue Kermit
  3552.                 configuration commands to a remote Kermit without having to be
  3553.                 physically at the remote computer.
  3554.  
  3555.                 The HOST command group is a set of commands which enable you
  3556.                 to execute operating systems commands, such as file
  3557.                 management, on the remote host.
  3558.  
  3559.                 The following functions in version 1.0 of Kermit-RMB have been
  3560.                 implemented, but could be more fully implemented in future
  3561.                 revisions of the program -
  3562.  
  3563.                 - More complete VT-100 emulator
  3564.  
  3565.                 - Server/Client Packets (GET, I)
  3566.  
  3567.                 - More complete HELP facility
  3568.  
  3569.                 - Complete implementation of the SET SEND and SET RECEIVE
  3570.                   commands.
  3571.  
  3572.                 - Implement half-duplex communication with flow control
  3573.  
  3574.  
  3575.  
  3576.                 Reporting Bugs
  3577.  
  3578.                 If you want to report bugs, or more importantly, if you would
  3579.                 like to submit bug fixes, or enhancements you've made to
  3580.                 Kermit-RMB you should contact Columbia University Kermit
  3581.                 Distribution at the Center for Computing Activities, and
  3582.                 myself at the address on the cover of the users manual or in
  3583.                 the header of the HPKERMIT program file.
  3584.  
  3585.                 I'll also request your help in distributing the program and
  3586.                 documentation to any HP-BASIC users that you know of.
  3587.  
  3588.  
  3589.  
  3590.  
  3591.  
  3592.  
  3593.  
  3594.  
  3595.  
  3596.               Kermit-RMB 1.0   Users Manual                                 Page 58
  3597.  
  3598.  
  3599.