home *** CD-ROM | disk | FTP | other *** search
/ Der Mediaplex Sampler - Die 6 von Plex / 6_v_plex.zip / 6_v_plex / DISK3 / DFUE_43 / 26HDCOM1.ZIP / 26HDCOM1.DOC < prev   
Text File  |  1990-12-06  |  6KB  |  135 lines

  1.  
  2.                             A TSR Harddisk and COM
  3.                               Monitoring System.
  4.  
  5.                          26HDCOM (C)1991 Cornel Huth
  6.  
  7.  
  8.      SUMMARY FEATURES ----------------------------------------- 12/06/90-pre
  9.  
  10.      26HDCOM.COM, HC for short, requires an IBM PC, XT, AT, AT-386, or other
  11.      close compatible and DOS 2 or above. It's a TSR program that monitors
  12.      the hard drives (D: also on ATs only) by reporting the drive, cylinder,
  13.      head, sector, and status of the disk controller. HC can also monitor
  14.      the serial ports/modem and will report DTR,RTS,CTS,DSR,RI,DCD and also
  15.      bps and communication protocol (parity, data & stop bits).
  16.  
  17.      What makes HC even more useful is that it displays the status line on
  18.      the 26th line of IBM compatible video systems, including the CGA, EGA
  19.      and VGA color systems. For IBM compatible monochrome systems, the status
  20.      line is displayed on line 1. This status line can be momentarily disabled
  21.      by having Scroll Lock on, or by pressing the ALT key down.
  22.  
  23.      STATUS LINE ---------------------------------------------------------
  24.  
  25. C:1023 Hd:15 Sc:63  OK                         DTR RTS CTS DSR RI  DCD 38400 N81
  26.  
  27.      is what the status line looks like full-blown.  The hard drive letter
  28.      is followed by the current cylinder, head, sector, error message, and
  29.      then the serial port status.  On color systems this is black with a green
  30.      background.  On monochrome systems it's in reverse video.
  31.  
  32.      Possible disk errors are (including floppy):
  33.  
  34.                  0  OK
  35.                  1  BAD COMMAND
  36.                  2  ADDRESS MARK NOT FOUND
  37.                  3  WRITE PROTECT ERROR
  38.                  4  SECTOR NOT FOUND
  39.                  5  RESET FAILED
  40.                  6  DISKETTE REMOVED
  41.                  7  BAD PARAMETER TABLE
  42.                  8  DMA OVERRUN
  43.                  9  DMA ACROSS 64K BOUNDARY
  44.                  A  BAD SECTOR FLAG DETECTED
  45.                  B  BAD TRACK FLAG DETECTED
  46.                  C  BAD MEDIA TYPE
  47.                  D  TOO MANY SECTORS ON FORMAT
  48.                  E  CTRL DATA ADDR MARK FOUND
  49.                  F  DMA ARBTRA`N OUT-OF-RANGE
  50.                 10  UNCORRECTABLE ECC|CRC ERR
  51.                 11  ECC CORRECTED DATA FAILURE
  52.                 20  GENERAL CONTROLLER FAILURE
  53.                 40  SEEK FAILED
  54.                 80  TIME OUT|DRIVE NOT READY
  55.                 AA  DRIVE NOT READY
  56.                 BB  UNDEFINED ERROR OCCURED
  57.                 CC  WRITE FAULT
  58.                 E0  STATUS ERROR/ERROR REG = 0
  59.                 FF  SENSE OPERATION FAILED
  60.  
  61.      A disk error will be retained on the status line for 2 seconds
  62.      provided that no new error occurs within that time.
  63.  
  64.      The COM section monitors:
  65.  
  66.                 DTR Data terminal ready
  67.                 RTS Ready to send
  68.                 CTS Clear to send        &   bps rate
  69.                 DSR Data set ready           parity
  70.                 RI  Ring indicator (yours)   data bits
  71.                 DCD Data carrier detect      stop bits
  72.  
  73.  
  74.      USAGE ---------------------------------------------------------------
  75.  
  76.      HC occupies about 2500 bytes of system RAM with a standard DOS
  77.      environment when resident and is controlled by command line options.
  78.  
  79.       HC       * install TSR to monitor status
  80.       HC /U    * remove from memory
  81.       HC /S    * sleep mode
  82.       HC /R    * restore status line and awaken if in sleep mode
  83.       HC /Cn   * monitor COM port (n=1-4  0=off)
  84.       HC /Mn   * select controller BIOS data interpret mode (n=1-4)
  85.       HC /H    * help
  86.  
  87.      At the COMMAND prompt, enter HC.  This installs the TSR portion.
  88.  
  89.      There are currently three different interpretation modes supported for
  90.      the harddisk BIOS data area.  HC will start up in mode 1 (generally
  91.      XT controllers).  If you have an AT use mode 3 (drive 0=C:) or 4
  92.      (drive 1=D:). If this doesn't work with your AT, try mode 2 (non-BIOS
  93.      controller card).  To change the mode that HC starts up in, use a
  94.      disk editor (Norton's, PC Tools, etc.) and change the byte at 113
  95.      decimal (71 hex) from '1' to the mode you want (1 to 4).  This is
  96.      the character '1' to '4', not ASCII 01 to 04.  If you don't want
  97.      to change it permanently you can still change it with the command
  98.      line option /M2, /M3, /M4.
  99.  
  100.      BIOS supports 4 COM ports.  To select the port to monitor, use HC/Cn
  101.      where n equals 0 - 4.  0 will turn off any current COM monitoring.
  102.  
  103.      HC can be removed from memory (HC/U).  This should only be
  104.      done when at DOS's top level, not from a shell, and really only
  105.      when it is the last current TSR installed.  I say 'really' because
  106.      HC checks to make sure that the interrupt it uses still points to
  107.      itself, i.e., no other TSR is using it.  You can safely try HC/U at
  108.      anytime (at top level); HC will only remove itself if safe to do so.
  109.      A better way to 'disconnect' HC is to use the sleep mode /S.
  110.  
  111.      Sleep mode (HC/S) is performed by unchaining HC from the user timer-tick
  112.      interrupt that it uses (1Ch) and replacing the interrupt vector to the
  113.      one active when HC was installed.  This means that HC can be 'turned off'
  114.      even after shelling to DOS from another program.  Very useful.  And of
  115.      course, HC can be restored to its active state with /R.
  116.  
  117.      The restore function (HC/R) awakens the dormant HC and also resets the
  118.      display to 26 lines on color systems, since any video mode change
  119.      (e.g., MODE co80) will reprogram the system to its default mode.  Note
  120.      that EGA or VGA systems must be in standard mode, i.e., 25 lines,
  121.      not 43 or 50, to either install or restore.  The VGA should also be
  122.      connected to a VGA monitor (720x400 is the std text mode of the VGA).
  123.      If you are in a non-compatible mode, HC will not install or restore
  124.      itself but just exit with an error message.
  125.  
  126.      It sure is nice to know what your harddisk and modem are up to.
  127.      The MASM assembly source is included for your computing pleasure.
  128.  
  129.      chh
  130.  
  131.      12/03/90 2.00 adapted from DSTCOM v3.10 - chh
  132.      12/06/90 2.01 Modify bps to handle above 9600, e.g. 38400 - chh (4Geo)
  133.      12/06/90 2.01 fix mode1/2 positioning of head number on stat line - chh
  134.  
  135.