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

Chapter 7

Serial (Dual) Diagnostic Program


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

General Description

Executing the Diagnostic Program

General Description

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

Figure 7-1 illustrates the menu flow for the dual serial diagnostic program. For information on error logging and error statistics, refer to Chapter 2.

Port Terminology

The MC68302 (MPP) and MC145488 (DDLC) functions reference the serial ports differently. Table 7-1 lists the ports and the corresponding MPP and DDLC terms.

Table 7-1 MPP and DDLC Serial Port Terms

Serial Port Number MC68302 (MPP) Reference MC145488 (DDLC) Reference
0

SCC 1

Channel 0

1

SCC 2

Channel 1

Figure 7¯1 Serial Diagnostic Menu Flow

Executing the Diagnostic Program

To run the diagnostic program for the dual serial card, 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 serial diagnostic program, do the following:

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

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

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

I/O Base Address: # Slot Number: #

If the 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 7-2 summarizes the main menu items for the dual serial diagnostic program.

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. System Bus Interface Test Group Checks the interface logic between the host processor and the serial line interface.
2. SLC Memory Test Group Checks the memory subsystems including host buffer, local data, and local buffer memory.
3. MC68302 (MPP) Test Group Tests the MPP processor functions including LED control and DMA.
4. MC145488 (DDLC) Test Group Tests the DDLC register addresses, DDLC interrupt generation, DDLC timers, DDLC internal/external loopback, and the DDLC single bank operation.
5. All of the Above Runs all of the tests listed above this menu item.
6. SLC Maximum Bus Contention Test Sets the two DDLC channels for internal loopback mode. The MPP performs a DMA from local buffer memory to host buffer memory using the IDMA controller. The MPP also executes repetitive write/read accesses to the DDLC. These activities run concurrently to create the maximum bus contention. When all DMAs are complete, the data is checked. Note: This test requires an active clear-to-send (CTS) to run. A modem eliminator provides this signal.
(continues)

Menu Item Function
7. Run Power-Up Diagnostics Runs the serial power-up diagnostic tests. The CNX 500 Installation Guide explains these tests.
8. Report Level Converter
Configuration
Provides the current level converter configuration.
9. Network Test Group Checks the transmission of HDLC packets on the serial interface.
A. Toggle Diagnostic Flags Displays the Router Diagnostic Flow Control Flags Menu.
B. Setup Diagnostic Parameters Displays the Router Diagnostic Parameters Setup Menu.
C. Setup Serial Line Parameters Displays the Setup Serial Line Parameters Menu.

Figure 7¯2 Serial Line Diagnostic Main Menu

For information on the Router Diagnostic Flow Control Flags Menu and the Router Diagnostic Parameters Setup Menu, refer to Chapter 2. The next section describes the Setup Serial Line Parameters Menu.

Setting the Serial 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 7-3 describes the Setup 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. Select User Defined Pattern Displays the following prompt to enter a data pattern in hexadecimal format:
Enter a data pattern in HEX (0 <= pattern <= FFFFFFFF) [0]:
D. Select Channel for Network Tests Displays the following prompt to select the channels to run the network tests on:
Enter channel number (0 = chnl 0, 1 = chnl 1, 2 = both):
E. Select Baud Rate for Internal Loopback Tests Displays the following prompt to select a baud rate for the loopback tests:
Enter baud rate (100 <= baud <= 3125000) [2080000]:

Figure 7¯3 Setup Serial Line Parameters Menu

Setting the Test Data Patterns

When you run certain tests, the screen displays a Data Pattern Menu to select the data patterns written to the register during the test. Figure 7-4 describes the Data Pattern Menu.

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 Defined Data
Displays the following prompt to enter a data pattern in hexadecimal format:
Enter a data pattern in HEX (0 <= pattern 
<= FFFFFFFF) [ ]:

A. Toggle Diagnostic Flags
Displays the Router Diagnostic Flow Control Flags Menu.
(continues)

Menu Item Function
B. Setup Diagnostic Parameters Displays the Router Diagnostic Parameters Setup menu.
C. Setup Serial Line Parameters Displays the Setup Serial LIne Parameters Menu.

