DIAG PR[int] [ Troubleshooting Terminal, Printer, and Serial Device Connections ] MPE/iX 5.0 Documentation
Troubleshooting Terminal, Printer, and Serial Device Connections
DIAG PR[int]
Determines if the connection between a DTC and one of its devices is
functioning properly by printing to the device.
Security level: 2.
Syntax
________________________________________________________________________
| |
| |
|PR[INT] dtcnum,cardnum, portnum |
________________________________________________________________________
Parameters
dtcnum
The number TermDSM associates with a particular DTC. The DTC command
lists each DTC with its assigned number. This list is also printed when
you make a mistake while typing in a DTC number.
cardnum
Number of the interface card within the DTC to which the device is
connected. The cards are numbered from zero beginning at the bottom of
the DTC.
Range: 0 - 5
portnum
Number of the port on the interface card. As you face the back of the
DTC, the ports are numbered from zero beginning at the left of the board.
Range: 0 - 7 for direct connections.
0 - 5 for modem connections.
NOTE This subcommand aborts the session at the terminal under test.
Data for that session is lost.
Description
This diagnostic is supplied primarily for use with devices that do not
support loopback tests, such as serial printers, or unsupported
terminals.
When the subcommand is entered you will be asked:
Do you want to stop looping if an error is found
(yes/no)?
If you answer yes, the series of print operations will stop if an error
is encountered. For example, you specified you want the test to run 10
times and an error is encountered in the third printing. If you answered
yes to this last question, the remaining seven tests will not be run. If
you answered no, all 10 print operations will be executed regardless of
the results of each test. The following is then printed on the terminal:
Please connect and make ready (power on, remote mode,
etc.) a supported printer (or terminal), before
answering the "How many times?" message. (TDSM 115)
How many times do you want to repeat this operation?
You should then enter how many times you want to run the print operation.
Enter a number between 1 and 65535. Then the following is displayed:
Type CONTROL_Y to stop the looping.
Any time that you want to stop the diagnostic, press CTRL-Y. The
diagnostics prompt will be printed and you will be allowed to enter
another subcommand.
The Print-to-Port subcommand sends the following string of characters to
the device:
JKLMNOPQRSTUVWXYZ[\]^_'abcdefghijklmnopqrstuvwxyz
If TermDSM knows that this test has failed, an error message will be
printed listing the reason for the failure and how many milliseconds the
test ran before failing.
NOTE If the test passes according to TermDSM, then it is your
responsibility to inspect the output of the test to see if it
matches the string of characters listed above. TermDSM cannot know
the final outcome of the test; therefore, the only way to be sure
that the test was successful is through visual inspection.
The diagnostics prompt will be printed on the terminal in order to allow
you to enter another subcommand.
Example
(diagnostics)
SElftest # (DTC Selftest)
PRint #,#,# (Print to specified port)
Internal #,#,# (Internal loopback on specified port)
EXTernal #,#,# (Loopback through hood on specified port)
terminal #,#,# (Write and read to terminal on that port)
(carriage return to exit) ?PR 2,3,1
Do you want to stop looping if an error is found (yes/no)? Y
Please connect and make ready (power on, remote mode, etc.) a supported
printer (or terminal), before answering the "How many times?" message.
(TDSM 115)
How many times do you want to repeat this operation? 10
The test passed 10 times and failed 0 times.
(diagnostics)
SElftest # (DTC Selftest)
PRint #,#,# (Print to specified port)
Internal #,#,# (Internal loopback on specified port)
EXTernal #,#,# (Loopback through hood on specified port)
Terminal #,#,# (Write and read to terminal on that port)
(carriage return to exit) ?
The Print-to-Port subcommand above prints the character string to the
second port of the fourth card in DTC number two. (Remember that ports
and cards are numbered starting with zero.) The test was successful all
ten times that it ran according to TermDSM. You must visually check the
output of all ten tests to make sure that the prints were successful.
MPE/iX 5.0 Documentation