[ Previous | Next | Contents | Home | Search ]
AIX Versions 3.2 and 4 Asynchronous Communications Guide

Running the Remote Asynchronous Node Diagnostics

This procedure allows you to run diagnostics on your remote asynchronous node (RAN) in one of two modes:

Front Panel Mode Diagnostics are run from the front panel of the RAN.
Video Mode Diagnostics are run from a terminal attached to the RAN.

The diagnostics routines can test the following aspects of the RAN:

Run Diagnostics from the Front Panel

  1. Disconnect the RAN from the adapter and other RANs before running diagnostic tests. Make sure the RAN is terminated.
    Note: Refer to "Removing or Replacing a RAN"
  2. Turn the power switch to the Off (O) position.
  3. Press and hold the Right Arrow button while turning the power switch to the On ( | ) position.
  4. The front panel display window shows P0 . Then, starting with the leftmost LED and proceeding to the right, all LEDs must turn on one at a time until all LEDs are on. All the LEDs then turn off. At this point, release the Right Arrow button. The number 1 with a blinking "." in the lower-right corner of the window will be displayed. The 1 refers to TEST 1, the blinking "." in the lower-right corner of the window indicates that TEST 1 is currently selected.
  5. Use the right arrow button to cycle through the possible test numbers 1-9.
  6. When the desired test number is displayed in the window, press the Left Arrow button to start the test. A solid "." will display in the lower-left corner of the window to indicate the test is currently running.
  7. To stop a test, press the Left Arrow button once. The status of the test will display in the window. A Pn indicates the test passed successfully. An Fn indicates a failure of test n.
  8. To exit diagnostic test mode and return to the initialized state (P1), run TEST 9, the Watchdog timer test. This test ends by resetting the RAN and running the POST sequence.

Run Diagnostics from a Terminal

  1. Disconnect the RAN from the host adapter and other RANs before running diagnostic tests. Make sure the RAN is terminated properly using wrap plugs.
  2. Turn the RAN off by switching the power switch to the Off (O) position.
  3. Connect a serial terminal to either port 0 or port 15. Set the terminal's communications parameters to VT100 emulation, 9600, 8 data bits, no parity, and 1 stop bit.
  4. Turn the RAN's power switch to the On ( | ) position. The lights on the front panel should flash as the RAN executes its power-on self-test (POST) sequence, and the seven-segment LED display will display P1 to indicate that the POST sequence passed.
  5. While P1 is displayed on the front panel, press the letter V (either uppercase or lowercase) on your terminal.

    See this illustration for an example of the Diagnostics Menu displayed on the screen of the serial terminal.

    Note: Some terminals (including the Wyse 60) will not transmit data if their clear to send (CTS) line is LOW. They will only transmit if CTS is HIGH or floating. When using a fully configured null modem cable, the terminal's CTS line is connected to the RAN's request to send (RTS) line, which is held LOW by the RAN until AC is displayed. This can prevent the terminal from communicating with the RAN when attempting to run diagnostics.

    If you are using such a terminal, use a cable that does not have CTS connected at the terminal's end.

  6. Enter test selection or command.

Diagnostics Menu Options Descriptions

1-9 Runs individual tests as shown on the menu. Refer to "Diagnostic Test Descriptions" for further information.
A Runs all tests except test 9 (Watchdog timer test). The screen will display the number of passes run for each test. The test will halt if an error is detected if Stop on 1st is set to Y.
N Runs the test continuously, keeping count of the errors detected. This must be selected prior to running the test.
Esc key Cancels test execution at any time during execution. The current pass of the test will be completed and control will be returned to the terminal.
B Toggles the bell option. When set to ON , the terminal beeps each time an error is encountered.
D Allows you to dump 256 bytes of the RAN's memory to the screen beginning with a specified address (you will be prompted for the starting segment address).
S Allows you to view or change the RAN's node number. The node number is written in three different EEPROM locations to ensure correctness of the number.
T Toggles the loopback mode for the EIA 422 and EIA 232 tests (tests 6 and 7) between INTERNAL and EXTERNAL. When set to INTERNAL, the signals are looped back internally by the relays in the RAN. When set to EXTERNAL, a standard 8-wire daisy-chain cable must be installed between the RAN's IN port and its OUT/T port.

