home *** CD-ROM | disk | FTP | other *** search
/ Shareware Supreme Volume 6 #1 / swsii.zip / swsii / 163 / QTEC9305.ZIP / OPTCOM.TEC < prev    next >
Text File  |  1992-07-27  |  6KB  |  128 lines

  1. ID:OC DESQview:  Optimize Communications
  2. Quarterdeck Technical Note #251
  3. by Vernon Balbert
  4. Last Revised: July 27, 1992
  5.  
  6.  
  7. In DESQview Setup, Advanced Setup, Performance, there's a line that reads:
  8.  
  9. Optimize communications?    (Y/N): N
  10.  
  11. By default this is set to N for no.  However, if you use a modem or other
  12. serial communications device you may wish to alter it.  Setting it to Y is
  13. often good enough but if you have a hardware configuration that is
  14. unconventional then the following explanation may be helpful.
  15.  
  16. "Optimize communications" changes the priority that your computer assigns to
  17. IRQs.  IRQ is short for Interrupt ReQuest.  This is a way for hardware to
  18. interrupt the microprocessor and tell it that there is a piece of hardware
  19. that needs immediate attention.  In the case of serial communications the
  20. serial port sends an IRQ every time data comes in.  Your machine has to be
  21. ready to respond to that IRQ when it happens or you will lose data.  Your
  22. computer handles IRQs in order of priority.  The normal priority is to respond
  23. to IRQ 0 first, followed by IRQ 1, IRQ 2, etc.  We can illustrate it as
  24. follows:
  25.  
  26.                               0 1 2 3 4 5 6 7
  27.  
  28. (IRQs only go up to 7 for the purposes here.  There are also IRQs 8-15, but
  29. they are beyond the scope of this document.)  However, under DESQview, this
  30. order can be detrimental to high speed communcations.  This is because COM
  31. 1 is assigned to IRQ 4 and COM 2 is assigned to IRQ 3 (Although these
  32. assignments of COM port to IRQ are traditional and nearly universal, many
  33. serial ports allow a different assignment of COM port to IRQ).  This puts them
  34. in the middle of the pack, after the keyboard IRQ (#1) and IRQ 2 (often the
  35. mouse) and data can be lost because the IRQ isn't getting enough attention.
  36.  
  37. This is where "Optimize communications" comes in.  This allows you to change
  38. the priority of the IRQs.  If you answer Y to "Optimize communications?
  39. (Y/N):", DESQview rotates the order of priority so that IRQ 2 has the
  40. highest, unless DESQview detects that you have a mouse attached to IRQ 2,
  41. in which case DESQview gives IRQ 3 the highest priority.  The IRQ order
  42. changes as follows:
  43.  
  44.      2 3 4 5 6 7 0 1
  45.  
  46. if you have no mouse on IRQ 2, or:
  47.  
  48.      3 4 5 6 7 0 1 2
  49.  
  50. if you have a mouse on IRQ 2.
  51.  
  52. As you can see, things have been wrapped around.  This causes the IRQs of your
  53. serial ports to have a higher priority than the keyboard (and, if the mouse is
  54. on 2, the mouse as well) thus allowing more attention to be given to COM 2
  55. than other IRQs.  But what if you have a modem on COM 1 or a non-standard COM
  56. port such as 3 or 4?  Well, "Optimize communications" will accept other things
  57. besides Y or N.  You can put in the number of the IRQ that you want to have
  58. more attention paid to.  For instance, if you have a modem on COM 1, then you
  59. would like "Optimize communications" set to IRQ 4, just put the number 4 where
  60. it asks for "Optimize communications? (Y/N):".  This changes the IRQ order
  61. like so:
  62.  
  63.                               4 5 6 7 0 1 2 3
  64.  
  65. If you have a modem on COM 3 and it's been configured for IRQ 5, then you
  66. should set "Optimize communications" to 5.  But what if you have multiple COM
  67. ports on different IRQs?  Which one should get priority?
  68.  
  69. Let's say you have modems on COM 1, 2 and 3 where COM 3 is configured for IRQ
  70. 5.  Then you should set "Optimize communications" to Y or 3 so that the
  71. highest priority should go to the first modem, next highest to the next, etc.
  72. If COM 3 is configured for IRQ 2, then you should set "Optimize
  73. communications" to 2 so that the communications interrupts get higher priority
  74. than the rest of the system.
  75.  
  76. DESQview can only rotate the priority order of the IRQs, it cannot change the
  77. order.  If you have modems on both COM 1 (IRQ 4) and COM 2 (IRQ 3), if you set
  78. "Optimize Communications" to "4" COM 2 will drop to the LOWEST priority,
  79. below the keyboard:  a bad thing.  Always set "Optimize Communications" to the
  80. lowest IRQ you use for serial communications.
  81.  
  82. SETTING UP THE MOUSE WITH "OPTIMIZE COMMUNICATIONS"
  83.  
  84. If you have a mouse attached to a serial port set its IRQ and "Optimize
  85. communications" so that the serial port you use for serial communications has
  86. a higher priority.  If you put the mouse on IRQ 3 and the modem on IRQ 4, set
  87. "Optimize communications" to "4".  If you put the mouse on IRQ 4 and the modem
  88. on IRQ 3, set "Optimize communications" to "Y".  If you use multiple serial
  89. ports for communications make sure that the IRQ the mouse uses does not
  90. intervene between them so you can set "Optimize communications" so that the
  91. mouse has a lower priority.
  92.  
  93. Just for your information, some IRQs are attached to specific system
  94. resources.  The following table explains this:
  95.  
  96.  IRQ  System Resource
  97.  
  98.   0   System Timer
  99.  
  100.   1   Keyboard Event
  101.  
  102.   2   Unassigned   can be given to addin boards such as a network card or COM
  103.                    3 or 4
  104.  
  105.   3   COM 2
  106.  
  107.   4   COM 1
  108.  
  109.   5   LPT2:        usually can be given to addin boards such as a
  110.                    network card or COM 3 or 4
  111.  
  112.   6   Diskette event
  113.  
  114.   7   Data request from LPT1:
  115.  
  116.  The assignment of IRQ 4 to COM 1 and IRQ 3 to COM 2 is what IBM chose and is
  117.  traditional, but many serial cards allow you to choose other IRQs (typically
  118.  2 and 5) or even reverse the assignments of COM 1 and COM 2 to each other's
  119.  traditional IRQs.
  120.  
  121.   ************************************************************************
  122.   *          Trademarks are property of their respective owners.         *
  123.   *This technical note may be copied and distributed freely as long as it*
  124.   *is distributed in its entirety and it is not distributed for profit.  *
  125.   *          Copyright (C) 1992 by Quarterdeck Office Systems            *
  126.   ************************ E N D   O F   F I L E *************************
  127.  
  128.