[Top] [Prev] [Next] [Bottom]

Chapter 8

Serial (Quad) Diagnostic Program


This chapter describes the diagnostic program for the quad serial interface card. It includes the following sections:

General Description

Executing the Diagnostic Program

General Description

The diagnostic program for the quad serial card includes the following groups of tests:

For information on error logging and error statistics, refer to Chapter 2.

Executing the Diagnostic Program

To run the quad serial diagnostic program, boot the router diagnostic program. Chapter 1 provides the boot procedure.

Once the router diagnostic program boots, the screen displays the Mode Menu. Select "Use automatic mode of operation" to automatically run all of the diagnostic programs. Or, select "Use manual mode of operation" to run the diagnostic programs individually. Chapter 1 provides additional information on automatic and manual mode.

To display the main menu for the quad serial diagnostic program, follow this procedure:

1. When the router diagnostic program boots, the console displays the Mode Menu. Select "Use manual mode of operation" to display the Main Menu.
2. From the Main Menu, select "Execute Diagnostics." This displays the Diagnostic Execution Menu.
3. If the quad serial interface card has been added to the system configuration using the router diagnostic program, the Diagnostic Execution Menu lists the card as a menu item with a number in the parentheses. Enter the menu item number that lists the quad serial interface card. The console then displays the following message followed by the main menu for the quad serial diagnostic program:
CNX Quad Serial Line Stand alone Diagnostic Version #.#

------------------------------------------------------------

------------------------------------------------------------

I/O Base Address: # Slot Number: #

If the quad serial interface card is not listed on the Diagnostic Execution Menu and/or a number is not in the parentheses, refer to page 15.

4. Figure 8-1 summarizes the main menu items for the quad serial diagnostic program.

Menu Item Function
0. Return to previous menu
Displays the previous menu.
1. Interface Bus Test Group
Checks the interface logic between the host processor and the serial interface card.
2. SCA Register Test Group
Tests the registers of the HD64570 serial communications adapter (SCA).
3. SCA Timer/Interrupt Test Group
Tests the timer and interrupt generation functions of the SCA.
4. SCA Internal Loopback Test Group
Checks whether data loops internally within the SCA chip.
5. Arbitration Test Group
Checks whether direct and indirect access of the quad serial interface card can be done simultaneously.
6. All of the Above
Runs all of the tests listed above this menu item.
7. External Loopback Test Group
Checks whether data loops externally through the level converter and cables.
8. Network Test Group
Stresses the transmit and receive capabilities of the quad serial interface card when it is connected to a network.
A. Toggle Diagnostic Flags
Displays the Router Diagnostic Flow Control Flags Menu.
B. Setup Diagnostic Parameters
Displays the Router Diagnostic Parameters Setup Menu.
C. Quad Serial Line Parameters
Displays the Quad Serial LIne Parameters Menu
(
Figure 8-3).
D. Quad Serial Line Utilities
Displays the Quad Serial LIne Utilities Menu
(
Figure 8-3).

Figure 8¯1 Quad Serial Line Diagnostic Main Menu

Setting the Serial Line Parameters

You can set the parameters for some of the diagnostic tests. This option is available if the menu lists Setup Serial Line Parameters as an item. Figure 8-2 describes the Quad Serial Line Parameters Menu.

Menu Item Function
0. Return to previous menu
Displays the previous menu.
A. Toggle Diagnostic Flags
Displays the Router Diagnostic Flow Control Flags Menu.
B. Setup Diagnostic Parameters
Displays the Router Diagnostic Parameters Setup Menu.
C. Set PCR value
The DMA priority control register (PCR) specifies channel priority. The default is 0x14.
D. Set TMC value
The time constant register (TMC) specifies the value to be loaded into the reload timer in the baud rate generator when clocking is generated internally. The Hitachi Serial Communications Adapter (SCA) HD65570 User's Manual lists the TMC values.
E. Set TXS value
The TX clock source register specifies the transmit clock source and the baud rate of the baud rate generator in the transmitter when clocking is generated internally. The Hitachi Serial Communications Adapter (SCA) HD65570 User's Manual lists the TXS values.
F. Set RXS value
The RX clock source register specifies the receive clock source and the baud rate of the baud rate generator in the receiver when clocking is generated internally. The Hitachi Serial Communications Adapter (SCA) HD65570 User's Manual lists the RXS values.
G. Reset Quad Serial Line card
Resets the quad serial line card.
H. Start DDT
Starts the DDT debugger. The DDT commands are in the router-specific installation guide.

