home *** CD-ROM | disk | FTP | other *** search
/ Boston 2 / boston-2.iso / DOS / HILFEN / MODEM / MDOC41 / MODEMD41.EXE / MDR4DOC.TXT < prev    next >
Text File  |  1991-10-09  |  140KB  |  2,783 lines

  1.                __________________________________________________
  2.                                      T H E 
  3.                                    M O D E M
  4.                                   D O C T O R
  5.                                Version 4.0S / 4.0R
  6.                          Hank Volpe copyr. 1989,1990,1991
  7.                                  P.O. Box 43214
  8.                                Baltimore MD 21236      
  9.                __________________________________________________
  10.  
  11.          Section 1.
  12.          What's new in Version 4.0 .................................3
  13.          Forward ...................................................5
  14.          Introduction...............................................6
  15.          Section 2. Starting MDR....................................8 
  16.          Section 3. First Time Setup................................9
  17.             A. Test Modem/Uart.....................................10
  18.             B. Uart Tests .........................................12
  19.             C. Return to main menu ................................13
  20.          Section 4. The Main Menu..................................14
  21.             4.01 Hot-Key Selection ................................14
  22.             4.1  Login In Comm ports ..............................14
  23.             4.11 What do IRQ's and Comm ports do?..................15
  24.             4.12 Port assignments and their meanings...............15
  25.             4.13 Testing Defective Ports...........................17
  26.             4.2  Regs .............................................17
  27.             4.30 Handshaking tests ................................25
  28.             4.31 Carrier Tests ....................................26
  29.             4.31 Modem Driver modules..............................26
  30.             4.32 Types of Carrier Tests............................27
  31.             4.33 AT Instruction Set tests..........................27
  32.             4.34 Uart or Dumb Modem Tests..........................29
  33.             4.35 Error Messages....................................29
  34.             4.36 IRQ Failures .....................................30
  35.             4.4  Loopback Tests ...................................30
  36.             4.41 Loopback test error messages......................32
  37.             4.5  Options Mode .....................................32
  38.             4.51 Interactive Mode .................................33
  39.             4.52 View Current stats ...............................33
  40.             4.53 Print Current stats ..............................33
  41.             4.54 Reset Current status .............................33
  42.             4.6  Setup Mode .......................................34
  43.             4.7  Exit Program .....................................35
  44.          Section 5.Error messages and their meanings...............35
  45.             5.1  General Errors/Warnings...........................36
  46.             5.2  Setup Mode diagnostics............................37
  47.             5.3  Uart Diagnostics .................................40
  48.             5.4  Report Generator messages.........................40
  49.             5.5  Static Handshaking messages.......................41
  50.  
  51.  
  52.  
  53.  
  54.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  55.                                       Page2
  56.             5.6  Carrier & dynamic messages........................42
  57.             5.7  General program warnings .........................43
  58.          Section 6. Special Modes and Information .................47
  59.             6.1  Using Modem Drivers ..............................47
  60.             6.11 External Modem Drivers ...........................48
  61.             6.2 Using the Command Line switch /s ..................49
  62.             6.3 Using the Hot-Keys ................................51
  63.             6.4 Logging in defective ports.........................52
  64.             6.5 What tests cannot do ..............................53
  65.             6.6 Quirks with some modems ...........................53
  66.          Section 7. Benefits of Registration ......................54
  67.            
  68.  
  69.  
  70. All of the documentation text contained in this file is copyrighted 1989-
  71. 1991 by Hank Volpe. This file is the technical reference manual that
  72. accompanies the Modem Doctor. This manual has been written for the expert
  73. user who would like to have background information on how the Modem Doctor
  74. conducts its various tests. It also catalogs the many error messages and
  75. their meanings, explains some of the mnemonics used in testing, and
  76. contains a brief history of the different versions of the program.
  77. Distribution of this text without the Modem Doctor shareware version and
  78. its support files, or distribution of the Modem Doctor shareware version
  79. is prohibited by the author.
  80.  
  81.  
  82.  
  83.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  84.                                       Page3
  85.                   -------------------------------------------
  86.                     What's New in Modem Doctor Version 4.0
  87.                   -------------------------------------------
  88.  
  89. For those of you familiar with Modem Doctor, here is a brief look at the
  90. improved and added features of version 4.0. If you are new to Modem
  91. Doctor, take a look at the users manual file (MDRFIRST.TXT) that
  92. accompanies your Modem Doctor package.
  93.  
  94. Some of the improved and added features of Modem Doctor 4.0 include;
  95. 1) Expanded on-line help. Each menu section has help available from the 
  96.      main menu or by pressing ALT-H.
  97.  
  98. 2) Expanded use of hot keys -
  99.    a) Alt-F is now a force micro on/off line toggle.
  100.    b) Alt-B changes baud.
  101.    c) Alt-H selects help (as noted above).
  102. All of these keys operate, even inside of menu selections.
  103.  
  104. 3) Improved Menu system -
  105.    a) Selection Bar remembers your last selection.
  106.    b) Escape or left-right arrows quit a selection menu.
  107.  
  108. 4) New Alert-Bar functions point out setup or assignment errors.
  109.  
  110. 5) New Diagnostics and enhancement of some previous diagnostics
  111.      a) Setup Mode
  112.              1) Maximum Baud rate  is now 56k.
  113.              2) Confirms Uart Dlab register sets to the correct
  114.                 baud rate.
  115.              3) Expanded Error message explanations.
  116.              4) Checksum test of Modem microprocessor memory.
  117.              5) Addition of a Color Selection Mode
  118.                 - You can use default colors, monochrome shades
  119.                   or save a color setup to a file (MDR.CFG).
  120.  
  121.      b) Options Mode (formerly Manual Mode) expanded to include a report
  122.         generator which keeps track of which diagnostics have been run
  123.         and how successful they have been. You can use this menu to;
  124.              1) View current statistics.
  125.              2) Reset them to zero.
  126.              3) Print them to a file or a printer.
  127.  
  128.      c) Loopback tests
  129.              1) Speed of Digital test improved for tri-state uarts
  130.                 to equal speed of 8250's.
  131.              2) Auto-detection of IRQ failures.
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  139.                                       Page4
  140.      d) Carrier tests
  141.              1) Auto detection of carrier fallback to a slower baud rate
  142.                 (important for fixed-DTE modems).
  143.              2) Auto detection of IRQ failures.
  144.              3) Addition of Several new modems for comprehensive carrier
  145.                 tests.
  146.              4) Future file capability. Modem Drivers can be accessed from
  147.                 an external file which makes it possible to update support
  148.                 for new or custom modems without updating to a new version
  149.                 of software. Any future use of this (with the exception of
  150.                 custom-created drivers) will be at no cost.
  151.  
  152.  
  153.      e) Login
  154.              1) Checks for proper DOS assigned COM1 and COM2 addresses,
  155.                 prompts user for correction if desired.
  156.  
  157.      f) Regs
  158.              1) Addition of several handshaking tests to make sure that
  159.                 modems and computers are communicating properly. You can
  160.                 set your modem to use this handshaking for the tests or
  161.                 to use its current default settings;
  162.  
  163.                 a) DTR/DSR & RTS/CTS - This test checks that handshaking
  164.                    signals are implemented between the modem and the
  165.                    Uart.
  166.  
  167.                 b) Dynamic RTS/CTS - The RTS signal to the modem is
  168.                     dropped and characters are sent in a simulated carrier
  169.                     connection. If the modem works properly, it will not
  170.                     send any characters back to the Uart until the RTS
  171.                     line is raised again.
  172.  
  173.                 c) Dynamic Xon/Xoff - This works like the RTS/CTS test
  174.                    except it uses the Xon/Xoff ascii characters as its
  175.                    control mechanism.
  176.  
  177.  
  178.  
  179.  
  180.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  181.                                       Page5
  182.  
  183. Forward
  184. -------
  185.         
  186. Welcome to the Modem Doctor. This documentation along with the program is
  187. a good source of information about how Uarts and Serial Ports work with
  188. Modems in your Personal Computer.
  189.          
  190. There are two versions of the Modem Doctor; The shareware version 4.0S and
  191. the registered Version 4.0R. There are some differences between the two.
  192. Both however are full-functioned diagnostics tools. The differences
  193. between the  two are as follows;
  194.          
  195.          Version 4.0S supports COM1 through COM4 
  196.          Version 4.0R supports COM1 through COM8
  197.          
  198.          Version 4.0S supports speeds to 2400 bps
  199.          Version 4.0R supports speeds to 56,000 bps
  200.          
  201.      Version 4.0S does not include Manual Log-in of Comm ports, the
  202.      Digital or the Analog Loopback testing, or any of the dynamic
  203.      handshaking tests supported in version 4.0R, or the /s or /x 
  204.      command-line modes of operation.
  205.          
  206. This documentation covers both versions, however the feature differences
  207. above are provided for your reference.
  208.           
  209. This manual is provided as a technical reference for advanced users or for
  210. those wishing to get more background information on tests. For first time
  211. users I would suggest reading the Getting started Manual text file
  212. MDRFIRST.TXT, which is a little more basic in its approach.
  213.  
  214. I sincerely hope that you take a good look at the program and the
  215. documentation. The Modem Doctor is about as complete a diagnostic tool you
  216. can find for your serial port and modem. A complete program history
  217. follows the documentation. The Modem Doctor versions 2.2 and 3.0 were
  218. received very well nationally and internationally, Version 4.0 now adds
  219. more tests, more user features and more flexibility for you to use. Thanks
  220. to those that have registered and have made the Modem Doctor a viable
  221. package for all of us that sincerely enjoy using modems.
  222.          
  223. If you are using the shareware version and wish to order, please use the
  224. Order form included with this package or see Section 7, Benefits of
  225. registration at the end of this documentation.
  226.  
  227.  
  228.  
  229.  
  230.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  231.                                       Page6
  232.  
  233. Section 1. Introduction - 
  234. ------------------------- 
  235. The Modem Doctor is a professional diagnostic tool designed to work with
  236. IBM-PC's and compatibles. There are two versions of the Modem Doctor, the
  237. shareware version and the registered version. The registered version of
  238. the Modem Doctor contains complete diagnostics for 8250-B, 8250-A, 16450,
  239. 16550, 16550A(x), and compatible Uarts, RS-232 data lines, and carrier
  240. tests. Some of the many diagnostic features of the registered version are; 
  241.              
  242.  **  Support for COM 1 through COM 8 using system IRQ's 3,4,5 or 7.
  243.  **  Baud Rates from 300 to 56000 !! NEW !!!
  244.  **  Support for Courier HST/Dual Standard/V.32 Modems [+],
  245.      Hayes 1200, 2400, Ultra and V9600 series Modems [+*].
  246.  
  247.  **  Auto-detection of modems that use &T0 diagnostics      
  248.  **  Auto log-in of COMM ports 1 - 4 to DOS for use by other programs.
  249.  **  Manual log-in of up to 8 COMM ports for non-standard hardware,
  250.      including those with defective Uarts (on manual selection). 
  251.  
  252.  **  On-screen display of all 8250 /16450/ 16550 Uart registers.
  253.  **  On-screen display of modem S-Registers.
  254.  **  Full Diagnostic tests of Uart and RS-232 Channels including;
  255.        -- ALL Uart registers.
  256.        -- ALL RS-232 handshaking Signals.
  257.        -- 8259 Interrupt Controller mask registers 
  258.        -- Digital loopback Uart tests including chips with Tri-stated 
  259.           OUT2 signals.
  260.        -- Analog loopback data tests.
  261.  
  262.   **  Full diagnostic checks of "AT" instruction set modems;
  263.        -- Carrier tests on both originate and answer frequencies.
  264.        -- Carrier test interface for "dumb" modems or data channels.       
  265.        -- Modem microprocessor command channel diagnostics.
  266.        -- Support for high speed modems.           
  267.        -- Support for modems that use the alternate &T0 self test mode. 
  268.        -- Dynamic simulated on-line testing of RTS/CTS and XON/XOFF 
  269.           handshaking.
  270.        -- Static DTR/DSR and RTS/CTS uart handshaking tests.
  271.           
  272.   **  Interactive Mode with 4K communications buffer for;    
  273.       -- TTY mode interactive communications over serial port or modem 
  274.           while on-line.
  275.       -- Custom designed tests...help menu included.
  276.       -- On-line "Hot-key" viewing of 8250 Uart registers.
  277.  
  278.   **  Hot-Keys for selecting the baud rate, and to force a modem
  279.           microprocessor test mode. 
  280.  
  281.   **  User Selection of modem drivers. Like printer drivers, these
  282.           software modules add more selections and more test capability to
  283.           The Modem Doctor. 
  284.  
  285.  
  286.  
  287.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  288.                                       Page7
  289.  
  290.   **  Ability to use external modem drivers. External modem drivers
  291.           make it possible to add special modems that might not use
  292.           standard AT conventions to the Modem Doctor without you having
  293.           to update to a new version of the program !! NEW !!
  294.  
  295.   **  Built in report generator that displays the results of all tests run
  296.           on all serial ports and modems. Report can be printed at any
  297.           time and reset at any time by the user. !! NEW !!
  298.  
  299.   **  Status bar that continuously displays the port, speed,
  300.           microprocessor status, and modem driver selections.
  301.  
  302.   **  User defined Colors for all screens !! NEW !!
  303.   **  Compatibility with mouse drivers. !! NEW !!
  304.   **  Command Line Mode interface for setting up a modem to an
  305.           initialization string contained in a user created file;
  306.      -- A small text file contains the port (and optional address), the
  307.      speed, and the string to send to the modem. Any text editor can
  308.      create the file at any time!
  309.  
  310.   **  Automatic detection of incorrect Com1 and Com2 port assignments,
  311.       IRQ assignment errors, missing IRQ signals, and missing handshake
  312.       signals.
  313.          
  314. The Modem Doctor and all of its documentation is copyrighted by Hank
  315. Volpe. The shareware version of this program may be distributed on
  316. bulletin board systems or in public domain libraries as long as a fee is
  317. not charged for its duplication or acquisition (except for BBS systems
  318. that charge a user fee for system access). If you are a shareware
  319. distributor and have received permission to distribute past versions of
  320. the Modem Doctor, you are granted permission also for version 4.0 as long
  321. as you follow the same guidelines for distribution as before. Under 
  322. no conditions can anyone accept payment for the Modem Doctor but Hank
  323. Volpe or agents authorized for resale by Hank Volpe. The Modem Doctor is
  324. distributed on as "as-is" basis, with no warranties for usefulness or
  325. suitability expressed or implied. Users of the shareware version are
  326. granted a limited license to use this program for a trial period only.    
  327. Please let your conscience be your guide as to what you believe has been a
  328. fair trial period, for without the support of users who have registered,
  329. the Modem Doctor would not be the product that it is today.
  330.  
  331.  
  332. The Modem Doctor is a very flexible package for both the new user and for
  333. the experienced technician. The focus of this manual is to give you a
  334. technical reference regarding how the Modem Doctor works, what is the
  335. meaning of error messages you may encounter, and how the tests are
  336.  
  337.  
  338.  
  339.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  340.                                       Page8
  341. constructed to operate between your PC and your modem. First time users or
  342. those unfamiliar with how the Modem Doctor operates should read the file
  343. MDRFIRST.TXT. MDRFIRST explains how to start and use the Modem Doctor, how
  344. the pulldowns operate, and how to use the menu and control system.      
  345.  
  346. Section 2. Starting MDR     
  347. ------------------------     
  348. The Modem Doctor has been designed to work with PC-Type serial ports and
  349. "AT" instruction set (so called Hayes compatible[++]) modems. The Modem
  350. Doctor requires at least 1 serial port to operate. MDR is written to run
  351. under MS or PC DOS 2.2 or higher, and will work with any standard display
  352. adaptor in normal text mode. The program requires at least 200K of program
  353. memory space. When MDR is started, it will use the last text mode that the
  354. display adaptor was in before the Modem Doctor started. If you have
  355. created a custom color file (see Options mode), your screen colors will be
  356. displayed as you selected them. If not, default colors will be loaded
  357. depending on the mode you are currently in (Color or Black /White). 
  358. Modem Doctor starts just like any other program. From the dos prompt, type
  359. MDR. There are however several command line switches you might need to use
  360. from time to time.
  361.  
  362. The /B switch
  363. -------------
  364. Code has been included to work with hardware-incompatible display adapters
  365. as long as they are at least IBM-PC Bios compatible. For most computers,
  366. this is not necessary and will slow down screen displays, plus it will
  367. change the appearance of the input windows. The reason for using this
  368. switch is (for example), if you wish to route the output of the program
  369. through a voice synthesizer or operate it under a program that requires
  370. all screen writes to go through your Bios. If you wish to use this bios
  371. compatible mode instead of direct display writes, start the program using
  372. the Bios switch ;   MDR /B 
  373.          
  374. The /S switch
  375. --------------
  376. Registered versions 4.0 and higher also can be run to quickly program and
  377. setup a Modem. To use this mode start the program with the setup switch ;
  378. MDR /S (see Section 3). 
  379.  
  380. The /X switch
  381. --------------
  382. Registered versions 4.0 and higher have the ability to swap the
  383. communication pointers for COM1 and COM2 in memory. To use this mode, type
  384. MDR /X. Com1's pointer will be swapped to COM2 (and visa versa).  You can 
  385. specify any one of the 4 comm ports used by dos by typing;
  386.  
  387. MDR /X [port] [port], 
  388. where each [port] is a different comm port..ie to swap Com1 and Com3, type 
  389. MDR /X 1 3. MDR /X without port numbers flips com1 and com2 by default. This 
  390. condition is not permament. To flip these again, just type MDR /X  or if you 
  391. used comm numbers, type MDR /X [port] [port]. The reason for this command 
  392. line switch is for convienence and also
  393.  
  394.  
  395.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  396.                                       Page9
  397. to make it easier for technicians to swap port assignments
  398. without having to change port jumpers. This mode is not generally useful
  399. except when you believe you have addresses set incorrectly or if you wish
  400. to use a serial device that is normally Com2 as Com1 (such as a serial
  401. printer) from a high-level language that does not support 2 comm ports.
  402. These changes are temporary. Permanent fixes can only be done in these
  403. cases if you physically change the addresses on your serial card.
  404.          
  405.  
  406. Section 3. First Time Setup     
  407. ---------------------------     
  408. The first time you start the Modem Doctor, it will begin several system
  409. checks. These checks are not repeated until you start the program over
  410. again from the Dos prompt. First, the Modem Doctor checks to see what
  411. hardware is available and reports its results to you. Displayed on the
  412. bottom line is the serial number unique to each copy (registered version).
  413. If incorrect COMM addresses are detected or if swapped addresses are
  414. detected, an Alert-bar will be displayed, warning you that a non-standard
  415. assignment was detected, and you are asked if you wish to have this fixed
  416. for testing purposes only.    
  417.          
  418. Next, you are instructed to pick from a list of valid Comm ports. The only
  419. ports that are listed are valid ports that MDR found when it first
  420. started. The registered version allows you to add ports that are not
  421. "standard" ports, (check the section on Login). Use the arrow keys to find
  422. your selection, and then press return to select.
  423.          
  424. A window now opens showing you valid Comm port speeds. Select a speed from
  425. this menu. Please note, don't select a speed faster than your modem can
  426. handle. The reason for faster speeds is so communication links can also be
  427. tested.  Use the arrow keys and press return to make your selection.
  428.          
  429. At this point you are in the options menu. If you select "Test Modem", a
  430. series of commands and tests will be performed. Please check to make sure
  431. the modem is on line and running. If you select "Test Uart Hardware", only
  432. the Uart will be tested. The modem will not be setup. This selection is
  433. useful only if you wish to test an RS-232 line or a "dumb" modem.
  434. Selection 3 aborts to the main menu. (NOTE: Version 4.0 includes "hot-
  435. keys" to force the Modem Doctor to believe you are using a modem with a
  436. microprocessor and for changing the baud rate. Read Section 4 on the menu
  437. system for more details).       
  438.  
  439.  
  440.        
  441.  
  442.  
  443.  
  444.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  445.                                      Page10
  446.  
  447. A. Test Modem/ Uart     
  448.   ---------------------
  449.                     Preliminary Diagnostic Checks of Hardware 
  450.                    ----------------------------------------- 
  451.                        A 16550AN Uart has been detected  
  452.                   Confirmed Uart setup to proper baud rate
  453.  
  454.                         Testing Modem Microprocessor
  455.                          ---------------------------- 
  456.                    Modem Microprocessor Command Bus Active  
  457.                    Modem reports a 9600 bps Modem installed 
  458.                      Modem Microprocessor Memory is OK
  459.  
  460.                  Modem Microprocessor Accepts Setup Commands  
  461.                         Modem Microprocessor ON-LINE  
  462.  
  463.                     Modem - Uart Status appears correct 
  464.                          Press any key to continue        
  465.         
  466.          
  467. The preceding page shows you the results of a normal test with a modem. 
  468. The first step tests the uart to modem hardware. If any connection errors
  469. are discovered, they are reported to the screen. If no errors are
  470. detected, the Modem Doctor will check to see what type of uart is
  471. installed. There are differences between the different types of uarts, and
  472. the Modem Doctor uses this test to determine how to test the uart and what
  473. registers to display to the screen. Next, the uart is set to the desired
  474. baud rate, and the uart speed register is queried to make sure it did set
  475. up properly. Next, the modem command bus is tested and if its compatible,
  476. the modem ID information is queried from the modem microprocessor. The
  477. Modem Doctor then issues a command that forces the modem to run a checksum
  478. of its ram or rom memory. If your modem returns an OK, then the Modem
  479. Doctor assumes your modem passed properly. If an error is returned, you
  480. will receive an error message stating that the modem reported a rom/ram
  481. check failure.  Finally, the modem is setup for diagnostics. Note: These
  482. setup strings do not overwrite any non-volatile storage. 
  483.  
  484. If your modem setup properly, all the uart registers and the First 16
  485. Modem S registers are displayed. This display is not shown the next time
  486. you log in a Comm port unless you press the space bar. If the modem does
  487. not respond to certain parts of the tests, error messages are reported. 
  488.           
  489.  
  490.                          Testing Modem Microprocessor
  491.                          ---------------------------- 
  492.                 Modem Microprocessor Command Mode Not Detected 
  493.                          Software Reset Initiated      
  494.          
  495. This message is displayed if the modem did not respond the first time for
  496. a query to its status. This could happen for any number of reasons,
  497. including that the modem was still on-line and not in the command mode. A
  498. soft-reset is performed, which essentially tries to wake the processor up. 
  499.  
  500.  
  501.  
  502.  
  503.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  504.                                      Page11
  505.  
  506.  
  507.         No Response...resetting Modem Microprocessor ...attempt #1
  508.         No Response...resetting Modem Microprocessor ...attempt #2
  509.         No Response...resetting Modem Microprocessor ...attempt #3
  510.          
  511. After 3 soft-resets, the Modem Doctor assumes that the modem is jammed and
  512. needs a hardware reset. A hardware reset is the program equivalent of
  513. turning the modem on and off again. This is the only way to reset some
  514. internal modems  that get "jammed" when the computer is first turned on. 
  515. Clearing a "jam" usually takes no more than 2 attempts.   
  516.  
  517.  
  518.               Trying Hardware reset of the Modem Microprocessor
  519.          
  520. The Hardware reset is performed, and again the modem microprocessor is
  521. strobed for its status.  
  522.          
  523.                         Software Reset Initiated
  524.          
  525. After a hardware reset, a soft reset is performed again, attempting to
  526. wake the processor up. If this fails, the  following message is displayed; 
  527.          
  528.               Modem Microprocessor Did Not Accept Setup Commands 
  529.               Trying a Hardware reset of the Modem Microprocessor
  530.          
  531.  
  532. After one more attempt at waking the modem up, the Modem Doctor assumes
  533. that the modem is not compatible  and based on the status given it by the
  534. Uart, it will report if the device is off or not connected.  
  535.          
  536.           WARNING..This unit does not have a Compatible Modem attached
  537.          
  538.           WARNING..The Modem Device appears to be off or not connected
  539.  
  540.  
  541.  
  542.  
  543.  
  544.          
  545. The registers are now displayed for diagnostic tests, and a conclusion
  546. based on the status of the registers is displayed. There are many reasons
  547. why the modem/uart could fail. See the error code section for details. If
  548. the Uart is fine, but the modem is not compatible, the program will tell
  549. you that the Uart hardware tests ok and display this in a window to the
  550. right of the register display.        
  551.  
  552.  
  553.  
  554.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  555.                                      Page12
  556.  
  557. Note: The reason for testing the modem command set so extensively is so
  558. there can be no doubt about the modem accepting commands. You can force
  559. The Modem Doctor to believe it has a modem with a compatible
  560. microprocessor by using the hot-key Alt-F. See Section 4 about Menu system
  561. commands.
  562.          
  563. B. Uart Tests     
  564. ---------------     
  565. The uart test is performed every time either the modem or the uart test is
  566. selected. Essentially, the uart test programs all of the registers of the
  567. uart and looks to see that the correct values have been placed in them. If
  568. any one of the registers fails to set, the Modem Doctor will display all
  569. of the registers and a diagnostic message. After that, it looks to see
  570. that an RS-232 loop is active. If not, it displays an error message saying
  571. that the loop is either disconnected or a register in the uart is
  572. defective. If all checks well, the type of uart chip that is installed is
  573. returned. The type of uart chip is important for the way the Modem Doctor
  574. will test and display the uart. Essentially there are 3 types it can
  575. detect;      
  576.          
  577. 8250-B
  578. This is the original uart installed in many PC's and serial port add-on
  579. cards.      
  580.          
  581. 16450/8250-A
  582. This is an upgraded uart that fixes a bug in the interrupt enable register
  583. of the 8250-B and also tri-stated the OUT2 pin of the chip during
  584. loopbacks. It also adds a scratch-pad register as the highest register.
  585. This register is tested by the Modem Doctor but not displayed because it
  586. never has what you would consider as a "correct" setting. The 16450 is   
  587. used primarily in 80286 (AT) systems.
  588.  
  589. 16550
  590. This chip is essentially a faster 16450. However, it cannot be used in a
  591. FIFO buffering mode, but it does allow for a programmer to use multiple
  592. DMA channels and thus increase throughput on an AT or higher class
  593. computer system.      
  594.      
  595.  
  596.     
  597. 16550A(x)
  598. This chip is a faster 16450 with a built in transmit and receive FIFO
  599. buffer. It also allows multiple DMA channel access. You should see this
  600. chip in your 80386 or RISC type machine. You should also consider
  601. installing this chip if you do any serious communications at 9600 bps or
  602. higher while you are multi-tasking. Whenever a 16450,16550 or 16550AN is
  603. displayed, different diagnostics and/or different register mnemonics are
  604. displayed. The 16550AN's ability to enable and disable FIFO mode is also
  605.  
  606.  
  607.  
  608.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  609.                                      Page13
  610. tested. In any case and with any uart, each register is checked for proper
  611. values. If anyone of them fail, a window will open and display a possible
  612. cause for the problem. 
  613.          
  614.  
  615.  
  616.                    Preliminary Diagnostic Checks of Hardware 
  617.                    ----------------------------------------- 
  618.                           Testing Uart Hardware Only  
  619.                           -------------------------- 
  620.                         A 8250-B Uart has been detected 
  621.                       Modem - Uart Status appears correct
  622.          
  623. The first time through these tests, the registers will display for
  624. diagnostics. Unlike the modem tests, only the uart registers are
  625. displayed. From then on, if the test results are correct, you will be
  626. prompted if you wish to have the registers displayed. If a test fails at
  627. any time, you will always see the registers displayed along with an        
  628. appropriate diagnostic message.        
  629.  
  630.  
  631.  
  632.          
  633. C. Return to main menu     
  634. ----------------------     
  635. Selecting this returns you to the main menu, this allows you to change an
  636. entry made in error without having to wait for the diagnostic checks to
  637. fail. In any event, after any of these tests have been run, you will then
  638. enter the Modem Doctor's Main Menu.
  639.  
  640.  
  641.  
  642.  
  643.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  644.                                      Page14
  645. 4.0 The Main Menu
  646. ------------------
  647.  
  648. 4.01 Hot-Key selection 
  649. ----------------------  
  650. In addition to these menu selections, there are three hot-keys that are
  651. active at nearly all times in the Modem Doctor. The ALT-B combination can
  652. be used to change the baud rate from the main menu, from inside pulldowns
  653. and Manual test section. A window will pop-up and you can pick your
  654. desired serial port speed. This can save a lot of time when you wish to
  655. test a modem at various speeds. Using the Setup / Test Modem & Uart
  656. mode is the safest way (because it verifies the modem microprocessor
  657. accepts commands properly at the selected speed), however if you use the
  658. ALT-B command, you will take a short-cut that can help you when testing
  659. your modem. 
  660.        
  661. The next hot-key is ALT-F, or FORCE Micro on-line. Actually, there is no
  662. "force" involved. By pressing this key, you make the Modem Doctor believe
  663. there is a AT Instruction set compatible modem attached. This can be handy
  664. for troubleshooting a modem that doesn't work properly at certain speeds
  665. or under certain conditions.  The Setup Test Modem & Uart section will not
  666. allow any AT Instruction set Carrier tests on modems that it cannot
  667. properly setup. The ALT-F combination bypasses this and allows such
  668. testing. When you press ALT-F, you will notice the Status Bar will say
  669. that a modem microprocessor is on-line.  Version 4.0 now allows this key
  670. to be operated as a toggle between on-line and off-line. This key is
  671. active inside of any menu at any time.
  672.  
  673. The last hot-key is the ALT-H for help. This key will give you varying
  674. levels of help. From the main menu, it gives a terse help just like
  675. pressing the down arrow key does. Inside of a pulldown, it gives you
  676. expanded help, just as selecting the appropriate help section of the
  677. pulldown also does.
  678.  
  679. 4.1 Login In Comm ports     
  680. -----------------------     
  681. When you select this menu, you are offered these choices                   
  682.  
  683.  Let me Auto Detect COMM ports  
  684.  You Manually Enter COMM ports  
  685.  Help with these tests  (the same as pressing ALT-H)
  686.  Return To Main Menu       
  687.  
  688. Option 1 repeats what the Modem Doctor does when you first begin to run
  689. the program. Option 2 allows you to enter a "non" standard port address
  690. and assign one of the two Interrupt lines to use with the Uart. Option 3 
  691.  
  692.  
  693.  
  694. gives you an expanded, on-line help description of these tests. Option 4
  695. returns to the main menu.      
  696.  
  697.  
  698.  
  699.  
  700.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  701.                                      Page15
  702.  
  703. 4.11 What do IRQ's and COMM Ports do ? 
  704. ---------------------------------------      
  705. Each time a character is received by a modem, it has to get the attention
  706. of the computer by raising an interrupt request line (IRQ). PC-type
  707. computers have 8 of these lines, AT-type (ISA bus), MCA and EISA computers
  708. have at least 16. The 8259 Interrupt controller chip handles these
  709. requests for attention. By design, COM1 uses IRQ4 and COM2 uses IRQ3. IRQ7
  710. is assigned to a printer, IRQ5 to the Hard Drives. It is possible to use
  711. COM1 and COM2 or COM3 and COM4 at the same  time, but you cannot use COM1
  712. and COM3 or COM2 and COM4 at the same time because these share IRQ lines.
  713. If you needed to use 3 or more COMM ports at the same time, you would need
  714. to use another IRQ line. The best bets are IRQ7 and IRQ5, because they may
  715. be available when you need them. IRQ7 is really only needed by programs
  716. that use printer interrupts (background type spoolers for example). IRQ5
  717. is used by fixed disks. It may or may not cause a conflict if you use this
  718. IRQ line with your modem. PC type computers are quite limited because they
  719. only have 8 IRQ lines and most are reserved. AT type computers have 16 IRQ
  720. lines. 
  721.  
  722. A good tip would be to consult your hardware manual to find out if you can
  723. or can't use these other IRQ's. However, if you do not need to use 3 or
  724. more COMM ports at one time, then it is best to stick to the reserved IRQ4
  725. and IRQ3 for all of your activity. 
  726.          
  727.          
  728. 4.12 Port assignments and their meaning 
  729. ---------------------------------------  
  730. Like IRQ lines, certain port addresses were reserved to work with the PC's
  731. external hardware devices. Two of these were reserved by all
  732. manufacturers; 3F8 (HEX) and 2F8 (HEX).  Although only two COMM ports were
  733. supported by the original ROM-BIOS, there are two additional port memory
  734. locations available for use by MS-DOS and PC-DOS applications. These
  735. reserved port addresses are 3E8 (HEX) and 2E8 (HEX). Most internal modems
  736. come with these 4 ports as selections along with several IRQ line
  737. combinations.  There is a "quirk" in the way that the ROM-BIOS logs in
  738. these ports. If the Power on self-tests (POST) do not find a 3F8 serial
  739. port but they do find a 2F8, then the 2F8 serial port is mistakenly 
  740. assigned to COM1. To add to this, the reserved IRQ line for COM1 is IRQ4.
  741. But this serial Port of 2F8 is using COM2's  address, which means it needs
  742. IRQ3 instead of IRQ4. So, if you are trying to use Basic, Pascal, or DOS
  743. for COM1 operations, the serial port or modem will not be able to work.
  744. The general rule thus is "No COM1 without COM2". 
  745.  
  746.  
  747. The Modem Doctor when it is run will detect this log-in problem and
  748. display an "alert-bar" with a message to you that points out this error.
  749. You can then elect to correct this for the purposes of testing. Remember
  750. though, you can only fix these addresses permanently by changing the
  751. settings on your serial port or internal modem. You can run Modem Doctor
  752. with the /X switch to fix this problem at boot time until you do change
  753. the address settings permanently. The addresses for PC's are standardized
  754. in order for communication programs to properly work. As stated above, the
  755. industry standards are;      
  756.          
  757.          COMM 1  3F8   COMM 2  2F8    COMM 3  3E8    COMM 4 2E8
  758.          IRQ4          IRQ3           IRQ4           IRQ3      
  759.  
  760.  
  761.  
  762.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  763.                                      Page16
  764.          
  765.          COMM 5  3F8   COMM 6  2F8    COMM 7  3E8    COMM 8  2E8
  766.          IRQ7          IRQ7           IRQ5           IRQ5      
  767.          
  768.          
  769. The port addresses for serial ports (1-4) are held in a reserved area of
  770. memory. The "base port" of each of these uarts is saved in a distinct
  771. area. When you first start the Modem Doctor, the program checks these
  772. locations to see if there are any Comm ports already logged in by Dos. If
  773. not, a search is conducted for the PC's default Comm 1 and Comm 2 port
  774. values and these are logged in. Next, a search is performed for the other
  775. industry standard Comm ports. Some PC's already log these in, however
  776. IBM-PC's and those that mimic exactly their ROM-BIOS routines do not log
  777. in a COMM 3 or a COMM 4. The Modem doctor does log these in, and as a side
  778. benefit, these stay logged in until the next warm or cold boot is 
  779. performed on your computer. Why would Dos not log in a port? Well, some
  780. multi-tasking programs overwrite this area to prevent "swapping" of
  781. communication programs and it is possible that they might not be properly
  782. restored on exit. Next, a search is made for the custom comm ports 5-8.
  783. These ports are not held in DOS at all, but are held in program memory by
  784. the Modem Doctor after a user logs the port in using the Manual log-in
  785. mode (see below). If one of these ports is found, it will be added to the
  786. comm port option menu for you to use when you test the modem.  The reason
  787. for the custom ports is to help users who are using non-standard interrupt
  788. lines (IRQ7,IRQ5). Unlike the Dos logged-in ports, these assignments
  789. disappear when the Modem Doctor is exited. The Modem Doctor follows the
  790. accepted arraignment of these comm Port /IRQ line pairings. However, you
  791. do have full control at all times over all port addresses and IRQ
  792. assignments and can change them using the Manual Login mode.  
  793.  
  794. As far as the 2 Options presented by the Login Mode, option 2 is the only 
  795. real option available. Please use it with caution. The only need for this
  796. option is for logging in a comm port that does not use any of the listed
  797. industry standards as its base port address or IRQ line assignments.
  798. Consult your serial port or Modem's user manual to make sure you enter the
  799.  
  800.  
  801. exact port address and select the correct Interrupt line to use with it.
  802. Otherwise the Modem Doctor will not recognize or be able to test any
  803. device hooked to this port. Protection is included in this routine to keep
  804. someone from accidentally entering a port that is used by the system
  805. board, display adapters, or fixed disk adaptor. Entering any of these
  806. values, or an error, will result in the display;
  807.  
  808.                  "WARNING...RESERVED port...RETRY ENTRY"      
  809. After running option 1 or 2 , you must tell the Modem Doctor which comm
  810. port you wish to use so that testing can begin. Pressing the ESCAPE key or
  811. pressing a left or right arrow key works the same as Option # 3 and
  812. returns you to the main menu.              
  813.  
  814.  
  815.  
  816.  
  817.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  818.                                      Page17
  819. 4.13 Testing defective Ports 
  820. ----------------------------  
  821. Whenever the Modem Doctor checks to see if a port is working properly, it
  822. checks the status of several registers. If a uart appears "dead", the
  823. Modem Doctor will tell you that the port was not "found". You can use the
  824. Manual mode and override this determination. This allows you to test a
  825. defective port to find out what is wrong. If you tell the Modem Doctor for
  826. example to use serial Port 2F8 as COM2  and you do not have a COM2, the
  827. message "COM2 not Found" will be returned with an option "Override [Y/N]
  828. ?". Answering "Y" will force the login of this port.  Certainly there is
  829. no benefit to testing a non-existent port, but a port that is defective
  830. may not be logged-in. So, you now have the option to test this defective
  831. port hardware to pinpoint a problem. Combined with the register display
  832. and diagnostics, you will most likely be able to pin-point any uart
  833. problem quickly and easily. 
  834.          
  835. 4.2 Regs     
  836. -------------      
  837. The register display section can be an invaluable diagnostic tool. What
  838. this does is "poll" all of the status registers of the uart, and the
  839. interrupt controller to tell you exactly what is going on.  When you use
  840. the setup mode, the Modem Doctor checks all of these registers for correct 
  841. information. If something wrong is discovered, a warning is displayed on
  842. the screen telling you what the Modem Doctor believes is wrong. Many
  843. different error conditions are checked, see the error code section for a
  844. listing. Each register contains a Mnemonic for each one of the data bits.  
  845. Bits that are a logic low ( = 0) are displayed in low intensity, those
  846. that are a logic high (= 1) are displayed in high intensity. On a color
  847. monitor, this is easy to see. On a Mono Monitor, make sure you have the 
  848. brightness and contrast controls properly adjusted to see the difference
  849. between the two status conditions.  (Note: Version 4 allows you to pick
  850. your own custom colors, however, it will still alternate between high
  851. intensity and low intensity shades of the colors you select for the uart
  852. register displays).
  853.  
  854.  
  855.  
  856.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  857.                                      Page18
  858.       
  859.          
  860. -[ Line Control Register ]----------      
  861. |  DLB STB STP EPS PEN STB WS1 WS0  |     
  862. ------------------------------------      
  863. This register controls many of the setup characteristics of your uart and
  864. how it behaves to your PC. This register is responsible for setting baud
  865. rate, setting break code transmission, parity, and the length of the
  866. serial stream  word. 
  867.          
  868. DLB    Divisor Latch          Used to access the baud rate registers.      
  869.                               Should be low for all displays.
  870.          
  871. STB    Set Break              If high, the modem transmits a
  872.                               break signal, should be low normally.      
  873.  
  874. STP    Stick Parity           Should be low normally    
  875. EPS    Even Parity select     High = even parity..should be low normally   
  876. PEN    Parity Enable          Enable parity checks, should be low normally
  877.  
  878. STB    Stop Bits              Number of stop bits, should be low normally  
  879.                               to indicate 1 stop bit character only.
  880.  
  881. WS1    Word Length Select 1     
  882. WS0    Word Length Select 0   These two bits are used to determine the     
  883.                               serial data word length. Both should be high 
  884.                               normally to indicate a length of 8 bits.
  885.          
  886.  
  887.  
  888.  
  889.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  890.                                      Page19
  891.          
  892.  
  893. -[ Line Status Register ]----------- 
  894. |      TSE THE BI  FE  PE  OE  DR   |      
  895.  ___________________________________      
  896.          
  897. The line status register reports error conditions that might have occurred
  898. between the PC and the Uart.      
  899.  
  900. TSE    TX Shift Register      A high indicates that all characters         
  901.                               sent to the Uart were transmitted.  Should
  902.                               be High Normally.      
  903.  
  904. THE    TX Holding Register    A high indicates that the Uart can now       
  905.        Empty                  accept a new character from the PC. Should 
  906.                               be high normally. 
  907.  
  908. BI     Break Interrupt        A high indicates that a break signal was     
  909.                               received. Should be low normally.      
  910.  
  911. FE     Framing Error          A high indicates that a serial data train 
  912.                               did not have a proper stop bit. Should be
  913.                               low normally.   
  914.  
  915. PE     Parity Error           A high indicates that the received serial    
  916.                               data's parity did not match what the uart
  917.                               was programmed to receive. Should be low     
  918.                               normally.     
  919.  
  920. OE     Overrun Error          A high indicates that a character in the     
  921.                               receive buffer was not read by the PC in     
  922.                               time, and another character overwrote and
  923.                               destroyed it. Should be low normally. 
  924.  
  925. DR     Data Ready             A High indicates that a character has been   
  926.                               received and is ready to be read by  the PC  
  927.                               from the receiver buffer. Should be low
  928.                               normally for these test, but can vary while  
  929.                               data is coming in from the modem. 
  930.          
  931.          
  932.  
  933.  
  934.  
  935.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  936.                                      Page20
  937.  
  938.  
  939. -[ Modem Control Register ]---------
  940. |              LP  OT2 OT1 RTS DTR  |     
  941. ------------------------------------       
  942.          
  943. The Modem Control register handles all of the interfacing between the    
  944. Uart and the modem. Only 5 signals are needed for this level of control.   
  945.  
  946.          
  947. LP     LOOP                   A high indicates that the loopback digital   
  948.                               diagnostic has been activated. This feature  
  949.                               only works with 8250 uarts or those that are 
  950.                               100% compatible. This is used in the digital 
  951.                               loopback test. 
  952.  
  953. OT2    OUT 2                  A high enables the uart to generate
  954.                               interrupts. A low disables interrupts. This
  955.                               should always be high for testing purposes.  
  956.    
  957. OT1    OUT 1                  On 100% compatible modems, a high on this 
  958.                               pin will perform a hardware reset of the
  959.                               modem in some compatible designs. Normally
  960.                               this is a low.
  961.  
  962. RTS    Request to Send        A Handshaking signal that is used by some    
  963.                               modems to enable data transfer between the
  964.                               modem and the Uart. Should be high for
  965.                               testing purposes.
  966.  
  967. DTR    Data Terminal Ready    A Handshaking signal that is used by some    
  968.                               modems to enable data transfer between the
  969.                               modem and the uart. Should be high for       
  970.                               testing purposes.
  971.  
  972.  
  973.  
  974.  
  975.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  976.                                      Page21
  977.                  
  978.  
  979. -[ Modem Status Register ]----------      
  980. |  RLS RI  DSR CTS DRD TER DDR DCS  |     
  981. ------------------------------------      
  982. The Modem Status Register returns the status of the control signals sent
  983. by the modem to the Uart.      
  984.          
  985. RLS    Received Line Detect   A high indicates that a carrier has been     
  986.                               received by the modem. When the Analog
  987.                               tests are run, this should be high. If it is 
  988.                               not, it is still possible that the modem
  989.                               is ok, however the cable from the modem to   
  990.                               the uart (for externals only) might not have
  991.                               a complete circuit due to faulty wiring of   
  992.                               the RS-232 cable. This signal is very
  993.                               important for some communications programs   
  994.                               to operate properly.      
  995.  
  996.  
  997.  
  998. RI     Ring Indicator         A high indicates that the modem detected a   
  999.                               ringing signal on the phone line. 
  1000.  
  1001. DSR    Data Set Ready         This is part of the DTR/DSR Handshaking pair 
  1002.                               that is used by some modems to control the   
  1003.                               flow of data. Normally be a high. 
  1004.  
  1005. CTS    Clear to Send          This is part of the RTS/CTS Handshaking pair 
  1006.                               that is used by some modems to control the
  1007.                               flow of data. Should normally be a high.
  1008.  
  1009. DRD    Delta Received         Line Signal Detect. A high indicates that 
  1010.                               the Received Line Signal has changed state.
  1011.                               Some communications programs use this also 
  1012.                               as an indication that a carrier was detected
  1013.                               by the modem. 
  1014. TER    Trailing Edge
  1015.          Indicator            A high indicates that the Ring Indicator     
  1016.                               changed state. Some communications programs  
  1017.                               use this as an indication that the phone as  
  1018.                               rung.      
  1019.  
  1020. DDR    Delta Data Set Ready   Indicates that the DSR signal has changed    
  1021.                               state.      
  1022.  
  1023. DCS    Delta Clear to Send    Indicates that the CTS signal has changed    
  1024.                               state. 
  1025.          
  1026.          
  1027.  
  1028.  
  1029.  
  1030.  
  1031.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  1032.                                      Page22
  1033.  
  1034. If a 8250-B / 16450 or 8250A Uart was detected, the following is
  1035. displayed;      
  1036.        
  1037. -[ Interrupt ID Register ]----------
  1038. |                      ID1 ID0 ITP  |     
  1039. ------------------------------------       
  1040.          
  1041. The Interrupt ID Register is used to tell the CPU what kind of interrupt
  1042. occurred.      
  1043.  
  1044. ID0    Interrupt Bit 2     
  1045. ID1    Interrupt Bit 1        These two signals are a binary code which 
  1046.                               can be read by the CPU to tell what kind of  
  1047.                               interrupt occurred. Both bits high indicates
  1048.                               an error occurred or a break interrupt was
  1049.                               received.  Bit 2 high and Bit 1 low
  1050.                               indicates that data is ready to be read by
  1051.                               the CPU. Bit 1 high and bit 2 low indicates
  1052.                               that a ring signal or carrier signal was
  1053.                               received. For testing purposes, only the
  1054.                               Data ready mode is used. 
  1055.  
  1056. ITP    Interrupt Pending      A Low indicates that an interrupt has
  1057.                               occurred. For testing purposes, this should
  1058.                               always be high if data was successfully read
  1059.                               by the Modem Doctor. If it is not, then an
  1060.                               interrupt did occur but the CPU did not
  1061.                               respond. Suspect a problem with an interrupt
  1062.                               controller chip or the uart interrupt
  1063.                               generating capability. If a 16550 or
  1064.                               16550A(x) chip was detected, the register
  1065.                               selection uses the enhanced register
  1066.                               display.             
  1067.          
  1068.  
  1069.  
  1070.  
  1071.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  1072.                                      Page23
  1073.  
  1074.  
  1075. If a 16550A(x) was detected, the appearance of the Interrupt ID register
  1076. changes and the following is displayed;
  1077.  
  1078. -[ Interrupt ID Register ]----------
  1079. | FEM FEL          ID2 ID1 ID0 ITP  |     
  1080. ------------------------------------   
  1081. FEM   FIFO Enable MSB         This is the most significant bit of the FIFO
  1082.                               register. It should be high on both the
  1083.                               16550 and 16550AN if the FIFO buffering is
  1084.                               enabled. Normal Modem Doctor status shows
  1085.                               this as a logic low (unless testing is
  1086.                               performed).  
  1087.  
  1088. FEL   FIFO Enable LSB         This is the least significant bit of the
  1089.                               FIFO Register. It should be a high on the
  1090.                               16550A(x) only! The 16550 always displays
  1091.                               this bit low. Again, the normal Modem Doctor
  1092.                               status will show this as a logic low (unless
  1093.                               testing is performed).
  1094.  
  1095. ID2   FIFO Timeout            This signal is raise high by a 16550A(x) to
  1096.                               indicate that it is holding characters for
  1097.                               the CPU to read, but it is less than what
  1098.                               the CPU has requested to be interrupted for.
  1099.                               The FIFO buffer can be as deep as 14
  1100.                               characters. If only 8 have come in, the CPU
  1101.                               will not be interrupted. The 16550A(x) is
  1102.                               programmed to interrupt after a period of
  1103.                               time has gone by during which no characters
  1104.                               were received in order to force the CPU to
  1105.                               get what it is currently storing. Normal
  1106.                               operation should keep this line low, if it
  1107.                               is high at any time there is a problem with
  1108.                               the uart.  
  1109.          
  1110.  
  1111.  
  1112.  
  1113.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  1114.                                      Page24
  1115.  
  1116.          
  1117. -[ Interrupt Enable Register ]------      
  1118. |                  ESI ELI ETI ERI  |     
  1119. ------------------------------------      
  1120.          
  1121. The Interrupt Enable register is programmed to allow certain types of    
  1122. interrupts to occur.      
  1123.  
  1124. ESI    Enable Status          A high causes the uart to generate an
  1125.                               interrupt whenever RI or RSD signals in the
  1126.                               Modem Status register go high. Should be low
  1127.                               for testing.
  1128.  
  1129. ELI    Enable Line            A high causes the uart to generate an 
  1130.                               Interrupt whenever an error or break
  1131.                               interrupt is detected in the Line Status
  1132.                               Register. Should be low for testing.
  1133.  
  1134. ETI    Enable Transmitter     A high causes the uart to generate a holding 
  1135.                               register interrupt whenever the THE signal 
  1136.                               of the empty interrupt line status register
  1137.                               goes high. Should be low for testing.        
  1138.                               
  1139.  
  1140. ERI    Enable Receive Data    A high causes the uart to generate an ready  
  1141.                               interrupt whenever data is ready to be read
  1142.                               by the CPU. The DR line of the line status 
  1143.                               register going to a high state generates
  1144.                               this  condition. This signal should be high
  1145.                               for testing purposes, since it is the only
  1146.                               interrupt needed by the Modem Doctor.  
  1147.  
  1148. -[ Interrupt Mask Register ]--------      
  1149. |  IQ7 IQ6 IQ5 IQ4 IQ3 IQ2 IQ1 IQ0  |     
  1150. ------------------------------------      
  1151. The interrupt mask register is contained on the 8259 priority interrupt
  1152. controller on your computer's motherboard. Each one of these hardware
  1153. interrupts corresponds to an external device.      
  1154.  
  1155. IQ7   Printer Interrupt (can be used by Custom COM5 or COM6)
  1156. IQ6   Floppy Disk Interrupt     
  1157. IQ5   Hard Drive interrupt (can be used by Custom COM7 or COM8)
  1158. IQ4   COM1 Interrupt (also COM3)     
  1159. IQ3   COM2 Interrupt (also COM4)     
  1160. IQ2   reserved by IBM (Gateway to second 8259 on AT's)     
  1161. IQ1   Keyboard Interrupt     
  1162. IQ0   Timer Interrupt      
  1163.          
  1164.          
  1165.  
  1166. Under Normal Conditions, IQ0,IQ1 and IQ6 should be lit, along with IQ4 if
  1167. testing COM1 (or COM3)  or IQ3 if testing COM2 (or COM4). In addition,
  1168. other lines could be lit depending on your computer. The only line the
  1169. Modem Doctor looks for is the IQ4 or IQ3 lines (depending on which serial
  1170. port you are testing).   
  1171.  
  1172.  
  1173.  
  1174.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  1175.                                      Page25
  1176.  
  1177.  
  1178. 4.30 Handshaking tests
  1179. ----------------------
  1180. Just like a handshake between friends, the Modem Doctor tests to see that
  1181. your computer uart and the modem are properly exchanging handshaking for
  1182. data communication. There are 4 tests for proper operation. Two of them
  1183. are static (meaning that the control lines between the computer and modem
  1184. are raised and lowered), and two of them are dynamic (meaning that the
  1185. modem is placed in a self-connect mode and data is sent to the modem).
  1186.  
  1187. Static tests are accomplished by lowering the DTR line to the modem . The
  1188. modem, if configured to current accepted standards, should respond by
  1189. dropping a control line that inputs the modem control register of your
  1190. uart as the DSR status line. Raising the DTR line should make the DSR line
  1191. active again. If the DSR line stays high, this is ok for most 2400 bps and
  1192. lower modems. If the DSR line is low and never goes high, this might
  1193. interfere with some communication programs that require a solid DTR/DSR
  1194. handshake. If you see this condition, check your modem cable with the
  1195. Modem Doctor and an analog loopback plug. If all is ok, then your modem
  1196. needs to have its configuration changed. See your owners manual for
  1197. details
  1198.  
  1199. The static RTS/CTS tests are conducted the same way, however this
  1200. handshake pair is important for high-speed modem users primarily. High-
  1201. speed modems use this signalling system to tell each other when they can
  1202. or cannot send data. For example, when storing data to a hard drive, the
  1203. computer is tied-up for a while. Any characters coming in from the modem
  1204. might be lost. So, your communication package will lower the RTS line to
  1205. the modem while a disk write is underway. In kind, the Modem will drop a
  1206. CTS status when it cannot receive any more data. If you have a high-speed
  1207. modem and use data compression, this handshaking pair is usually essential
  1208. for proper operation.
  1209.  
  1210. The static tests above are designed to show that your cabling to the modem
  1211. is proper, but they cannot test if your modem microprocessor will act
  1212. properly on this handshaking information. The dynamic tests force your
  1213. modem to self-connect. Next the RTS (or DTR) lines are dropped (depending
  1214. on which test is run). Then 20 characters are sent to the modem. If the
  1215. modem is properly using handshaking, no characters will be sent back to
  1216. the computer. If any characters are received, then your modem ignored the
  1217. handshake request. In most cases, if the static tests passed but the
  1218. dynamic failed, it means your modem needs to be setup for testing. 
  1219.  
  1220. The Modem Doctor offers you the choice of programming your modem to test
  1221. its ability to handshake. Using this mode requires that you have selected
  1222. the proper modem driver from the Carrier mode before hand, otherwise
  1223. incorrect commands will be sent to your modem. If you know you have the
  1224. right driver, then you can go ahead and see if your modem is set properly
  1225. or not.
  1226.  
  1227.  
  1228.  
  1229.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  1230.                                      Page26
  1231.  
  1232.  
  1233. None of the commands sent to the modem are permanently stored in the
  1234. modem. If the Modem Doctor enables handshaking and it works, but your
  1235. setup in the modem does not work, then you have to reprogram the modem
  1236. yourself. You can use the Interactive terminal mode to do this if you wish
  1237. without leaving the Modem Doctor.
  1238.  
  1239.          
  1240. 4.31 Carrier Tests     
  1241. -----------------  
  1242. The carrier test section is used to test your modem's ability to detect a
  1243. carrier, demodulate signals on the originate frequency and answer
  1244. frequency, and to properly control the RLS (Received Line Signal) and CD
  1245. (carrier detect) modem status/control lines. All of these are essential
  1246. elements for good data communication.  When you select carrier tests, a
  1247. pulldown menu is displayed. Option 1 prompts you to run the carrier tests.
  1248. Option 2 offers you the chance to select a custom modem driver. Option 3
  1249. allows you to return to the main menu (pressing ESCAPE or a left/right
  1250. arrow key also does the same thing as option 3).  
  1251.          
  1252. 4.31 Modem Driver Modules    
  1253. --------------------------  
  1254. Although your AT instruction set modem is based on a defacto standard
  1255. developed by Hayes, there are several "supersets" of this instruction set
  1256. for various modems. Currently, the  Modem Doctor supports 5 different
  1257. software Modem Drivers for testing; Generic Compatible, &T0 instruction
  1258. set, Hayes V9600, Hayes Ultra 9600, and  Courier HST/V.32. When the Modem
  1259. Doctor is running the setup mode, it queries the microprocessor for its
  1260. type identification. Based on this information, a modem driver is selected
  1261. for use. Basically, all 2400 bps and lower modems are assigned the Generic
  1262. Driver, and all 9600 and higher modems are assigned the Courier HST/V.32
  1263. driver. The &T0 instruction set modems are tested in a different manner
  1264. with a different set of instructions. Previous versions of the Modem
  1265. Doctor would automatically switch to the &T0 instruction set if the modem
  1266. was a 2400 bps modem and if it failed to properly detect a carrier during
  1267. testing. This function is still  built into the Modem Doctor, but you can 
  1268. optionally select the &T0 driver yourself before beginning your testing in
  1269. order to speed things up. Auto-selection added about 10 seconds a pass
  1270. that can now be eliminated.  If you desire to select the &T0 set for your
  1271. modem instead of letting  the Modem Doctor do it for you. NOTE: Don't 
  1272.  
  1273. select this instruction set unless you know for sure that your modem is
  1274. 100% instruction set compatible with the Hayes 2400 or 2400B. Hayes 1200
  1275. bps and lower, and almost all other 2400 bps and lower modems use the
  1276. Generic Driver. You will find that 99% of all modems will work properly
  1277. with this  assignment, in fact, if you disable all data compression and
  1278. Fixed link assignments from any high speed modem (including the 
  1279.  
  1280. Courier's), the generic driver will test these modems properly also! This
  1281. allows people with high-speed modems that are not supported currently to
  1282. use the Modem Doctor for testing. If you have a high-speed modem that is
  1283. not supported, you can use a Combination of the Manual mode and the
  1284. Generic Modem Driver to test these modems also.  
  1285.  
  1286.  
  1287.  
  1288.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  1289.                                      Page27
  1290.  
  1291.  
  1292. All of the modem drivers used by the Modem Doctor are built into the
  1293. program, however version 4.0 has the ability to recognize an external
  1294. driver file. If the Modem Doctor finds and external driver file when it
  1295. starts, it uses those command instead of the built-in drivers. What
  1296. purpose is there in external drivers? Well, first off, if a new modem
  1297. command set is adopted, or a bug is discovered in one of the built-in
  1298. modems, you will be able to receive a free driver file from any bbs or by
  1299. mail. This means that your copy of the Modem Doctor can stay current for
  1300. some time to come. The second reason for external drivers is to allow you,
  1301. if you desire, to have us custom design a modem driver for a particular
  1302. modem. These drivers would be designed at a modest charge and would be for
  1303. your use only. In any case, external drivers insure your investment in the
  1304. Modem Doctor.
  1305.  
  1306.  
  1307. 4.32 Types of Carrier Tests  
  1308. -----------------------------     
  1309. The carrier tests are designed to test your modem under actual use
  1310. conditions (minus a telephone line). Your modem uses two different
  1311. frequency bands for communication. These are the originate and answer
  1312. frequencies. AT Compatible modems can select these under command of the
  1313. Modem Doctor via the appropriate Modem Driver module. So called "Dumb"
  1314. Modems have front-panel switches that you must use to properly test the
  1315. modem. The Modem Doctor supports both types of tests, one of which is
  1316. automatically selected by the Modem Doctor depending on the hardware it
  1317. detects.  
  1318.          
  1319. 4.33 AT Instruction Set Tests 
  1320. -----------------------------     
  1321. If you selected the Test Modem/Uart option from the setup menu and a Modem
  1322. with a compatible microprocessor was detected, or if you have forced the
  1323. Modem Doctor to use the AT instruction set tests via the hot-key ALT-F,
  1324. the Modem Doctor will test the originate and answer frequencies of your
  1325. modem automatically. Before running this test, make sure you have
  1326. disconnected the modem from the telephone line, because the modem will go 
  1327. off-hook and sometimes the  dial-tone will interfere with testing. If you
  1328. press ESCAPE in this menu, you return to the main menu. Any other key
  1329. continues. You will be prompted to enter a "Loop Count". If you select a
  1330. count of 1, you will be able to hear the connecting tones on your speaker.
  1331. If you select a count greater than 1, then the speaker is turned off. 
  1332. After you make your selection, two windows will open on your screen. One
  1333. contains data that is being sent to the modem, the other data that has
  1334. been received by the modem. All of the characters from binary 0 to binary
  1335. 255 are transmitted. Some of these will look strange because they are
  1336. characters of the extended character set. The Modem Doctor takes a great
  1337. deal of care in preserving the normal condition of your modem before
  1338. testing, and sends all the character strings necessary to test without
  1339. disturbing any non-volatile memory settings. If you have an external
  1340. modem, you will see the data being sent and acknowledged before testing
  1341. begins. While it is setting up, the Modem Doctor tells you what is going
  1342. on, including that the modem is reset, that commands are being sent, and
  1343. that it is waiting for a carrier. The Modem Doctor waits up to 15 seconds
  1344.  
  1345.  
  1346.  
  1347.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  1348.                                      Page28
  1349.  
  1350. for either the word CONNECT or the RLS signal to go active. If this does
  1351. not happen, the Modem Doctor switches to the &T0 command set that is used
  1352. by Hayes 2400's and several other clones. This test is just as valid as a
  1353. full carrier test for these types of modems, and verifies both the modem
  1354. and the uart signal paths as does the traditional carrier test. If you
  1355. switch to this mode, you will be informed via the screen and the message
  1356. "CARRIER NOT DETECTED" will be displayed. Also, if you have an external
  1357. modem, you might see the "modem ready" light flashing throughout this
  1358. test. If you selected the &T0 instruction set yourself from the Modem
  1359. Driver selection menu, then the &T0 set will be used exclusively. This
  1360. selection is mainly a convenience for some users (because the
  1361. auto-detection method takes a little longer), however it will not test any
  1362. other kind of modem properly. 
  1363.  
  1364. If you are unsure, let the Modem Doctor figure it out for you. Note, if
  1365. you select more than 1 itineration and change you mind, press ESCAPE
  1366. anytime during the test. At the next available loop-repeat time the Modem
  1367. Doctor will abort testing and give you your current status.  
  1368.         
  1369.  
  1370.  
  1371.  
  1372.  
  1373.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  1374.                                      Page29
  1375.  
  1376. 4.34 Uart or Dumb Modem Tests 
  1377. ----------------------------- 
  1378. This test works the same as the AT instruction set modem test with two
  1379. main exceptions. First, Your modem must be able to generate a carrier on
  1380. its own on the answer and originate frequencies. Most external "dumb" 
  1381. modems have front panel switches for this function. Most are marked as AL
  1382. (for Analog Loopback). If your modem can generate this, answer yes  and
  1383. follow the prompts on the screen. All testing is performed as above,
  1384. except you setup the modem instead of the Modem Doctor using its modem
  1385. driver software.  Whenever the Modem Doctor is working with the micro in
  1386. the "Off-line" mode, the dumb mode tests are used. You are prompted if
  1387. your modem can generate a carrier. Answer yes to start the testing. You
  1388. are then told to place your modem in the analog loop mode and force the
  1389. carrier detect on. Most dumb modems will light the CD light on the front
  1390. panel of the modem when you press the AL switch. This CD light sends a RLS
  1391. (Received  Line Signal) status word to the uart. The Modem Doctor looks
  1392. for this before it will allow testing in this dumb mode. If your modem
  1393. cannot generate a carrier indication, you can still test an analog
  1394. loopback using the loopback function in the registered version and select
  1395. the analog loopback tests (this is explained later in the documentation).  
  1396.          
  1397. 4.35 Error Messages 
  1398. -------------------     
  1399. If A RLS (Received Line Detect) signal is not received before testing
  1400. begins, this indicates that either a carrier is not being generated (or
  1401. properly received in self test) by the modem, or an RS-232 Cable to an
  1402. external modem is improperly wired. Although RS-232 loops will work fine
  1403. without an RLS signal being wired, there is no way for the Modem Doctor to
  1404. detect on a dumb modem if a carrier was generated. On a AT instruction set
  1405. modem, the Modem Doctor alternately looks for the word "CONNECT" to be
  1406. sent from the modem if there is no RLS signal available. If you wish your
  1407. all of your communications programs to work properly, you should get a
  1408. cable with this signal wired. If an error is detected during the analog
  1409. test, the error counter is incremented. There are two error counters; one
  1410. is used for the originate mode, and the other for the answer mode. If you
  1411. receive an error, it could be due to a problem with a uart or a modem at a
  1412. certain baud rate. Try testing at other baud rates to determine if the
  1413. errors repeat. Also errors could occur on only the originate or the answer
  1414. frequency. This is more prevalent at higher baud rates. Finally, make sure
  1415. that the modem was disconnected from the phone line before testing. The
  1416. dial-tone interferes with some modems. One other possibility exists, that
  1417. there could be a problem with a cable or interrupts not properly being
  1418. generated or properly handled by the CPU. Run the digital/loopback tests
  1419. and if the problem repeats, you might have a bad uart or motherboard
  1420. problem. Although it is unlikely, if power is removed from the modem or a
  1421. cable falls off (or who knows what else), the Modem Doctor waits a
  1422. pre-determined period of time for an interrupt to occur. If none is
  1423. detected, the warning "Modem Queue Failure" or "Modem Receiver Failure" 
  1424.  
  1425.  
  1426.  
  1427.  
  1428.  
  1429.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  1430.                                      Page30
  1431.  
  1432. will be displayed in one of the windows. These might also be displayed if
  1433. the modem never acknowledged a character being transmitted, or never sent
  1434. one back. Again, the only conditions that would cause this would be a
  1435. cable being removed between the modem and the uart, the power being
  1436. removed to the modem, or the modem "blowing up" via some unnatural means
  1437. during the test. If the RLS (Received Line Signal) is constantly active
  1438. from the modem, the Modem Doctor will tell you that you might have a
  1439. problem with a cable or the modem and that the test results might not be
  1440. valid. Reason for this is that the Modem Doctor never did detect a carrier
  1441. because the uart said it was already there. This can be traced in nearly
  1442. all cases to the modem. Change the setting of the modem to let the carrier 
  1443. Detect (CD) act normally. It should never be set to be forced on for a PC.
  1444. If so, not only the Modem Doctor, but other communications programs will 
  1445. not operate properly. 
  1446.  
  1447.  
  1448. 4.36 IRQ Failures
  1449. -----------------
  1450. The Modem Doctor will allow you to test a modem that might not have a
  1451. proper IRQ assignment. Such errors in jumper settings on your serial cards
  1452. or internal modems are tough to trace. If you see this error message
  1453. displayed, it means that your modem is receiving signals properly, but it
  1454. cannot communicate back to the computer over normal interrupt assignments.
  1455. This normally results from using an IRQ line reserved for one comm port
  1456. with another. See the section above about IRQ's if you get this error, and
  1457. use the table above as a guide to how to correct your problem.
  1458.  
  1459. IRQ failures will be displayed in the setup mode, the Regs Quick Uart
  1460. Diagnostics mode, the Analog Loopback mode and the Carrier Tests mode.
  1461.  
  1462. 4.4 Loopback Tests     
  1463. -------------------      
  1464. The loopback tests were designed for two purposes. First, to test an
  1465. RS-232 loop including cables that are properly terminated with a loopback
  1466. plug, and second, to run a digital loopback test on 8250 and 100%
  1467. compatible uarts. Additionally, the analog portion of this test can be
  1468. used to test a dumb modem that does not generate a CD (carrier detect)
  1469. signal when the AL switch is thrown on the front panel. Selecting loopback
  1470. and pressing return fetches this menu;      
  1471.          
  1472.          -[  Loopback Tests  ]-----------      
  1473.          | Analog Loopback using a PLUG  |     
  1474.          | Digital Loopback 8250 UartS   |     
  1475.          | Loopback Plug Technical Data  |     
  1476.          |     Return To Main Menu       |      
  1477.          --------------------------------       
  1478.          
  1479.  
  1480.  
  1481.  
  1482.  
  1483.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  1484.                                      Page31
  1485.  
  1486. Analog loopback tests require that you attach a Loopback plug either to
  1487. the back of the Comm port connector on your computer, or at the end of a
  1488. RS-232 Cable. This test is designed for external modems, however you could
  1489. run this on an internal modem as a test of the command channel's ability   
  1490. to receive characters. Caution should be used on internal modems, for some
  1491. will fail this test. If this happens, don't be concerned. However this
  1492. test should NEVER fail with a loopback plug, unless you were trying to
  1493. drive the line at an excessive rate. Remember, the faster the data rate,
  1494. the shorter the lines should be, and the faster the computer should be to
  1495. handle it. With a loopback plug on the back of the serial port, speeds of
  1496. 56000 bps should run fine even on a slower PC (as long as it is not multi-
  1497. tasking). If you experience problems at 56000 but not at 19200,  chances
  1498. are your hardware is fine (if you are using an 8250-B). In extensive
  1499. testing with PC's at 4.77 mhz, the original 8250-B performed flawlessly at
  1500. 56000 bps. Dumb modems can use this test also (as explained above and in
  1501. the section carrier tests). Digital loopback tests require that you have 
  1502. an 8250-B, 8250A,16450, 16550,  16550A(x) or other 100% compatible uart in
  1503. your system. These uart's have built-in diagnostics. If you are using a PC
  1504. compatible internal modem or a PC compatible serial card, then you will
  1505. definitely have a compatible uart installed.  
  1506.  
  1507. There is a design difference between the 8250-B and other compatible chips
  1508. in this series. Some of the differences were explained above, but the
  1509. important difference for the loopback test is the way the different uarts
  1510. will respond.  The 8250-B allowed its OUT2 signal to become active during
  1511. loopback testing. The OUT2 signal is used by PC compatible machines to
  1512. gate the interrupt signal off of the serial board (or internal modem).
  1513. Later designs (8250A, 16450, 16550,16550AN) tri-stated this line. As a
  1514. result, the self-test diagnostics will not allow the interrupt signal to
  1515. gate off the board and interrupt the CPU. This would cause all digital
  1516. loopback tests on these improved chips to fail. The Modem Doctor handles
  1517. this by a brute-force read of the uarts. By sampling the Interrupt ID
  1518. register, the presence of an interrupt is detected, then the receiver
  1519. buffer register is read. This method is not as efficient as a true
  1520. interrupt-driven test would be, but it is accurate. The Uart does generate
  1521. the ID for an interrupt, the character is pulled out of the uart. In
  1522. version 4.0, the speed of this routine was significantly enhanced so that
  1523. it runs approximately at the same speed as a true interrupt driven 8250-B.
  1524.  
  1525. When running this test on an 8250-B, you will see the true speed of the
  1526. interrupt handling and processing. On others, you  will see the
  1527. brute-force method. Each is an accurate test of the uart and valid at any
  1528. baud rate selected. If this test does not run, but yet the analog test and
  1529. all other tests  run fine, it means that you do not have a compatible uart 
  1530. installed.  Some uarts that are not 8250's have a problem entering this
  1531. mode properly.  If the test does not start, do not be alarmed, because 
  1532.  
  1533.  
  1534.  
  1535.  
  1536.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  1537.                                      Page32
  1538.  
  1539.  
  1540. only 8250 and true compatibles will pass this test. However this test will
  1541. NEVER start and then fail unless you do have a hardware problem. You
  1542. should never pick up a character error using this test. If you do, you
  1543. have a bad uart or  CPU motherboard problem. Both tests open up windows
  1544. (like the analog test) and send and receive characters to the uart. If you
  1545. wish to know how to build a loopback plug, select the Loopback Plug
  1546. technical data section. Pressing ESCAPE or the left/right arrows is the
  1547. same as Option 4 and returns you to the main menu.  
  1548.  
  1549.       
  1550. 4.41 Loopback Test Error messages         
  1551. ---------------------------------           
  1552. Essentially the error messages for these tests are simple. In the loopback
  1553. test mode, if a character is received incorrectly, the error counter is
  1554. advanced and a report is issued at the end. If the analog or digital tests
  1555. fail to receive or transmit characters, the messages will explain that
  1556. either the transmit queue, the receive queue failed, or that the uart did
  1557. not respond to the tests. The last message may be displayed if you have a
  1558. non-compatible uart. If the uart fails to setup properly for the digital
  1559. loopback test (does not program its registers properly), a warning is    
  1560. displayed that there is an error in one of the registers. The message will
  1561. explain what is wrong and what it expects.  Also, if you are using the
  1562. wrong IRQ line for your comm port, you will receive an IRQ failure error.
  1563. See the warning message section for more details.                    
  1564.  
  1565.  
  1566. 4.5 Options Mode
  1567. ---------------------              
  1568. The options mode allows you access to the built-in 4k communications
  1569. terminal (Interactive Mode), and the report generator features. 
  1570.  
  1571.  
  1572.  
  1573.  
  1574.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  1575.                                      Page33
  1576.  
  1577. 4.51 Interactive Mode
  1578. ----------------------
  1579. As well written as the Modem Doctor is, there exists the possibility that
  1580. a modem or a system might not be compatible with the diagnostics. The
  1581. manual section allows you to send your own string commands to the modem,
  1582. read back data, and in fact you could use this as a mini-communications
  1583. program.  If you select this mode, a window opens with the banner
  1584. Interactive Mode. At the Bottom are listed the "Hot-Keys" you can use;
  1585.  
  1586.       ALT-B   This opens a window for you to change the baud rate.         
  1587.        Note: if you are on-line with a service this might cause an         
  1588.        error between the computer and the modem. Off-line conditions       
  1589.        should work properly. 
  1590.          
  1591.       ALT-C   Clears the screen. This only clears the window of data, and  
  1592.        leaves all your prompts.   
  1593.          
  1594.       ALT-R   This displays the Uart registers...handy for real-time       
  1595.        troubleshooting of RS-232 loops.      
  1596.          
  1597.       ALT-H   Help..this displays the basic AT Command set instructions 
  1598.        that  you could use to control your modem. Note that this is only a 
  1599.        basic set. Some modems have many extensions to this, so for         
  1600.        advanced work, consult your owners manual.      
  1601.          
  1602.       ALT-X   Exits the interactive mode and returns to the main menu.     
  1603.  
  1604. 4.52 View Current Statistics
  1605. ----------------------------
  1606. Whenever you log-in a comm port for testing, the Modem Doctor keeps tabs
  1607. on how many tests were run, the baud rates that were tested, and how many
  1608. errors you accumulated. You can view these statistics by using this
  1609. selection. These results are also displayed whenever you quit the Modem
  1610. Doctor.
  1611.  
  1612. 4.53 Print Current Statistics
  1613. -----------------------------
  1614. If you wish a hard-copy of your test results, just select this option. You
  1615. will be able to send this to any one of the printers the modem doctor
  1616. finds available or to a file called MDR.RPT.
  1617.  
  1618.  
  1619. 4.54 Reset Current Statistics
  1620. -----------------------------
  1621. Use this mode to reset all test results back to zero at any time.     
  1622.  
  1623.  
  1624.  
  1625.  
  1626.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  1627.                                      Page34
  1628.  
  1629. 4.6 Setup Mode     
  1630. --------------      
  1631.  
  1632. The setup mode consists of 2 sections. The first, the setup modem section
  1633. was covered above. Use this to change the serial port under test, the baud
  1634. rate, and the type of test to be run.        
  1635.  
  1636. The second section allows you to select the colors that you wish to work
  1637. with while using the Modem Doctor. You can select default colors,
  1638. Monochrome (black and white), or create your own custom colors.
  1639.  
  1640. If you are using a color monitor, you can use window selections to pick
  1641. the colors you like and optionally save them to a file (MDR.CFG). If you
  1642. save them, then as long as this file exists, the Modem Doctor will use
  1643. those colors in place of the default ones. To return to default, either
  1644. erase the MDR.CFG file, or select default colors and save it to disk.
  1645.  
  1646. When you enter the color selection mode, you will be presented with three
  1647. different windows that will allow you to make legal color selections.
  1648.     
  1649. [ Mdr Color Selection Screen ]
  1650. Select from this menu the color of normal window and error backgrounds
  1651. Background
  1652. Black 
  1653. Blue  
  1654. Green 
  1655. Cyan 
  1656. Red 
  1657. Magenta 
  1658. Brown 
  1659. Gray 
  1660.  
  1661.  
  1662.  
  1663.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  1664.                                      Page35
  1665.  
  1666. Select from this menu the color of all window foregrounds & sliding bars
  1667. foreground colors;
  1668. Darkgray 
  1669. Lightblue 
  1670. Lightgreen 
  1671. Lightcyan 
  1672. Lightred 
  1673. Lightmagenta
  1674. Yellow 
  1675. White 
  1676.  
  1677. If you select two colors the same (or different intensities that are the
  1678. same), the Modem Doctor will tell you your selections are invalid. After
  1679. you have made your choices, you will be presented with a window that
  1680. allows you to save your choices to a file, use the choices without saving
  1681. or reselect. If you save them to a file, a file MDR.CFG is created or 
  1682. updated. When Modem Doctor loads the next time, it will use these colors
  1683. again.
  1684.  
  1685.  
  1686. 4.7 Exit Program     
  1687. ----------------     
  1688. This is the only way to exit the Modem Doctor. This is necessary because
  1689. the interrupt tables and controllers of your PC must be  returned to their
  1690. original state in order to avoid problems after you  use the Modem Doctor. 
  1691. Pressing Control-C or Control-Break during the Modem Doctor will         
  1692. cause one of two things to happen. First, it will ignore what you have
  1693. done if it is critical that the program not be interrupted, or second, if
  1694. it is at all possible to exit without damage, a window will open telling
  1695. you that you can Control-Break abort if you wish..answer yes or no. You
  1696. can Control-Break during all tests and at times from menus. If you choose
  1697. to quit, the Modem Doctor cleans things up properly and exits to Dos.
  1698. Please remember this is just an emergency way of doing an exit. Use the
  1699. Exit function from  the main menu as the correct way to end the program.
  1700.          
  1701.     
  1702. 5.0 Error Messages and their Meanings     
  1703. -------------------------------------     
  1704. The Modem Doctor, if presented with an error, will make a diagnosis of the
  1705. problem. In most cases, this should be enough for you to figure out what
  1706. is wrong and go on from there to correct it.      
  1707.          
  1708.  
  1709.  
  1710.  
  1711.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  1712.                                      Page36
  1713.  
  1714. General Program Errors or Warnings
  1715. ----------------------------------
  1716. 1)   ABORT PROGRAM Control Break Key pressed..Aborting Program Run. 
  1717.      Do you wish to abort? [Y/N] : 
  1718.      - This means you have pressed the Control Break Key sometime during
  1719.      the program run. The Modem Doctor, unlike most programs, does not
  1720.      drop to dos with a Control-Break without cleaning up after itself.
  1721.      Answering Yes will clean up and stop the program. Answering no keeps
  1722.      the program running at the spot you left off at.
  1723.  
  1724.      If you answer Yes, you will see this message;
  1725.      Flushing Buffers.......Restoring Comm Port and Interrupt Vectors
  1726.      Program Aborted..all vectors restore.
  1727.  
  1728. 2)   You Must SETUP a COMM PORT first....Press any key to continue 
  1729.      - If you do not select at least 1 comm port when the program first
  1730.      starts running, you cannot run any tests. This message explains why.
  1731.  
  1732. 3)   Exchanging COM1 and COM2 Base Addresses in Memory
  1733.      COM1 Address was    %x   COM2 Address was    %x
  1734.      COM1 Address now is %x   COM2 Address now is %x
  1735.      Run MDR /X again to exchange again, these changes are gone when you
  1736.      reboot!
  1737.      - This messages is displayed when Modem Doctor is run in the exchange
  1738.      mode (MDR /x).
  1739.  
  1740. 4)   Sorry...but I cant find a modem to use... Use Login Feature to
  1741.      Manually Log in a comm port.
  1742.      - The Modem Doctor needs at least 1 comm port installed at a
  1743.      conventional port address to run. If none are available, you have to
  1744.      use the manual login mode to start testing. You should never see this
  1745.      error message with a computer unless it has no serial ports
  1746.      whatsoever.
  1747.  
  1748. 5)   Resetting modem to your default settings...please wait
  1749.      - Whenever you exit Modem Doctor and a microprocessor-based modem was
  1750.      detected, it will clean up after itself and restore your modem to
  1751.      initial settings. Uart only tests do not display this message.
  1752.  
  1753. 6)   Your foreground color equals  background..please retry
  1754. 7)   Your foreground low intensity equals background, please retry
  1755.      - These messages are displayed when you make color selection choices
  1756.      that would not be proper for the type of display monitor you are
  1757.      using.
  1758.  
  1759. 8)   Warning..I could not create the MDR.CFG file. No colors saved to disk
  1760.      - Modem Doctor could not save the file to disk, perhaps there is no
  1761.      more space on the disk or the disk is write-protected.
  1762.  
  1763.  
  1764.  
  1765.  
  1766.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  1767.                                      Page37
  1768. 9)   Warning..I could not read the MDR.CFG file. No colors read to disk
  1769.      - You asked Modem Doctor to load the color configuration, however
  1770.      there was none found on your disk or in the current working
  1771.      directory.
  1772.  
  1773.  
  1774. Setup Mode Diagnostics
  1775. -----------------------
  1776. 1)   No Response...resetting modem microprocessor ...attempt #%d
  1777.      - The Modem Doctor tried sending a simple AT command to your modem
  1778.      but it did not respond with a valid answer.
  1779.  
  1780. 2)   Modem microprocessor command mode not detected
  1781.      - The Modem did not respond to a valid, simple AT command either
  1782.      because it is on-line, jammed, or not completely compatible.
  1783.  
  1784. 3)   Modem microprocessor command bus active
  1785.      - The Modem Doctor received a correct response from the modem and
  1786.      placed it into the command mode.
  1787.  
  1788. 4)   Software reset initiated
  1789.      - A software reset clears all test registers and resets the modem.
  1790.  
  1791. 5)   Modem microprocessor memory tests OK
  1792.      - The Modem Doctor instructed your modem to run a self-test of its
  1793.      RAM/ROM contents. It responded successfully.
  1794.  
  1795. 6)   Modem microprocessor memory may have a problem
  1796.      - The Modem Doctor instructed your modem to run a self-test of its
  1797.      RAM/ROM contents and did not receive the proper response. Your modem
  1798.      may or may not have a problem depending on the results of all the
  1799.      rest of the testing. If all other tests are ok, chances are your
  1800.      modem might have a memory problem. If other tests fail, it could be
  1801.      because your modem is not completely compatible.
  1802.  
  1803. 7)   Modem ID reports a 1200 bps modem installed
  1804.      Modem ID reports a 2400 bps modem installed
  1805.      Modem reports a 9600 bps modem installed
  1806.      Modem reports a 9600 /1440 bps modem installed
  1807.      - All of these messages are based on receiving correct product codes
  1808.      from your modem. Some modem manufacturers however do not place valid
  1809.      product codes in their modems, so it is possible that you might see
  1810.      the Modem Doctor give you the incorrect type of modem. This does not
  1811.      affect testing, however it does affect the type of Modem Driver that
  1812.      is automatically selected. You can override automatic selections from
  1813.      the Carrier Menu by selecting the proper driver for your modem.
  1814.  
  1815. 8)   No modem ID received...using Generic driver
  1816.      - No product code was received, so defaults are being used.
  1817.  
  1818.  
  1819.  
  1820.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  1821.                                      Page38
  1822.  
  1823. 9)   Modem microprocessor accepts setup commands
  1824.      Modem microprocessor did not accept setup commands
  1825.      - The Modem Doctor sends setup commands for all of its tests to your
  1826.      modem. If they were not received properly, you get an error message.
  1827.  
  1828. 10)  An 8250-B Uart has been detected
  1829.      A 16450 / 8250A Uart has been detected
  1830.      A 16550AN/AF/AFN Buffered Uart has been detected
  1831.      A 16550 Non-buffered Uart has been detected
  1832.      - The Modem Doctor programs uarts differently depending on the type
  1833.      and the test running. This will tell you what type of uart chip you
  1834.      have installed in your serial port.
  1835.      
  1836.  
  1837. 11)  Modem Control Register reading show that either the LOOP, OUT2, DTR
  1838.      RTS did not set properly to test. OUT2 and DTR are essential for
  1839.      proper-functioning communications. LOOP is necessary for the digital
  1840.      test to run.
  1841.      -Either the Modem Control Register is bad, or their is a problem with
  1842.      the serial port or modem.
  1843.  
  1844. 12)  Modem Status Register readings show that there is no status coming
  1845.      back from the modem to the Uart. Neither RTS/CTS or DTR/DSR Pairs are
  1846.      active. Most comm programs can work without RTS/CTS, but DTR/DSR are
  1847.      needed by most. RTS/CTS are needed by most hi-speed modems for
  1848.      handshaking.
  1849.      -Your external cable may be wired wrong, or if this is an external
  1850.      modem, check that the cable is plugged in and that the modem is
  1851.      turned on.
  1852.  
  1853. 13)  Line Control Register readings show that the word length selected is
  1854.      incorrect or you have a parity error. WS1 and WS0 should both be on
  1855.      indicating that 8 bit words are to be used. All other readings should
  1856.      be low. Parity errors could happen once but not every time. 
  1857.      -If either persists, then the Uart is defective or communications to
  1858.      the Uart are suspect.
  1859.  
  1860.  
  1861. 14)  Line Status Register readings show a problem. The Tx Holding register
  1862.      THE and the Tx Shift register TSE should be the only active signals.
  1863.      No other signals should be active. If either TSE or THE are not
  1864.      active then the Uart is not resetting properly. Uart is suspect. If
  1865.      any other signal is high, and TSE/THE are both active, then you have
  1866.      a data overrun or framing error. 
  1867.      -If this repeats, you should then suspect the Uart or connections to
  1868.      the Uart from the computer.
  1869.  
  1870.  
  1871.  
  1872.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  1873.                                      Page39
  1874.  
  1875. 15)  Modem Control Register readings show that either DTR,RTS or OT2
  1876.      signals are not set properly. DTR & RTS are needed by most comm
  1877.      programs. OT2 is essential for interrupts to occur. 
  1878.      - Uart is suspect or the interface to the Uart from the computer bus.
  1879.  
  1880. 16)  Interrupt ID Register readings show that an interrupt is pending when
  1881.      none should be. This can be caused by a modem being turned on and off
  1882.      as testing was conducted or if data was waiting to be read by a prior
  1883.      running application, or you are not using the correct IRQ line.
  1884.      -If this does not clear when you display the registers again, then
  1885.      the Uart is suspect or connections to the Uart from the computer, or
  1886.      you are using the wrong IRQ line for this comm port assignment.
  1887.  
  1888.  
  1889. 17)  Interrupt Enable Register readings show that ERI Enable Receiver ints
  1890.      is not set properly. As a result, you might not get proper
  1891.      recognition of any interrupts being generated when a character is
  1892.      received. 
  1893.      -Suspect the Uart or connections to the Uart from the computer bus.
  1894.  
  1895. 18)  Interrupt Controller has not responded to setting the IRQ4 line. This
  1896.      problem is on the system board of your computer. Run your computer
  1897.      diagnostics program to locate the error.
  1898.      -Normally IRQ4 is used for COM1 you might have a usage conflict.
  1899.  
  1900. 19)  Interrupt Controller has not responded to setting the IRQ3 line. This
  1901.      problem is on the system board of your computer. Run your computer
  1902.      diagnostics program to locate the error.
  1903.      -Normally IRQ3 is used by COM2 you might have a usage conflict.
  1904.  
  1905. 20)  Interrupt Controller has not responded to setting the IRQ7 line. This
  1906.      problem is on the system board of your computer. Run your computer
  1907.      diagnostics program to locate the error.
  1908.      -Normally IRQ7 is used by the printer you might have a usage
  1909.      conflict.
  1910.  
  1911. 21)  Interrupt Controller has not responded to setting the IRQ5 line. This
  1912.      problem is on the system board of your computer. Run your computer
  1913.      diagnostics program to locate the error.
  1914.      -Normally IRQ5 is used by the Hard Drive Controller you might have a
  1915.      usage conflict.
  1916.  
  1917. 22)  WARNING...This COMM PORT MODEM STATUS & ID REGISTERS ARE DEFECTIVE
  1918.      - This is a severe error. It means that one or more of the uart
  1919.      registers are defective. This could also be caused by logging in a
  1920.      non-existent comm port in the manual mode. You should never see this
  1921.      message displayed in an auto-detected mode unless your uart is
  1922.      definitely defective.
  1923.  
  1924.  
  1925.  
  1926.  
  1927.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  1928.                                      Page40
  1929. Uart diagnostics
  1930. -----------------
  1931. 1)   Confirmed Uart setup to proper baud rate
  1932.      - The uart Dlab (divisor latch) settings are polled to make sure they
  1933.      match what the Modem Doctor intended. If not, you see the following
  1934.      displayed;
  1935.      ERROR..Uart did not set to desired baud rate
  1936.      (you should not see this message unless the divisor latch in your
  1937.      uart is defective).
  1938.  
  1939. 2)   Trying a hardware reset of the modem microprocessor
  1940.      - None of the attention commands or soft-resets to the modem have
  1941.      worked to place the modem microprocessor on-line. A hardware reset
  1942.      simulates turning the power on and off to the modem and uart.
  1943.  
  1944. 3)   WARNING...This unit does not have a compatible modem attached
  1945.      - After many tests and hardware/software resets, the Modem Doctor
  1946.      finally deduces it cannot work with this modem because it is not
  1947.      compatible. If you have a compatible modem, then you might have
  1948.      selected the wrong baud rate to work with, or you forgot to turn the
  1949.      external modem on. If there is a hardware problem, the next screen
  1950.      you will receive will be the uart diagnostics pointing out the
  1951.      problem. 
  1952.  
  1953. 4)   Modem microprocessor ON-LINE
  1954.      - The Modem Doctor successfully communicated to the modem
  1955.      microprocessor.
  1956.  
  1957. 5)   Testing Uart hardware only
  1958.      - You are running uart-only tests.
  1959.  
  1960. 6)   WARNING...The Modem Device appears to be off or not connected
  1961.      - No status is being received from the modem indicating it is on. If
  1962.      it is on, you might have a bad cable. If you are testing a uart that
  1963.      is hooked up to a serial mouse, then you will always see this message
  1964.      displayed, for a serial mouse does not use traditional uart status.
  1965.  
  1966. Report Generator Messages
  1967. --------------------------
  1968.  
  1969. 1)   You selected to clear the report stats.This means that any errors
  1970.      found will not be reported in a final report format. 
  1971.      Are you sure [Y/N]: ? 
  1972.      - All report statistics will be cleared if you respond Yes.
  1973.  
  1974. 2)   Send to file MDR.RPT 
  1975.      Send to printer LPT1:
  1976.      Send to printer LPT2:
  1977.      Send to printer LPT3:
  1978.      Do not Print /Return
  1979.      - The printed form of your report can be sent to any one of 3 dos
  1980.      printers (if the Modem Doctor detects they are installed) or to a
  1981.      file called MDR.RPT.
  1982.      
  1983. 3)   Print Buffer full or Printer off-line
  1984.      - If the Modem Doctor cannot communicate with the printer, it is
  1985.      either receiving a busy signal from the printer (which clears when
  1986.      the busy signal is lifted) or the printer is off-line.
  1987.  
  1988.  
  1989.  
  1990.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  1991.                                      Page41
  1992.  
  1993. Static DTR/DSR   RTS/CTS  Handshaking tests
  1994. -------------------------------------------
  1995.  
  1996. 1)   Lowering DTR Signal..waiting for DSR to follow
  1997.      DSR did not follow DTR dropping or is set as a permanent ON
  1998.      DSR followed DTR drop...normal for all devices
  1999.      DSR did not follow DTR raising..possible cable or modem setup problem
  2000.      DSR followed DTR raise or is set as a permanent ON
  2001.      - The DTR/DSR tests work by lowering the DTR (Data terminal ready)
  2002.      signal from the computer to the modem. If the modem uses this type of
  2003.      handshaking, it should respond by lowering its signal that is picked
  2004.      up in the uart modem status register as a DSR (Data set ready)
  2005.      signal. If not, then either the modem is not set up properly
  2006.      according to standard handshaking protocol or you have a bad cable. 
  2007.      Please note, a failure to follow DTR/DSR handshaking might keep some
  2008.      communication programs from working with your modem. If you get an
  2009.      error, consult your modem manual or have the Modem Doctor test your
  2010.      cable to an external modem with a loopback plug.
  2011.      
  2012. 2)   Lowering RTS signal..waiting for CTS to follow
  2013.      Dropping RTS Signal to modem
  2014.      Modem is using RTS/CTS Handshaking properly
  2015.      Modem is not using RTS/CTS Handshake hold
  2016.      Raising RTS line    
  2017.      CTS did not follow RTS dropping...usually normal for modems
  2018.      CTS followed RTS drop...usually normal for serial devices
  2019.      CTS did not follow RTS raising...you could have a cable problem
  2020.      CTS followed RTS raise or is set as a permanent ON
  2021.      - Like DTR/DSR, RTS/CTS handshaking tests check that if the computer
  2022.      lowers its RTS (Ready to send) line, that the modem responds in kind
  2023.      and that the CTS (Clear to send) status is echoed to the uart modem
  2024.      status register. This signal is not as important as the DTR/DSR,
  2025.  
  2026.  
  2027.  
  2028.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  2029.                                      Page42
  2030.      however if you have a high speed modem, this test should pass to
  2031.      insure proper high-speed transfers.
  2032.  
  2033.  
  2034. Carrier and Dynamic tests
  2035. ---------------------------
  2036. 1)   Sending Carrier Test info to modem
  2037.      - Commands to self-connect are beings sent to your modem.
  2038.  
  2039. 2)   T1 Loopback commands sent waiting 5 seconds till start of test
  2040.      - The alternate &T0/&T1 instruction set is being used for self tests.
  2041.  
  2042. 3)   Carrier Detected...waiting 5 seconds to the start of the test
  2043.      - The RLS (Received line signal) went to an active state or the Modem
  2044.      Doctor received the words CONNECT from the modem during self-testing.
  2045.      The 5 second delay is necessary to allow some modems to settle down
  2046.      for proper reception of characters during self-tests.
  2047.  
  2048. 4)   Using &T1 Loopback command set to modem for this test
  2049.      - If you selected the Generic driver and the Modem Doctor failed to
  2050.      connect, it uses this &T0/&T1 instruction set automatically for its
  2051.      testing. 
  2052.  
  2053. 5)   Sending 20 Characters to the modem
  2054.      - All Dynamic DTR/DSR and RTS/CTS tests force the modem to self
  2055.      connect. Next either the DTR or RTS lines are dropped, and 20
  2056.      characters are sent to the modem. If no characters are received back
  2057.      to the computer from the modem, then the Modem Doctor reports that
  2058.      the dynamic handshaking works. If a character is received, then it
  2059.      means that type of dynamic handshaking does not work.
  2060.  
  2061. 6)   Sending Xoff Signal to modem
  2062.      - An ASCII character that tells the modem NOT to send data has been
  2063.      transmitted to the modem for dynamic Xon/Xoff testing.
  2064.  
  2065. 7)   Modem is using Xon/Xoff Handshaking properly
  2066.      - 20 characters were sent to the modem, and it properly did not send
  2067.      anything back to the computer.
  2068.  
  2069. 8)   Modem is not using Xon/Xoff Handshake hold
  2070.      - 20 characters were sent to the modem, but it send them back to the
  2071.      computer, indicating it did not recognize the dynamic Xon/Xoff
  2072.      handshake test. Normally most modems do not need this handshake.
  2073.  
  2074. 9)   Sending Xon Signal to the modem
  2075.      - This restores the modem to proper operation and clears its internal
  2076.      data buffers.
  2077.  
  2078.  
  2079.  
  2080.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  2081.                                      Page43
  2082.  
  2083.  
  2084. 10)  Warning...I can't test this modem because there is no RTS/CTS
  2085.      signals. If this is an external modem, you may not have a proper
  2086.      cable or the modem is off. If you have an internal, you might have a
  2087.      port conflict or a configuration switch set improperly.
  2088.      - Most times this message is due to an improperly wired cable or a
  2089.      improper configuration of some modem switches. See your modem manual
  2090.      for setup, or use a loopback plug and the Analog loopback mode to
  2091.      test the cable.
  2092.  
  2093. 11)  Setting up the modem for the Originate Mode Carrier Test..please wait
  2094.      Setting up the modem for the Answer Mode Carrier Test.....please wait
  2095.           -Self tests commands are being sent to your modem for the
  2096.           different connect modes and frequencies.
  2097.  
  2098. General program warnings
  2099. ------------------------
  2100. 1)   Note...you hit the Escape Key during testing. This means the results
  2101.      of this test is inconclusive. You should run these tests again
  2102.      without escaping for a valid performance check.
  2103.      - You can press escape during nearly all tests that the Modem Doctor
  2104.      runs (except during crucial communication modes between the modem and
  2105.      computer, in which case as soon as this communication is completed,
  2106.      the Modem Doctor will escape with this warning.
  2107.  
  2108. 2)   INTERRUPT FAILURE Warning
  2109.      Note...No interrupts were detected or generated during testing. This
  2110.      could be due to a failure of your serial port to generate interrupts
  2111.      or you have selected an IRQ line or Comm assignment in error on the
  2112.      serial card or in a custom assignment from the Login menu manual
  2113.      mode. Check your settings and if all is ok, suspect the Uart or
  2114.      serial port card.
  2115.      - This warning can be received anytime that the Modem Doctor tries to
  2116.      talk to a modem or a uart (in analog loopback test). The most common
  2117.      cause of this problem is an incorrect jumper or comm port assignment
  2118.      on your modem or serial port. See the section on IRQ's and their
  2119.      meanings to select the proper IRQ line for your port.
  2120.  
  2121. 3)   Fixed Rate Advisory
  2122.      Note...I had to lower the baud rate to match the connect rate. What
  2123.      this means is that you are using a high speed modem with a fixed link
  2124.      rate in a variable rate mode. You might want to check your DTE/DCE
  2125.      settings in your modem Nram if this is not desired.    
  2126.      - Most high-speed modems keep the link between the computer and the
  2127.      modem running at a fixed rate, while the connection between the modem
  2128.      and the remote modem (bbs or service) operates at another rate. This
  2129.      method allows data compression and greater throughput (characters per
  2130.      second) to be received by the computer. If you have a high-speed 
  2131.  
  2132.  
  2133.  
  2134.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  2135.                                      Page44
  2136.      modem, check your settings. It is recommended you run in the fixed
  2137.      link rate whenever possible so you can gain all the benefits of data
  2138.      compression with the new data protocols.
  2139.  
  2140. 4)   Failure Report 
  2141.      RLS (Received Line Signal Detect) indicates that a carrier has not
  2142.      been received by the UART. Check modem or connector wiring 
  2143.      - This is an advisory that you might have a cable wired incorrectly
  2144.      between your computer and external modem or that your modem does not
  2145.      raise the RLS signal. This is only critical if your communication
  2146.      programs never display the words "ON-LINE".
  2147.  
  2148. 5)   Modem not responding to the Analog originate test
  2149.      - Modem never went into the self-test mode. 
  2150.  
  2151. 6)   Carrier Not Detected..5 Sec Sync Delay till start of Answer test    
  2152.      Modem not responding for Analog answer test
  2153.      - A carrier should have been received by the RLS signal or the words
  2154.      CONNECT from the modem, if not, the &T0/&T1 instructions are sent and
  2155.      the test is performed. If the modem does not respond to this test,
  2156.      then the last message is displayed indicating a problem getting the
  2157.      modem to self-test itself.
  2158.  
  2159. 7)   RLS Warning
  2160.      The Received Line Signal of your modem stayed active throughout the
  2161.      testing. Some modems have a jumper or switch that should be set to
  2162.      carrier is active only when a signal is detected. Check your manual
  2163.      to change this setting so the Modem Doctor and comm programs will
  2164.      work properly. Check your modem to make sure that Carrier isn't
  2165.      forced high 
  2166.  
  2167. 8)   NOTE.Carrier (RLS Line) active, it should not be..test may not be
  2168.      valid.
  2169.      - The RLS signal was always active. This means the Modem Doctor
  2170.      cannot figure out if the modem ever entered the self-test mode. Also,
  2171.      your communications program probably will always display the "ON-
  2172.      LINE" status. Unfortunately, this type of situation is the default
  2173.      setting from the factory of most 2400 bps modems. It can be
  2174.      reprogrammed by a simple setup command. See your modem manual for
  2175.      instructions.
  2176.  
  2177. 9)   SET YOUR MODEM TO ORIGINATE CARRIER FREQUENCY...PRESS TO CONTINUE
  2178.      SET YOUR MODEM TO ANSWER CARRIER FREQUENCY...PRESS TO CONTINUE
  2179.      - Dumb modem tests require you to flip switches on your modem.
  2180.      Usually this is the AL button. After you do this, the Modem Doctor
  2181.      should see a carrier and continue proper testing.
  2182.  
  2183.  
  2184.  
  2185.  
  2186.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  2187.                                      Page45
  2188.  
  2189. 10)  Loopback Transmit Error
  2190.      Loopback Queue Failure
  2191.      ESCAPE KEY PRESSED....ABORTING ALL LOOPBACK TESTS
  2192.      UART Control Lines set...waiting 2 seconds for CTS Handshake
  2193.      NO CTS Handshake Detected .Continuing test even though plug/line
  2194.      maybe bad
  2195.      Loopback Queue Failure 
  2196.      UART not responding using Analog Loopback Plug mode
  2197.      No Loopback Plug or General Failure of the Hardware
  2198.      Analog Loopback Test passed without any errors
  2199.      - If the analog loopback did not return characters or generate an
  2200.      interrupt, then the uart may have been tested without a loopback plug
  2201.      attached or there is a failure of the uart. If all was ok, a passed
  2202.      message is displayed.
  2203.  
  2204. 11)  Loopback Transmit Error
  2205.      UART not responding to the Digital Loopback test
  2206.      UART Registers did not set for Loop back test 
  2207.      UART Digital Test passed without any errors
  2208.      - If no characters were received, then either the uart you are
  2209.      working with is not 100% 8250-B compatible or defective. If
  2210.      everything was ok, a passed message is displayed.
  2211.  
  2212. 12)  Warning, Comm Port 1 is using Com Port 2's address.You should
  2213.      reconfigure your Serial Card to the correct Address.
  2214.      Otherwise,Communication programs won't properly operate.
  2215.  
  2216. 13)  Warning, Comm Port 2 is using Com Port 1's address.
  2217.      Do you want me to correct this for testing purposes only? [Y/N]: 
  2218.      - These error messages are received if the Modem Doctor found a Com2
  2219.      reserved address as Com1, or visa versa. Many PC owners that do not
  2220.      have built-in serial ports make the mistake of assigning a Com2
  2221.      address without having a Com1 installed. The ROM-BIOS cannot correct
  2222.      this problem or even detect it. The Modem Doctor does and will point
  2223.      out the error to you.
  2224.  
  2225. 14)  Flopping COM1/COM2 pointers in Memory only. Note..this is only valid
  2226.      till the next warmboot of your system. You must change your serial
  2227.      card settings to keep this permanent. Note...tests may not work
  2228.      properly because of this error
  2229.      - This message is displayed either in the exchange mode or when the
  2230.      Modem Doctor is asked to fix the problem of addresses in memory for
  2231.      testing only.
  2232.  
  2233. 15)  Logging out incorrect COM1 for testing purposes.
  2234.      Logging out incorrect COM2 for testing purposes.
  2235.      - If you decide not to fix a problem, the incorrect assignment is
  2236.      logged out of Dos and your choices for testing.
  2237.  
  2238.  
  2239.  
  2240.  
  2241.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  2242.                                      Page46
  2243.  
  2244.  
  2245. 16)  ALL Available COMM ports are in use...Press to Return
  2246.      - If 4 comm ports (shareware) or 8 comm ports (registered) are
  2247.      already in use, you cannot add any more in the auto-login mode to the
  2248.      Modem Doctor. Use the manual mode to override your choices for
  2249.      testing comm ports higher than 8.
  2250.  
  2251. 17)  Comm (x) Not Found ... override ? :
  2252.      - You told the Modem Doctor in manual mode that a port existed with a
  2253.      certain base port address. It was not found. If you override, this
  2254.      address is logged in for testing. This allows you to test a defective
  2255.      uart chip that might not be recognized by dos or the Modem Doctor as
  2256.      valid.
  2257.  
  2258. 18)  Sorry...your Modem.dat file has an invalid Comm port
  2259.      Sorry...I cannot find Modemdr.dat file in this directory
  2260.      
  2261.      WARNING...RESERVED PORT ADDRESS in Mdr.dat file
  2262.      correct address in hex must be between [ ]..ie [2F8]
  2263.  
  2264.      Sorry...your Modem.dat file has an invalid Speed..using 300 baud
  2265.  
  2266.      Modem Did not respond to setup string..run the Modem Doctor to check
  2267.      your modem.
  2268.  
  2269.      Programming according to file Mdr.dat
  2270.      Modem Responded to setup string and is ready for use
  2271.  
  2272.      - Running Modem Doctor in the setup (/s) mode, the file MDR.DAT is
  2273.      queried for the proper comm port, address, speed and setup string. If
  2274.      any of this is invalid, one of the messages above is received. If it
  2275.      is valid you receive the message that Modem Doctor is programming
  2276.      according to the Mdr.dat file.
  2277.  
  2278.  
  2279.  
  2280.  
  2281.  
  2282.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  2283.                                      Page47
  2284.  
  2285. Section 6. Special Modes and Information     
  2286. ---------------------------------------- 
  2287. The Modem Doctor supports a wide range of "AT" instruction set modems.
  2288. There are however "supersets" of instructions that manufacturers have used
  2289. to enhance the capability of their modems. Although there is some
  2290. structure  in this area, not all commands intermix between different
  2291. brands and lines of modems. This situation is analogous to PC computer
  2292. printers, and it  calls for a similar approach. The Modem Doctor now
  2293. supports the use of "Modem Drivers" to meet these special needs. 
  2294. Additionally, due to the increase in computers using the ISA bus, there
  2295. are more interrupt lines free to be used by modem manufacturers. For test
  2296. purposes, you can use IRQ3,4,5,7 for your hardware testing. Using the
  2297. special /S switch, you can send initialization codes to your modem from a
  2298. batch file or other command-line need to setup the modem for use. Finally,
  2299. to add some flexibility to the Modem Doctor's diagnostics,  some special
  2300. "Hot-keys" have been added. These have been discussed  above in an
  2301. operational sense, however in this section you will get some idea of how
  2302. these can help you speed up testing and test defective or non-compatible
  2303. hardware.   
  2304.          
  2305. 6.1 Using Modem Drivers 
  2306. -----------------------  
  2307. Most Modem's today are built on the original "AT" instruction set that was
  2308. developed by Hayes Micromodems in their 1200B series. This driver, named
  2309. the Generic Driver in the Modem Doctor, is used exclusively if the modem
  2310. returns an ID indicating it is a 300,1200 or 2400 bps modem. Also,       
  2311. if the modem does not return an ID, this Generic Driver is used.  The
  2312. Generic Driver can be used to test nearly all modems, however there are
  2313. some 2400 bps modems that were  built using the command structure that
  2314. Hayes Micromodems put into their 2400B line. These modems used an "&" for
  2315. some  modem setup and command functions. The Modem Doctor has a driver for
  2316. these modems called the "&T0/&T1" driver. Using this driver, the Modem
  2317. Doctor can perform a simulated  carrier test. During your testing of this
  2318. type of modem, you will notice the MB (Modem Busy) light flashing on your  
  2319. external modem. This driver (and all others) is user selectable, however
  2320. the Modem Doctor will automatically switch to it when performing the
  2321. carrier tests if the Modem was detected to be a 2400 bps modem.  The last
  2322. driver currently supported is for US Robotics Courier HST and HST
  2323. Dual/Standard V.32 Modems. The Modem Doctor recognizes these modems upon
  2324. initial testing and sets up its test parameters a certain way to
  2325. compensate for their Carrier self test limitations. 
  2326.         
  2327. Because of the trellis-encoded Async/modulation of the USR HST Mode, the
  2328. maximum Carrier test Baud rate is 2400 bps (see the USR Manual for this
  2329. info). To work around this, the Modem Doctor Programs these modems to use
  2330. a fixed DTE/DCE  Rate with the &B1 Parameter, allowing communications to
  2331. and  from the modem at speeds up to 19200 bps. When working in the V.32 
  2332.  
  2333.  
  2334.  
  2335.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  2336.                                      Page48
  2337.  
  2338. mode however, the Carrier test (and all loopback tests ) can be performed
  2339. at 9600 since the modulation is symmetrical again. Also when the selected
  2340. baud rate is higher than 2400 bps, the MNP Protocol switch is set to &M0,
  2341. otherwise if there was an error, the Modem would try to correct it instead
  2342. of passing the error on to the Modem Doctor. None of these changes is
  2343. saved to the non-volatile ROM,  so you should not experience a problem.
  2344. However, the V.32 and Dual Standard Modems might experience a problem if
  2345. register S13 is not set to 1. This is the default from the factory and
  2346. insures that the modem will be reset when the DTR line is dropped. If you
  2347. are experiencing a problem, use the interactive mode and type S13=001.
  2348. This change is not permanent. If you are using a USR Dual Standard Modem,
  2349. then the Modem Doctor will test whatever mode is active via the B switch.
  2350. If the current Modem setting is B0, then the V.32 mode will be tested, if
  2351. B1 is set, then the HST mode will be tested. You can change this setting
  2352. to whatever you wish by using the Interactive mode, type ATZ, then type
  2353. ATB0 &W or ATB1 &W. This has to be written to the firmware in order to
  2354. stay valid throughout all the testing, but the ATZ  command before a save
  2355. will always recall your settings,  insuring you have only changed the one
  2356. parameter. Please note, this is included for advanced users and is one of
  2357. the reasons for the interactive mode. It is not necessary for you to do
  2358. this to test your modem unless you wish to. For more information, see   
  2359. the section regarding "Quirks". As mentioned above, all of the Modem
  2360. Drivers are self- selecting, but can be user-selected. The status line of
  2361. your screen will display the current Port assignment, the current Baud
  2362. rate, the status of the Microprocessor, and the current modem driver being
  2363. used. Select carrier test from the main menu and move the bar to "Select
  2364. Modem Commands". You will be given a choice of the available drivers.
  2365. After you select, the status line will be updated, and you can either
  2366. start the test or return to the main menu.  The reason for modem drivers
  2367. is to allow more individualized testing of a particular type of modem, and
  2368. to allow for more modems to added to the list of specially supported
  2369. modems.
  2370.  
  2371. 6.11 External Modem Drivers
  2372. ---------------------------
  2373. Supported starting with version 4.0 is the ability to read a specially
  2374. created external modem driver file. This file makes it possible to handle
  2375. any future changes in modems by simply releasing a new driver file. When
  2376. the Modem Doctor first begins, it looks in the default directory for the
  2377. existence of this driver file. If it exists, a valid checksum is performed
  2378. to see that it is indeed a modem driver. If so, this external set of
  2379. commands is inserted in place of the internally contained modem drivers.
  2380. As of the initial release of 4.0, there are no external driver files in
  2381. circulation. Driver files will be released under 2 conditions; first, if a
  2382. bug is detected in any of the driver routines, a shareware driver file
  2383. will be released on the bulletin boards at no cost. Registered users will
  2384. be mailed at no cost the updated driver file. Second, if a registered user
  2385. would like a custom modem driver file written, we will create one at 
  2386.  
  2387.  
  2388.  
  2389.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  2390.                                      Page49
  2391.  
  2392.  
  2393. minimal charge as long as proper documentation for the type of modem is
  2394. submitted. If you wish to have an interface written, please contact us for
  2395. pricing and appropriate  information that we will need to do this for you.
  2396.  
  2397.          
  2398.          
  2399. 6.2 Using the Command Line Mode switch /S 
  2400. ----------------------------------------  
  2401. There can be special occasions where you need to initialize and test a
  2402. modem before another program can be run. The Modem Doctor now supports a
  2403. method to do this. Using the command line switch /S, you can instruct the
  2404. Modem Doctor to "wake-up" a Modem and send an initialization string to it.
  2405.  
  2406. Although similar to our product Comset, it offers some additional
  2407. flexibility but does not allow the serial port only setup that Comset
  2408. does.   To use this special mode, you need to have a companion file named
  2409. MDR.DAT that you create  with any ASCII text editor that follows this
  2410. format;  
  2411.  
  2412.      1) All information must start on the first space on each line         
  2413.      and can consist of up to 3 lines. Line 1 and Line 2 are      
  2414.      required.  
  2415.          
  2416.      2) Line 1 = Port Number 1 through 8 and an optional port address in
  2417.      [] ( For settings greater than Port 4, this address is required).
  2418.             
  2419.      3) Line 2 = the Baud Rate you wish to use (300-56000 or 3-560 are
  2420.      acceptable).  
  2421.  
  2422.  
  2423.         
  2424.      4) Line 3 = the initialization string you wish to send. This string
  2425.      must start with AT and can be up to 80 characters long. If no string
  2426.      is included in the file, or if it does not begin with the letters AT,
  2427.      then ATZ is automatically sent to the modem.   
  2428.          
  2429.      Example..to setup Port 2 to 19200 and set S7 to 255;  
  2430.      Make a file called MDR.DAT that looks like this;        
  2431.  
  2432.          2 [2F8]<--note for Port 1-4 unless it is non-standard [2F8] 
  2433.                    is not needed   
  2434.          192   
  2435.          AT S7= 255  
  2436.      Next, start the Modem Doctor by typing  MDR /S. As long as the
  2437.      MDR.DAT file is in the current working directory, these commands will
  2438.  
  2439.  
  2440.  
  2441.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  2442.                                      Page50
  2443.      be sent. If not, you will get an error message stating that MDR.DAT
  2444.      could not be found.  
  2445.  
  2446.  
  2447.  
  2448.      Why not have the Modem Doctor search all directories for the file?
  2449.      Well, the reason is so that you can put MDR.EXE in a Dos path but
  2450.      have individualized setup MDR.DAT files in different subdirectories
  2451.      for different programming needs. Instead of constantly changing the
  2452.      file, make different ones and call MDR.EXE. It will only use the
  2453.      MDR.DAT file in the current working directory.
  2454.          
  2455.      After the initialization string is sent, the Modem Doctor will wait
  2456.      up to 10 seconds for the word "OK" to return from  the modem. If it
  2457.      does not, you will get a message saying the modem failed to setup. In
  2458.      either case, whatever your modem sent to the Modem Doctor will be
  2459.      displayed. If you see the word "ERROR", that was sent from the modem,
  2460.      it probably means that your initialization string was not correct. No
  2461.      message returning could indicate a problem with the modem, or an
  2462.      invalid baud rate. When it finishes executing, the Modem Doctor
  2463.      returns an errorlevel to the calling program. An errorlevel of 0 is
  2464.      normal, an errorlevel of 99 indicates a failure. You can use these
  2465.      errorlevels to control batch processes if you wish to.  
  2466.  
  2467.      Also, this mode of the Modem Doctor uses bios screen writes, so all
  2468.      of the information displayed can be redirected to a printer, a file,
  2469.      or whatever other DOS device you wish.  Example...to send the output
  2470.      of this test to a file called Test.txt...  
  2471.  
  2472.           MDR /S  > TEST.TXT or    MDR /S >> TEST.TXT (if you wish to
  2473.           append an existing Test.txt file.  
  2474.  
  2475. If the Modem Doctor setup was successful, the modem's DTR and RTS lines
  2476. stay active, if not, they are dropped.  If you need more specialized
  2477. command-line modes of operation, you might consider Comset. Comset allows
  2478. Serial Ports and Modems to be setup at various rates and under various
  2479. conditions. Registered Modem Doctor users get a 15% discount! You can 
  2480. find Comset on most BBS's as COMSET7.ZIP.   
  2481.  
  2482.  
  2483.  
  2484.  
  2485.  
  2486.  
  2487.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  2488.                                      Page51
  2489.  
  2490.  
  2491.  
  2492.     
  2493. 6.3 Using the Hot-Keys 
  2494. ----------------------  
  2495. Hot-Keys are combinations of the ALT key plus a letter. The Modem Doctor
  2496. adds several of these Hot-keys to make it easier to test  modems at
  2497. different baud rates and to  circumvent some of the error checking that
  2498. the program performs under normal circumstances.  
  2499.          
  2500. ALT-B Change Baud rate - 
  2501. If you are testing a system that you suspect has a problem, it is best to
  2502. use the setup mode when changing the baud rate. The Setup mode will test
  2503. all the registers, and the modem microprocessor (if selected) and assure
  2504. you that all the hardware is communicating properly at each baud rate.
  2505. However, if you feel a system is running fine, using the ALT-B from the
  2506. main menu can save time when running tests at different baud rates. Press
  2507. ALT-B  and select the baud rate (taking care not to select a rate higher
  2508. that what your modem is rated for if you are doing modem tests). ALT-B
  2509. works from the main menu, and from inside the Manual interactive mode.   
  2510.          
  2511. ALT-C Clear Screen - 
  2512. This key is only active inside of the Manual interactive mode and is used
  2513. to clear the text window of any characters.  
  2514.          
  2515.          
  2516. ALT-F Force Microprocessor on-line - 
  2517. The Modem Doctor has many tests built-in to verify the working condition
  2518. of a microprocessor-based modem and will not allow a modem to be tested in
  2519. the "AT" instruction set mode if it has not properly addressed and setup a
  2520. modem microprocessor. Using the ALT-F combination forces the Modem Doctor
  2521. to perform tests as if it had properly setup a modem. This feature should
  2522. be used with care, however  its primary benefit is to help you test a
  2523. malfunctioning modem to see exactly what commands it will respond to.
  2524. Pressing ALT-F also updates the status bar to indicate that the modem
  2525. microprocessor is on-line (which may or may not be the case after this
  2526. command was issued). Version 4.0 of Modem Doctor makes this hot-key a
  2527. toggle, so pressing 1 time will change the on-line status. Pressing again
  2528. returns it back to normal.
  2529.  
  2530. ALT-H Help -
  2531. You can press this key at any time to get help on a topic or general help
  2532. depending on if you are in a menu or at the main menu selection bar.
  2533.  
  2534. ALT-R Register Display - 
  2535. This is only active inside of the Manual interactive mode and is used to
  2536. display the status of all Uart registers on the screen for diagnostic
  2537. purposes.  
  2538.          
  2539.  
  2540.  
  2541.  
  2542.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  2543.                                      Page52
  2544.  
  2545.  
  2546. ALT-X Exit Mode - 
  2547. This is only active inside of the Manual interactive mode and is used to
  2548. exit this mode. 
  2549.  
  2550. Control -Break
  2551. --------------
  2552. This allows an immediate exit from anywhere permissible inside the Modem
  2553. Doctor, however it offers you a choice to clean up or to continue. You
  2554. should not use this mode, it is better to exit via the Main menu
  2555. selection.
  2556.          
  2557.  
  2558. 6.4 Logging in Defective Ports 
  2559. ------------------------------  
  2560. If a serial port Uart is defective, the Modem Doctor will refuse to log it
  2561. in for testing. This is necessary because there is no way for it to know
  2562. what ports are defective and what are non-existent. However in Version
  2563. 4.0, you can now log-in a defective chip for testing. The procedure to do
  2564. so is explained above under Manual Login. The reason for doing so however
  2565. might not have been apparent. If any register of a serial port is
  2566. defective, it might not function properly. Logging in this defective port
  2567. will give you the full benefit of the Uart and Serial port diagnostics.
  2568. Error messages will be displayed, in most cases there will be multiple
  2569. error messages. There are two possible causes of a defective port; the
  2570. Uart chip and the Serial Port address system. If it is a chip, simply
  2571. replacing the chip fixes the problem. If it is a serial port instead, then
  2572. the same problem will repeat. How do you approach this? Well for starters,
  2573. check that the strapping on your serial port board matches the correct
  2574. COMM port assignment (ie strapped for COM1 for COM1..etc). Next, if there
  2575. is user selectable IRQ assignments, make sure it again matches the COMM
  2576. port assignment (IRQ4 for COM1/3, IRQ3 for COM2/4, IRQ5 for COM7/8, IRQ7
  2577. for COM6/7). If all this is set properly, then you can suspect the chip,
  2578. but also the Serial Port hardware that gates the address of the chip to
  2579. the computer. Finally, if you get warnings about status, but the chip logs
  2580. in, then  you might just have a bad cable from the computer to the modem
  2581. (NOTE: The Modem Doctor does not consider this an error but simply
  2582. displays a warning and allows the Uart to be logged-in for use).       
  2583.          
  2584.  
  2585.  
  2586.  
  2587.  
  2588.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  2589.                                      Page53
  2590.  
  2591.  
  2592. 6.5 What tests cannot Do     
  2593. ------------------------     
  2594. Although I tried to be extremely thorough in my tests, there are
  2595. somethings that tests just cannot do or pinpoint. If you are having
  2596. problems with excessive line-noise, you might have a bad connection
  2597. between your modem and your telephone wiring in the house. Another
  2598. possibility, although remote, is that your modem does not offer the
  2599. correct input impedance to the telephone line. This can cause poor  
  2600. connections. The problem is with the electronic design of the modem, and
  2601. again, it is more prevalent in inexpensive modems. Also, tests cannot
  2602. check that the communications program you are using is set up correctly.
  2603. At times,  installing a communications package can be very challenging for
  2604. a novice user. Tests also cannot check the wiring in your serial Cable.
  2605. The Modem Doctor will tell you if a handshaking pair is missing, but it
  2606. cant tell you why. It could be because the Uart is bad, but more than
  2607. likely, your RS-232 Cable doesn't carry all of the handshaking signals to
  2608. or from the external modem or serial device. This can be important if you
  2609. are using a high-speed modem. Most High-speed modems will drop the CTS
  2610. line when their communication buffers are full. Previous Modems ignored 
  2611. the RTS/CTS signals and instead used the DTR/DCE pair. What this means is
  2612. that if you buy a new modem, it might not work with the older-cable (yet
  2613. at the same time the older modem will work..which might lead you to
  2614. believe that you have a defective modem).      
  2615.          
  2616. 6.6 Quirks with Some Modems     
  2617. ---------------------------      
  2618. Carrier tests - 
  2619. Some Modems have two "AT" instruction sets, usually referred to as
  2620. Compatible and Enhanced. If your modem does not perform a carrier test at
  2621. speeds below 4800, then this is usually the case. Some modems provide a
  2622. dip-switch or a toggle switch to select either mode. Setting your modem to
  2623. the Standard Compatible Mode should get rid of your problems below 4800
  2624. bps. Also, make sure you select the Generic Compatible Modem Driver unless
  2625. you are sure your modem matches the modem's that have special drivers
  2626. written especially for their use. At speeds above 4800 bps, the Modem
  2627. Doctor is only compatible with USR V.32, Dual Standards (V.32 and HST) and
  2628. HST brand of modems, Hayes V9600 and Ultra 9600, and Courier 2400 modems.
  2629. If you wish to test another brand of modem that is not compatible, simply
  2630. turn off any modem-hardware error correcting using the Manual mode and
  2631. following the information in your modem users manual. Then select the
  2632. Generic Modem Driver and you should be able to test your modem properly.
  2633. Finally, if only one of the tests (Originate or Answer) runs and NO      
  2634. CARRIER is displayed for the other, the problem lies with the Enhanced
  2635. Command settings of your modem. Hayes Modems use &T1 through &T8 commands
  2636. for their 2400 and also have other special switches. The &T0 command set
  2637. is tried by this version of the Modem Doctor automatically, however there 
  2638.  
  2639.  
  2640.  
  2641.  
  2642.  
  2643.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  2644.                                      Page54
  2645. is no compensation for any other type of modems that use non-standard
  2646. commands. Again for the sake of compatibility with the widest range of
  2647. modems at speeds below 4800, this cannot be corrected for in this version.
  2648. Considering the vast numbers of "AT" compatible modems in the marketplace,
  2649. these two exceptions are minor and will not affect most users. Finally,
  2650. users of 8250 compatible Uarts that do not support the Digital (Chip)
  2651. Loopback will get an error. This should be of no concern.  However if the
  2652. test runs for a while, then fails, it could indicate a problem with your
  2653. Uart. This is explained in the pull-down window in the program. The Modem
  2654. Doctor has been tested on about 25 Modems from Major Manufacturers and on
  2655. a variety of Clones and Compatibles (plus the "Real Thing"). It is
  2656. possible that a certain combination of hardware still might give problems,
  2657. however if you are a registered user, I will find a way to make it work.  
  2658.  
  2659.          
  2660.          
  2661. Section 7. Benefits of Registration     
  2662. ------------------------------------      
  2663. Thank you for your registration. The Current Registered Version # of the
  2664. Modem Doctor is 4.0R. All Registered Users are entitled to free
  2665. Maintenance updates and these will be reflected by changes in the decimal
  2666. fraction number..ie  4.01, 4.02. Also, if a new super-duper version comes
  2667. out (5.X or 6.X), all registered users will be able to update for only $7
  2668. (plus shipping,handling and tax where applicable). Currently registered
  2669. users of version 2 and 3 can update for $5 (plus shipping, handling and
  2670. tax where applicable). If you have trouble with the Modem Doctor, or
  2671. questions, feel free to call or write. When doing either you will need to
  2672. have the Version Number, your serial number,  and in some cases the Module
  2673. Identification Number. The Version number is displayed when you first
  2674. start the program along with the serial Number. The Module Identification
  2675. numbers can be displayed at any time from the main menu after you pass the
  2676. initial setup mode. Simply type a # sign, and all of the modules that make
  2677. up the Modem Doctor will display their version numbers on the screen.
  2678. Right now, all Modules have identical version numbers from program to
  2679. program, but in the future, there could be custom modules for registered
  2680. users, so in this case the Module ID could become important. You can reach
  2681. us with your questions at 410-256-5767 or write to ;
  2682.                                 Hank Volpe
  2683.                                PO Box 43214
  2684.                              Baltimore MD 21236
  2685.          
  2686.                Thanks again for registering the Modem Doctor.
  2687.  
  2688. You can always download the latest shareware version and other communication 
  2689. utilities from the Modem Doctor BBS at 410-256-3631 (300/1200/2400/9600 HST 
  2690. [soon V.32bis]). Also, if you write your questions on the BBS, you will get a 
  2691. faster response than if you had written via the mail. 
  2692.  
  2693.  
  2694.  
  2695.  
  2696.  
  2697.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  2698.                                      Page55
  2699.  
  2700. Notes -     [+] References to USR /Courier/Dual Standard/HST
  2701.                      Copyrighted by US Robotics     
  2702.          
  2703.          [++] References to AT Instruction Set ,Smartmodem,Hayes
  2704.               Copyrighted by Hayes Inc.
  2705.          
  2706.          References to MNP refer to An error free protocol 
  2707.          Copyrighted by Microcom Inc.     
  2708.  
  2709.         References to dos, microsoft, copyrighted by IBM or Microsoft
  2710.         References to 8250B or other uarts are copyrighted by a 
  2711.         variety of manufacturers including (but not limited to ) 
  2712.             Intel, National Semiconductor.
  2713.   
  2714.          
  2715.          
  2716. Disclaimer -  
  2717. It is not the intent of the author to recommend any brand of modem over
  2718. another nor to infringe on the copyrights of the manufacturers by
  2719. mentioning their products. A modem fits a need, and whatever one works for 
  2720. you is the one you should have. As time goes on, more modems will be added
  2721. to the list of "special enhanced " tests. The modems mentioned are done so
  2722. only because of the popularity they enjoy and for no other reason. All
  2723. programming of modems for testing is done with simple character strings,
  2724. similar to any type of data that can be sent to a modem or a serial port.
  2725. Any modem, whether AT compatible or not, can be handled by the Modem
  2726. Doctor with special software drivers. These software drivers will be
  2727. distributed free of charge as needed for general use. Custom drivers
  2728. created by Hank Volpe for particular clients however will require a fee
  2729. for handling and programming time.
  2730.  
  2731.  
  2732.  
  2733.  
  2734.   The Modem Doctor Ver 4.0 copyr 1989,1990,1991 Hank Volpe     Tech Reference
  2735.                                      Page56
  2736.  
  2737. Modem Doctor History
  2738.        
  2739.          Ver 4.0 -  New tests added for dynamic handshaking and static 
  2740.                     handshaking. New report generator features, new
  2741.                     exchange mode. Higher baud rates, cleaner windows that
  2742.                     grow to meet commands. Recognition of mouse inputs via
  2743.                     a compatible mouse driver. Expansion of internal modem
  2744.                     drivers and ability to read external modem drivers.
  2745.                     Improved brute-force reading for faster digital
  2746.                     loopback tests. Automatic aborting of modem tests when
  2747.                     IRQ failures are detected. New advisories for fixed-
  2748.                     link rate, IRQ failures, wrong comm port assignments,
  2749.                     swapped comm port assignments. Addition of custom
  2750.                     color selections, pulldown windows that stay when
  2751.                     left-right arrow keys are moved. Updating of 16550 AN
  2752.                     support for resetting and clearing buffers.
  2753.                     Replacement of all internal comm drivers with new dos
  2754.                     independent routines. Correction of many (and
  2755.                     hopefully all) spelling errors.
  2756.  
  2757.          Ver 3.0 - New tests added for 16450/16550/16550AN Uarts.
  2758.                    Improved Control-Abort handling, Regs command now 
  2759.                    performs a full diagnostic call when activated. 
  2760.                    Hot-Keys added (Force Micro, Baud Rate Select). 
  2761.                    Modem Driver software added to program, Status Bar 
  2762.                    added to program. Support for IRQ 3,4,5,7 added 
  2763.                    via COM1 through COM8 log-ins. Speed increased to 
  2764.                    38.4KB. /S Command line option added for setup of 
  2765.                    a modem including batch file errorlevel support. 
  2766.                    Escape key functionality added to Carrier Tests 
  2767.                    and the loopback tests.
  2768.                                       
  2769.          Ver 2.2 - Corrects a bug in Ver 2.1 Communication routines
  2770.                    that caused some modems to lock-out because they 
  2771.                    were waiting for two carriage returns to begin. 
  2772.                    Also it added 4 diagnostic Uart tests
  2773.          
  2774.          Ver 2.1 - This version was a Beta test. A Beta tester 
  2775.                    accidentally uploaded this to several boards. 
  2776.                    Please remove all Ver 2.1S software that you may 
  2777.                    find.
  2778.          
  2779.          Ver 2.0 - This version also was a Beta test with support
  2780.                    for COM1-2 and 2400 bps maximum
  2781.          
  2782.          Ver 1.0 - First test version
  2783.