home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / modem / prep110.zip / PROTOREP.DOC < prev    next >
Text File  |  1989-02-19  |  17KB  |  298 lines

  1.  
  2.      ProtoRep v1.10
  3.      ==============
  4.      This program is the property of Michael S. Cox. Altering and/or
  5.      selling ProtoRep is prohibited without the written consent of Michael
  6.      S. Cox. You may use the program and distribute it without charge,
  7.      except for a disk fee not to exceed $1 for 5 1/4" DS/DD disks, $2 for
  8.      5 1/4" DS/HD disks, $2 for 3 1/2" DS/DD disks, and $10 for 3 1/2"
  9.      DS/HD disks. If you have to pay more for the disks than the above,
  10.      you're being ripped off and should look for another vendor. For
  11.      contribution/registration information, see the Future section at the
  12.      end of this documentation.
  13.  
  14.      ProtoRep is a program that simplifies using external protocols. It
  15.      allows you to add up to 12 (in this version) external protocols
  16.      easily. It's much handier than a slew of .BAT files to do the same
  17.      function.
  18.  
  19.      Many communications programs only have one or two file transfer
  20.      protocols available. Two examples are Bitcom and Smartcom. To use any
  21.      of the more advanced protocols such as Zmodem, you have to 'shell' out
  22.      of the comm. program and execute the external protocol along with it's
  23.      cumbersome command line. Later in the industry came programs that
  24.      allowed external protocols to be added to its menus through the use of
  25.      .BAT files. Two examples of this are Qmodem and Telix. But even these
  26.      programs had minor limitations on the number of protocols you could add.
  27.      The main function of ProtoRep, however, is for the user who has a 
  28.      communication program that supports a small amount of protocols, and
  29.      doesn't allow user-defining new protocols.
  30.  
  31.      What's New?
  32.      ===========
  33.      V1.10 re-worked the input scheme. Previously, I had used the ON KEY
  34.      statements in QuickBASIC, but because of problems with 101-key 
  35.      keyboards, and a trailing keystroke if a user keys to fast, I have
  36.      done away with it, and used a much cleaner approach of using ASCII
  37.      scan codes. Also in 1.10, the first letter of each command can be
  38.      use to execute that command. For instance, Typing 'S' will execute
  39.      the Send File(s) routine.
  40.  
  41.      Installation
  42.      ============
  43.      ProtoRep can be invoked three ways: (1) exiting the comm. program
  44.      through a DOS shell (jumping out to DOS while the comm. program is
  45.      still loaded) and running PROTOREP.EXE, (2) installing ProtoRep as an
  46.      external protocol in the more advanced communication packages, or (3)
  47.      in the worse scenario, if the comm. package doesn't have either of the
  48.      two above capabilities, but does allow you to exit the program without
  49.      hanging up, you can exit the comm. program, run PROTOREP.EXE, and
  50.      restart the comm. program. If you use option two (2), and your comm.
  51.      program forces you to have a .BAT file to run as an external protocol,
  52.      you can create a .BAT file called PREP.BAT that simply contains the
  53.      line PROTOREP.
  54.  
  55.      Before you can use ProtoRep successfully, you must configure it to
  56.      meet your needs. Type PROTOREP /C to configure ProtoRep. You will be
  57.      asked five questions:
  58.  
  59.         1)  Is your system color or monochrome? This needs no explanation.
  60.             If you have an old IBM CGA adapter, you may experience some
  61.             snow during ProtoRep's execution. To remedy this, get in the
  62.             80's. Get yourself a decent video board or upgrade to EGA or
  63.             VGA. (I'd even consider Hercules Monochrome an upgrade over
  64.             CGA!)
  65.  
  66.         2)  Default directory for receive files. This is the drive and path
  67.             of where you would like all your downloads to go. Key in the
  68.             FULL path name such as C:\DOWN. If you just leave this blank,
  69.             the default directory will be used.
  70.  
  71.         3)  Default communications port. This is the COM port your modem is
  72.             normally using. Most the time, this does not change. ProtoRep
  73.             will allow you to specify COM ports occupying COM1 through
  74.             COM8. I have yet to see a package or protocol that uses higher
  75.             than COM8. Most decent packages support up through COM4. Just
  76.             key in the 1 character number such as '1' for COM1 or '2' for
  77.             COM2. Do not key in the whole port address such as 'COM1'.
  78.  
  79.         4)  Default communications speed. This is the baud rate you are
  80.             normally set at. ProtoRep allows speeds of 300, 1200, 2400,
  81.             4800, 9600, and 19200. I have yet to see anyone going faster
  82.             than this for file transfers. You can override these default
  83.             setting for COM port and speed by typing them on the PROTOREP
  84.             command line. PROTOREP 2 2400 would set PROTOREP up for COM2 at
  85.             2400 baud. This would not change the default configuration of
  86.             PROTOREP, just for the duration of the current session. If your
  87.             comm. packages will utilize such a command line, it will be
  88.             necessary to run from a .BAT file that specifies PROTOREP %1 %2
  89.             or in whatever order your comm. package issues those
  90.             parameters. For example, Telix v3.11 would be PROTOREP %2 %1
  91.             because it sends speed as the first parameter, and port number
  92.             as the second.
  93.  
  94.         5)  Should ProtoRep be noisy? Well, ProtoRep isn't TOO noisy. Just
  95.             a small clink when you hit the up/down arrow keys, and a quick
  96.             tone when you hit enter. You can re-run PROTOREP /C as often as
  97.             you like to test out if you like the noise or not.
  98.  
  99.      These answers are stored in a file called PROTOREP.CFG and can be
  100.      altered using an ASCII editor.
  101.  
  102.      Usage
  103.      =====
  104.      ProtoRep is quite straight forward. You have 6 menu options. To pick
  105.      an option, use the cursor keys, or arrow keys, to highlight the option
  106.      you want and hit <ENTER>. ProtoRep wraps the options, so if you're
  107.      highlighting "Quit", the last option, and hit <downarrow>, "Send
  108.      File(s)", the first option, will be highlighted. This goes both ways.
  109.      Also, you may hit the first letter of the command you wish to execute.
  110.      For instance, hitting the 'S' key will execute the 'Send File(s)'
  111.      command, and 'I' will execute 'Install Protocol'. To end ProtoRep, choose
  112.      "Quit" or simply hit the <ESC> key at the menu.
  113.  
  114.      Send File(s)
  115.      ============
  116.      If you choose "Send File(s)" a sub-menu is displayed to the main
  117.      menu's left. This is a list of available protocols as defined by the
  118.      user (see Install Protocols section). After choosing a protocol,
  119.      ProtoRep will ask for files to send. You will be able to key in as
  120.      many files as you like, but only protocols that support "batch"
  121.      transfers, such as Zmodem, will utilize this feature. ProtoRep will
  122.      keep asking for another file until you leave a "File" prompt blank by
  123.      hitting the <ENTER> key. If you leave the first "File" prompt blank,
  124.      the Send will be aborted and you will be returned to main menu.
  125.      ProtoRep now shells out at executes the transfer as set up by the
  126.      "Install Protocols" menu option.
  127.  
  128.      Receive File(s)
  129.      ===============
  130.      This is executed much like "Send File(s)" except for one difference.
  131.      If no %f is specified in the download command line (see Install
  132.      Protocols section), filenames won't be asked. For protocols like
  133.      Zmodem and True Ymodem the file's name is transferred, so the user
  134.      does not have to specify the filename twice. The downside of this is
  135.      that the file will be receive in the same directory that the protocol
  136.      is being executed. For example: You have DSZ (Zmodem) installed in the
  137.      C:\PROTO directory, but would like your downloaded files in the
  138.      C:\DOWN directory. DSZ allows you to key the drive and path to
  139.      download to as the last parameter it's command line. NOTE: DSZ, unlike
  140.      DOS uses the slash rather than the backslash for path names. So to set
  141.      up DSZ to download to the C:\DOWN directory, put the %f at the end of
  142.      the download command line, and for "File #1:" key in 'c:/down', then
  143.      leave "File #2:" blank. DSZ's command line would then be: dsz port 2
  144.      speed 2400 rz c:/down  :this is assuming you have a 2400 baud modem on
  145.      COM2. For more on these command lines, keep reading!
  146.  
  147.      Install Protocols
  148.      =================
  149.      If ProtoRep has a tricky part, this is it. You must have some
  150.      knowledge of how to execute your external protocol to do this
  151.      correctly. After selecting this option, you will be asked for the
  152.      protocol name. This is purely cosmetic, case and names don't matter.
  153.      The name can be up to 15 characters long. Next, you're asked for the
  154.      drive and path of the executable files. This does not include the .EXE
  155.      or .COM file to execute, this is just the path for ProtoRep to find
  156.      it. For instance, if you have DSZ in the C:\PROTO directory, then the
  157.      answer to this would simply be C:\PROTO. Next you're asked for the
  158.      upload command line. This is the command for ProtoRep to "Send
  159.      File(s)". You can hard code the line by keying in the COM port number
  160.      and speed, but some flexibility has been installed in ProtoRep to
  161.      handle this. You may use the variables %p for COM port number, %s for
  162.      speed, or baud rate, and %f for the file(s) to be transferred. When
  163.      ProtoRep executes the send or receive, it substitutes the %p with the
  164.      1 character port number discussed above in installation, the %s with
  165.      the speed or baud rate also discussed above in installation, and the
  166.      %f is substituted with the file(s) you've keyed in after picking the
  167.      protocol. For example: DSZ's command line for a Zmodem Send is
  168.      "dsz port 'x' speed 'y' sz 'file1 file 2 file3...'" where 'x' is the 1
  169.      character COM port number to use, 'y' is the speed or baud rate of the
  170.      transfer, and 'file1 file2 file3...' is the list of files to send. The
  171.      command line for Zmodem Receive is basically the same except you'd use
  172.      'rz' instead of 'sz' and you wouldn't specify the filenames because
  173.      Zmodem figures that out for you. Since the port number and speed may
  174.      not always be the same, you can always pass the current port number
  175.      and speed using the %p, and %s parameters. The filenames to send or
  176.      receive are RARELY going to be the same, so %f is almost a must to
  177.      use, especially in the upload command line. As you set these protocols
  178.      up, they're being stored in a file called PROTO.CFG. I have included a
  179.      PROTO.CFG sample file with the original .ARC file. It should include
  180.      DSZ's Zmodem, DSZ's True Ymodem, Megalink, SEAlink, and Jmodem setups.
  181.  
  182.      I did not use any paths or drives because everybody's hard drive (or
  183.      floppy drives for you strugglers) is different. Leaving any of the
  184.      parameters blank (just hitting <ENTER>) will abort the install
  185.      function.
  186.  
  187.      Delete Protocols
  188.      ================
  189.      If you need to get rid of on of the protocols you have installed, use
  190.      this option. I do not have a Change Protocol option, so if you need to
  191.      change one, just delete it and re-install it. When you select this, a
  192.      windows pops up to the left, and the list of available protocols is
  193.      displayed. Pick the one to delete and it's done. Use a '0' response to
  194.      abort the delete function.
  195.  
  196.      Exit to DOS
  197.      ===========
  198.      This simply does a quick exit to DOS while ProtoRep is still in the
  199.      background. You may maintenance at DOS, then return to ProtoRep by
  200.      keying in 'EXIT' at the DOS prompt. If you shell to ProtoRep from a
  201.      comm. program, then shell to DOS from ProtoRep, you may run out of
  202.      memory depending on how much memory you start out with.
  203.  
  204.      Quit
  205.      ====
  206.      Well, this is simple. "Quit" ends ProtoRep and returns to DOS or the
  207.      parent program that spawned ProtoRep. Hitting the <ESC> key has the
  208.      same effect.
  209.  
  210.      Future
  211.      ======
  212.      I'd like to keep modifying ProtoRep to make it better and more
  213.      functionable. But, only you can help, and there are two ways you can
  214.      help. The first is by making a suggested contribution of $25 to my
  215.      efforts ($10 extra for source code). The second is to let me know if
  216.      anything went wrong or you would like to suggest enhancements. Send
  217.      these to:
  218.  
  219.         Michael S. Cox
  220.         485 Hillcrest Rd, Apt. B
  221.         York, PA 17403
  222.  
  223.      Contribution entitles you to free updates for life. You won't pay for
  224.      ProtoRep ever again. I'll also keep you informed of other programs I
  225.      create.
  226.  
  227.      P.S. Protocols Explained
  228.      ========================
  229.      I'm going to explain the protocol configuration I've included in
  230.      PROTO.CFG and their use to give you an example of how to install
  231.      protocols. For all protocols, you must consult their documentation in
  232.      order to get their command line parameters.
  233.  
  234.         Zmodem - DSZ:
  235.         Upload Command:         dsz port %p speed %s sz %f
  236.         Download Command:       dsz port %p speed %s rz
  237.  
  238.      DSZ is a program by Omen Technology (Chuck Forsberg) that supports
  239.      many protocols, such as Xmodem, 1K-Xmodem, Ymodem (TRUE Ymodem Batch),
  240.      and its claim to fame: Zmodem. Zmodem is probably the best behaved
  241.      protocol around due to its enhanced error recovery and speed. For
  242.      multiple transfers, you can't beat a batch protocol anyway. In order
  243.      to implement DSZ and tell it to send/receive via Zmodem, use the above
  244.      commands. The 'port' parameter simply tells DSZ what COM port number
  245.      to use, the 'speed' parameter tells DSZ what baud rate to expect, and
  246.      'sz' is the DSZ parameter for 's'end 'z'modem. %f will be the list of
  247.      files you've keyed in through ProtoRep to send. DSZ's parameters are
  248.      case sensitive, and must be lower case.
  249.  
  250.         True Ymodem - DSZ:
  251.         Upload Command:         dsz port %p speed %s sb %f
  252.         Download Command:       dsz port %p speed %s rb
  253.  
  254.      Same as Zmodem, but 'sb' is for send with Ymodem, and 'rb' is for
  255.      receive with Ymodem. I assume the 'b' in 'sb' and 'rb' is for 'b'atch
  256.      since True Ymodem is an original batch protocol. Why do I keep saying
  257.      TRUE Ymodem? What is the importance of 'TRUE'? Well, somehow 1K-Xmodem
  258.      has adapted the name Ymodem in some places. Some BBS's you'll see will
  259.      have Ymodem listed when it's really 1K-Xmodem they have. True Ymodem
  260.      is a 128byte block batch protocol and most places that have it list it
  261.      as True Ymodem, or Ymodem Batch.
  262.  
  263.         Megalink
  264.         Upload Command:         mlink port %p speed %s sm %f
  265.         Download Command:       mlink port %p speed %s rm
  266.  
  267.      Looks vaguely familiar, doesn't it? No, it's NOT written by Mr.
  268.      Forsberg or has association with Omen Tech. But having like parameters
  269.      as this is convenient. The setup is the same as Zmodem and Ymodem
  270.      except use the 'm' for 'm'egalink instead of 'z' and 'b'. Megalink is
  271.      a batch protocol, so the filenames need not be specified for a
  272.      receive.
  273.  
  274.         SEAlink
  275.         Upload Command:         clink t p%p b%s %f
  276.         Download Command:       clink r p%p b%s
  277.  
  278.      SEAlink is written by System Enhancement Associates (SEA), makers of
  279.      ARC. It uses 128byte blocks like Xmodem but is faster and uses batch
  280.      transfers. Its parameter for upload/send is 't' for 't'ransmit and for
  281.      download it's 'r' for 'r'eceive. To specify port, use 'p' and use 'b'
  282.      to specify baud rate, or speed.
  283.  
  284.         Jmodem
  285.         Upload Command:         jmodem s%p %f
  286.         Download Command:       jmodem r%p %f
  287.  
  288.      This is new protocol on the market. Jmodem has nice features such as
  289.      data compression, allowing you to get better than 100% efficiency. Its
  290.      command line is simple, either 's' for 's'end or 'r' for 'r'eceive,
  291.      followed by the port number then the file. This would be an even
  292.      better protocol if it worked in batch mode (excluding the .BATch file
  293.      explained in the documentation to supplement this feature). For single
  294.      file transfers this is my favorite, but for multiple (batch) files, or
  295.      noisy lines, I'll take Zmodem. Well, here it is anyway. Do with them
  296.      as you will.
  297.      
  298.