Diagnostic Test Descriptions

TEST 1: Front Panel Test This test alternately turns on and off at one-second intervals all 10 LED indicators and all segments (plus the decimal point) of both seven-segment displays to verify proper operation of the front panel indicators. Since the indicators are write-only, the operator must visually verify success or failure of the test.
TEST 2: Memory Test Each pass of this test performs a pattern test and an address tag test of DRAM. The byte pattern is incremented for each pass and is displayed on LEDs 0-7. The pattern is written to 32KB, beginning at 08000H. The pattern is written again to 32KB beginning at 10000H. The two 32KB blocks are compared to determine the pass or fail status of the test.
The address tag test writes 32KB beginning at address 08000H. Address 08000H will be written with 0H, address 08001h will be written with 1h, etc. This same tag pattern will be written beginning at address 10000H. The two 32KB blocks are compared to determine pass or fail status.
TEST 3: Memory/DMA Test The DMA tests DMA transfers from one memory location to another. This test may be run without being connected to the RAN. The byte pattern is incremented for each pass and is displayed on LEDs 0-7. The pattern is written to 32KB beginning at 08000H. DMA0 is used to move the 32 KB from 08000H to 10000H. When the move is complete, DMA0 interrupts the CPU and the two 32KB blocks are compared to determine pass or fail status. If the DMA transfer is not completed within 2 seconds, a time-out error causes the test to fail.
TEST 4: Asynchronous Internal Test This test checks the asynchronous ports hardware. The test puts the port in local loopback mode. The four output signals (DTR, RTS, OUT1, and OUT2) are looped back within the UART chip to the four input signal lines (CTS, DSR, DCD, and RI). The following steps are completed:
  • The output and input signals are checked for high and low conditions.
  • The ports are initialized to 9600 baud, 8 data bits, 1 stop bit, and no parity.
  • Data is transmitted and received at the same port.
  • Received data is compared to the transmitted data.
  • An interrupt is generated and checked for each port.

This test functions differently depending on whether it is run in video mode or front panel mode.

  • Front Panel Mode

    In front panel mode, all 16 asynchronous ports of the RAN are checked in each pass. To begin the test, press the Left Arrow button while the number 4 is displayed in the seven-segment LED display. The left-hand digit of the seven-segment display shows a pass count. The first five LEDs (TD, RD, RTS, CTS, and DSR) give a binary representation of the number of the port under test (TD=LSB; DSR=MSB). The test will be repeated until a failure occurs, or until the Left Arrow button is pressed. At this point either P4 (pass) or F4 (fail) will be displayed. Press the Left Arrow button now to restart the test or the Right Arrow to advance to TEST 5.

  • Video Mode

    In video mode, 15 asynchronous ports (1-15 if the terminal is connected to Port 0, or 0-14 if the terminal is connected to Port 15) are tested in each pass. In addition to the number of passes and errors, the display shows the number of each port under test, and its pass/fail status. A failure will also result in a beep from the terminal.

TEST 5: Asynchronous External Test This test is used to check the asynchronous ports and their associated driver and receiver circuits. Loopback plugs are required. See "RAN Diagnostics Loopback Plug" for more information. These plugs enable one asynchronous port to transmit and receive data. The following steps are completed:
  • The two control signals (DTR and RTS) are used to test the four input signals (DSR, DCD, CTS, and RI) on the same port.
  • The port is tested for transmit and receive data:
    • DTR is looped back to DCD and DSR.
    • RTS is looped back to CTS and RI.
    • The port is initialized to 9600 baud, 8 data bits, 1 stop bit, and no parity.
    • Data is transmitted out of the port and received by the same port.
    • Received data is compared to the transmitted data.

