SunVTS 2.1 Test Reference Manual
  Cerca solo questo libro
Scarica il manuale in formato PDF
CHAPTER 10

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 10-1 ecpptest
SubtestDescription
Internal Test FIFO LoopbackThis verifies 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

Grafica

FIGURE 10-1 ecpptest


TABLE 10-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 10-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 10-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 10-5 disktest

Error MessageProbable Cause(s)Recommended Action
8000External loop test and printer test cannot be enabled at the same timeOperator errorExamine system message files (/var/adm/messages) for other information.
8001<device_name>: Device does not exist or is otherwise inaccessibleCorrect ecpp driver not installedExamine 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 errorExamine system message files (/var/adm/messages) for other information.
8003Failed to open <device_name> (<error_message>)Correct ecpp driver not installedExamine 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

Correct ecpp driver not installedExamine system message files (/var/adm/messages) for other information.

= <error_message>Faulty ecpp device or motherboard hardware


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

mode = <number>, observed mode = <number>Faulty ecpp device or motherboard hardware


System software problem
TABLE 10-5 disktest(Continued)

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

observed = <number>,
xor = <number>
Correct ecpp driver not installed


Faulty ecpp device or motherboard hardware


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

<number>, xor = <number>Correct ecpp driver not installed


Faulty ecpp device or motherboard hardware


System software problem
8008<subtest_name>: Data miscompare, expected = <number>, observedFaulty or missing external loopback connectorExamine system message files (/var/adm/messages) for other information.

= <number>, xor = <number>Correct ecpp driver not installed


Faulty ecpp device or motherboard hardware


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

(<device_name>), observed = <number>,System software problem

device = <device_name>Faulty ecpp device or motherboard hardware
8010<subtest_name>: Failed to allocate <number> bytes ofSystem resources temporarily not available, try againExamine system message files (/var/adm/messages) for other information.

memory, error =
<error_message>
Correct ecpp driver not installed


Faulty ecpp device or motherboard hardware


System software problem
TABLE 10-5 disktest(Continued)

Error MessageProbable Cause(s)Recommended Action
8011<subtest_name>: Write() failed, device = <device_name>, errorCorrect ecpp driver not installedExamine system message files (/var/adm/messages) for other information.

= <error_message>Faulty ecpp device or motherboard hardware


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

observed = <number>Faulty ecpp device or motherboard hardware


System software problem
8013<subtest_name>: Data miscompare, expected = <number>, observedCorrect 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
8014<device_name>: Device busyAnother process is using the deviceMake sure no other process is using the device.


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


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


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

8016ecpp device busy: device <name>, expected mode = <number>, observed mode = <number>

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

TABLE 10-5 disktest(Continued)

Error MessageProbable Cause(s)Recommended Action
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>