home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 36 Tips / 36-Tips.zip / MKCM02.FAX < prev    next >
Text File  |  1995-02-20  |  4KB  |  119 lines

  1. OSMKCM02 - ASYNCHRONOUS COMMUNICATION AND PERFORMANCE ISSUES
  2. 11/01/94
  3.  
  4. ================================================================
  5. Asynchronous Communications and Performance Issues
  6. ================================================================
  7.  
  8. Please Read Entire Document for Full Explanation of Procedures
  9. ----------------------------------------------------------------
  10.  
  11. SYMPTOMS:
  12.  
  13. Modem is slow.
  14. Modem looses data.
  15.  
  16.  
  17. RESOLUTION:
  18.  
  19. 1. Correct DOS setting for asynchronous communications.
  20.  
  21. COM_DIRECT_ACCESS = OFF
  22.  
  23. COM_SELECT=COMx (x = port # the application is using)
  24.  
  25. COM_HOLD=ON
  26.  
  27. COM_RECEIVE_BUFFER_FLUSH=NONE
  28.  
  29. HW_TIMER=ON
  30.  
  31. HW_ROM_TO_RAM=ON
  32.  
  33. IDLE_SECONDS=60
  34.  
  35. IDLE_SENSITVITY=100
  36.  
  37. DOS_HIGH=ON(optional)
  38.  
  39. DOS_UMB=ON(optional)
  40.  
  41.  
  42.  
  43. 2. CONFIG.SYS settings that may effect performance.
  44.  
  45. MAXWAIT =1
  46.  
  47. DISK_IO_PRIORITY=OFF(may get system performance hit)
  48.  
  49.  
  50.  
  51. 3. Application settings that may effect performance.
  52.  
  53. Most applications provide the capability to set hardware
  54. handshaking. This setting may also be disguised as RTS / CTS
  55. handshaking.  With this setting, the application becomes aware
  56. of hardware handshaking. This allows the application to stop and
  57. start according to the  modem's speed.
  58.  
  59. For higher speeds, lock the modem at a speed higher than the
  60. expected connecting speed. Sometimes locking at too high of a
  61. speed can cause problems. Turn on error correction and data
  62. compression. On BBS connections ANSI graphics are compressed,
  63. thus increasing performance. For file transfers use Zmodem
  64. protocol when possible. Zmodem is a streaming protocol and can be
  65. 60% faster than earlier block protocols.
  66.  
  67.  
  68.  
  69. 4. AT modem commands that may effect performance.
  70.  
  71. The Hayes compatible modem has a set of AT commands designed to
  72. control the performance and various attributes of the modem.
  73. Attributes such as Data Compression and Error Correction are
  74. normally set as defaults on most modems.  This is usually
  75. indicated by a light on most external modems.  AT&F&K3&Q5 are the
  76. commands used by one modem manufacturer to turn on the previously
  77. mentioned attributes.  For a detailed list of these commands,
  78. refer to the documentation shipped with the modem.
  79.  
  80.  
  81. To send commands to the nonvolatile string in your modem use
  82. the following string as an example:
  83.  
  84. echo "AT commands &Wn" > COMx
  85.  
  86. (commands = Hayes AT commands compatible with your modem)
  87.  
  88. (n = 0 or 1, x = com1 through com4)
  89.  
  90.  
  91.  
  92. If you have a question, refer to the modem's documentation or
  93. contact modem manufacturer.
  94.  
  95.  
  96. LIMITATIONS
  97.  
  98. DOS applications running at BAUD rates higher than 9600 may not
  99. perform correctly due to the multi-tasking nature of OS/2.
  100.  
  101. There are two popular communications program design styles,
  102. interrupt driven and polling driven. Interrupt driven
  103. communications programs work fine with OS/2 for the most part.
  104. However, polling driven programs are very timing dependent
  105. and timing critical. OS/2 being a pre-emptive multi-tasking
  106. operating system may be processing another task during a
  107. particular time slice. During that time slice, a time critical
  108. application may not get service. This can result in an
  109. application going out of synch. The vendor of the application
  110. should know the design style the application uses.
  111.  
  112.  
  113. ----------------------------------------------------------------
  114. IBM disclaims all warranties, whether express or implied,
  115. including without limitation, warranties of fitness and
  116. merchantability with respect to the information in this document.
  117. By furnishing this document, IBM grants no licenses to any
  118. related patents or copyrights.
  119.