SunVTS 2.1 Test Reference Manual
  Sök endast i den här boken
Ladda ner denna bok i PDF
CHAPTER 27

Serial Asynchronous Interface (PCI) Test (saiptest)


saiptest checks the functionality of the Serial Asynchronous Interface card through its device driver.

saiptest Hardware Requirements

Before running the SunVTS diagnostics software, make sure you install the device driver and the cards to be tested. 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 - You must run the saiptest in intervention mode.

The following minimum hardware configuration is required to successfully run the Internal test:
  • PCI-based SPARC desktop system with a PCI slot
  • Serial Asynchronous Interface card, installed in one of the PCI slots
The following hardware is also required to run other SunVTS Serial Asynchronous Interface tests:
  • Serial Asynchronous Interface Patch Panel (Part No. 7600-0027)
  • 25-pin serial loopback plugs (Part No. 540-1558)
  • RS-232 serial cables (Part No. 530-1685)
  • TTY terminal

saiptest Options

Internal bitmap(288x299)

Figure 27-1 saiptest Options Menu
The Configuration section of the option menu displays the asynchronous serial ports available for the Serial Asynchronous Interface board. Table 4-1 shows the available ports.
Table 27-1 saiptest
Board NumberBoard DeviceSerial Ports
0saip0term/a000-a007
1saip1term/b000-b007
2saip2term/c000-c007
3saip3term/d000-d007
Table 27-1 saiptest(Continued)
Board NumberBoard DeviceSerial Ports
4saip4term/e000-e007
5saip5term/f000-f007
6saip6term/g000-g007
7saip7term/h000-h007
8saip8term/i000-i007
9saip9term/j000-j007
10saip10term/k000-k007
11saip11term/l000-l007
Table 27-2 saiptest
saiptest OptionsDescription
Internal Test Performs internal loopback testing on the Serial Asynchronous Interface card(s) installed in PCI slots. You do not need to attach anything to the card(s) to perform this test
25-pin LoopbackProvides full-duplex transmission and full-modem loopback testing of the serial port selected in the Serial Port section of the option menu. You must attach the 25-pin loopback plug to the serial port on the Serial Asynchronous Interface Patch Panel that is being tested. This test cannot be run concurrently with the Echo-TTY option enabled.
Echo-TTYChecks the proper operation of the serial port selected in the Serial Port selection of the option menu by echoing characters typed on a TTY terminal keyboard to the TTY terminal screen. Type anything on you TTY keyboard, and the characters you type should show up on the TTY screen. NOTE: A TTY connection to the Serial Asynchronous Interface serial port requires corresponding character size set up. For example, if a TTY attachment is running with 8-bit character size, then the Char Size saiptest option should be set to 8-bits. If you do not type anything within two minutes, this test will time-out.
Table 27-2 saiptest (Continued)
saiptest OptionsDescription
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 the Internal Test is disabled and you are testing one port at a time.

Char SizeSpecifies the 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; choose XOnOff, rtscts, or both
Data TypeSpecifies the selectable data type pattern; choose 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 saiptest options menu

saiptest Test Modes

saiptest is only available in the Functional test mode.

saiptest Command Line Syntax

/opt/SUNWvts/bin/saiptest standard_arguments -o dev=device_name, M=test_mode,B=baud_rate,Size=character_size,Stop=#of_stop_bits, Parity=parity,F=flow_control,Data=test_pattern,sp=serial_port
Table 27-3 saiptest
ArgumentExplanation
dev=device_nameSpecifies the asynchronous serial ports in PCI card slots being tested. Since there is no default, you must type a device name--either a board (saip0-12) or an individual port (term/x000-term/x007, where x is a-l):

·saip0 = the 8 asynchronous serial ports in the first card ·saip1 = the 8 asynchronous serial ports in the second card ·saip2 = the 8 asynchronous serial ports in the third card ·saip3 = the 8 asynchronous serial ports in the fourth card ·saip4 = the 8 asynchronous serial ports in the fifth card ·saip5 = the 8 asynchronous serial ports in the sixth card ·saip6 = the 8 asynchronous serial ports in the seventh card ·saip7 = the 8 asynchronous serial ports in the eighth card ·saip8 = the 8 asynchronous serial ports in the ninth card ·saip9 = the 8 asynchronous serial ports in the tenth card ·saip10 = the 8 asynchronous serial ports in the eleventh card ·saip11 = the 8 asynchronous serial ports in the twelfth card or/dev/term/x00m

Where x is a-l and m is 0 to 7 (any of the asynchronous serial ports in PCI card slots)

M=test_modeSpecifies Internal, 25_pin_loopback, or Echo_TTY test mode
B=baud_rateSets the baud rate to 110, 300, 600, 1200, 2400, 4800, 9600, 19200, 38400; the default is 9600
Stop=#of_stop_bitsToggles the number of stop bits to 1 or 2; the default is 1
Size=character_sizeSets character size as an integer between 5 and 8
Parity=paritySpecifies the parity as none, odd, or even; the default is none
F=flow_controlSpecifies flow control as xonoff, rtscts, or both
Data=test_patternSpecifies test pattern as 0x55555555, 0xAAAAAAAA, or random
sp=serial_portSpecifies the terminal and asynchronous serial port number, such as term/a003

saiptest Error Messages

The saiptest error messages are generated when the SunVTS Serial Asynchronous Interface discovers 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 Asynchronous Interface card, the 78-pin shielded cable, and the Patch panel.
Table 27-4 saiptest
Error MessageProbable Cause(s)Recommended Action
6000<error_message>

6001Expected = <value>,
observed = <value>


6002Expected (<value>):

6003Observed (<value>):

6004Modem Loopback test failed on <device_name>

6005Off-line 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 27-4 saiptest(Continued)
Error MessageProbable Cause(s)Recommended Action
8001No SAI/P 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 SAIP_ENLOOP error in <device_name>

8006Ioctl SAIP_DISLOOP error in <device_name>

8011Ioctl TIOCMGET failed on <device_name>

8012<device_name>: Expected DSR set, observed clear

8013<device_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>


8020Timeout error on
<device_name>
No loopback plugCheck the loopback plug
8021Timeout error on
<device_name>
TTY terminal not
connected
Check the TTY terminal
connected to the device
8022Timeout error on
<device_name>