home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1992 December / simtel1292_SIMTEL_1292_Walnut_Creek.iso / msdos / procomm / prcm_dsz.arc / PRCM-DSZ.TXT next >
Text File  |  1988-02-13  |  7KB  |  174 lines

  1.              Using DSZ for Zmodem with ProComm Plus
  2.  
  3.      The authors of ProComm Plus have chosen to provide minimal
  4. documentation with the "test drive" version of their program.  I
  5. think that's an unfortunate decision, but will leave further
  6. discussion of that to another time and place.
  7.  
  8.      While I would not normally supplement "crippled" documenta-
  9. tion -- I'd prefer to let the authors succeed or fail based on
  10. their own decisions -- as a BBS sysop, I have some interest in
  11. helping callers to my board learn to use Zmodem.  It is, I
  12. believe, far and away the fastest and most reliable software
  13. protocol currently available.
  14.  
  15.      With that out of the way, here are some tips on adding
  16. Zmodem to ProComm Plus Test Drive v1.0.
  17.  
  18.  
  19.                        Setting up ProComm
  20.  
  21.      One of ProComm's setup options allows you to define external
  22. protocols.  Go to that option, and do the following:
  23.  
  24.      (1) Define external download protocol 1 as ZMODEM-D.
  25.  
  26.      (2) Define external upload protocol 1 as ZMODEM-U.
  27.  
  28. You're almost done (see, this isn't so hard).
  29.  
  30.  
  31.                            THE BASICS
  32.  
  33.      In this archive are 2 batch files, ZMODEM-D.BAT (for
  34. downloading) and ZMODEM-U.BAT (for uploading).  Put those 2 batch
  35. files in any subdirectory that is in your PATH.  Also place a
  36. copy of Chuck Forsberg's DSZ.COM in a subdirectory that is in
  37. your PATH.  It's DSZ that's going to be doing the real work here
  38. (thank you, Chuck).
  39.  
  40.      Now fire up ProComm and call your favorite BBS that supports
  41. Zmodem.  Tell it the file(s) you want to download and then hit
  42. PG-DN (ProComm's command to receive files).  Choose Zmodem-D as
  43. your protocol.  ProComm will then ask you if you want to pass any
  44. parameters to the program.  You don't!  On Zmodem receives, DSZ
  45. gets the names of the files it is receiving from the sender.  So,
  46. you just hit ENTER and watch Forsberg's wonderful DSZ program do
  47. its thing.
  48.  
  49.      To upload one or more files, hit PG-UP in ProComm and choose
  50. ZMODEM-U as your protocol.  Now, when ProComm asks you what
  51. parameters to pass, you do have something to tell it -- the names
  52. of the files you are sending.  So, for example, you'd type
  53. FIRST.ARC SECOND.ARC THIRD.ARC etc. to upload 3 files in a batch.
  54. You can also use wildcards (e.g., PCPLUS*.ARC to send all files
  55. that match that file specification).  If the files are not in
  56. your current directory, you can add full pathnames (e.g.
  57. C:\UP\FIRST.ARC  D:\DOWN\SECOND.ARC etc.).  See below for more
  58. tips on paths.
  59.  
  60.  
  61.                         COM1 versus COM2
  62.  
  63.      The supplied batch files assume you are using COM1.  DSZ
  64. defaults to COM1. If your modem is on COM2, you could add a 'port
  65. 2' statement to these batch files.  But, a better way to do it is
  66. to put SET DSZPORT=2 in your AUTOEXEC.BAT file.  Then, DSZ will
  67. use COM2 by default and you won't have to worry about this
  68. anymore.
  69.  
  70.  
  71.                             Baud Rate
  72.  
  73.      Forget it.  DSZ is a very smart program.  It will detect
  74. your current baud rate and use it.  You don't need a 'speed'
  75. command.
  76.  
  77.  
  78.                       Download Subdirectory
  79.  
  80.      ProComm allows you to define a subdirectory into which all
  81. your downloads will go.  But, when you are using external
  82. protocols like Zmodem, that specification won't be observed. 
  83. There's an easy fix for that.  Edit the ZMODEM-D.BAT file to tell
  84. DSZ your download subdirectory.  So, for example, if you want all
  85. your files to go to the \DOWN subdir on your C: drive, your DSZ
  86. receive command would be:
  87.  
  88.           DSZ rz c:\down
  89.  
  90.  
  91.                        Upload Subdirectory
  92.  
  93.      Well, this one's a little trickier.  You have 3 options: (1)
  94. Specify the full pathname of each file you are uploading if it is
  95. not in your current directory; (2) Before starting the upload,
  96. change subdirectories *within ProComm* to where the files you
  97. want to upload are located; or (2) If your uploads are always
  98. going to come from a certain subdirectory, put some ChDir
  99. commands in ZMODEM-U.BAT.  Say your ProComm files are in
  100. C:\PROPLUS and you keep the files you're going to upload in
  101. C:\UP, then your ZMODEM-U.BAT file might look as follows:
  102.  
  103.           CD \UP
  104.           DSZ sz %1 %2 %3 %4 %5
  105.           CD C:\PROPLUS
  106.  
  107. There are some other, fancier ways to skin this particular cat.
  108. I'll leave those to others.
  109.  
  110.  
  111.                    Resume of Aborted Downloads
  112.  
  113.      Part of the "magic" of the Zmodem protocol is that it can
  114. resume an aborted download right where it left off.  If you just
  115. downloaded 180K of a 200K archive before carrier dropped on you,
  116. don't despair -- Zmodem to the rescue.  All you need to do is add
  117. a '-r' to your regular DSZ receive command line and the download
  118. will start up right where you left off (some BBS systems,
  119. including mine, have taken care of this for you by adding a '-r'
  120. to the send command line).  So, your receive command line would
  121. simply be:
  122.  
  123.           DSZ rz -r      (case is important!)
  124.  
  125. There's no harm in having the -r in your command line even when
  126. you are not resuming an aborted download, so I have done it that
  127. way in the sample ZMODEM-D.BAT file.
  128.  
  129.  
  130.                      DSZ Disk I/O Buffering
  131.  
  132.      We're getting into advanced stuff here, but quickly: DSZ.COM
  133. (NOT DSZ.EXE) has a user-definable disk read/write buffer.  It
  134. will be 1K by default.  The buffer can be as large as 8K (8192
  135. bytes).  Here are sample command lines using 4K as an example:
  136.  
  137.           DSZ pB4096 rz
  138.  
  139.           DSZ pB4096 sz %1 %2 %3 %4 %5
  140.  
  141. That 'B' must be in uppercase.  And, 'rz' and 'sz' must be in
  142. lowercase (that's true for all of these examples).
  143.  
  144.  
  145.                         DSZ Flow Control
  146.  
  147.      And now, we're really into advanced stuff, so VERY briefly: 
  148. If your modem will be talking to your computer at a speed higher
  149. than it's talking to the remote computer -- as is typical with
  150. 9600 bps modems and even 2400 bps modems using hardware error
  151. correction with compression --- then you probably need to add a
  152. flow control command to your DSZ command lines.  Sample command
  153. lines combining the I/O buffer and flow control would be:
  154.  
  155.           DSZ handshake both pB4096 rz
  156.  
  157.           DSZ handshake both pB4096 sz %1 %2 %3 %4 %5
  158.  
  159.  
  160.                            Conclusion
  161.  
  162.      That's more than enough, and maybe too much, to get you
  163. started using Zmodem with ProComm Plus.  I hope you find it these
  164. suggestions helpful.
  165.  
  166.  
  167. Prepared 2/13/88
  168. Robert S. Blacher, Sysop
  169. Computer Connections PCBoard
  170. Washington, D.C.
  171. (202) 547-2008  (2400/1200)
  172.  
  173.  
  174.