Figure 7¯4 Data Pattern Menu

System Bus Interface Test Group

This group tests the bus interface logic of the dual serial interface card and verifies that the interface card can talk to the CPU over the system bus. Figure 7-5 describes the System Bus Interface Test Group Menu.

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. System Bus Integrity Test Checks the system bus interface logic of the serial line interface using the diagnostic register. This test writes a data pattern to the register, reads the data back from the register, and compares the two values. This item displays a Data Pattern Menu (Figure 7-4).
2. Module ID Register Test Reads the module ID register and checks that the number is a serial line ID. When this test runs in manual mode, the screen displays the interface version number.
3. Diagnostic Interrupt Test Checks the interrupt logic between the serial line interface and host system using the interrupt bit in the CONFIG register.
4. Host to Node Interrupt Test Checks the host to node HSTIRQ1 and HSTIRQ7 interrupts.
(continues)

Menu Item Function
5. Node to Host Interrupt Test Checks whether the node generates an interrupt to the host. An interrupt to the node signals the node to respond with an interrupt to the host.
6. Slot Bits Test Checks that the node can read the slot bits combination written by the host.
7. 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. Setup Serial Line Parameters Displays the Setup Serial Line Parameters Menu.

Figure 7¯5 System Bus Interface Test Group Menu

SLC Memory Test Group

This group tests the memory subsystems of the dual serial line interface card. Figure 7-6 shows the main SLC Memory Test Group Menu and Figure 7-7 illustrates the menu flow for the SLC tests. Descriptions of the menus follow this figure.

Figure 7¯6 SLC Memory Test Group Menu

Figure 7¯7 SLC Memory Test Menu Flow

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. Host Buffer Memory Data Test Tests the host buffer memory subsystems. The MPP writes data patterns to host buffer memory, reads the data back, and checks the data for correctness. The host then checks host buffer memory to verify that it read the same pattern the MPP wrote. This test displays the Data Pattern Menu (Figure 7-4).
2. Host Buffer Memory Address Line Test Tests the address lines of host buffer memory. The MPP fills each memory location with its own address, reads the data back, and checks the data for correctness. The host then checks host buffer memory to verify that it read the same pattern the MPP wrote. This test displays the Data Pattern Menu (Figure 7-4).
3. 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. Setup Serial Line Parameters Displays the Setup Serial Line Parameters Menu.

Figure 7¯8 Host Buffer Memory Test Menu

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. Node Local Data Memory Data Test Tests the local data memory subsystems. The MPP writes data patterns to all local data memory and reads the data back to check it. This test displays the Data Pattern Menu (Figure 7-4).
2. Node Local Data Memory Address Line Test Tests the address lines of all local data memory. The MPP fills each local data memory location with its own address and reads the data back to check it. This test displays the Data Pattern Menu (Figure 7-4).
3. 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. Setup Serial Line Parameters Displays the Setup Serial Line Parameters Menu.

Figure 7¯9 Local Data Memory Test Menu

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. Node Local Buffer Memory Data Test The MPP writes data patterns to all local buffer memories and reads the data back to check it. This test displays the Data Pattern Menu (Figure 7-4).
2. Node Local Buffer Memory Address Line
Test
The MPP fills each local buffer memory location with its own address and reads the data back to check it. This test displays the Data Pattern Menu (Figure 7-4).
3. 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. Setup Serial Line Parameters Displays the Setup Serial Line Parameters Menu.

Figure 7¯10 Local Buffer Memory Test Menu

MC68302 (MPP) Test Group

This group tests the MPP processor functions including LED control and DMA. Figure 7-11 describes the MC68302 (MPP) Test Group Menu.

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. LED Test Tests the LEDs when they are under the control of the MC68302. The LEDs light sequentially during the test.
2. DMA Test Checks the DMA capability of the MC68302. This test performs DMA transfers, in both directions, between host buffer memory and local buffer memory using the IDMA controller.
3. Demand Reset Test The MPP sets values in the MPP I/O register and DDLC register and issues a reset command. It then checks whether the DDLC register returned to the reset values.
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. Setup Serial Line Parameters Displays the Setup Serial Line Parameters Menu.

