SunVTS 2.0 Test Reference Manual
只搜寻这本书
以 PDF 格式下载本书

rtvctest

21

SunVideo Test (rtvctest)

The rtvctest verifies the functionality of the SunVideo(TM) SBus card. SunVideo technology captures and compresses video input in real-time, making it possible to have realtime video conferencing over standard Ethernet networks.
The rtvctest is available in SunVTS2.0 as a customtest. To enable the test to show up on the SunVTS user interface, you must:
  1. edit the .customtest_OtherDevices file in the SunVTS bin directory

  2. uncomment the line starting with the label SunVideo.

The rtvctest was originally written for Sundiag and the messages from the test are displayed on the SunVTS console within a SunVTS INFO message wrapper.
The rtvctest is available under the group OtherDevices, and is only available in offline mode.

rtvctest Subtests

The rtvctest is divided into four sub-tests: PROMCheck, memory, Jalapeno, and CL4000. The PROMCheck sub-test verifies the SunVideo card's programmable read only memory. The memory test verifies all of the memory on the card, including the 2 Mbytes of memory on the CL4000 compression
engine and the memory on the Jalapeno application-specific integrated circuit (ASIC). The Jalapeno sub-test verifies the interface logic between the SBus, A/D conversion chips, and the CL4000 compression engine. The CL400 sub-test verifies that the compression engine ASIC is able to compress digitized video data from the A/D chips and send this data to the SBus, through the Jalapeno ASIC.
The rtvctest is composed of 49 verification test modules. Table 21-1 lists these modules and their associated test sequence numbers.
Table 21-1 rtvctest
SunVideo Verification Module NameTest Sequence Number
RTVC SUNDIAG Start0
RTVC Checksum1
RTVC Jalapeno SMEM2
RTVC CL4000 DMEM3
RTVC Jalapeno SBus Interrupt Mask4
RTVC CL4000 Interrupt Mask5
RTVC DVMA Control Register6
RTVC DVMA Transfer Size Counter7
RTVC DVMA Memory Address Counter8
RTVC DVMA Virtual Memory Address Counter9
RTVC DVMA Slave SBus Rerun Register10
RTVC IIC Control Register11
RTVC IIC Data Register12
RTVC Video DMA Control Register13
RTVC Video DMA Transfer Size Counter14
RTVC Video DMA Memory Address Counter15
RTVC User Interrupt 016
RTVC User Interrupt 117
RTVC User Interrupt 218
RTVC User Interrupt 319
Table 21-1 rtvctest(Continued)
SunVideo Verification Module NameTest Sequence Number
RTVC Video Control and Status Register20
RTVC Video Control Field Line Interrupt 121
RTVC Video Control Field Line Interrupt 222
RTVC Video Scan Line Mask Registers23
RTVC Video Input Format Type25
RTVC Video Horizontal Lock26
RTVC Video Even Odd Field27
RTVC CL4000 Host Control28
RTVC CL4000 Host Lock29
RTVC CL4000 Video Port A Control30
RTVC CL4000 Video Port B Control31
RTVC CL4000 Video Port A FIFO32
RTVC CL4000 Video Port B FIFO33
RTVC CL4000 Address Memory Registers34
RTVC CL4000 Instruction Memory Access Registers35
RTVC Time Stamp Register36
RTVC CL4000 Register Memory37
RTVC CL4000 Scratch Memory38
RTVC CL4000 DMA Mode39
RTVC CL4000 Motion Estimation Registers40
RTVC CL4000 PSW41
RTVC CL4000 Variable Length Coder Registers42
RTVC CL4000 Channel Memory Registers43
RTVC CL4000 CPU Control44
RTVC CL4000 Multiply Control45
RTVC CL4000 DMA Interrupt Control46
RTVC CL4000 Block Transfer Mode47
Table 21-1 rtvctest(Continued)
SunVideo Verification Module NameTest Sequence Number
RTVC CL4000 Accumulator MSB48
RTVC CL4000 JPC Field49
RTVC SUNDIAG Finish50

rtvctest Options

图形

Figure 21-1 rtvctest

You may test the SunVideo card without any video device (camera, video disc player, or VCR) connected to a input port. However, if you connect a video device to the card, then you must state the format of the video source and the input port which the device is connected.

Note - If you do not state both the video source and the input port, the rtvctest prints an error and terminates testing.

Source Format Select the format of the video source used for testing. You may select from the following sources:
Video SourceDefinition
NoneNo video source.
NTSCA National Television System Committee (NTSC) video source, which is the video standard in the United States and Japan.
PALA phase alternate line video source, which is the video standard in Europe.
Ports If you have selected a video source for testing, then you must state which input port you have used to connect the source to the SunVideo card. You may select from the following ports:
Input PortDefinition
NoneNo input port used.
CV1The Composite Video Input Port 1 (RCA type input).
CV2The Composite Video Input Port 2 (RCA type input).
SVHSThe Super VHS input port.

rtvctest Command Line Syntax

/opt/SUNWvts/bin/rtvctest [fmt=none|ntsc|pal]
[port=none|cv1|cv2|svhs] dev=rtvc_device

Arguments
fmtSelect the format of the video source used for testing. Select either ntsc (video standard in the United States and Japan) or pal (video standard in Europe).
portIf you have selected a video source for testing, then you must state which input port you have used to connect the source to the SunVideo card. You may select from the following ports:

cv1 Composite video input port 1 (RCA type) cv2 Composite video input port 2 (RCA type) svhs Super VHS port

devYou are required to state the SunVideo device when running the rtvctest from the command line. Replace rtvc_device with rtvcn, where n is the device number (from 0 to 31) of the SunVideo card under test.

rtvctest Error Messages

SunVideo Error Message #10
<message>
Where:
<message> is one of the following:
Missing REQUIRED argument D=rtvc[0..31]

SunVideo Error Message #20
<message> Error # <number>
Where:
<message> is one of the following:
     ioctl RTVC_CMD_RESET fault
     ioctl RTVC_CMD_SET_VIDEO fault
     ioctl RTVC_CMD_GET_VIDEO fault
     open /dev/rtvc fault
     close /dev/rtvc fault
     open /dev/rtvcctl fault
     close /dev/rtvcctl fault
     Unknown Jalapeno Version

<number> is one of the following:
ioctl error
module version

SunVideo Error Message #30
<message> <name> Error # <number>
Where:
<message> is one of the following:
        memory map fault for
        memory unmap fault for
        selected /dev/rtvc and /dev/rtvcc1 not available

<name> is one of the following:
        prom
        sram
        buses
        reset
        dmem
        rtvc
  <number> is the error number

SunVideo Error Message #40
RTVC Fault Detected via module <name> Physical Address <value> Expected Value <value> Actual Value <value> RTVC Sundiag Module number <number>
Location <location> Message: <message(s)>
Where:
<name> is the name of the module under test
<value> are the values associated with physical address, expected value, actual value
<number> is the Sundiag Module under test
<location> is the U location of the faulty component
<message(s)> are any additional messages
SunVideo Error Message #41
RTVC Fault Detected via module <name>

Where:
<name> is the name of the module under test
SunVideo Error Message #42
<message> <value1> Actual <value2>
Where:
<message> is one of the following:
Video Format Expected
Video Port Expected

<value1> is the expected value
<value2> is the actual value
SunVideo Error Message #50
<message> <number>
Where:
<message> is one of the following:
Unknown RTVC CL4000 test module
Unknown RTVC Jalapeno test module
Unknown RTVC test module
Unknown RTVC memory test module
Unknown Start Bit

<number> is the module number or start bit location