1. Technical Field
The present disclosure relates to systems and methods for testing ports of servers, and particularly to a testing system and a method for testing Video Graphics Array (VGA) ports.
2. Description of Related Art
In computer or media systems, a VGA port is provided to couple to a display device. When testing the VGA port, a display is connected to the VGA port, the VGA port outputs a video signal to show graphics on the display, and an operator observes the display results. However, it is inconvenient for the operator to observe the display results, and the operator may read the display results incorrectly.
Therefore, there is room for improvement within the art.
Many aspects of the embodiments can be better understood with references to the following drawings. The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the embodiments. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
The disclosure is illustrated by way of example and not by way of limitation in the figures of the accompanying drawings in which like references indicate similar elements. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean “at least one.”
The testing device 100 includes a setting module 10 connected to the oscilloscope 200, a reading module 20 connected to the oscilloscope 200, a determining module 30 connected to the reading module 20, a reporting module 40 connected to the determining module 30, and a displaying module 50 connected to the reporting module 40.
The VGA port 310 includes a red signal output pin R, a green signal output pin G, a blue signal output pin B, a horizontal synchronizing signal output pin Hs, and a field synchronizing signal output pin Vs. The oscilloscope 200 measures output signals outputted from the VGA port 310.
In testing, the setting module 10 presets parameters, such as a unit voltage value, a position of an origin of a coordinate system, and a triggering condition. The unit voltage value is a voltage value of each unit of the coordinate system and can be 0.1V or 1V, for example. Two same output signals output two different waveforms under different unit voltage values. The position of the origin of the coordinate system determines a starting position of the waveforms on a screen of the oscilloscope 200. The triggering condition determines a condition under which the oscilloscope 200 starts to detect signals output from the VGA port 310 and capture waveforms of the signals. In one embodiment, the oscilloscope 200 starts to detect signals output from the VGA port 310 and capture waveforms of the signals upon detecting that a signal from the oscilloscope 200 changes from a high-level to a low-level signal or changes from a low-level to a high-level signal. The reading module 20 reads data carried by the waveforms captured by the oscilloscope 200. The determining module 30 compares the data read by the reading module 20 with the preset parameters and determines whether the data conforms to the preset parameters. The reporting module 40 automatically creates a testing report, which records a name of each VGA port 310 and a plurality of data, such as amplitude and frequency, corresponding to the name. The displaying module 50 displays the testing results according to the testing report.
In step S01, the test is started.
In step S02, the setting module 10 automatically presets parameters, such as a unit voltage value, a position of an origin of a coordinate system, and a triggering condition of the oscilloscope 200.
In step S03, the oscilloscope 200 detects signals and captures waveforms of the signals output from the VGA port 310 according to the preset parameters. In one embodiment, the oscilloscope 200 detects the red signal output port R, the green signal output pin G, the blue signal output pin B, the horizontal synchronizing signal output pin Hs, and the field synchronizing signal output pin Vs one-by-one.
In step S04, the reading module 20 reads data carried by the waveforms captured by the oscilloscope 200.
In step S05, the determining module 30 compares the data read by the reading module 20 with the preset parameters and determines whether the data conforms to the preset parameters. If the data conforms to the preset parameters, the waveforms are qualified. If the data does not conform to the preset parameter, the waveforms are unqualified.
In step S06, the reporting module 40 automatically creates a testing report. The testing report records a name of each VGA port 310 and a plurality of data, such as an amplitude and frequency, corresponding to the name.
In step S07, the displaying module 50 displays a testing result according to the testing report.
In step S08, the testing device 100 determines automatically if all the signals of the VGA port are tested. If so, the process is finished. If not, the process continues to step S09.
In step S09, the oscilloscope 200 detects signals from the next VGA port 310 and returns to step S03.
It is to be understood, however, that even though numerous characteristics and advantages of the embodiments have been set forth in the foregoing description, together with details of the structure and functions of the embodiments, the disclosure is illustrative only, and changes may be made in detail, especially in matters of shape, size, and arrangement of parts within the principles of the invention to the full extent indicated by the broad general meaning of the terms in which the appended claims are expressed.
| Number | Date | Country | Kind |
|---|---|---|---|
| 2013100595436 | Feb 2013 | CN | national |