SunVTS 2.1 Test Reference Manual
  Procure somente este livro
Fazer download desta apostila em PDF
CHAPTER 22

PCMCIA Modem Card Test (pcsertest)


pcsertest verifies the functionality of the PCMCIA Modem Card. The pcsertest issues a series of commands to the modem that instructs the modem's firmware to run an internal analog loopback diagnostic test. Upon completion, the firmware sends back a three-digit status message indicating whether the test passed or failed.
As an option, the pcsertest tests socket I/O cards. This test writes an 8-Kbyte incrementing data pattern to the I/O card, which is then looped back, read, and verified.

Note - When testing socket I/O cards, a 9-pin loopback connector is required. However, no loopback connector is required when testing the default modem card. See Appendix A for loopback connector wiring instructions.


pcsertest Options

Gráfico

FIGURE 22-1 pcsertest

The default card type for each PCMCIA slot is a modem card. If only one modem card is plugged in, the empty slot is ignored.
From the pcsertest Option window, you can choose to test socket I/O cards. To test a socket card, choose Socket on the Card Type switch. If you choose to test a socket I/O card in an empty slot, the test fails.
Any combination of modem and socket I/O cards may be placed in the PCMCIA slots. However, you must select the correct type of card in the Option window. If you select an incorrect card type, the test fails.

pcsertest Test Mode

This test only supports the Functional test mode.

pcsertest Command Line Syntax

/opt/SUNWvts/bin/pcsertest standard_arguments -o dev=device_name,
type=card_type

TABLE 22-1 pcsertest
ArgumentExplanation
dev=device_nameSpecifies the device name (for example, dev=pc0 and pc1)
type=card_typeSpecifies the card type for the previously specified device name (for example, type=serial). You do not need to specify the type if the device is a modem, since modem is the default card type.

pcsertest Error Messages

TABLE 22-2 pcsertest

Error MessageProbable Cause(s)Recommended Action
6000tcgetattr failed for modem card <number> <error message>

6001tcsetattr failed for modem card <number> <error message>

6002Write failed while setting modem card <number> <error message>

6003ioctl TIOCSSOFTCAR failed for serial card <number> <error message>

6004tcgetattr failed for serial card <number> <error message>

6005tcsetattr failed for serial card <number> <error message>

TABLE 22-2 pcsertest(Continued)

Error MessageProbable Cause(s)Recommended Action
6006Card in slot <number> is not a serial card

6007Data miscompare error

6008Modem card <number> returned unknown status

6009ioctl TIOCMSET failed for serial card <number> <error message>

6010ioctl TIOCMBIS failed for serial card <number> <error message>

6011Write to serial card <number> failed. <error message>

6012Timeout waiting for data from serial card <number>

6013Read from serial card <number> failed. <error message>

6014Status timeout from modem card <number>

6015Read from modem card <number> failed. <error message>

6016Card in slot %d is not a modem card

8000can't open <device> <error message>

8001Serial card <number> loopback defective

8002Write to modem card <number> failed. <error message>