home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 12 / CD_ASCQ_12_0294.iso / vrac / swaport2.zip / SWAPORTS.DOC < prev   
Text File  |  1993-12-08  |  11KB  |  224 lines

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