home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 36 Tips / 36-Tips.zip / osmkport.txt < prev    next >
Text File  |  1997-04-08  |  4KB  |  97 lines

  1. OSMKPORT - DETERMINING IF OS/2 IS RECOGNIZING COM PORTS, AND
  2.            RUNNING DEBUG
  3. 01/04/96
  4.  
  5. =======================================================================
  6.     Determining if OS/2 Is Recognizing COM Ports, and Running DEBUG
  7. =======================================================================
  8.  
  9. Please Read Entire Document for Full Explanation of Procedure
  10. -------------------------------------------------------------
  11.  
  12. DESCRIPTION
  13.  
  14. Experiencing modem and COM-port problems.
  15.  
  16. RESOLUTION
  17.  
  18. Determining if OS/2 Is Recognizing COM Ports
  19. --------------------------------------------
  20. 1. Type MODE COMx and press Enter (x is 1 for COM port 1, 2 for COM
  21.    port 2, and so on). The following information should be returned:
  22.  
  23.       BAUD       = 1200         PARITY     = EVEN
  24.       DATABITS   =  7           STOPBITS   = 1
  25.       TO         = OFF          XON        = OFF
  26.       IDSR       = OFF          ODSR       = OFF
  27.       OCTS       = OFF          DTR        = ON
  28.       RTS        = ON           BUFFER     = AUTO
  29.  
  30.    If the information is correct, the COM port is recognized.
  31.  
  32.    Note: A 16550 UART is recommended for high-speed serial
  33.          communications.
  34.  
  35.  
  36. 2. Type ECHO ATA>COM1 and press Enter to test a modem on COM1.
  37.  
  38.    If the modem makes high-frequency sounds or clicks, OS/2 is
  39.    recognizing the modem. The problem might be with the application you
  40.    are using.
  41.  
  42. If the COM port is not seen, use DEBUG to determine if the port
  43. addresses are in the correct position or if the COM ports are just not 
  44. installed. If the COM ports are not installed, an IRQ conflict could 
  45. exist, or parameters are not being passed to COM.SYS.
  46.  
  47. Running DEBUG
  48. -------------
  49. 1. From an OS/2 or DOS window, type DEBUG and press Enter.
  50.  
  51. 2. At the prompt, type D 40:00 and press Enter. Data appears on the
  52.    screen.
  53.  
  54. 3. Read the following to determine the data you need; then type Q and
  55.    press Enter to exit.
  56.  
  57. The data that appears on the screen consists of:
  58.  
  59. * Addresses on the left
  60. * Hexadecimal pairs denoting values of different locations
  61. * ASCII representations on the right
  62.  
  63. The hexadecimal data consists of two sections divided by a dash ("-"). 
  64. Each section consists of 8 hexadecimal pairs representing 4 values. 
  65. The COM-port information, which is what you're looking for, is in the 
  66. left section of the first line. If all 4 COM ports are installed, the 
  67. section reads:
  68.  
  69.    0040:0000 F8 03 F8 02 E8 03 E8 02
  70.  
  71. The first pair of values following 0040:0000 represents COM1, the
  72. second pair, COM2, and so on. The data is listed in Major/Minor code 
  73. sequence, which results in an address of 3F8, for example, being 
  74. expressed as F8 03. So the addresses for the COM ports are:
  75.  
  76. * COM1: 3F8 
  77. * COM2: 2F8
  78. * COM3: 3E8
  79. * COM4: 2E8
  80.  
  81. If any pair is 00 00, that COM port is not installed.
  82.  
  83. Note: The OS/2 mouse driver masks the port address. So if 00 00
  84.       appears, check to see if the mouse is installed in that port.
  85.       A mouse that connects to the mouse port, or a bus mouse (one that
  86.       has its own adapter), typically does not use a COM port.
  87.  
  88. ______________________________________________________________________
  89. IBM disclaims all warranties, whether express or implied, including 
  90. without limitation, warranties of fitness and merchantability with 
  91. respect to the information in this document. By furnishing this 
  92. document, IBM grants no licenses to any related patents or copyrights.  
  93. Copyright (c) 1994, 1995 IBM Corporation. Any trademarks and product 
  94. or brand names referenced in this document are the property of their 
  95. respective owners. Consult your product manuals for complete trademark 
  96. information. 
  97.