SunVTS 2.1.3 Test Reference Manual
  Buscar sólo este libro
Descargar este libro en PDF
CHAPTER 9

ECP 1284 Parallel Port Printer Test (ecpptest)


The ecpptest verifies the functionality of the ecpp(7) IEEE 1284 parallel printer port device.
The ecpp(7) device is an exclusive use device. Only one application can interface with it at a time. This test is not scalable.

Printer Test Hardware and Software Requirements

The ecpp(7) driver is installed with the OS if the system being tested supports the ecpp(7) device. To run the optional printer subtest, a Centronics or ECP-mode printer must be attached to the printer port. To run the optional external loopback test, a passive loopback connector must be installed on the printer port.

Note - The external loopback test is intended for Sun internal manufacturing use only. It requires a custom loopback connector not available to an external customer.


ecpptest Subtests

TABLE 9-1 ecpptest
SubtestDescription
Internal Test FIFO LoopbackVerifies DMA and PIO accesses to the ecpp device. It uses an internal test fifo on the ecpp device. There are no printer or loopback connectors required. This test is always executed.
External Passive LoopbackThis verifies the parallel port I/O connections to the back panel connector. This test requires a passive loopback connector (Sun part no. 270-2965-01). This test is disabled by default and must be manually enabled by the user.

Note: The external loopback test is intended for Sun internal manufacturing use only. It requires a custom loopback connector that is not available to an external customer.

Printer TestThis verifies the parallel port printer operation. It will output a half page of ASCII character data. The output mode (for example, ECP and Centronics) is determined by whatever mode the printer and ecpp driver automatically negotiate. It will not change the current mode. The user must verify that data printed properly. This test is disabled by default and must be manually enabled by the user. If this test passes successfully, you know that the SBus DMA circuitry, the printer, and the device driver are functioning properly.

ecpptest Options

Gráfico

FIGURE 9-1 ecpptest


TABLE 9-2 ecpptest
ecpptest OptionsDescription
External LoopbackEnables or disables the external loopback test. This test requires a special loopback plug
PrinterEnables or disables the printer test; this test requires a printer to be attached to the parallel port

ecpptest Test Modes

TABLE 9-3 ecpptest
Test ModeDescription
Connection TestOpens and closes the ecpp(7) device. No data is transferred. The test passes if the device can be open and closed successfully. The test also passes if the device cannot be opened because the device is busy with another process
Functional TestRuns the internal loopback test and the user can optionally run the External loopback test and Printer test. The test will fail if the device is busy

If you invoke SunVTS through SyMON, the following Functional Test description applies: Runs the internal loopback test. If the device cannot be opened because it is busy, then it is assumed that the device is successfully connected to another process


ecpptest Command Line Syntax

/opt/SUNWvts/bin/ecpptest standard_arguments -o [dev=device_name]
[ext_loop=Enable|Disable][printer=Enable|Disable]

TABLE 9-4 ecpptest
Argument Explanation
dev=device_nameSpecifies the name of the device. This should be of the form /dev/ecpp#, where # is the minor number of the device. The default device is /dec/ecpp0.
ext_loop=enable|disableIf enabled, the external loopback test is run. The External loopback plug must be attached to the printer port.
printer=enable|disableIf enabled, the printer test is run. A Centronics or ECP mode parallel port printer must be attached

ecpptest Error Messages

TABLE 9-5

Error MessageProbable Cause(s)Recommended Action
8000External loop test and printer test cannot be enabled at the same timeOperator error.Examine system message files (/var/adm/messages) for other information.
8001device_name: Device does not exist or is otherwise inaccessibleCorrect ecpp driver not installed.Examine system message files (/var/adm/messages) for other information.


Faulty ecpp device or motherboard hardware.


System software problem.
8002Must be super user (root) to executeOperator error.Examine system message files (/var/adm/messages) for other information.
8003Failed to open device_name (error_message)Correct ecpp driver not installed.Examine system message files (/var/adm/messages) for other information.


Faulty ecpp device or motherboard hardware.


System software problem.
8004Failed ioctl name, device = device_name, error = error_messageCorrect ecpp driver is not installed.Examine system message files (/var/adm/messages) for other information.


Faulty ecpp device or motherboard hardware.


System software problem.
8005Device not in correct mode, device = device_name, expectedCorrect ecpp driver is not installed.Examine system message files (/var/adm/messages) for other information.

mode = number, observed
mode = number
Faulty ecpp device or
motherboard hardware.



System software problem.
TABLE 9-5 (Continued)

Error MessageProbable Cause(s)Recommended Action
8006device_name: Status line miscompare, expected = number, observed =Faulty or missing external loopback connector.Examine system message files (/var/adm/messages) for other information.

number, xor = numberCorrect ecpp driver is not installed.


Faulty ecpp device or motherboard hardware.


System software problem.
8007ECPP_nACK in wrong state, expected = number, observed =Faulty or missing external loopback connector.Examine system message files (/var/adm/messages) for other information.

number, xor = numberCorrect ecpp driver not installed.


Faulty ecpp device or motherboard hardware.


System software problem.
8008subtest_name: Data miscompare, expected = number, observed =Faulty or missing external loopback connector.Examine system message files (/var/adm/messages) for other information.

number, xor = numberCorrect ecpp driver not installed.


Faulty ecpp device or motherboard hardware.


System software problem.
8009Could not set correct port type, expected = number (device_name),Correct ecpp driver not installed.Examine system message files (/var/adm/messages) for other information.

observed = number, device = device_nameSystem software problem.


Faulty ecpp device or motherboard hardware.
TABLE 9-5 (Continued)

Error MessageProbable Cause(s)Recommended Action
8010subtest_name: Failed to allocate number bytes of memory, error =System resources temporarily not available, try again.Examine system message files (/var/adm/messages) for other information.

error_messageCorrect ecpp driver not installed.


Faulty ecpp device or motherboard hardware.


System software problem.
8011subtest_name: Write() failed, device = device_name, error =Correct ecpp driver not installed.Examine system message files (/var/adm/messages) for other information.

error_messageFaulty ecpp device or motherboard hardware.


System software problem.
8012subtest_name: Write count is wrong, expected = number, observed =Correct ecpp driver is not installed.Examine system message files (/var/adm/messages) for other information.

numberFaulty ecpp device or motherboard hardware.


System software problem.
8013subtest_name: Data miscompare, expected = number, observed =Correct ecpp driver not installedExamine system message files (/var/adm/messages) for other information.

number, xor = number,
offset = number
Faulty ecpp device or
motherboard hardware.



System software problem.
8014device_name: Device busyAnother process is using the device.Make sure no other process is using the device.


Someone is printing with the device.Make sure no one is printing to the device.


Faulty ecpp device or motherboard hardware.Examine system message files (/var/adm/messages) for other information.


System software problem.
8015Bad state for device name, expected mode = number, observed mode = number

TABLE 9-5 (Continued)

Error MessageProbable Cause(s)Recommended Action
8016ecpp device busy: device name, expected mode = number, observed mode = number

8017Paper out: device name, expected mode = number, observed mode = number

8018Printer offline: device name, expected mode = number, observed mode = number

8019Printer error: device name, expected mode = number, observed mode = number

8020Printer unplugged: device name, expected mode = number, observed mode = number

8021Unrecognized printer error: device name, expected mode = number, observed mode = number