home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / archives / ck9196.zip / ck9bwr.txt < prev    next >
Text File  |  1996-07-07  |  9KB  |  159 lines

  1. CK9KER.BWR          "Beware File" for C-Kermit Version 5A        -*- text -*-
  2.  
  3.                   OS-9/68000 VERSION
  4.  
  5. Applies to 6.0.192
  6. Last update: Wed Jul 03 19:48:00 1996
  7.  
  8. Author: Christian Hemsing, Germany.
  9.         Ulrich Schlueter, Germany.
  10.  
  11. [Comments in brackets are by James Jones, USA; they reflect his opinions and
  12. judgement and the (minimal, thanks to the fine work of Herren Hemsing and
  13. Schlueter and all who have worked on C-Kermit for OS-9) changes made since
  14. the 5A(188) version, and do not necessarily reflect the opinions of any
  15. organization.]
  16.  
  17.   Copyright (C) 1985, 1996, Trustees of Columbia University in the City of New
  18.   York.  Permission is granted to any individual or institution to use this
  19.   software as long as it is not sold for profit.  This copyright notice must be
  20.   retained.  This software may not be included in commercial products without
  21.   written permission of Columbia University.
  22.  
  23. Report problems, suggestions, fixes, etc, to Frank da Cruz:
  24.  
  25.  Internet: fdc@watsun.cc.columbia.edu  (or)  fdc@columbia.edu
  26.  BITNET/EARN: FDCCU@CUVMA
  27.  
  28. Columbia University Center for Computing Activities
  29. 612 West 115th Street, New York, NY  10025  USA
  30.  
  31. DOCUMENTATION
  32.  
  33. C-Kermit 5A is documented in the book "Using C-Kermit" by Frank da Cruz
  34. and Christine M. Gianone, Digital Press, Burlington, MA, USA.  Digital
  35. Press ISBN: 1-55558-108-0; Prentice-Hall ISBN: 0-13-037490-3.  Price: US
  36. $36.95.  In USA, call DECdirect at 1-800-344-4825, refer to order number
  37. EY-J896E-DP.  ["5A" reflects a prior numbering system for C-Kermit versions.
  38. The file CKCKER.UPD documents changes made to C-Kermit since the publication
  39. of the book "Using C-Kermit".]
  40.  
  41.  
  42. KNOWN BUGS AND LIMITATIONS
  43.  
  44. [OS-9 C Kermit will require source changes to compile and run under OS-9000,
  45. to move from OS-9 to OS-9000 system call interfaces and to recast the
  46. assembly language code in ck9asm.a into a more portable form.]
  47.  
  48. [As I do not have ready access to the old 3.2 OS-9/68000 C compiler or to
  49. gcc for OS-9/68000, I cannot guarantee that C Kermit will compile with those
  50. compilers, though I have made minimal changes to the source, and have made
  51. every effort to not break things for those attempting to compile with either
  52. of those compilers.  The most likely difficulty will be managing the amount
  53. of non-remote data.]
  54.  
  55. SET FILE DISPLAY FULLSCREEN only works for VT100 and compatible terminals,
  56. emulators, and/or console drivers.  If it doesn't work for you, please use
  57. one of the other FILE DISPLAY styles, such as CRT.
  58.  
  59. During text-mode file transfer, linefeed characters are converted to
  60. carriage returns.
  61.  
  62. Unlike UNIX, OS-9/68000 has a built-in method to gain exclusive access to
  63. devices, so no lock files are needed.  The user will be told if the device
  64. is already in use.
  65.  
  66. 1)  Setting the speed of the communications line:
  67.  
  68.     With OS-9 there are two different ways to set the line speed which
  69.     need a little discussion.
  70.  
  71.     a) Assumption: you have a properly implemented driver for your teminal
  72.        lines.  This means that with any SS_Open and SS_Opt call to the driver
  73.        will check whether the speed has changed and will re-program the
  74.        hardware accordingly.  In this case everything is fine and kermit will
  75.        only have to do an _ss_opt call and the speed will be changed.  This is
  76.        what tmode does.
  77.  
  78.     b) Assumption (more likely): your driver does not check the speed change.
  79.        You could try to change the speed with the xmode command, close the
  80.        path currently open on it and reopen it again (xmode only modifies the
  81.        device descriptor in memory; NOT any currently existing path
  82.        descriptors).  But this won't help you much if your line was iniz'ed
  83.        before, because the driver's init routine will NOT be called again and
  84.        since the poorly implemented driver does not check the speed with an
  85.        SS_Open call the actual speed is not changed.  The only way is to have
  86.        the device not iniz'ed.  But this again might cause some problems:
  87.        again, a poorly implemented driver does not wait till output buffer
  88.        (the drivers!, not to be mixed up with the buffer e.g. setbuf(), works
  89.        on) is empty, before the termination routine runs.  So, when the device
  90.        was not iniz'ed and therefore the termination routine is called
  91.        everytime the last existing open path closes, characters might get lost
  92.        (e.g. a list file.name >/t3 on a previously not iniz'ed device often
  93.        will not show all characters on /t3 if the drivers termination routine
  94.        does not wait).  The best solution is to deiniz the device till there
  95.        are no interrupts running any more (with OS-9 V 2.3 and later use irqs)
  96.        then use xmode and iniz the device again.
  97.  
  98.     How to find out: let kermit change the speed (using _ss_opt) and see
  99.     wether the change worked.  Otherwise use the method mentioned above.  I
  100.     included the xmode version in kermit (which only works on non-iniz'd
  101.     line, but its use is strongly discouraged.  You can include the -dXMODE
  102.     option in the makefile to have this method used by kermit.
  103.  
  104.     Another problem could arise on a system with an installed memory
  105.     protection unit: if the device descriptor does not have public write
  106.     access, xmode cannot change the device descriptor unless you are
  107.     privileged.  In that case changing the speed with xmode from within kermit
  108.     will not work.  The _ss_opt (tmode) method works also with an installed
  109.     memory protection unit, because it acts only on the path descriptor (not
  110.     on the device descriptor) which is owned by the current user.  The best
  111.     solution is: already have or get or write a decent driver.
  112.  
  113. 2)  Setting raw mode on line: Again a remark: If you change XON/XOFF to 0 with
  114.     _ss_opt, the driver should wait until the output buffer is empty, because
  115.     if there is pending output the driver might receive an XOFF which will
  116.     result in an output halt.  Next time you change the mode with XON set to
  117.     0, and the driver will never start output again, because there is no XON
  118.     character anymore.  This might happen when you type the CONNECT command.
  119.     In this case kermit says something like "Connection thru blabla" and then
  120.     puts the terminal line in raw mode.  But your terminal might have sent an
  121.     XOFF (and shortly later an XON again), but the XON might be lost.  The
  122.     only way to circumvent this (unfortunately OS-9 currently offers no way to
  123.     find out whether the driver's output buffer is empty; there are many
  124.     situations when one would like to know that) is to wait.  If this happens
  125.     to you, edit ck9con.c to wait after the message.
  126.  
  127. 3)  Kermit now does an open with initial file size.  This avoids the
  128.     frustration of attempting to receive a long file only to fail at
  129.     the very end because of fragmentation or lack of disk space.
  130.  
  131. 4)  You can make the module (and its data requirements) a lot smaller by
  132.     adding certain compiler switches to the makefile like -dNODEBUG.
  133.     For the possible switches, read the file ckccfg.doc.
  134.  
  135. 5)  Sending a BREAK on a line is again a matter of the driver.  There is a
  136.     setstat call SS_Break, but again many carelessly implemented driver do
  137.     not support the call.  If there is no support, kermit will try to switch
  138.     to a lower speed for the BREAK, but again this may not work (see above).
  139.     Things would be much easier, if drivers were written more carefully.
  140.     One known device driver takes 5 hours (!) to return from the send-BREAK
  141.     code.
  142.  
  143. 6)  [When compiled for the old 3.2 C compiler or with gcc, C-Kermit is now
  144.     using its own rename function. Compiling with Ultra C will use the ANSI
  145.     library rename() function.]  This enables moving files.  But you have to
  146.     use another syntax: To rename a file "foo" in the directory "oofa" to
  147.     "oofa/fooo" the OS-9 shell syntax is "rename oofa/foo fooo" - but the
  148.     C-Kermit syntax is "rename oofa/foo oofa/fooo".
  149.  
  150. 7)  There is now a version available with network support (Microware ISP
  151.     1.3-1.4). This version needs the carefully implemented driver (aborting
  152.     I/O on signals less than 32). When sending files to an OS-9 Kermit server
  153.     with TCP/IP and large packets the transfer get's stuck because of a buggy
  154.     telnetdc and pkdvr. You have at least to increase the buffer size of the
  155.     pseudo ttys to 2048. This buffer size can be found in the pk device
  156.     descriptor at offset 0x4A (buffer size = (*(char *)0x4A) + 1) * 128).
  157.  
  158. (End of CK9KER.BWR)
  159.