home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 July / CHIP797.ISO / workshop / doc / comport.txt < prev    next >
Encoding:
Text File  |  1995-01-03  |  5.9 KB  |  136 lines

  1.  
  2.           W H A T   C O M   P O R T S ?
  3.           
  4.           A COM port is a serial port which has a connector on the
  5.           outside of the computer where you can plug in mice and
  6.           modems and other serial devices. Internal modems have
  7.           their own COM port. On an internal modem, the COM port is
  8.           located on the modem card. A modem card plugs into an
  9.           empty slot inside your PC. Such modem cards usually have
  10.           two phone jacks--one for the phone line and the other to
  11.           plug in a phone. Most modern computers have two COM
  12.           ports--COM1 and COM2.
  13.           
  14.           
  15.           DETERMING COM PORT USAGE WITH MSD
  16.           
  17.           You can often determine which COM ports (serial ports)
  18.           your machine is using by running the DOS MSD (MicroSoft
  19.           Diagnostic Utility) program. The MSD program comes with
  20.           DOS 6.0 and later versions of DOS and with Microsoft
  21.           Windows 3.1. So, if you have DOS 6.0 or later and/or
  22.           Windows 3.1, you will have MSD. The SETUP installation
  23.           program for any of the above mentioned programs will
  24.           place the MSD program in your computer's path. To run the
  25.           MSD program, at the DOS prompt type:
  26.           
  27.                                         msd <ENTER>
  28.           
  29.           When the MSD menu is shown on your screen, press the
  30.           highlighted letter C for COM port information.
  31.           
  32.                                         c
  33.           
  34.           You will then see a screen showing what COM ports your
  35.           machine is using. If you have a mouse installed, you can
  36.           press the highlighted letter U for more information
  37.           concerning your mouse. With the MSD menu showing on your
  38.           screen, press:
  39.           
  40.                                         u
  41.           
  42.           MSD will then show you if your mouse is using a COM port.
  43.           With MSD, you can press the highlighted letter Q to take
  44.           a look at your IRQ (InterRrupt reQuest) addresses. With
  45.           the MSD menu showing on your screen, press:
  46.           
  47.                                         q
  48.           
  49.           
  50.           TIPS
  51.           
  52.           MSD sometimes does not correctly show COM port usage
  53.           (especially COM4). However, a shareware program called
  54.           Modem Doctor will correctly show COM port usage. If you
  55.           are having modem problems, the shareware program Modem
  56.           Doctor can really help. See the section on shareware for
  57.           more information. Also, see the section on AT command set
  58.           usage.
  59.           
  60.  
  61.           DETERMINING COM PORT USE WITH MODE
  62.           
  63.           MODE.COM is a utility that comes with MS-DOS. If you have an
  64.           older system and don't have the MSD program, you can
  65.           often use the MODE command to see which COM ports are
  66.           being used. To test for COM2, issue the following command
  67.           at the DOS prompt:
  68.           
  69.                                 mode com2 <ENTER>
  70.           
  71.           COM2 is being used if you get a report like:
  72.           
  73.           STATUS FOR DEVICE COM2:
  74.           -----------------------
  75.           RETRY=NONE
  76.           
  77.           If you get a report like the above, it means that the COM
  78.           port for which you tested is being used. Just follow the
  79.           MODE command with the COM port you want to test. 
  80.           However, if you get a report like:
  81.           
  82.           ILLEGAL DEVICE NAME - COM2
  83.           
  84.           This means that the COM port for which you tested is not
  85.           being used. If you have an internal modem, you may wish
  86.           to set your modem to use that COM port. If you still have
  87.           doubts about which COM ports are being used I would
  88.           recommend that you obtain the Modem Doctor shareware
  89.           program. Before you install an internal modem, be sure to
  90.           read the next section on IRQs.
  91.  
  92.  
  93.           DETERMINING COM PORT USAGE WITH DEBUG
  94.           
  95.           Another way to determine which COM ports are active on an
  96.           MS-DOS computer is to use a utility that comes with DOS called
  97.           DEBUG. This technique works with MOST machines. At the
  98.           DOS prompt type:
  99.           
  100.                                         debug <ENTER>
  101.           
  102.           Then, when you have the hyphen prompt type:
  103.           
  104.                                         d40:00 <ENTER>
  105.           
  106.           The screen will show rows and columns with numbers. ON THE
  107.           FIRST LINE, there are four sets of paired numbers that appear
  108.           to the right of 0040:0000. These represent COM1, COM2, COM3,
  109.           and COM4. You do not need to be concerned with the other seven
  110.           rows of numbers. A zeroed pair of numbers indicates that the
  111.           COM port is not being used. For example, suppose you see:
  112.           
  113.           -d40:00
  114.           0040:0000  F8 03 F8 02 00 00 00 00-78 03 00 00 00 00 00 00
  115.           
  116.           Look to the right of the numbers 0040:0000. The F8 03
  117.           indicates that COM1 is being used. The next set of F8 02 shows
  118.           that COM2 is being used. The next pair of numbers (four zeros)
  119.           tell us that COM3 is not being used. The following pair (of
  120.           four zeros) indicate that COM4 is not being used and is
  121.           available for a serial device such as a modem.
  122.           
  123.           Here is a key to the following possible hexadecimal numbers
  124.           (note that COM3 and COM4 do not appear in the above example):
  125.           
  126.           F8 03 = COM1
  127.           F8 02 = COM2
  128.           E8 03 = COM3
  129.           E8 02 = COM4
  130.           
  131.           To get out of DEBUG and go back to the DOS prompt type:
  132.           
  133.                                         q <ENTER>
  134.  
  135.           =============================================================
  136.