Figure 7¯11 MC68302 (MPP) Test Group Menu

MC145488(DDLC) Test Group

This group tests various DDLC functions including the registers and timers. Figure 7-12 describes the MC145488 (DDLC) Test Group Menu.

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. DDLC Control Registers Test Checks all MC68302 accessible read/write control registers on the DDLC. This item displays the DDLC Control Registers Test Menu (Figure 7-13).
2. DDLC Channel 0 Registers Test Checks all MC68302 accessible read/write control registers on the DDLC for Channel 0. This item displays the DDLC Channel # Registers Test Menu (Figure 7-14).
3. DDLC Channel 1 Registers Test Checks all MC68302 accessible read/write control registers on the DDLC for Channel 1. This item displays the DDLC Channel # Registers Test Menu (Figure 7-14).
4. DDLC Interrupt Test Checks the interrupt logic of the DDLC and the interrupt interface to the MC68302.
(continues)

Menu Item Function
5. DDLC CH0 Timer Test Checks channel 0's DDLC timer for accuracy and the ability to generate interrupts. The MC68302 loads and enables the timer with predetermined values and waits for the timer interrupt. If the MC68302 does not receive the interrupt when expected, the screen displays an error message.
6. DDLC CH1 Timer Test Checks channel 1's DDLC timer for accuracy and the ability to generate interrupts. The MC68302 loads and enables the timer with predetermined values and waits for the timer interrupt. If the MC68302 does not receive the interrupt when expected, the screen displays an error message.
7. All of the Above Runs all of the tests listed above this menu item.
8. DDLC CH0 Internal Loopback Test Checks the serial port for channel 0 using the diagnostic loopback function. Note: This test requires an active clear-to-send (CTS) to run. A modem eliminator provides this signal.
9. DDLC CH1 Internal Loopback Test Checks the serial port for channel 1 using the diagnostic loopback function. Note: This test requires an active clear-to-send (CTS) to run. A modem eliminator provides this signal.
10. DDLC Single Bank CH0 Internal Loopback Test Checks the serial port for channel 0 using the diagnostic loopback function. This test uses only one bank of local buffer memory. Note: This test requires an active clear-to-send (CTS) to run. A modem eliminator provides this signal.
11. DDLC Single Bank CH1 Internal Loopback Test Checks the serial port for channel 1 using the diagnostic loopback function. This test uses only one bank of local buffer memory. Note: This test requires an active clear-to-send (CTS) to run. A modem eliminator provides this signal.
12. DDLC External Loopback Test Externally loops packets between channel 0 and 1.
A. Toggle Diagnostic Flags Displays the Router Diagnostic Flow Control Flags Menu.
B. Setup Diagnostic Parameters Displays the Router Diagnostic Parameters Setup Menu.
C. Setup Serial Line Parameters Displays the Setup Serial Line Parameters Menu.

Figure 7¯12 MC145488(DDLC) Test Group Menu

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. Master Status Tests whether the upper byte is read as 00 when the least significant byte is placed on the data bus and is read as a 16-bit register.
2. Interrupt Enable Tests whether the interrupt enable register generates interrupts to the host.
3. Ch0 Timer Tests whether the timer for channel 0 generates an interrupt when the count reaches FF hexadecimal.
4. Ch1 Timer Tests whether the timer for channel 1 generates an interrupt when the count reaches FF hexadecimal.
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. Setup Serial Line Parameters Displays the Setup Serial Line Parameters Menu.

