SunVTS 2.1.3 Test Reference Manual
  Cerca solo questo libro
Scarica il manuale in formato PDF
CHAPTER 20

SPARCprinter Port Test (lpvitest)


lpvitest verifies the functionality of SPARCprinter ports, and bpptest verifies the functionality of bidirectional parallel ports. SBus printer cards have two printer ports: one for SPARCprinters, and one for any parallel port printer.

Printer Test Hardware and Software Requirements

The SBus printer card and device drivers must be installed to run lpvitest or bpptest. A printer must be connected to the SPARCprinter or bidirectional parallel port, and powered-up. If both a SPARCprinter and a parallel port printer connected to the SBus card, you can test both ports simultaneously.
If you are testing the SPARCprinter port, be sure the magnets on the SPARCprinter paper tray are set to the correct paper size. For more information, see the SPARCprinter Installation and User's Guide and the label on the printer tray.
The lpvitest verifies that your SBus card and SPARCprinter are working properly by attempting to transfer a data pattern from the SBus card to the SPARCprinter and printing the pattern.
If the SBus card and printer are functioning properly, you can see in the SunVTS Status window that lpvitest made a successful pass, and the pattern transmitted to the printer printed correctly.
If this test passes successfully, the SBus DMA circuitry, the SPARCprinter, and the device driver are functioning properly.

lpvitest Options

Grafica

FIGURE 20-1 lpvitest

TABLE 20-1 lpvitest
lpvitest OptionsDescription
AccessThis field is informational only. Writeonly is the only option currently available. This indicates that the only data being transferred is going from the SBus printer card to the SPARCprinter.
ModeUse this option to select how often to print the test image. The
default setting is Fast; the available settings are:
Fast: Prints an image every 1 minute.
Medium: Prints an image every 12 minutes.
Extended: Prints an image every 30 minutes.
ImageThis option lets you choose which test image to print. The settings are:

Default: A pattern of vertical lines on one page and a checkerboard pattern on another.

57fonts: An image of the 57 different fonts that the printer supports. User defined: You can use any raster file as a test image. Just place the file in the /opt/SUNWvts/bin directory and save it as the file name u_image.

ResolutionThis setting defines the printer resolution of the printed test pattern. The choices are 300 or 400 dots per inch. Note: Patterns such as the default test pattern are printed at different sizes and at different dpi resolutions. The text in the 57 fonts pattern prints in the same size, using the two different resolutions.

lpvitest Test Mode

This test only supports the Functional test.

lpvitest Command Line Syntax

/opt/SUNWvts/bin/lpvitest standard_arguments -o
dev=device_name,access=writeonly|readonly,image=filename,reso=resolution,
mode=mode

TABLE 20-2 lpvitest
Argument Explanation
dev=device_nameSpecifies the name of the device. This should be of the form /dev/
lpvi#, where # is the number of the device.
access=Choices are write-only or read-only, but write-only is the only option supported at this time. See the Access description in TABLE 20-1 on page 219.
image=filenameThe name of the file containing the test image. Possible values are:

imagefile: Any file containing user-defined images. Before running SunVTS, copy the raster image file to the /opt/SUNWvts/bin directory and save it with the filename u_image. The size of the image is adjusted based on the resolution

57fonts:Contains an image of 57 fonts. The size of the image is adjusted, based on the resolution

default:The default images print on two pages, one image is a pattern of vertical lines and the other is a checkerboard

reso=resolutionresolution is the resolution of the output in dots per inch (DPI). Possible values are 300 and 400.
mode=modemode is the print speed mode. This is the rate at which the test image is printed. Possible values are:

fast:Prints the test image at 1-minute intervals.

medium: Prints the test image at 12-minute intervals.

extended: Prints the test image at 30-minute intervals.


lpvitest Error Messages

TABLE 20-3 lpvitest

Error MessageProbable Cause(s)Recommended Action
6000Error occurred whileSystem error message.

attempting to obtain paper sizeNo tray installed.


Printer out of paper.
6001Error occurred while attempting to fork a child processSystem error message.
6002image in name raster file too big

6003error=numberSystem error message.
8000couldn't open device_nameDevice does not exist.


Device not configured correctly.
8001ioctl fail on device_nameSystem error message.
8002Failed to obtain memory from malloc() system callSystem is heavily loaded.
8003Couldn't open file_name

8004Error occurred while reading raster file header value for device_nameSpecified image raster file does not have the proper format.
8005Error occurred while loading image file value for device_nameSpecified image raster file does not have the proper format.
8006Error occurred while writing to printer deviceSystem error message.
8007Error encountered while accessing printer device device_name; Paper size: value,Counters: value, Print Engine: value

TABLE 20-3 lpvitest(Continued)

Error MessageProbable Cause(s)Recommended Action
8008Error encountered while accessing printer device device_name; Error code: valueError in main motor.
8009Error encountered while accessing printer device device_name; Error code: valueROS out of order.
8010Error encountered while accessing printer device device_name; Error code: valueFUSER out of order.
8011Error encountered while accessing printer device device_name; Error code: valueXERO failure.
8012Error encountered while accessing printer device device_name; Error code: valueInterlock open
8013Error encountered while accessing printer device device_name; Error code: valueNo tray installed.
8014Error encountered while accessing printer device device_name; Error code: valueNo paper exists in selected tray
8015Error encountered while accessing printer device device_name; Error code: valueExit JAM.
8016Error encountered while accessing printer device device_name; Error code: valueMisfeed JAM.
8017Error encountered while accessing printer device device_name; Error code: valueDrum cartridge is nearly exhausted.
TABLE 20-3 lpvitest(Continued)

Error MessageProbable Cause(s)Recommended Action
8018Error encountered while accessing printer device device_name; Error code: valueDeve module is nearly exhausted.
8019Error encountered while accessing printer device device_name; Error code: valueNo drum cartridge.
8020Error encountered while accessing printer device device_name; Error code: valueNo deve cartridge.
8021Error encountered while accessing printer device device_name; Error code: valueDrum cartridge exhausted.
8022Error encountered while accessing printer device device_name; Error code: valueDeve cartridge exhausted.
8023Timed out while accessing printer device device_name

8024EIO error