Figure 8¯2 Quad Serial Line Parameters Menu

Setting the Serial Line Utilities

Figure 8-3 describes the Quad Serial Line Utilities Menu which reads and writes selected registers.

Menu Item Function
0. Return to previous menu Displays the previous menu.
A. Toggle Diagnostic Flags Displays the Router Diagnostic Flow Control Flags Menu.
B. Setup Diagnostic Parameters Displays the Router Diagnostic Parameters Setup Menu.
C. Write Modem Output Control Register DCE DTE Enable Tests the modem output control signals for the DCE and DTE.
Menu Item Function
D. Write Level Converter Enable Register DCE DTE Enable Tests the 16-bit level converter register which contains the level converter ID for each port.
E. Write Modem Control Output Register - Channel 0 & 1 Tests modem signaling from the DTE and DCE on ports 0 and 1.
F. Write Modem Control Output Register - Channel 2 & 3 Tests modem signaling from the DTE and DCE on ports 2 and 3.
G. Read Modem Control Input Register Tests modem control input signaling on all ports.
H. Turn On Cable OK LEDs Enables the cable OK LEDs for the daughtercards (level converters) to check LED functionality.
I. Turn Off Cable OK LEDs Disables the cable OK LEDs for the daughtercards (level converters) to check LED functionality.
J. Turn On Line-Up LEDs Enables the front bracket UP LED on the quad serial card to test LED functionality.
K. Turn Off Line-Up LEDs Disables the front bracket UP LED on the quad serial card to test LED functionality.
L. Read Cable Register Reads the cable ID of each channel.
M. Read Level Converter Register Reads the level converter ID of each channel.
N. Reset Quad Serial Line Card Resets the quad serial line card.

Figure 8¯3 Quad Serial Line Utilities Menu

Selecting Test Data Patterns

Selecting "User Selected Register" from a menu displays the Data Pattern Menu (Figure 8-4) to select the data patterns written to the register during the test. Test Name is the the register you are currently testing.

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. All Zeros Writes all zeros to the register.
2. All Ones Writes all ones to the register.
3. Alternating Zeros and Ones Writes alternating zeros and ones to the register.
4. Alternating Ones and Zeros Writes alternating ones and zeros to the register.
5. Walking Zero Writes a word pattern of ones with a zero moving through the word.
6. Walking One Writes a word pattern of zeros with a one moving through the word.
7. All of the Above Runs all of the tests listed above this menu item.
8. User Supplied Pattern Displays the following prompt to enter a data pattern in hexadecimal format: Enter a data pattern in HEX (0 <= pattern <= FF) [ ]:
A. Toggle Diagnostic Flags Displays the Router Diagnostic Flow Control Flags Menu.
B. Setup Diagnostic Parameters Displays the Router Diagnostic Parameters Setup menu.

Figure 8¯4 Data Pattern Menu

Interface Bus Test Group

This group tests the interface logic between the host processor and the quad serial interface card. Figure 8-5 describes the Interface Bus Test Group Menu.

Menu Item Function
0. Return to previous menu
Displays the previous menu.
1. MODID Register Test
Reads the module ID register and displays the version number of the quad serial interface card.
2. Bus Interface Test (Modem Output Control Reg DTE DCE Select)
A read and write test that uses the following data patterns: 0x80, 0xFF, 0xAA, 0xD5, and 0x7F.
3. Bus Interface Test (Modem Control Output Reg 0/1)
A read and write test that uses the following data patterns: 0x8080, 0xFFFF, 0xAAAA, 0xD5D5, 0x7F7F.
4. Bus Interface Test (Modem Control Output Reg 2/3)
A read and write test that uses the following data patterns: 0x8080, 0xFFFF, 0xAAAA, 0xD5D5, 0x7F7F.
5. All of the Above
Runs all of the tests listed above this menu item.
A. Toggle Diagnostic Flags
Displays the Router Diagnostic Flow Control Flags Menu.
B. Setup Diagnostic Parameters
Displays the Router Diagnostic Parameters Setup Menu.
C. Quad Serial Line Parameters
Displays the Quad Serial Line Parameters Menu.
D. Read ECO Level
Displays the current ECO level of the quad serial interface card.

Figure 8¯5 Interface Bus Test Group Menu

SCA Register Test Group

