After you have assembled the required items, follow these steps to prepare the MUT for remote debugging:
Connect one end of the data cable to the modem, and the other end to the serial port on the MUT. If the MUT has more than one serial port, connect the cable to the port configured as COM2 (the debug kernel uses COM2 by default). On PS/2 systems, the reference diskette can tell you which port is configured as COM2. Connect the telephone line to the modem, and power the modem on.
Programming the modem may be a complex process, depending on the type of modem and the intended use. There are two ways to program the modem:
The "quick" programming is performed by the debug kernel itself through use of the KDB.INI file. In addition to containing start up commands for the debugger KDB.INI can also contain modem initialisation strings coded as operands to the Kernel Debugger ? command. For this reason, the modem must be connected and powered on when the MUT is booted, and cannot be powered off until debugging is complete.
The first lines of the KDB.INI may will be COM port selection and parameters if defaults are not suitable, for example:
The "quick" programming strings for several popular modems are as follows.
1. In CONFIG.SYS add the following line RUN=C:\OS2\CMD.EXE /K C:\MODEM.CMD 2. Edit a file called MODEM.CMD and enter the following two lines MODE COM2:9600,N,8,1 COPY MODEM COM2 3. Edit a file called MODEM and enter the following line AT&K4&D0S0=1&W
To use "Full" programming, you will configure the modem with the same features as in "quick" programming, but the settings will be stored in the modem's firmware (or set in modem switches). Determining how to store these settings can be difficult. A thorough study of the modem manual may be required. To program the modem, use a terminal emulation program (for example, the SOFTERM program that is supplied with OS/2). When programming the modem, Set the terminal program for 9600 BPS operation, and type the appropriate modem string. Since the initialisation string instructs the modem to suppress result codes, the modem will not return a response. The "FULL" programming strings for several modems are:
AT&F &B1 &H2 &I2 &W
Once the modem is connected, and programmed, the system should be ready for remote debugging. Re-boot the system with the debug kernel installed. When the telephone rings, the debug modem should answer the phone, and establish connection with the caller. The modem-to-kernel speed should remain at 9600 bps (the default speed used by the debug kernel), but the modem-to-modem speed can be whatever is used by the remote modem. If both modems support error correction, correction will be used.