This test functions differently depending on whether it is run in video mode or front panel mode.

  • Front Panel Mode

    This mode checks one port at a time. Only one loopback plug is needed. Pressing the Left Arrow button once will display the current port number to be tested. Pressing the Left Arrow button repeatedly causes the port number to be incremented through all 16 ports. The test will be repeated until a failure occurs or until the Left Arrow button is pressed again. At this point, either P5 (pass) or F5 (fail) will be displayed. Once the test is halted, pressing the Left Arrow button again increments the port number as before. To advance to TEST 6, press the Right Arrow button while P5 or F5 is shown.

  • Video Mode

    In video mode, 15 asynchronous ports are tested in each pass. For repeated testing, 15 loopback plugs are necessary. In addition to the number of passes and errors, the display shows the number of each port under test, and its pass/fail status (a failure will beep the terminal).

    To test a single port in video mode, plug the loopback plug in the port to be tested and set Stop on first error to YES . If the port passes, 14 errors will be counted (for 14 ports with no loopback plugs). If the port fails, 15 errors will be reported.

For repeated testing of a single port, front panel mode is recommended.

TEST 6: Sync EIA 422/DMA Test This test uses DMA0, DMA1, and the SCC 8530 sync port to transmit, receive, and verify data using the EIA-422 circuitry. The byte pattern is incremented for each pass and is displayed on LEDs 0-7. The pattern is written to a block of memory beginning at address 08000H.

DMA0 (Rx) and the sync port are used to move the block of data from 08000H to 10000H. The test checks three modes of synchronous data transmission: 8-wire, 1.2 Mbps (32K-byte blocks); 4-wire NRZI, 230 Kbps (8K-byte blocks); and 4-wire FMO, 460 Kbps (16-byte blocks).

When the move is complete, the sync port generates an interrupt and the two blocks are compared to determine pass or fail status. If the DMA transfer using the sync port is not completed within 2 seconds, a time-out error causes the test to fail.

  • Front Panel Mode

    While 6 is shown in the seven-segment LED display, press the Left Arrow button to begin the test. The left-hand digit will now show the number of sync port receive interrupts and the right-hand digit displays the number of transmit interrupts. This test always runs in internal mode (no loopback plug is required) and checks the port in three modes of synchronous transmission. The test halts when an error is detected (F6 will be displayed) or when the Left Arrow button is pressed again (P6 will be displayed). At this point pressing the Left Arrow button again restarts the test; pressing the Right Arrow button advances to TEST 7.

  • Video Mode

    This test can be run with internal or external loopback mode. The current mode is indicated at the end of the <T>oggle menu option line. To select between internal and external mode, press T. In internal mode, the port is tested in three modes of synchronous transmission. In external mode, only one transmission method is checked (8-wire, 1.2 Mbps, 32 Kbyte blocks). External mode requires a standard 8-wire daisy-chain cable to be installed between the concentrator's IN port and its OUT/T port.

TEST 7: Sync EIA 232/DMA Test This test uses DMA0, DMA1, and the SCC 8530 sync port to transmit, receive, and verify data using the EIA-232 circuitry. The byte pattern is incremented for each pass and is displayed on LEDs 0-7. The pattern is written to 512 bytes beginning at address 08000H. DMA1 (Tx), DMA0 (Rx), and the sync port are used to move the 512 bytes of data from 08000H to 10000H at an SDLC rate of 19200 baud. When the move is complete, the sync port generates an interrupt, and the two 512-byte blocks are compared to determine pass or fail status.

If the DMA transfer using the sync port is not completed within 2 seconds, a time-out error causes the test to fail. An audible relay click will be heard upon entering and exiting this test. In video mode, this test can be run with either internal or external loopback by pressing T on the terminal. The external mode requires a standard 8-wire daisy-chain cable to be installed between the RAN's IN port and OUT/T port.

TEST 8: EEPROM Test This test generates a checksum of the EPROM contents and compares it with the checksum stored in the EEPROM. If the checksums match, the test passes. This does not write to the EEPROM (EEPROM write operations only occur when a new node number is set).
TEST 9: Watchdog Timer Test This test checks out the watchdog timer. This is a hardware feature that is used to ensure system reliability. When the watchdog timer is loaded and enabled, the timer begins counting down. It is up to the system to keep reloading the timer to prevent it from expiring. If the timer expires, the hardware forces the CPU into a reset state and the POST sequence is started (exactly as if the concentrator is turned off and then on again). Normal test execution allows the timer to expire and force POST execution. The test fails after 1 second if the timer has not expired.

[ Previous | Next | Contents | Home | Search ]