home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 36 Tips / 36-Tips.zip / osmkcm02.txt < prev    next >
Text File  |  1997-04-11  |  5KB  |  111 lines

  1. OSMKCM02 - ASYNCHRONOUS COMMUNICATION AND PERFORMANCE ISSUES
  2. 01/30/96
  3.  
  4. =======================================================================
  5.           Asynchronous Communication and Performance Issues
  6.                       OS/2 2.1 and OS/2 2.11
  7. =======================================================================
  8.  
  9. Please Read Entire Document for Full Explanation of Procedures
  10. --------------------------------------------------------------
  11.  
  12. DESCRIPTION
  13.  
  14. Modem is slow or loses data.
  15.  
  16. RESOLUTION
  17.  
  18. Correct DOS Settings for Asynchronous Communications
  19. ----------------------------------------------------
  20. 1. Open OS/2 System.
  21. 2. Open Command Prompts.
  22. 3. Click-on DOS Window or DOS Full Screen with mouse button 2.
  23. 4. Select Settings to open the Settings notebook.
  24. 5. Select the Session tab.
  25. 6. Select the DOS Settings... push button.
  26. 7. Select the All DOS Settings button.
  27. 8. Set the following settings as shown:
  28.  
  29.       COM_DIRECT_ACCESS = OFF
  30.       COM_SELECT = COMx (x is the port number the application is using)
  31.       COM_HOLD = ON
  32.       COM_RECEIVE_BUFFER_FLUSH = NONE
  33.       HW_TIMER = ON
  34.       HW_ROM_TO_RAM = ON
  35.       IDLE_SECONDS = 60
  36.       IDLE_SENSITIVITY = 100
  37.       DOS_HIGH = ON (optional)
  38.       DOS_UMB = ON (optional)
  39.  
  40.  
  41. CONFIG.SYS Settings That Can Affect Performance
  42. -----------------------------------------------
  43.    MAXWAIT = 1
  44.    DISK_IO_PRIORITY = OFF (might get system-performance hit)
  45.  
  46.  
  47. Application Settings That Can Affect Performance
  48. ------------------------------------------------
  49. * Most applications provide the ability to set hardware handshaking.
  50.   This setting also can be disguised as RTS or CTS handshaking. With
  51.   this setting, the application becomes aware of hardware handshaking.
  52.   This allows the application to stop and start according to the
  53.   modem's speed.
  54.  
  55. * For higher speeds, lock the modem at a speed higher than the expected
  56.   connecting speed. Locking at too high a speed can cause problems. 
  57.  
  58. * Turn on error correction and data compression. On BBS connections,
  59.   ANSI graphics are compressed, thus increasing performance.
  60.  
  61. * For file transfers, use Zmodem protocol when possible. Zmodem is a
  62.   streaming protocol and can be 60% faster than earlier block protocols.
  63.  
  64.  
  65. AT Modem Commands That Can Affect Performance
  66. ---------------------------------------------
  67. The Hayes-compatible modem has a set of AT commands designed to control 
  68. the performance and various attributes of the modem. Attributes such as 
  69. Data Compression and Error Correction are normally set as defaults on 
  70. most modems. This usually is indicated by a light on most external 
  71. modems. AT&F&K3&Q5 are the commands used by one modem manufacturer to 
  72. turn on the attributes mentioned previously. For a detailed list of 
  73. these commands, refer to the documentation that came with the modem.
  74.  
  75. To send commands to the nonvolatile string in your modem use the 
  76. following string as an example:
  77.  
  78.    echo "AT commands &Wn" > COMx
  79.  
  80. (commands are Hayes AT commands compatible with your modem; n is 0 or
  81.  1; x is 1 through 4.)
  82.  
  83. If you have a question, refer to the modem's documentation or contact 
  84. the modem manufacturer.
  85.  
  86.  
  87. Limitations
  88. -----------
  89. DOS applications running at rates higher than 9600 baud might not 
  90. perform correctly because of the multitasking nature of OS/2.
  91.  
  92. Two popular communication-program design styles are interrupt-driven 
  93. and polling-driven. Interrupt-driven communications programs work fine 
  94. with OS/2, for the most part. Polling-driven programs, however, are 
  95. very timing-dependent and timing-critical. OS/2, a preemptive, 
  96. multitasking operating system, might be processing another task during
  97. a particular time slice. During that time slice, a time-critical 
  98. application might not get service, and could go out of synchronization. 
  99. The application vendor should know the design style the application 
  100. uses.
  101.  
  102. ______________________________________________________________________
  103. IBM disclaims all warranties, whether express or implied, including 
  104. without limitation, warranties of fitness and merchantability with 
  105. respect to the information in this document. By furnishing this 
  106. document, IBM grants no licenses to any related patents or copyrights.  
  107. Copyright (c) 1994, 1996 IBM Corporation. Any trademarks and product 
  108. or brand names referenced in this document are the property of their 
  109. respective owners. Consult your product manuals for complete trademark 
  110. information. 
  111.