home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 36 Tips / 36-Tips.zip / alltips.zip / MKCM02.FAX < prev    next >
Text File  |  1994-12-10  |  3KB  |  168 lines

  1. Async Communications and Performance     8/12/94
  2.  
  3. file name
  4.  
  5. OSMKCM02.FAX
  6.  
  7.  
  8.  
  9. TITLE
  10.  
  11. Asynchronous Communications and Performance Issues
  12.  
  13.  
  14.  
  15. DESCRIPTION OF SYMPTOMS
  16.  
  17. My modem is slow.
  18.  
  19. My modem looses data.
  20.  
  21.  
  22.  
  23.  
  24.  
  25. SUMMARY OF RESOLUTION
  26.  
  27. 1. The correct DOS setting for asynchronous communications.
  28.  
  29. 2. Config.sys settings that may effect performance.
  30.  
  31. 3. Application settings that may effect performance.
  32.  
  33. 4. AT modem commands that may effect performance.
  34.  
  35.  
  36.  
  37. DETAILS OF RESOLUTION
  38.  
  39. 1.     COM_DIRECT_ACCESS     =         OFF
  40.  
  41.     COM_SELECT        =        COMx (x = port # the application is using)
  42.  
  43.     COM_HOLD            =        ON
  44.  
  45.     COM_RECEIVE_BUFFER_FLUSH    =    NONE
  46.  
  47.     HW_TIMER            =        ON
  48.  
  49.     HW_ROM_TO_RAM        =        ON
  50.  
  51.     IDLE_SECONDS        =        60
  52.  
  53.     IDLE_SENSITVITY        =        100
  54.  
  55.     DOS_HIGH            =        ON    (optional)
  56.  
  57.     DOS_UMB            =        ON    (optional)
  58.  
  59.  
  60.  
  61. 2.    MAXWAIT             =        1
  62.  
  63.     DISK_IO_PRIORITY    =        OFF    (may get system performance hit)
  64.  
  65.  
  66.  
  67. 3.    Most applications provide the capability to set hardware
  68. handshaking. This setting may         also be disguised as RTS / CTS
  69. handshaking.      When this setting the application becomes         aware
  70. of hardware handshaking. This allows the application to stop and
  71. start according to         the  modem's speed.    
  72.  
  73.  
  74.  
  75.     For higher speeds lock the modem at a speed higher than the
  76. expected connecting speed.         Sometimes locking at too high of a
  77. speed can cause problems. Turn on error correction         and data
  78. compression. On BBS connections ANSI graphics will be
  79. compressed, thus         increasing performance. For file transfers
  80. use Zmodem protocol when possible. Zmodem         is a streaming
  81. protocol and can be 60% faster than earlier block protocols.
  82.  
  83.  
  84.  
  85. 4.     The Hayes compatible modem has a rich set of AT commands
  86. designed to control the         performance and various attributes of
  87. the modem. Attributes such as Data Compression         and Error
  88. Correction are normally set as defaults on most modems. Usually
  89. this will be         indicated by an indicator light on most external
  90. modems. AT&F&K3&Q5 are the     commands used by one popular modem
  91. manufacturer to turn on the fore mentioned         attributes. For a
  92. detailed list of these commands look in the reference manual
  93. shipped with     your modem.
  94.  
  95.  
  96.  
  97.     To send commands to the nonvolatile string in your modem use
  98. the following string as an     
  99.  
  100.     example.
  101.  
  102.  
  103.  
  104.     echo "AT commands &Wn" > COMx
  105.  
  106.     (commands = Hayes AT commands compatible with your modem)      
  107.  
  108.     (n = 0 or 1, x = com1 through com4)
  109.  
  110.  
  111.  
  112. * when in doubt see the modem's owner manual or contact modem
  113. manufacturer.
  114.  
  115.          
  116.  
  117.  
  118.  
  119.  
  120.  
  121. LIMITATIONS
  122.  
  123.  
  124.  
  125. DOS applications running at BAUD rates higher than 9600 may not
  126. perform correctly due to the multi-tasking nature of OS/2.
  127.  
  128.  
  129.  
  130. There are two popular communications program design styles
  131. "interrupt driven" and "polling driven". interrupt driven
  132. communications programs work fine with OS/2 for the most part.
  133. However "polling driven" programs are highly timing dependent
  134. and timing critical. OS/2 being a pre-emptive multi-tasking
  135. operating system may be processing another task during a
  136. particular time slice. During that time slice a time critical
  137. application may not get service; this can result in an
  138. application going out of synch. The vendor of the application
  139. should know which design style the application adheres to.
  140.  
  141.     
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.     
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167. 12/31/99
  168.