|
| 以 PDF 格式下载本书
- CHAPTER 31
Serial Parallel Controller Test (spif)
- The spif test accesses card components such as the cd-180 and ppc2 chips, and the serial and parallel ports via the serial parallel controller device driver.
spif Hardware Requirements
- Before running the SunVTS system exerciser, make sure you install the cards to be tested and the device driver. Also, you should reboot your system with the boot -r command to reconfigure the system and allow the SunVTS kernel to recognize the new driver.
-
Note - The spif test must be run in intervention mode.
- The following minimum hardware configuration is required to successfully run the Internal test:
-
- SBus-based SPARC desktop system with an SBus slot
- Serial parallel controller card, installed in one of the SBus slots
- The following hardware is also required to run the other SunVTS serial parallel controller tests:
-
- Serial parallel controller patch panel (part number 540-2007)
- 96-pin loopback plugs (part number 370-1366)
- 25-pin serial loopback plugs (part number 540-1558)
- RS-232 serial cables (part number 530-1685)
- TTY terminal
spif Options

FIGURE 31-1 spif
- The Configuration section of the option menu displays the serial ports available for the SPC/S board. The available ports are:
-
TABLE 31-1 spif
Board
Number | Board
Device | Serial
Ports | Parallel
Ports |
| 0 | stc0 | term/0-7 | printers/0 |
| 1 | stc1 | term/8-15 | printers/1 |
| 2 | stc2 | term/16-23 | printers/2 |
| 3 | stc3 | term/24-31 | printers/3 |
| 4 | stc4 | term/32-39 | printers/4 |
| 5 | stc5 | term/40-47 | printers/5 |
| 6 | stc6 | term/48-55 | printers/6 |
| 7 | stc7 | term/56-63 | printers/7 |
- The spif test options are described in Table 8-7.
-
TABLE 31-2 spif
| spif Options | Description |
| 96-pin Loopback (LB) | Provides data transmission, full-modem loopback, and parallel port loopback testing. You must attach a 96-pin loopback plug to the card under test before running this test (see Appendix A). |
| Internal Test | Performs a quick internal check of the serial parallel controller card(s) installed in SBus slots. You do not need to attach anything to the card(s) to perform this test. |
| 25-pin Loopback (LB) | Provides full-duplex transmission and full-modem loopback testing of the serial port selected in the Serial Port section of this menu. You must attach the 25-pin Loopback plug to the serial port on the Serial Parallel Controller Patch Panel that is being tested (See Appendix A). This test cannot be run concurrently with the Echo-TTY option enabled. |
-
TABLE 31-2 spif
| spif Options | Description |
| Echo-TTY | Checks the proper operation of the serial port selected in the Serial Port section of this menu by echoing characters typed on a TTY terminal keyboard to the TTY terminal screen. Type anything on your TTY keyboard, and the characters you type should show up on the TTY screen. Note: TTY connection to the spif serial port requires corresponding character size set up. For example, if a TTY attachment is running with 8-bit character size, then the spif test option 'Char Size' should also be set to 8 bits. If you do not type anything within two minutes, this test will time-out. If you do not type anything, this test will still timeout. Terminate this test by pressing Control-C. After a short delay, the Status Window updates the Pass Count. This test cannot be run concurrently with the 25-pin Loopback subtest.
|
| Printer | Sends the entire ASCII character set to a parallel printer. You must attach a parallel printer to the parallel port on the Serial Parallel Controller patch panel. Observe the printer output to validate the test. |
| Baud Rate | Specifies the baud rate; choose 110, 300, 600, 1200, 2400, 4800, 9600, 19200, or 38400 baud. Note: The baud rate of 38400 can only be used if one port is tested at a time and the Internal Test is disabled
|
| Char Size | Indicates character length; choose 5, 6, 7, or 8 characters. |
| Stop Bit | Specifies the number of stop bits; choose 1 or 2 bits. |
| Parity | Specifies the selectable parity; choose none, odd or even. |
| Flow Control | Specifies the selectable flow control; choices are XOnOff, rtscts, or both. |
| Data Type | Specifies the selectable data type pattern; it can be 0x55555555
(0x55), 0xaaaaaaaa (0xaa), or random. |
| Serial Port | Specifies the serial port to be tested. The available ports are listed in the Configurations section at the top of the spif options menu. |
- You can also change the test options by modifying the /opt/SUNWvts/bin/ .customtest file. See "Adding Your Own Tests" in .customtest in the SunVTS 2.1 User's Guide.
spif Test Modes
- The spif test supports only the Functional test mode..
spif Command Line Syntax
-
-
/opt/SUNWvts/bin/spif standard_arguments -o dev=device_name,
M=test_mode,Ptr=enable/
disable,B=baud_rate,Size=character_size,S=#of_stop_bits,
Parity=parity,F=flow_control, Data=test_pattern, sp=serial_port
-
TABLE 31-3 spif
| Argument | Explanation |
| dev=device_name | Specifies the serial ports in SBus card slots (0-63) being tested. Since there is no default, you must type a device name--either a board (stc0-7) or an individual port (term/0 - term/63):
stc0 = the 8 serial ports in the first card
stc1 = the 8 serial ports in the second card
stc2 = the 8 serial ports in the third card
stc3 = the 8 serial ports in the fourth card
stc4 = the 8 serial ports in the fifth card
stc5 = the 8 serial ports in the sixth card
stc6 = the 8 serial ports in the seventh card
stc7 = the 8 serial ports in the eighth card or
/dev/term/mm
Where mm is 0 to 63 (any of the serial ports in SBus card slots)
|
| M=test_mode | Specifies Internal, 96_pin_Loopback, 25_pin_loopback, or Echo_TTY test mode |
| Ptr=printer_test | Enables or disables the Printer subtest |
-
TABLE 31-3 spif
| Argument | Explanation |
| B=baud_rate | Sets the baud rate to 110, 300, 600, 1200, 2400, 4800, 9600, 19200, or 38400; the default is 9600. To use the 38400 rate, only one port at a time can be tested, and the Internal test must be disabled. |
| Stop=#of_stop_bits | Toggles the number of stop bits to 1 or 2; the default is 1. |
| Size=character_size | Sets character size as a number between 5 and 8. |
| P=parity | Specifies the parity as none, odd, or even; the default is none. |
| F=flow_control | Specifies flow control as xonxoff,rtscts, or both. |
| Data=test_pattern | Specifies test pattern as 0x55555555, 0xAAAAAAAA, or random. |
| sp=serial_port | Specifies the terminal and serial port number, such as term/3. |
spif Error Messages
- These error messages are generated when the SunVTS serial parallel controller discovers any errors. The error descriptions below identify probable causes for the card or test failure, and identify the Field Replaceable Unit (FRU), if possible. The three FRUs affected are: the serial parallel controller card, the 96-pin shielded cable, and the patch panel.
-
TABLE 31-4 spif
| Error Message | Probable Cause(s) | Recommended Action |
| 6000 | <error_message> |
|
|
| 6001 | Expected = <value>,
observed = <value> |
|
|
| 6002 | Expected (<value>): |
|
|
| 6003 | Observed (<value>): |
|
|
| 6004 | Modem Loopback test failed on <device_name> |
|
|
| 6005 | Off-line error on device
<device_name> |
|
|
| 6006 | Paper out error on device
<device_name> |
|
|
| 6007 | Busy error on device
<device_name> |
|
|
-
TABLE 31-4 spif(Continued)
| Error Message | Probable Cause(s) | Recommended Action |
| 6008 | Error on device
<device_name> |
|
|
| 6009 | retry <number> exceeds limit <number> rc =s <value> |
|
|
| 6010 | Expected <number> bytes,
observed <number> bytes |
|
|
| 6011 | Internal test failed on <device_name> |
|
|
| 6012 | Data Loopback test failed on <device_name> |
|
|
| 6013 | ioctl TIOCSSOFTCAR error on <device_name> |
|
|
| 8000 | Must provide device name! |
|
|
| 8001 | No SPC/S card found or device driver not installed |
|
|
| 8002 | ioctl TCSETS failed on <device_name> |
|
|
| 8003 | Open error on <device_name> - device driver may not be installed properly |
|
|
| 8004 | Device <device_name> is already opened |
|
|
| 8005 | ioctl STC_SREGS(STC_IOREG-COR2) error in <device_name> |
|
|
| 8006 | ioctl STC_GREGS(STC_IOREG-CCR) error in <device_name> |
|
|
| 8007 | ioctl STC_S1REGS(STC_IOREG-CCR) error in <device_name> |
|
|
| 8008 | ioctl STC_SREGS(STC_PPCREG-PDATA) error in <device_name> |
|
|
| 8009 | ioctl STC_GREGS(STC_PPCREG-PDATA) error in <device_name> |
|
|
| 8011 | ioctl TIOCMGET failed on <device_name> |
|
|
| 8012 | <device_name>: Expected DSR set, observed clear |
|
|
-
TABLE 31-4 spif(Continued)
| Error Message | Probable Cause(s) | Recommended Action |
| 8013 | <device_name>: Expected DSR clear, observed set |
|
|
| 8014 | ioctl TIOCMSET failed on <device_name> |
|
|
| 8015 | ioctl TIOCMBIC failed on <device_name> |
|
|
| 8016 | Read error on <device_name> |
|
|
| 8017 | Write error on <device_name> |
|
|
| 8018 | ioctl STC_GPPC error on device <device_name> |
|
|
| 8019 | Can't kill all processes |
|
|
| 8020 | Timeout error on
<device_name>. | No loopback plug | Check the loopback plug. |
| 8021 | Timeout error on
<device_name> | TTY terminal not
connected | Check the TTY terminal
connection. |
| 8022 | Timeout error on
<device_name> |
|
|
|
|