This group tests the registers of the HD64570 serial communications adapter (SCA). Figure 8-6 describes the SCA Register Test Group Menu.

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. SCA Ports 0 and 1 Tests the registers of the SCA for ports 0 and 1. This menu item displays the SCA Ports # and # Menu (Figure 8-7).
2. SCA Ports 2 and 3 Tests the registers of the SCA for ports 2 and 3. This menu item displays the SCA Ports # and # Menu (Figure 8-7).
3. I/O Map Select Test Checks the selection of the SCA and the local register.
4. All of the Above Runs all of the tests listed above this menu item.
A. Toggle Diagnostic Flags Displays the Router Diagnostic Flow Control Flags Menu.
B. Setup Diagnostic Parameters Displays the Router Diagnostic Parameters Setup Menu.
C. Quad Serial Line Parameters Displays the Quad Serial Line Parameters Menu.

Figure 8¯6 SCA Register Test Group Menu

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. Interrupt Vector Register (IVR) Tests the IVR, for ports 0 and 1, which stores vector address output to the match processor unit (MPU).
2. Time Constant Register
(TMC) - Channel 0
Tests the TMC for ports 0 and 1 to check that a value is loaded into the reload timer in the internal baud rate generator.
3. Time Constant Register
(TMC) - Channel 1
Tests the TMC for ports 2 and 3 to check that a value is loaded into the reload timer in the internal baud rate generator.
4. Destination Address Reg.
Low (DARL) - Channel 0
Tests the low destination address register.
5. Timer Up-Counter Reg. Low (TCNTL) - Channel 0 Tests the low values of the timer-up counter.
6. Physical Address Boundary Reg. 0 (PABRO) Tests the boundary address between the physical address low area and the physical address middle area.
7. Register Address Test Checks for stuck address bits on the SCA.
8. All of the Above Runs all of the tests listed above this menu item.
(continues)

Menu Item Function
9. User Selected Register Displays the Data Pattern Menu (Figure 8-4).
A. Toggle Diagnostic Flags Displays the Router Diagnostic Flow Control Flags Menu.
B. Setup Diagnostic Parameters Displays the Router Diagnostic Parameters Setup Menu.
C. Enter User Selected Register Allows you to enter the address of the SCA register you want to test.
D. Reset Quad Serial Line Card Resets the quad serial line card.

Figure 8¯7 SCA Ports 0 and 1 Menu

SCA Timer/Interrupt Test Group

This group tests the timer and interrupt generation functions of the SCA. Figure 8-8 describes the SCA Timer/Interrupt Test Group Menu.

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. SCA Ports 0 and 1 Tests the following timer registers: TCNT, TCONR, TCSR, and TEPR. This item displays the SCA Ports # and # Menu (Figure 8-9).
2. SCA Ports 2 and 3 Tests the following timer registers: TCNT, TCONR, TCSR, and TEPR. This item displays the SCA Ports # and # Menu (Figure 8-9).
3. Interrupt Mask Bit Test Checks that the interrupt can be masked with this bit.
4. All of the Above Runs all of the tests listed above this menu item.
A. Toggle Diagnostic Flags Displays the Router Diagnostic Flow Control Flags Menu.
B. Setup Diagnostic Parameters Displays the Router Diagnostic Parameters Setup Menu.
C. Reset Quad Serial Line Card Resets the quad serial line card.

Figure 8¯8 SCA Timer/Interrupt Test Group Menu

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. Timer 0 Tests the timer-up counter (TCNT).
2. Timer 1 Tests the timer constant register (TCONR).
3. Timer 2 Tests the timer control/status register (TCSR).
4. Timer 3 Tests the timer expand prescale register (TEPR).
5. All of the Above Runs all of the tests listed above this menu item.
A. Toggle Diagnostic Flags Displays the Router Diagnostic Flow Control Flags Menu.
B. Setup Diagnostic Parameters Displays the Router Diagnostic Parameters Setup Menu.
C. Quad Serial Line Parameters Displays the Quad Serial Line Parameters Menu
(
Figure 8-2).

Figure 8¯9 SCA Ports 0 and 1 Menu

SCA Internal Loopback Test Group

This group tests whether data loops internally within the SCA chip. Figure 8-10 describes the SCA Internal Loopback Test Group Menu.

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. SCA Port 0 Loopback Test Tests the transmit and receive functions of SCA port 0.
2. SCA Port 1 Loopback Test Tests the transmit and receive functions of SCA port 1.
3. SCA Port 2 Loopback Test Tests the transmit and receive functions of SCA port 2.
4. SCA Port 3 Loopback Test Tests the transmit and receive functions of SCA port 3.
5. All of the Above Runs all of the tests listed above this menu item.
A. Toggle Diagnostic Flags Displays the Router Diagnostic Flow Control Flags Menu.
B. Setup Diagnostic Parameters Displays the Router Diagnostic Parameters Setup Menu.
C. Quad Serial Line Parameters Displays the Quad Serial Line Parameters Menu
(
Figure 8-2).

