home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1997 October / PCO1097.ISO / FilesBBS / DOS / SWAPRT.ARJ / SWAPORT2.EXE / SWAPORTS.DOC < prev   
Encoding:
Text File  |  1994-10-25  |  10.6 KB  |  215 lines

  1.         Copy(c)right 1986,1994 by Gary Raymond, New Orleans, La.
  2.                          Port Swapper Program V1.1
  3.  
  4.                                 Gary Raymond
  5.                                   POB 8184
  6.                            New Orleans, La. 70182
  7.                           Tech Help (504) 288-6550
  8.                             Compuserve 70613,3165
  9.  
  10.    ====================================================================
  11.    Files Provided:
  12.    SWAPORTS.COM   Serial Port SWAP Utility.
  13.    SWAPORTS.DOC   This document.
  14.  
  15.    Why SWAPORTS? The purpose of this utility is to allow bios serial
  16.    communications programs that can only access COM1 or COM2 ports to
  17.    function properly on serial PC modem hardware set to COM3 or COM4.
  18.    SWAPORTS does this by poking the correct port addresses directly into
  19.    the proper places in BIOS memory. It can even correct problems with
  20.    serial software that claims to work on com3 and 4, but gives strange
  21.    symptoms instead, such as receiving ok but being unable to send.
  22.  
  23.    QUICK FIX: Before proceeding, try SWAPORTS 7. This restores all
  24.    standard IBM port addresses into their normal BIOS memory slot
  25.    locations. It will generally cure most wierd troubles associated with
  26.    using either com3 or com4 on BOTH software and hardware.
  27.  
  28.    Any program that bypasses DOS and BIOS and directly addresses the COM
  29.    ports will not be affected in any way by SWAPORTS. Many newer modem
  30.    programs bypass DOS in order to achieve higher port speeds or the
  31.    ability to multitask. The type of programs that bypass DOS and
  32.    address the ports directly are never a problem. Rather, it is the
  33.    others, that call upon DOS or BIOS services, that SWAPORTS can help.
  34.  
  35.    Example, suppose you have a serial program (using BIOS calls) that
  36.    can only be set to use com port one or two. Your mouse and modem are
  37.    set for com1 and com4 respectively. Because of the mouse, your only
  38.    option is to use com2 in the serial program, but, your hardware is
  39.    rigged to com4. What you now need is to swap com two's address with
  40.    that of com4. SWAPORTS option 6 will do it!
  41.  
  42.    Another possibility; your hardware is set for com3, your mouse
  43.    is set on com1. Your serial program is set for com2. In this case
  44.    you must (if possible) set the program's IRQ to 4 in place of 3 (to
  45.    avoid mouse conflicts), and use SWAPORTS option 2.
  46.  
  47.    Next example. Your modem is set for com4. Your software is supposed
  48.    to work on com4. It does not. It works ok on received characters but
  49.    does not transmit characters. One reason may be the method the code
  50.    relies on to operate. It may use interrupt services to receive but
  51.    bios (dos) services to send. The interrupt service routine probably
  52.    uses direct port addressing whereas the send function requires
  53.    locating the correct address in bios segment 40, offset 6. In
  54.    this case, the correct address (2E8 hex) may not exist anywhere else
  55.    in the bios area so swapping is useless. Function 7 is the answer. It
  56.    sets all standard addresses into bios.
  57.  
  58.    Some AT computer BIOS systems assigns logical COM ports from low too
  59.    high, to all responding I/O ports in order as they are found. Non
  60.    responding I/O ports are skipped. If you had only one COM port, and
  61.    it was the address for COM2, your computer BIOS would assign it to
  62.    COM1 because no other real COM1 address was present. In this case
  63.    you effectively already have a one-two swap.
  64.  
  65.  
  66.        Standard IBM serial port addressing scheme:
  67.  
  68.        BIOS ADDRESS
  69.        SEG :OFF
  70.        0040:0000      0040:0002      0040:0004      0040:0006
  71.        COM1 = 3F8     COM2 = 2F8     COM3 = 3E8     COM4 = 2E8"
  72.  
  73.  
  74.    DISPLAY HELP by typing SWAPORTS alone without a parameter number.
  75.    You will see the following help information.
  76.  
  77.        The Correct Syntax is SWAPORTS #  (i.e. SWAPORTS 7)"
  78.  
  79.           4 = SWAP PORT 1 with PORT 2"
  80.           5 = SWAP PORT 1 with PORT 3"
  81.           1 = SWAP PORT 1 with PORT 4"
  82.           2 = SWAP PORT 2 with PORT 3"
  83.           6 = SWAP PORT 2 with PORT 4"
  84.           3 = SWAP PORT 3 with PORT 4"
  85.           7 = SET ALL PORTS TO IBM DEFAULTS"
  86.  
  87.        NOTE: Swapping ports three and four is ineffective"
  88.        below DOS Version 3.3"
  89.  
  90.    There are many things that can go wrong after installing a modem on
  91.    your computer. Usually, problems are evenly divided between hardware
  92.    and software configuration errors. In general, the modem itself must
  93.    be mechanically set, via jumper pins or dip switches, to address
  94.    whatever available serial port is usable on your PC. The selected
  95.    port must also be paired with an interrupt request line (IRQ). No two
  96.    serial devices (examp: modem and mouse) may share actively the same
  97.    serial port IRQ address.
  98.  
  99.    The original IBM PC architecture supported only two COM ports. Soon,
  100.    clone makers, and eventually IBM, added more serial capability.
  101.    Still, there are no standard addresses or IRQ (Interrupt Request)
  102.    lines for the additional ports. The addresses for COM1 and COM2 are
  103.    3F8h and 2F8h, respectively, with COM1 on IRQ4 and COM2 on IRQ3.
  104.    When you install more serial ports, COM3 usually uses 3E8h and IRQ4,
  105.    while COM4 uses 2E8h and IRQ3.
  106.  
  107.    DOS gets its I/O information from BIOS, which determines what's
  108.    installed where in your system during the POST test (Power On Self
  109.    Test. Most POST operations check only  for the first two installed
  110.    ports. To get around this problem, communications software and some
  111.    serial peripherals (such as mice) will occasionally support higher
  112.    COM ports by DIRECT addressing, rather than making DOS function calls
  113.    to determine the port addresses. Remember, your computer BIOS (during
  114.    POST) assigns logical COM ports from low too high, to all responding
  115.    I/O ports in order as they are found. Non responding I/O ports are
  116.    skipped. Thus if you have only one COM port, and it was the address
  117.    for COM2, your computer BIOS would assign it to COM1 as no real COM1
  118.    address was present.
  119.  
  120.    Keep  in mind, however, that you probably won't be able to swap two
  121.    ports that share the same IRQ (such as COM1 and COM3) if say, you
  122.    happen to have a mouse attached to one of them. This is because the
  123.    system will get confused when the interrupt triggers.
  124.  
  125.    ====================================================================
  126.  
  127.                            ┌─────────┐
  128.                            │ MEMBER  │   Society of
  129.                            │  ┌──────┴──┐ Independent
  130.                            │  │         │   Shareware
  131.                            └──┤    ■    │     Authors
  132.                               │    ║    │
  133.                               └────╨────┘
  134.     This program is produced by a member of the Society of Independent
  135.     Shareware Authors (SISA). The Society wants to ensure that all
  136.     valid shareware principle actually work for you and SISA members.
  137.     The principle behind shareware distribution is simple; try before
  138.     you buy. Society members agree to license all shareware for a minimum
  139.     of 10 days, free of charge, to first time users as an evaluation period.
  140.     After 10 days, buyers are then obligated to license their copy with
  141.     the Society member. Society members are obligated to provide high
  142.     quality, useful shareware, but, are free to choose whatever marketing
  143.     methods suit their specific needs. SISA sanctioned marketing methods
  144.     include: demonstration versions; providing printed documentation
  145.     after purchase; registration keys that unlock additional features
  146.     not necessary to determine basic usefulness; and, providing bug
  147.     fixes free of charge. Any Shareware author may become a member of
  148.     SISA without cost by simply agreeing to the above conditions and
  149.     displaying, at their option, this logo in their documentation.
  150.    ====================================================================
  151.  
  152.     WARRANTY:
  153.     Software:
  154.     Gary Raymond warrants that the software contained herein will
  155.     perform in substantial compliance with the documentation
  156.     accompanying the software. If you report, in writing, a significant
  157.     defect to us, and we are unable to correct it within 90 days of the
  158.     date you report the defect, you may return the software and
  159.     accompanying materials, and we will refund the purchase price.
  160.  
  161.     Diskette's and Documentation:
  162.     Gary Raymond, warrants all diskette's and documentation to be
  163.     free of defects in materials for a period of 30 days from the date
  164.     of purchase. In the event of notification within the warranty period
  165.     of defects in any materials, Gary Raymond will replace the
  166.     defective diskette or documentation.
  167.  
  168.     Remedies:
  169.     The remedy for breach of the warranty shall be limited to
  170.     replacement and shall not encompass any other damages, including but
  171.     not limited to loss of profit, special, incidental, consequential,
  172.     or similar damages, losses, or claims.
  173.  
  174.     DISCLAIMER:
  175.     Gary Raymond specifically disclaims all other warranties,
  176.     expressed or implied, including but not limited to, implied
  177.     warranties of merchantability and fitness for a particular purpose
  178.     with respect to defects in the diskette and documentation, and the
  179.     program license granted herein, in particular, and without limiting
  180.     operation of the program license with respect to any particular
  181.     application, use, or purpose.  In no event shall Gary Raymond be
  182.     liable for any loss of profit or any other commercial damage,
  183.     including but not limited to special, incidental, consequential or
  184.     other damages.
  185.  
  186.     GOVERNING LAW:
  187.     This statement shall be construed, interpreted, and governed by the
  188.     laws of the State of Louisiana.
  189.     ====================================================================
  190.  
  191.    Registering your copy will help continue the competitive advantages
  192.    of providing economical shareware.
  193.  
  194.    Yes Gary, I enjoy your program and would like to register and
  195.    obtain the latest version. SWAPORT V11
  196.  
  197.  
  198.    Name_____________________________________________________________
  199.  
  200.    Mailing Address__________________________________________________
  201.  
  202.    City & State ___________________________________________________
  203.  
  204.    ZIP _____________________________ Phone _________________________
  205.  
  206.    Send $4 + $1 (ship & hand) check or money order to:
  207.  
  208.                                 Gary Raymond
  209.                                   POB 8184
  210.                            New Orleans, La. 70182
  211.                           Tech Help (504) 288-6550
  212.                             Compuserve 70613,3165
  213.  
  214.    ================================[EOF]===============================
  215.