SunVTS 2.1.3 Test Reference Manual
この本のみを検索
PDF 文書ファイルをダウンロードする
CHAPTER 35

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 through 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. You should also 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 35-1 spif

The Configuration section of the Option menu displays the serial ports available for the SPC/S board. The available ports are listed in TABLE 35-1.
TABLE 35-1 spif
Board
Number
Board
Device
Serial
Ports
Parallel
Ports
0stc0term/0-7printers/0
1stc1term/8-15printers/1
2stc2term/16-23printers/2
3stc3term/24-31printers/3
4stc4term/32-39printers/4
5stc5term/40-47printers/5
6stc6term/48-55printers/6
7stc7term/56-63printers/7
The spif test options are described in TABLE 35-2.
TABLE 35-2 spif
spif OptionDescription
96-pin Loopback (LB)Provides data transmission, full-modem loopback, and parallel port loopback testing. You must attach a 96-pin loopback connector (part number 370-1366) to the card before running this test (see Appendix A, "96-Pin Female Loopback Connector).
Internal TestPerforms 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 selection 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 35-2 spif
spif OptionDescription
Echo-TTYChecks 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. The characters you type should be displayed on the TTY screen. Note: TTY connection to the spif serial port requires corresponding character size setup. 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 within two minutes, this test will time-out. Terminate testing 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.
PrinterSends 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 RateSpecifies 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 SizeIndicates character length; choose 5, 6, 7, or 8 characters.
Stop BitSpecifies the number of stop bits; choose 1 or 2 bits.
ParitySpecifies the selectable parity; choose none, odd or even.
Flow ControlSpecifies the selectable flow control; choices are XOnOff, rtscts, or both.
Data TypeSpecifies the selectable data type pattern; it can be 0x55555555
(0x55), 0xaaaaaaaa (0xaa), or random.
Serial PortSpecifies 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 35-3 spif
ArgumentExplanation
dev=device_nameSpecifies 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_modeSpecifies Internal, 96_pin_Loopback, 25_pin_loopback, or Echo_TTY test mode.
Ptr=printer_testEnables or disables the Printer subtest.
B=baud_rateSets 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_bitsToggles the number of stop bits between 1 or 2; the default is 1.
Size=character_sizeSets character size as a number between 5 and 8.
P=paritySpecifies the parity as none, odd, or even; the default is none.
F=flow_controlSpecifies flow control as xonxoff,rtscts, or both.
Data=test_patternSpecifies test pattern as 0x55555555, 0xAAAAAAAA, or random.
sp=serial_portSpecifies 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 35-4 spif

Error MessageProbable Cause(s)Recommended Action
6000error_message

6001Expected = value, observed = value

6002Expected value:

6003Observed value:

6004Modem Loopback test failed on device_name

6005Off-line error on device
device_name


6006Paper out error on device
device_name


6007Busy error on device
device_name


6008Error on device device_name

6009retry number exceeds limit number rc =s value

6010Expected number bytes,
observed number bytes


6011Internal test failed on device_name

6012Data Loopback test failed on device_name

6013ioctl TIOCSSOFTCAR error on device_name

8000Must provide device name!

TABLE 35-4 spif(Continued)

Error MessageProbable Cause(s)Recommended Action
8001No SPC/S card found or device driver not installed

8002ioctl TCSETS failed on device_name

8003Open error on device_name -device driver may not be installed properly

8004Device device_name is already opened

8005ioctl STC_SREGS(STC_IOREG-COR2) error in device_name

8006ioctl STC_GREGS(STC_IOREG-CCR) error in device_name

8007ioctl STC_S1REGS(STC_IOREG-CCR) error in device_name

8008ioctl STC_SREGS(STC_PPCREG-PDATA) error in device_name

8009ioctl STC_GREGS(STC_PPCREG-PDATA) error in device_name

8011ioctl TIOCMGET failed on device_name

8012device_name: Expected DSR set, observed clear

8013device_name: Expected DSR clear, observed set

8014ioctl TIOCMSET failed on device_name

8015ioctl TIOCMBIC failed on device_name

8016Read error on device_name

8017Write error on device_name

8018ioctl STC_GPPC error on device device_name

8019Can't kill all processes

TABLE 35-4 spif(Continued)

Error MessageProbable Cause(s)Recommended Action
8020Timeout error on device_name.There is no loopback plugCheck the loopback plug.
8021Timeout error on device_nameTTY terminal not connectedCheck the TTY terminal connection.
8022Timeout error on device_name