Figure 8¯10 SCA Internal Loopback Test Group Menu

Arbitration Test Group

This group tests whether direct and indirect access of the quad serial interface card can occur simultaneously. Figure 8-11 describes the Arbitration Test Group Menu.

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. Port 0 and Port 1 Contention Test Tests bus contention between ports 0 and 1 by performing DMA reads, writes, and slave accesses.
2. Port 2 and Port 3 Contention Test Tests bus contention between ports 2 and 3 by performing DMA reads, writes, and slave accesses.
3. Maximum Contention Test Tests inter-chip arbitration by forcing both chips to perform DMA simultaneously.
4. Maximum Contention Test
(transmit from byte boundary)
Tests inter-chip arbitration by forcing both chips to perform DMA from byte boundary.
5. All of the Above Runs all of the tests listed above this menu item.
A. Toggle Diagnostic Flags Displays the Router Diagnostic Flow Control Flags Menu.
B. Setup Diagnostic Parameters Displays the Router Diagnostic Parameters Setup Menu.
C. Quad Serial Line Parameters Displays the Quad Serial Line Parameters Menu
(
Figure 8-2).

Figure 8¯11 Arbitration Test Group Menu

External Loopback Test Group

This group tests whether data loops externally within the SCA chip. Figure 8-12 describes the External Loopback Test Group Menu.

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. SCA Port 0 Loopback Test Tests whether data externally loops on port 0.
2. SCA Port 1 Loopback Test Tests whether data externally loops on port 1.
3. SCA Port 2 Loopback Test Tests whether data externally loops on port 2.
4. SCA Port 3 Loopback Test Tests whether data externally loops on port 3.
5. All of the Above Runs all of the tests listed above this menu item.
A. Toggle Diagnostic Flags Displays the Router Diagnostic Flow Control Flags Menu.
B. Setup Diagnostic Parameters Displays the Router Diagnostic Parameters Setup Menu.
C. Quad Serial Line Parameters Displays the Quad Serial Line Parameters Menu
(
Figure 8-2).

Figure 8¯12 External Loopback Test Group Menu

Network Test Group

This group tests the transmit and receive functions of the quad serial interface card when it is connected to a network. Before you run the network tests, note the following:

1. Select an operational node for testing.
2. Set the ARP timers to zero so that the ARP cache does not expire. At the operational node, enter set refresh-timer 0 after the ARP config> prompt. For further information on configuring ARP, refer to the Bridging Router Protocol Configuration Guide, Volume 1.
3. Boot the router that is running the diagnostics via the operational node. Chapter 1 provides the boot procedure.
4. From the router that is running diagnostics, display the Quad Serial Line Diagnostic Main Menu and select Network Tests Group. Figure 8-13 describes the Network Test Group Menu and Table 8-1 lists the steps to run the network tests.

Menu Item Function
0. Return to previous menu
Displays the previous menu.
1. LAN Port 0 (Not configured)
Tests the transmit and receive functions on LAN port 0. This menu item displays the LAN Port # (Not Configured) Menu (Figure 8-14).
2. LAN Port 1 (Not configured)
Tests the transmit and receive functions on LAN port 1. This menu item displays the LAN Port # (Not Configured) Menu (Figure 8-14).
3. LAN Port 2 (Not configured)
Tests the transmit and receive functions on LAN port 2. This menu item displays the LAN Port # (Not Configured) Menu (Figure 8-14).
4. LAN Port 3 (Not configured)
Tests the transmit and receive functions on LAN port 3. This menu item displays the LAN Port # (Not Configured) Menu (Figure 8-14).
5. Execute Test
Runs the transmit, receive, and echo tests on the configured ports.
A. Toggle Diagnostic Flags
Displays the Router Diagnostic Flow Control Flags Menu.
B. Setup Diagnostic Parameters
Displays the Router Diagnostic Parameters Setup Menu.
C. Quad Serial Line Parameters
Displays the Quad Serial LIne Parameters Menu
(
Figure 8-2).
D. Show Network Test Statistics
Provides statistics on the network tests. Figure 8-15 shows the Network Test Statistics Screen and Chapter 10 defines the statistics.
E. Clear Network Test Statistics
Resets the network test statistics to zero.