Figure 7¯13 DDLC Control Registers Test Menu

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. Serial Interface Control Tests the functionality of the serial interface control register which contains the control bits for the serial interface blocks for each transceiver channel.
2. Tx Control Tests the transmit control registers for channels 0 and 1.
3. Rx Control Tests the receive control registers for channels 0
and 1.
4. Tx Status Tests the transmit status registers for channels 0
and 1.
5. Rx Status Tests the receive status registers for channels 0
and 1.
6. Address Compare Tests whether a data frame is passed to FIFO when a comparison exists between two addresses in the address compare register and incoming data frame address fields.
7. Address Wildcard Bits Tests whether wildcard (don't care) bits are ignored when blocks of addresses are compared with one address.
8. Tx Base Address Checks the base addresses of the DMA buffers.
(continues)

Menu Item Function
9. Rx Buffer Length Tests the maximum length of the receive buffers for each channel.
10. Rx Buffer A Base Address Tests that the first two bytes of a received frame are placed in receive buffer A.
11. Rx Buffer B Base Address Tests that the first two bytes of a received frame are placed in receive buffer B.
12. 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. Setup Serial Line Parameters Displays the Setup Serial Line Parameters Menu.

Figure 7¯14 DDLC Channel # Registers Test Menu

Network Test Group

This group uses HDLC packets to test the transmit and receive functions of the dual serial interface card when it is connected to a network. Before you run the network tests, you should 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 Configuration Guide.
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 Serial Diagnostic Main Menu and select Network Tests Group. Figure 7-15 describes the Network Test Group Menu and Table 7-1 lists the steps to run the network tests.

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. Transmit Only Test Transmits packets to a slave node.
2. Receive Only Test Receives packets from the transmit only node.
3. Echo Test Master Node Transmits packets to an echo slave node and receives the packets back for processing.
4. Echo Test Slave Node Receives packets from the echo master node. Once it receives the packets, the echo slave node swaps the packet's source and destination node IP addresses and transmits the packet back to the echo master node.
A. Toggle Diagnostic Flags Displays the Router Diagnostic Flow Control Flags Menu.
B. Setup Diagnostic
Parameters
Displays the Router Diagnostic Parameters Setup Menu.
C. Setup Serial Line
Parameters
Displays the Setup Serial Line Parameters Menu.
D. Show Network Test
Statistics
Provides statistics on the network tests. Figure 7-16 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 7¯15 Network Test Group Menu

Table 7-2 Network Test Procedure

Step

Node(s)

Activity Menu
1. Determine two unique source IP addresses.
2. A and B Enter a source IP address on both nodes. Menu: Network Tests Group Item: Setup Diagnostic Parameters Menu: Router Diagnostic Parameters Setup Item: Set Node IP Address
3. A Configure the various test parameters such as the number of packets and their size. Menu: Router Diagnostic Parameters Setup
4. B Start the receive operation. Menu: Network Tests Group Item: Receive Only Test
5. B At any time, press s to stop the receive operation.
6. A Start the transmit operation. Menu: Network Tests Group Item: Transmit Only Test
7. A At any time, press s to stop the transmit operation.
8. A Check the number of packets
that were transmitted by viewing the "Total Transmits" statistic from the Network Test Statistics Screen (
Figure 7-16).
Menu: Network Tests Group Item: Show Network Test Statistics
9. B Check the number of packets that were received by viewing the "Total Receives" statistic from the Network Test Statistics Screen (Figure 7-16). Menu: Network Tests Group Item: Show Network Test Statistics
Step

Node(s)

Activity Menu
10. 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 whether errors occurred during the test. If other errors do not exist, run the test again. Contact your customer service representative if a significant discrepancy continues.
11. A and B Reset the network test statistics to zero. Menu: Network Tests Group Item: Clear Network Test Statistics
12. B Start the receive operation for the echo tests. Menu: Network Tests Group Item: Echo Test Slave Node
13. B At any time, press s to stop the receive echo operation.
14. A Start the transmit operation for the echo tests. The test is done when the console displays the Network Tests Group Menu. Menu: Network Tests Group Item: Echo Test Master Node
15. A Check the number of packets that were transmitted and received. Menu: Network Tests Group Item: Show Network Test Statistics
16. 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 whether errors occurred during the test. If there are no errors, run the test again. Contact your customer service representative if a significant discrepancy continues.

Figure 7¯16 Network Test Statistics Screen



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

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