home *** CD-ROM | disk | FTP | other *** search
/ Inside Multimedia 1995 May / IMM0595.ISO / share / tools / uart / uartmon.doc next >
Encoding:
Text File  |  1991-02-22  |  4.0 KB  |  97 lines

  1.                            UARTMON.EXE 
  2.  
  3.                            Version 1.2 
  4.                           Feb. 18, 1991 
  5.  
  6.                 For monitoring installed serial ports. 
  7.  
  8.                Copyright 1991  Unitech Associates, Inc. 
  9.                            P.O. Box 566 
  10.                       Newark, Delaware 19715 
  11.  
  12.  
  13. AUTHOR: Dale S. Hoover (CIS 73300,3712)
  14.  
  15.  
  16. DESCRIPTION: 
  17.  
  18.     This program is designed to monitor the UARTS associated with
  19.     serial ports ( COM1-COM4 ).  It is intended to be use simultaneous
  20.     with an application using the UART.  It should not interfere in the
  21.     monitoring mode although the menus allow the end user to change the
  22.     baud rate, data_bits, stop_bits, and parity.  Certain combinations 
  23.     of data_bits, stop_bits, and parity are not valid and are inhibited
  24.     in the menus.  Because the intended use is to monitor the serial port
  25.     the serial ports are not opened and the interrupts of are not 
  26.     modified, tested, or chained.  If no application is using the UART
  27.     then the monitor will not reflect valid information ( i.e. the UART 
  28.     needs to be initialized by an application other than the monitor. )
  29.  
  30. PRINCIPLE:
  31.  
  32.     In the BIOS DATA AREA of system memory there is a list of serial
  33.     port addresses in the 4 words beginning at 0000:0400.  Most systems
  34.     use the default 3F8 for COM1 and 2F8 for COM2.  There is no
  35.     standard for COM3 and COM4, so you need to make sure the BIOS
  36.     DATA AREA correctly reflects the right addresses for COM3 and
  37.     COM4 if your machine has these ports.  Windows uses default
  38.     addresses as listsed below but these can be altered using the
  39.     COMxBase=XXXh directive in the SYSTEM.INI file. ( see SYSINI2.TXT
  40.     in you {WINDOWS} directory).
  41.               
  42.     Default Windows 3.0 :           Changed using :
  43.  
  44.            COM1=3F8h                COM1Base = xxxh;
  45.            COM2=2F8h                COM2Base = xxxh;
  46.            COM3=2E8h                COM3Base = xxxh;
  47.            COM4=2E0h                COM4Base = xxxh;
  48.  
  49.     If you encounter any problems with accessing serial ports it would
  50.     be a good idea to verify the addresses stored in the BIOS DATA AREA.
  51.     This can be accomplished using the "Ports" menu.  There is an option
  52.     IO_Address which shows the IO_Address as determined from WINDOWS
  53.     default setting or values that are read from the BIOS.  If a COMx 
  54.     address shows "default" as the source then the BIOS does not know 
  55.     the address.  It is still possible that software (including WINDOWS 
  56.     APPS...) can function if it is written to bypass the BIOS DATA AREA 
  57.     values for the UART IO address.  If a COMx address shows the source 
  58.     as bios then the value for that port was determined from a read of
  59.     the BIOS DATA AREA.
  60.  
  61.     Once the IO address is known for a given UART it is a simple task
  62.     to investigate the UART registers to determine the status of the
  63.     various RS232 lines.  The monitor gets a WM_TIMER message every
  64.     200 msecs and update the screen with any changes in the UART
  65.     status.  
  66.  
  67.     As a utility this can be very useful when first connecting
  68.     a new serial device.  Basically this is a WINDOWS "BREAKOUT Box".
  69.  
  70. HOW TO USE THE PROGRAM:
  71.  
  72.     Just run it and read the results.  
  73.  
  74. DISTRIBUTION: 
  75.  
  76.     UARTMON.EXE and this document are provided free by Unitech
  77.     Associates, Inc., Newark, Delaware.  They may be copied and
  78.     distributed provided no money is charged for them and they are 
  79.     not modified.  Although the program has been extensively tested,
  80.     Unitech Associates, Inc. provides no warranty concerning its
  81.     usefulness on all systems and UA, Inc. accepts no responsibility
  82.     or liability for any mishap resulting from its use.
  83.  
  84.  
  85. Questions or comments can be answered by :
  86.  
  87.  
  88.     Dale S. Hoover ( CompuServe ID #73300,3712 )
  89.  
  90.     or at :
  91.  
  92.          Dale S. Hoover
  93.          Vice President
  94.          Unitech Associates, Inc.
  95.          P.O. Box 566
  96.          Newark, DE   19715
  97.