home *** CD-ROM | disk | FTP | other *** search
- WHATPORT.COM
-
- Version 3.8
- December 8, 1990
-
- For detecting installed serial ports,
- type of mouse, and potential IRQ conflicts
-
- Copyright 1989, 1990 Life Sciences Software
- 812 Vista Drive
- Camano, Washington 98292
-
-
- AUTHOR: Pete Petrakis (CIS 76555,1175)
-
-
- IMPROVEMENTS IN THIS VERSION:
-
- Version 3.8 of WhatPort is essentially identical to version 3.7.
- It's just smaller and the screen and document reflect my change
- of address. This version and its predecessor correct a flaw in
- version 3.6 that prevented detection of COM4 on a PS/2 system.
- Versions prior to 3.7 should therefore be discarded. I thank
- Jim Luhman for testing the corrected program on a PS/2 with four
- COM ports installed and verifying that it can detect them all.
-
-
- DESCRIPTION:
-
- This program detects what serial ports (COM1-COM4) are installed
- in a standard (PC, XT, AT) or PS/2 system. The type of mouse, if
- present, is also shown (serial, bus, InPort, PS/2, HP) together with
- the interrupt request (IRQ) line it's using (unless it's a PS/2).
- The program warns of potential IRQ line conflicts between the
- mouse and serial ports. In the case of PS/2 computers, where
- there should be no possibility of conflict between a PS/2 mouse
- and a serial port, WHATPORT only reports the presence of the
- PS/2 mouse and the serial ports that it finds installed (up to
- COM4).
-
-
- PRINCIPLE:
-
- Because standard PCs have only two IRQ lines for serial ports,
- COM3 must share COM1's IRQ line and COM4 must share COM2's
- IRQ line. Unfortunately, two devices using the same IRQ
- line can't be active at the same time. COM3 can't be used for
- a printer or modem if a serial mouse is active on COM1, for
- example. Likewise, COM4 can't be used if a serial mouse is
- active on COM2. In other words, if you have four COM
- ports and a mouse is attached to one of them, you do not
- have three COM ports available for other devices, you only
- have two. The COM port that shares the IRQ line being
- used by the mouse is not usable. WHATPORT detects and
- reports such conflicts.
-
- The following table shows what ports are available for other
- devices in a PC, XT, or AT when a serial port mouse is present
- on a multiple-port system:
-
- Serial port mouse on Ports available for other devices
- _____________________ _________________________________
- COM1 or COM3 (IRQ4) COM2 or COM4 (IRQ3)
- COM2 or COM4 (IRQ3) COM1 or COM3 (IRQ4)
-
- Conflicts with serial ports are also possible in the case of a
- bus mouse. For example, if a bus mouse is configured to use
- IRQ3, there will be a conflict with both COM2 and COM4. If it
- is configured to use IRQ4, there will be a conflict with both
- COM1 and COM3. WHATPORT also detects and reports these conditions
- so a different IRQ can be selected for the bus mouse.
-
- The PS/2 has a different arrangement. COM1 in a PS/2 uses IRQ4,
- and COM2, COM3, and COM4 share IRQ3. There should not be any IRQ
- conflicts with a PS/2 mouse in a PS/2 system since the PS/2 mouse
- has its own port and does not use either IRQ3 or IRQ4. However, it
- seems theoretically possible that someone could attach an ordinary
- (non-PS/2) serial or bus mouse to a PS/2 machine, in which case
- there could be IRQ conflicts. With that kind of setup, a bus mouse
- using IRQ3 could make three serial ports (COM2, COM3, and COM4)
- unusable on a PS/2.
-
-
- HOW TO USE THE PROGRAM:
-
- Just run it and read the results. Adjustment for color or
- monochrome display is automatic, but monochrome can be forced
- by putting M on the command line.
-
- Some special considerations apply in the case of PS/2 systems,
- because the port addresses they use for COM3 and COM4 are different
- from those in PCs, XTs, and ATs. Version 3.8 of WHATPORT should
- automatically detect the presence of an IBM PS/2 system and check
- the right port addresses since it uses a standard interrupt for
- testing the system type (INT 15h, function C0h). It is not certain,
- however, that this testing feature will work the same way with clones
- of the IBM PS/2. For this reason the program also allows you to
- declare the presence of a PS/2 system by means of a command line
- switch. To declare a PS/2 simply type WHATPORT PS2 (or WHATPORT PS/2)
- at the DOS prompt. You probably won't need to do that, however.
-
- The good news is that if a PS/2 mouse is installed you'll never need a
- command line switch to tell the program you have that kind of system.
- The program knows a PS/2 mouse when it sees one, and the detection
- of that mouse is itself an adequate test for a PS/2 system (no other
- type of system could have such a mouse). Thus you'll need to be
- concerned (mildly) about ability to detect a PS/2 system only if there
- is no PS/2 mouse installed.
-
-
- DISTRIBUTION:
-
- WHATPORT.COM and this document are provided free by Life Sciences
- Editorial Services, Annapolis, Maryland. They may be copied and
- distributed promiscuously provided no money is charged for them,
- they are not modified, and they are not separated. Although the
- program has been extensively tested, Pete Petrakis makes no warranty
- concerning its usefulness on all systems and he accepts no
- responsibility or liability for any mishap resulting from its use.
-
- Pete Petrakis
- Annapolis, Maryland