Figure 8¯13 Network Test Group Menu

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. Transmit only Transmits packets to the receive only node.
2. Receive only Receives packets from the transmit only node, swaps the packet and destination address, and transmits the packets back to the transmit only node.
3. Echo test master mode Transmits packets to an echo slave node.
4. Echo test slave mode Receives packets from the echo master node. Once it receives the packets, the echo test slave node swaps the packet and destination address and transmits the packets back to the echo master node.
5. Not configured Indicates that the specified port is not configured to run the transmit, receive, or echo tests.
A. Toggle Diagnostic Flags Displays the Router Diagnostic Flow Control Flags Menu.
B. Setup Diagnostic Parameters Displays the Router Diagnostic Parameters Setup Menu.

Figure 8¯14 LAN Port # (Not Configured) Menu

Table 8-1 Network Test Procedure

Step

Port/Node

Activity Menu
1. Determine two unique source IP addresses.
2. A and B Enter a source IP address on both ports/nodes. Menu: Network Test Group Item: Setup Diagnostic Parameters Menu: Router Diagnostic Parameters Setup Item: Set Node IP Address
3. A Set the destination IP address to match the source IP address on port/node B. Menu: Router Diagnostic Parameters Setup Item: Set Destination Node IP Address
4. B Set the destination IP address to match the source IP address on port/node A. Menu: Router Diagnostic Parameters Setup Item: Set Destination Node IP Address
5. A Configure the various test parameters such as the number of packets and their size. Menu: Router Diagnostic Parameters Setup
6. A and B Set the source node address on both ports/nodes. Menu: Setup Token-Ring Parameters Item: Set Source Node Address
7. A Set the destination node address to match the source node address on port/node B. Menu: Setup Token-Ring
Parameters
Item: Set Destination Node
Address
8. B Set the destination node address to match the source node address on port/node A. Menu: Setup Token-Ring Parameters Item: Set Destination Node Address
Step

Port/Node

Activity Menu
9. A or B Specify the port that is to transmit the packets for the test. Menu: Network Tests Group Item: LAN Port # (Not Configured) Menu: Lan Port # (Not Configured) Item: Transmit Only
10. A or B Specify the port that is to receive the packets for the test. Menu: Network Test Group Item: LAN Port # (Not Configured) Menu: Lan Port # (Not Configured) Item: Receive Only
11. A and B Execute the test. Menu: Network Test Group Item: Execute Test
12. A Check the number of packets that were transmitted by viewing the "Number of Packets Transmitted by Adapter" statistic. Figure 8-15 shows the Network Test Statistics Screen. Menu: Network Test Group Item: Show Network Test Statistics
13. B Check the number of packets that were received by viewing the "Number of Packets Received by Adapter" statistic. Figure 8-15 shows the Network Test Statistics Screen. Menu: Network Test Group Item: Show Network Test Statistics
14. A and B The number of packets transmitted and received should match or be comparably close. If a discrepancy exists, view the other network statistics on both nodes to determine if errors occurred during the test. If other errors do not exist, run the test again. Contact your customer service representative if the significant discrepancy continues.
15. A and B Reset the network test statistics to zero. Menu: Network Test Group Item: Clear Network Test Statistics
Step

Port/Node

Activity Menu
16. B Start the receive operation for the echo tests. Menu: Network Test Group Item: LAN Port # (Not configured) Menu: LAN Port # (Not configured) Item: Echo Test Slave Node
17. B At any time, press s to stop the receive echo operation.
18. A Start the transmit operation for the echo tests. The test is done when the console displays the Network Test Group Menu. Menu: Network Test Group Item: LAN Port # (Not configured) Menu: LAN Port # (Not configured) Item: Echo Test Master Node
19. A Check the number of packets that were transmitted and received. Menu: Network Test Group Item: Show Network Test Statistics
20. The number of packets transmitted and received should match or be comparably close. If a discrepancy exists, view the network statistics on node B to determine if errors occurred during the test. If there are no errors, run the test again. If significant discrepancies continue, contact your customer service representative.

Network Test Statistics

Figure 8-15 shows the Network Test Statistics Screen. For a description of the statistics, refer to Chapter 11.

Figure 8¯15 Network Test Statistics Screen



[Top] [Prev] [Next] [Bottom]

docs@openroute.com
Copyright © 1997, OpenROUTE Networks, Inc. All rights reserved.