CN107423168A - Method of testing and test device - Google Patents
Method of testing and test device Download PDFInfo
- Publication number
- CN107423168A CN107423168A CN201610343974.9A CN201610343974A CN107423168A CN 107423168 A CN107423168 A CN 107423168A CN 201610343974 A CN201610343974 A CN 201610343974A CN 107423168 A CN107423168 A CN 107423168A
- Authority
- CN
- China
- Prior art keywords
- port
- data
- board
- testing
- test
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
- G06F11/2221—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test input/output devices or peripheral units
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
- G06F11/2236—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test CPU or processors
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
- Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
Abstract
The embodiments of the invention provide method of testing and test device, after the method for testing is included in testing single-board startup kernel and completes initialization, the port data that the testing single-board generates according to cycle tests is obtained;The port data and the correction data corresponding with the cycle tests prestored are contrasted, determine the test result of the port of the testing single-board.In the embodiment of the present invention, testing single-board is after starting kernel and completing initialization, the hardware of corresponding ports being capable of normal work, at this moment test program can be started, and without waiting for the stable output display result of testing single-board just can interpolate that testing single-board whether normal work, therefore the embodiment of the present invention can reduce the time needed for test, improve testing efficiency.
Description
Technical field
The present invention relates to equipment production and testing field, specifically, being related in equipment production and testing field
Method of testing and test device.
Background technology
TV (Television, TV), mobile phone or set top box etc. are set with display input/output interface
It is standby before producing line production is dispatched from the factory to be required for that by production line test, the efficiency of production line test product is directly affected
Production cost.Production line test is different from functional test, and it pays close attention to each device on the veneer of production
Connectedness.Production line test captures output signal in input input test signal, in output end, passes through
Test signal and output information are compared to determine entirely to show whether path is normal.
In current testing scheme, normally test journey could be started to testing single-board needs by starting to Android
Sequence, the baseline time from upper electricity to android system start completion are 20s to 30s, and are needed
After the function-stable output display of veneer to be tested, test computer could export aobvious according to testing single-board
Show result, determine test result.This causes the time of test to be grown partially, and the whole efficiency of test is relatively low.
The content of the invention
The embodiments of the invention provide method of testing and test device, can reduce the time needed for test,
Improve the efficiency of test.
In a first aspect, the embodiments of the invention provide a kind of method of testing, including:Start in testing single-board
Kernel and after completing initialization, obtains the port number that the testing single-board generates according to cycle tests
According to;The port data and the correction data corresponding with the cycle tests prestored are carried out pair
Than determining the test result of the port of the testing single-board.
The embodiment of the present invention gives birth to testing single-board after testing single-board starts kernel and completes initialization
Into port data and the correction data that prestores contrasted, can determine the port of testing single-board is
No normal work.In the embodiment of the present invention, testing single-board is right after starting kernel and completing initialization
Answer port hardware can normal work, at this moment can start test program, and without waiting for testing
The stable output display result of veneer just can interpolate that testing single-board whether normal work, therefore the present invention is implemented
Example can reduce the time needed for test, improve testing efficiency.
Optionally, the port of the testing single-board is input port, and methods described is performed by testing single-board,
The port data for obtaining the testing single-board and being generated according to cycle tests, including:
The cycle tests that testing and control box is sent is received, the cycle tests is the testing and control box
Sent on the testing single-board after electricity;
The port data is generated according to the cycle tests.
Here, the cycle tests is prestored in testing and control box, the test is prestored in testing single-board
Correction data corresponding to sequence.So, testing single-board can start kernel and after completing initialization,
The cycle tests that testing and control box is sent is received, and generates port data, and testing single-board can also incite somebody to action
The port data and the correction data prestored are contrasted, and can determine the input port of testing single-board
Whether normal work.
Optionally, methods described also includes:
The test result of the port is sent to test computer.Specifically, test result can pass through test
Control box is forwarded to test computer.The byte shared by test result that testing single-board is sent to test computer can
With very little.
Optionally, the port of the testing single-board is output port, and methods described is performed by test computer,
The port data for obtaining the testing single-board and being generated according to cycle tests, including:
The port data of testing and control box forwarding is received, the port data is the testing single-board root
Generated and sent according to the cycle tests prestored to the testing and control box.
Here, the cycle tests is prestored in testing single-board, tests in computer and prestores the test sequence
Correction data corresponding to row.So, kernel can be started in testing single-board and complete initial by testing computer
After change, the port that testing and control box transmitted test veneer generates according to the cycle tests prestored is received
Data, and test computer and the port data can also be contrasted with the correction data prestored,
Can determine testing single-board output port whether normal work.
It should be noted that in the embodiment of the present invention, the test of input port and the test of output port are separate,
I.e. the test of input port and the test of output port can be carried out simultaneously, or can also first carry out input
The test of port, it is rear to perform the test of output port, or the test of output port is first carried out, it is rear to perform
The test of input port, the embodiment of the present invention are not construed as limiting to this.
Optionally, the method for testing is used to carry out video measurement to the port, and the port data is
Corresponding to the section ports data of contrast district, the correction data is the portion corresponding to the contrast district
Divide correction data, wherein, the contrast district is the subregion in the viewing area of the testing single-board.
In the embodiment of the present invention, by the way that section ports data and part correction data are contrasted, it is determined that
The test result of the port of testing single-board, the data volume of contrast can be reduced, and then can obtained faster
Test result, further improve the efficiency of test.
Optionally, the method for testing is used to carry out audio-frequency test to the port.
Optionally, it is described to be contrasted the port data and the correction data prestored, determine institute
The test result of the port of testing single-board is stated, including:
Determine the difference of the port data and the correction data;
According to the port data and the difference of the correction data, the port of the testing single-board is determined
Test result.
Optionally, it is described according to the port data and the difference of the correction data, determine the test
The test result of the port of veneer, including:
If the absolute value of the difference of the port data and the correction data is more than first threshold, institute
The test result for stating port represents that the port is abnormal, and the first threshold is the positive number more than zero;
If the absolute value of the difference of the port data and the correction data is less than or equal to described the
One threshold value, then the test result expression port of the port is normal.
Optionally, it is described to be contrasted the port data and the correction data prestored, determine institute
The test result of the port of testing single-board is stated, including:
Determine the port data and the ratio of the correction data;
According to the port data and the ratio of the correction data, the port of the testing single-board is determined
Test result.
Optionally, it is described according to the port data and the difference of the correction data, determine the test
The test result of the port of veneer, including:
If the absolute value of the ratio and 1 difference of the port data and the correction data is more than second
Threshold value, then the test result expression port of the port is abnormal, and the Second Threshold is more than zero
Positive number;
If the port data and the ratio of the correction data and the absolute value of 1 difference are less than or waited
In the Second Threshold, then the test result expression port of the port is normal.
Second aspect, the embodiments of the invention provide a kind of test device, the device includes acquiring unit,
For after testing single-board starts kernel and completes initialization, obtaining the testing single-board according to test
The port data of sequence generation;Determining unit, for by the port data and prestore with it is described
Correction data is contrasted corresponding to cycle tests, determines the test result of the port of the testing single-board.
The device is used to perform the method in any possible implementation of above-mentioned first aspect or first aspect.
The third aspect, the embodiments of the invention provide a kind of test device, the device includes:Memory,
Processor, transceiver and bus system, the transceiver are used to obtain the testing single-board according to test sequence
The port data of column-generation, the processor are used for the port data and prestoring with the survey
Correction data corresponding to examination sequence is contrasted, and determines the test result of the port of the testing single-board.Its
In, the memory is connected with the processor by the bus system, and the memory is used for store instruction and right
Than data, the processor is used for the instruction for performing the memory storage, and this is deposited when the computing device
During the instruction of reservoir storage, the execution make it that the computing device first aspect or any of first aspect can
Method in the implementation of energy.
Fourth aspect, the embodiments of the invention provide a kind of computer-readable medium, for storing computer
Program, the computer program include being used for any possible realization side for performing first aspect or first aspect
The instruction of method in formula.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be in the embodiment of the present invention
The required accompanying drawing used is briefly described, it should be apparent that, drawings described below is only this
Some embodiments of invention, for those of ordinary skill in the art, are not paying creative work
Under the premise of, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic block diagram of test frame of the embodiment of the present invention.
Fig. 2 is a kind of indicative flowchart of method of testing.
Fig. 3 is a kind of indicative flowchart of method of testing of the embodiment of the present invention.
Fig. 4 is the indicative flowchart of another method of testing of the embodiment of the present invention.
Fig. 5 is a kind of schematic block diagram of test device of the embodiment of the present invention.
Fig. 6 is the schematic block diagram of another test device of the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out
Clearly and completely describing, it is clear that described embodiment is the part of the embodiment of the present invention, without
It is whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making wound
The every other embodiment that the property made is obtained on the premise of working, should all belong to the scope of protection of the invention.
Fig. 1 shows the schematic block diagram of the test frame of the embodiment of the present invention.The test frame includes surveying
Veneer 10 and test system 20 are tried, test system 20 includes testing jig 21, testing and control box 22, surveyed
Try computer 23 and server 24.Testing single-board 10 is test object, in embodiments of the present invention, the survey
It can be the chip in the device with display screen such as TV, mobile phone or set top box to try veneer.
Test in the embodiment of the present invention can be production line test, and the function that production line test is related to has:Survey
Try whether input port welding on veneer normal, on testing single-board input port whether normal, testing single-board
The welding of upper master chip whether on normal, testing single-board master chip input port and built-in function it is whether normal,
Whether whether output port welding is normal on normal, testing single-board for the output port of master chip on testing single-board
And whether output port is normal etc. on testing single-board.
In test frame in embodiments of the present invention, testing jig 21 is connected with testing single-board 10, test
In except radio frequency (Radio Frequency, RF), HDMI (High-Definition
Multimedia Interface, HDMI), VBO, USB (Universal Serial Bus,
USB) interface is needed outside patching manually, and other interfaces are using direct with thimble on testing jig 21
The mode of contact is connected with testing single-board 10.Testing jig 21 be used for for testing single-board 10 power or with survey
Data are transmitted between examination veneer 10.Testing and control box 22 can provide the interface signal related to testing
Produce, and by testing jig 21 by interface signal transfer to testing single-board 10, and test can be passed through
Frame 21 captures the data of testing single-board output.Survey can be sent to testing and control box 22 by testing computer 23
Examination instruction, test instruction are used for the generation for controlling the interface signal related to test of testing and control box 22.
Server 24 is responsible for being managed whole test process.
The test instruction for testing some port, test can be sent to testing and control box 22 by testing computer 23
Control box 22 instructs according to the test, produces test signal, and the test signal is passed through into testing jig 21
Input to testing single-board 10, testing single-board 10 produce to should test signal output signal, test control
Box 22 processed captures the output information, and the output signal is sent into test computer 23, tests computer 23
According to correction data corresponding to the output signal and test instruction, whether just the testing single-board function is judged
Often.
Fig. 2 shows a kind of indicative flowchart of method of testing 100.As shown in Fig. 2 this method 100
Performed by testing single-board, including:
110, upper electricity.
Specifically, can be electricity on the testing single-board by testing jig 21.
120, start kernel.
130, initialization driving.
140, start Android.
Testing single-board is 20s to 30s from upper electricity to android system start completion, baseline time.Open
After having moved Android, the software systems meeting normal operation on testing single-board, display circle of testing single-board
Face also can normal operation, testing single-board can stablize output display, such as output video data or audio number
According to.
150, start test program.
Here, test program needs to start after Android is started, and veneer is starting test journey
After sequence, the test signal of testing and control box transmission can be received.
160, read USB flash disk startup file.
Because testing single-board is to read USB flash disk startup file by USB interface, tested in 160 single
Plate can synchronously complete USB test.Can also be included in startup file in the USB flash disk needs in test
The data wanted, such as channel table required during RF interface testings.
170, check channel table.
When carrying out RF interface testings, testing single-board needs to search for channel to show test image.At this moment,
By checking that channel table can quickly determine channel, testing audio or video are exported, reduces search frequency
Road takes.
180, mask information, such as interference of the infrared signal to test caused by shielding remote control.
Testing single-board is after test program is started, by all or part for performing above-mentioned 160 to 180
Step, the test signal that can be sent according to the testing and control box of reception, generates test data, the test
Data are, for example, video data or voice data, then by the stable output display of the test data.
At this moment, testing and control box can capture the test data of stable output, and the test data is turned
It is sent to test computer.Test computer judges whether the display path of testing single-board is normal according to test data.
After the stable output display of test data of testing single-board, testing single-board can receive testing and control
Box sends next test signal.
Method of testing shown in above-mentioned Fig. 2, chip and scheme need not be designed particularly in whole process,
As long as producer writes test program, and puts up test frame.But above method test journey
Sequence needs to start after Android is started, and needs to wait the function-stable of testing single-board defeated
Go out after display, the display result that test computer could export according to testing single-board, determine test result.
Can reach 2 minutes to 3 minutes for the testing time of each function of testing single-board so that test when
Between it is partially long, the whole efficiency of test is very low.
Fig. 3 shows the indicative flowchart of the method for testing 200 of the embodiment of the present invention.This method 200
Including:
S210, after testing single-board starts kernel and completes initialization driving, it is single to obtain the test
The port data that plate generates according to cycle tests.
S220, the port data and the correction data corresponding with the cycle tests prestored are entered
Row contrast, determine the test result of the port of the testing single-board.
Here, testing single-board starts to BOOT or operating system nucleus, and after initializing driving,
The each hardware port or interface of testing single-board being capable of normal operations.
In the embodiment of the present invention, the port of testing single-board can be input port, or output port.
When port is input port, above-mentioned method of testing 100 is performed by testing single-board.At this moment, described in acquisition
The port data that testing single-board generates according to cycle tests, including:
The cycle tests that testing and control box is sent is received, the cycle tests is the testing and control box
Sent on the testing single-board after electricity;
The port data is generated according to the cycle tests.
Here, the cycle tests is prestored in testing and control box, the test is prestored in testing single-board
Correction data corresponding to sequence.For example, cycle tests can be stored in survey before testing and control box dispatches from the factory
In the storage region for trying control box, or the test can be previously written in memory block in testing and control box
Sequence.Correction data can be stored in before testing single-board dispatches from the factory testing single-board storage region (such as
Flash memory) in.
Also, multiple cycle tests can be stored in testing and control box in advance, the plurality of cycle tests can be with
Respectively audio-frequency test sequence or video test sequence, and each cycle tests can be provided with one
Mark (such as numbering), at this moment, in testing single-board it can prestore and a pair of each cycle tests 1
The correction data answered, and with cycle tests corresponding to correction data can have it is corresponding with cycle tests
Mark (such as numbering).
Optionally, the method for testing 100 can be used for carrying out video measurement to the port of testing single-board,
It can be used for carrying out audio-frequency test to the port of testing single-board.
In the embodiment of the present invention, the display image or audio of cycle tests and corresponding with the cycle tests
The display image or audio of correction data are identical.For example, when carrying out video measurement, if test sequence
Display image corresponding to row is a circle, and display image corresponding to the correction data is also same circle
Circle.
In the embodiment of the present invention, interface can be set, the interface is used for capture-port data in testing single-board
And port data and correction data are contrasted.So, testing single-board can receive testing and control box
After the cycle tests of transmission, port data is generated, the interface captures the port data, and by the port
The correction data corresponding with the cycle tests prestored in data and testing single-board, determines the test list
Whether the input port of plate is normal.
Optionally, in the embodiment of the present invention, when the port of testing single-board is input port, testing single-board
The test result can also be sent to test computer.
Specifically, test result can be forwarded to test computer by testing and control box.Test result can be with
It is normal for the input port, or the input port is abnormal.Such as the input port can be represented with 1
Normally, represent that the input port is abnormal with 0, the data institute that such testing single-board is sent to test computer
The byte accounted for can be with very little.
Therefore, testing single-board of the embodiment of the present invention can connect after starting kernel and completing initialization
The cycle tests that Acceptance Tests control box is sent, and generates port data, and testing single-board can also should
Port data and the correction data prestored are contrasted, and can determine the input port of testing single-board is
No normal work.In the embodiment of the present invention, testing single-board is right after starting kernel and completing initialization
Answer port hardware can normal work, at this moment can start test program, and without waiting for testing
The stable output display result of veneer just can interpolate that testing single-board whether normal work, therefore the present invention is implemented
Example can reduce the time needed for test, improve testing efficiency.
When port is output port, above-mentioned method of testing 100 is performed by test computer.At this moment, obtain
The port data that the testing single-board generates according to cycle tests can be:Receive the forwarding of testing and control box
The port data, the port data are the testing single-boards according to the cycle tests prestored
Generate and send to the testing and control box.
Here, the cycle tests is prestored in testing single-board, tests in computer and prestores the test sequence
Correction data corresponding to row.For example, cycle tests can be stored in test control before testing single-board dispatches from the factory
In the storage region (such as flash memory) of box processed, correction data can be before test computer dispatches from the factory
It is stored in the storage region of test computer, or correction data can be previously written depositing for test computer
In storage area domain.Likewise, multiple cycle tests can be prestored in testing single-board, the plurality of test
Sequence can be respectively audio-frequency test sequence or video test sequence, and each cycle tests can
With a mark (such as numbering), testing in computer can prestore with each cycle tests one by one
Corresponding correction data, and to cycle tests corresponding to correction data can have it is corresponding with cycle tests
Mark (such as numbering).
So, the port data of testing and control box forwarding can received by testing computer, and the port data is
Testing single-board is generated and sent to the testing and control box according to the cycle tests prestored, is surveyed
Examination computer corresponding with the cycle tests contrasts number by what the port data and testing in computer prestored
According to determining whether the output port of the testing single-board is normal.
Therefore, test of embodiment of the present invention computer can start kernel in testing single-board and complete to initialize
Afterwards, the port number that testing and control box transmitted test veneer generates according to the cycle tests prestored is received
According to, and test computer and the port data can also be contrasted with the correction data prestored, energy
Enough determine testing single-board output port whether normal work.In the embodiment of the present invention, testing single-board is opening
Dynamic kernel and after completing initialization, the hardware of corresponding ports can normal work, at this moment can start survey
Program is tried, and withouts waiting for the stable output display result of testing single-board and just can interpolate that testing single-board is
No normal work, therefore the embodiment of the present invention can reduce the time needed for test, improve testing efficiency.
It should be noted that in the embodiment of the present invention, the test of input port and the test of output port are separate,
I.e. the test of input port and the test of output port can be carried out simultaneously, or can also first carry out input
The test of port, it is rear to perform the test of output port, or the test of output port is first carried out, it is rear to perform
The test of input port, the embodiment of the present invention are not construed as limiting to this.
Optionally, the method for testing 100 can be used for carrying out video to above-mentioned input or output port
Test, at this moment, the port data can be the section ports data corresponding to contrast district, described right
Can be the part correction data corresponding to the contrast district than data, wherein, the contrast district is
Subregion in the viewing area of the testing single-board.
Specifically, when above-mentioned input port data and correction data are video data, can first test
Subregion is determined in the viewing area of veneer, by subregion region as a comparison.Then institute is obtained
Port data is stated corresponding to the section ports data in the contrast district;It is corresponding to obtain the correction data
Part correction data in the contrast district, at this moment, port data can be section ports data,
Correction data can be part correction data.
For example, if the resolution ratio of the display of testing single-board is 1920 × 1080, the contrast district can
Think 25 × 25 region in display, the region can be located at the optional position of the display, example
Such as center section, the upper left corner or the lower right corner.
In the embodiment of the present invention, by the way that section ports data and part correction data are contrasted, it is determined that
The test result of the port of testing single-board, the data volume of contrast can be reduced, and then can obtained faster
Test result, further improve the efficiency of test.
Optionally, it is described to be contrasted the port data and the correction data prestored, determine institute
The test result of the port of testing single-board is stated, including:
Determine the difference of the port data and the correction data;
According to the port data and the difference of the correction data, the port of the testing single-board is determined
Test result.
Specifically, in the embodiment of the present invention, if the difference of the port data and the correction data
Absolute value is more than first threshold, then the test result of the port represents that the port is abnormal, and described the
One threshold value is the positive number more than zero;If the absolute value of the difference of the port data and the correction data
Less than or equal to the first threshold, then the test result expression port of the port is normal.
In the embodiment of the present invention, existing difference is in certain limit (example between port data and correction data
Such as first threshold) in, it is believed that the port is normal.It is single that the first threshold can be set in advance in test
In plate and test computer.
, can be by port data and the RGB of correction data (Red Green when carrying out video measurement
Blue, RGB) value is contrasted, and can set port data and the RGB of correction data difference
When the absolute value of value is less than or equal to first threshold, input port is normal, when port data and correction data
The RGB absolute value of difference when being more than first threshold, input port is abnormal.Specifically, can be with
Each component in rgb value is contrasted with first threshold.
For example, the first threshold prestored in testing single-board or test computer is (10,10,10).Work as end
The rgb value for the pixel that mouth data correspond in contrast district is (90,85,87), and correction data is corresponding
The rgb value of pixel in the contrast district is (85,85,85).So, port data and contrast
The absolute value of the difference of data is (5,0,2).At this moment, it is believed that the port of testing single-board is normal.When
The rgb value for the pixel that port data corresponds in contrast district is (102,74,83), correction data pair
Should be (85,85,85) in the rgb value of the pixel in the contrast district.So, port data and right
Than data difference absolute value for (17, | -11 |, | -2 |).At this moment, it is believed that the port of testing single-board is not
Normally.
Optionally, in the embodiment of the present invention, the port data and the correction data prestored are carried out
Contrast, determines the test result of the port of the testing single-board, can include:Determine the port data
With the ratio of the correction data;According to the port data and the ratio of the correction data, institute is determined
State the test result of the port of testing single-board.
If the specifically, absolute value of the ratio and 1 difference of the port data and the correction data
More than Second Threshold, then the test result expression port of the port is abnormal, the Second Threshold
For the positive number more than zero;If the port data and the ratio of the correction data are exhausted with 1 difference
The Second Threshold is less than or equal to value, then the test result of the port represents that the port is normal.
In the embodiment of the present invention, between port data and correction data existing ratio within the specific limits,
Such as the ratio and 1 difference are in the range of Second Threshold, it is believed that the port is normal.Second threshold
Value can be set in advance in testing single-board and test computer.
For example, the Second Threshold prestored in testing single-board or test computer is (0.1,0.1,0.1).When
The rgb value for the pixel that port data corresponds in contrast district is (90,85,87), correction data pair
Should be (85,85,85) in the rgb value of the pixel in the contrast district.So, port data and right
It is (5/85,0,2/85) than the ratio of data and the absolute value of 1 difference.At this moment, it is believed that test is single
The port of plate is normal.When the rgb value for the pixel that port data corresponds in contrast district is
(102,74,83), the rgb value for the pixel that correction data corresponds in the contrast district are
(85,85,85).So, the absolute value of the ratio and 1 difference of port data and correction data for (17/85,
|-11/85|,|-2/85|).At this moment, it is believed that the port of testing single-board is abnormal.
Fig. 4 shows a kind of indicative flowchart of method of testing 300 of the present invention.The method of testing 300
Performed by testing single-board, including:
310, upper electricity.
When testing jig is powered to testing single-board 10, or after testing jig is powered to testing single-board 10,
Testing and control box can sends cycle tests to testing single-board.Here, testing and control box need not receive
Any control information, once testing and control box determines electricity on testing single-board, it is possible to the defeated of testing single-board
Enter end and send cycle tests.
320, start kernel.
330, initialization driving.
Testing single-board starts to BOOT or operating system nucleus, and after initializing driving, test is single
The each hardware port or interface of plate being capable of normal operations.
340, USB flash disk startup file is read, synchronously completes USB test.
Here, because before reading USB flash disk startup file, and Android need not be started, and read
USB flash disk startup file can perform before test program is started, and therefore, the embodiment of the present invention can shorten
Time needed for USB tests, and the number needed in the test that startup file includes can be obtained in advance
According to.
350, start test program.
Test function can be now performed, i.e. testing single-board can receive the test sequence of testing and control box transmission
Row, or testing single-board can export the test program prestored, the cycle tests prestored
It is referred to as built-in testing sequence., here and need not be relative to the method for testing in above-mentioned Fig. 2
Testing single-board can perform test function after starting android system, that is, it is single to without waiting for test
It could be tested after the android system normal operation of plate.Here the test program started is compared to figure
Test program in 2 is more complicated.
360, check channel table.
360 is identical with 170 in above-mentioned Fig. 2, to avoid repeating, repeats no more here.
370, capture input port data.
Interface can be set in testing single-board, and the interface can be used for the input for capturing input port generation
Mouth data.
380, contrast input port data and correction data.
Interface in testing single-board can will be pre- in the input port data and the storage region of testing single-board
The correction data first stored is contrasted, and determines whether the input interface of testing single-board is normal.Specifically,
380 may refer to the description of the S220 in above-mentioned Fig. 3, to avoid repeating, repeat no more here.
Optionally, the testing single-board also includes transmitting element in the embodiment of the present invention, for test computer
Send the test result of the input port.
390, built-in testing sequence send display port.
Specifically, the built-in testing sequence of storage inside is by testing single-board 10 by output port output
Output port data.
390 can perform after 350, and 390 can perform before 360 or 370, also may be used
To be performed after 360 or 370, can also be performed simultaneously with 360 or 370.That is the embodiment of the present invention
In, the test of input port and the test of output port can be carried out independently.
After 390, the testing and control box 22 in test system captures output port data, and this is exported
Port data is sent to test computer.Test computer is according to output port data and the contrast number prestored
According to being contrasted, the test result of the output port of testing single-board is determined.
Specifically, according to output port data and the correction data prestored, the test of output port is determined
As a result, the description of the S220 in above-mentioned Fig. 3 is may refer to, to avoid repeating, is repeated no more here.
Therefore, the embodiment of the present invention will test after testing single-board starts kernel and completes initialization
The port data of veneer generation and the correction data prestored are contrasted, and can determine testing single-board
Port whether normal work.In the embodiment of the present invention, testing single-board is starting kernel and is completing to initialize
Afterwards, the hardware of corresponding ports can normal work, at this moment can start test program, and need not wait
The stable output display result of veneer to be tested just can interpolate that testing single-board whether normal work, therefore this hair
Bright embodiment can reduce the time needed for test, improve testing efficiency.
Fig. 5 is a kind of schematic block diagram of test device 500 provided in an embodiment of the present invention.The device 500
Including:
Acquiring unit 510, for after testing single-board starts kernel and completes initialization, obtaining institute
State the port data that testing single-board generates according to cycle tests;
Determining unit 520, for by the port data and prestoring corresponding with the cycle tests
Correction data contrasted, determine the test result of the port of the testing single-board.
Therefore, the embodiment of the present invention will test after testing single-board starts kernel and completes initialization
The port data of veneer generation and the correction data prestored are contrasted, and can determine testing single-board
Port whether normal work.In the embodiment of the present invention, testing single-board is starting kernel and is completing to initialize
Afterwards, the hardware of corresponding ports can normal work, at this moment can start test program, and need not wait
The stable output display result of veneer to be tested just can interpolate that testing single-board whether normal work, therefore this hair
Bright embodiment can reduce the time needed for test, improve testing efficiency.
Optionally, in the embodiment of the present invention, the port of the testing single-board is input port, described device
500 be testing single-board, i.e., testing single-board may include acquiring unit 510 and determining unit 520.Wherein,
The acquiring unit 510 is specifically used for:
After testing single-board starts kernel and completes initialization, the described of testing and control box transmission is received
Cycle tests, the cycle tests are that the testing and control box is sent on the testing single-board after electricity
's;
The port data is generated according to the cycle tests.
Optionally, in the embodiment of the present invention, described device 500 also includes:Transmitting element, for survey
Try the test result that computer sends the port.
That is, testing single-board can include acquiring unit 510, determining unit 520 and transmitting element.
Optionally, in the embodiment of the present invention, the port of the testing single-board is output port, described device
500 be test computer, that is, testing computer includes acquiring unit 510 and determining unit 520.Wherein, institute
Acquiring unit 510 is stated to be specifically used for:
The port data of testing and control box forwarding is received, the port data is that the testing single-board exists
Start kernel and after completing initialization, according to the cycle tests prestored generate and send to
The testing and control box.
Optionally, in the embodiment of the present invention, the test device 500 is used to carry out video to the port
Test, the port data are the section ports data corresponding to contrast district, and the correction data is pair
The part correction data of contrast district described in Ying Yu, wherein, the contrast district is the testing single-board
Subregion in viewing area.
Optionally, in the embodiment of the present invention, the test device 500 is used to carry out audio to the port
Test.
Optionally, in the embodiment of the present invention, the determining unit 520 is specifically used for:
Determine the difference of the port data and the correction data;
According to the port data and the difference of the correction data, the port of the testing single-board is determined
Test result.
Optionally, in the embodiment of the present invention, the determining unit 520 is specifically used for:
If the absolute value of the difference of the port data and the correction data is more than first threshold, institute
The test result for stating port represents that the port is abnormal, and the first threshold is the positive number more than zero;
If the absolute value of the difference of the port data and the correction data is less than or equal to described the
One threshold value, then the test result expression port of the port is normal.
Optionally, in the embodiment of the present invention, the determining unit 520 is specifically used for:
Determine the port data and the ratio of the correction data;
According to the port data and the ratio of the correction data, the port of the testing single-board is determined
Test result.
Optionally, in the embodiment of the present invention, the determining unit 520 is specifically used for:
If the absolute value of the ratio and 1 difference of the port data and the correction data is more than second
Threshold value, then the test result expression port of the port is abnormal, and the Second Threshold is more than zero
Positive number;
If the port data and the ratio of the correction data and the absolute value of 1 difference are less than or waited
In the Second Threshold, then the test result expression port of the port is normal.
It should be noted that in the embodiment of the present invention, acquiring unit 510 can be realized by transceiver, determining unit
520 can be realized by processor.As shown in fig. 6, device 600 can include processor 610, transmitting-receiving
Device 620, memory 630 and bus system 640.Wherein, memory 630 can be used for storage processing
Code that device 610 performs etc..
Each component in device 600 is coupled by bus system 640, wherein bus system 640
In addition to including data/address bus, in addition to power bus, controlling bus and status signal bus in addition.But it is
For the sake of clear explanation, in figure various buses are all designated as bus system 640.
In implementation process, each step of the above method can pass through the integrated of the hardware in processor 610
The instruction of logic circuit or software form is completed.The step of method with reference to disclosed in the embodiment of the present invention
Hardware processor can be embodied directly in and perform completion, or with the hardware in processor and software module group
Conjunction performs completion.Software module can be located at random access memory, flash memory, read-only storage, may be programmed only
Read in the ripe storage medium in this area such as memory or electrically erasable programmable memory, register.
The storage medium is located at memory 630, and processor 610 reads the information in memory 630, with reference to it
Hardware completes the step of above method.To avoid repeating, it is not detailed herein.
The device 600 shown in device 500 or Fig. 6 shown in Fig. 5 can realize earlier figures 1 to Fig. 4 institutes
Each process corresponding to the embodiment of the method shown, specifically, the device 500 or device 600 may refer to
Description in above-mentioned Fig. 1 to Fig. 4, to avoid repeating, repeat no more here.
It should be understood that in various embodiments of the present invention, the size of the sequence number of above-mentioned each process is not intended to
The priority of execution sequence, the execution sequence of each process should be determined with its function and internal logic, without answering
Any restriction is formed to the implementation process of the embodiment of the present invention.
Those of ordinary skill in the art with reference to the embodiments described herein it is to be appreciated that describe each
The unit and algorithm steps of example, can be with electronic hardware or the knot of computer software and electronic hardware
Close to realize.These functions are performed with hardware or software mode actually, spy depending on technical scheme
Fixed application and design constraint.Professional and technical personnel can use not Tongfang to each specific application
Method realizes described function, but this realization is it is not considered that beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, it is above-mentioned to retouch
The specific work process of system, device and the unit stated, may be referred to the correspondence in preceding method embodiment
Process, it will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed system, device and
Method, it can realize by another way.For example, device embodiment described above is only to show
Meaning property, for example, the division of the unit, only a kind of division of logic function can when actually realizing
To there is other dividing mode, such as multiple units or component can combine or be desirably integrated into another
System, or some features can be ignored, or not perform.Another, shown or discussed is mutual
Coupling or direct-coupling or communication connection can be INDIRECT COUPLING by some interfaces, device or unit
Or communication connection, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, make
It can be for the part that unit is shown or may not be physical location, you can with positioned at a place,
Or it can also be distributed on multiple NEs.Can select according to the actual needs part therein or
Person's whole unit realizes the purpose of this embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit
In or unit be individually physically present, can also two or more units be integrated in one
In individual unit.
If the function is realized in the form of SFU software functional unit and as independent production marketing or made
Used time, it can be stored in a computer read/write memory medium.Based on such understanding, the present invention
The part that is substantially contributed in other words to prior art of technical scheme or the technical scheme portion
Dividing can be embodied in the form of software product, and the computer software product is stored in a storage medium
In, including some instructions to cause a computer equipment (can be personal computer, server,
Or network equipment etc.) perform all or part of step of each embodiment methods described of the present invention.It is and preceding
The storage medium stated includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory),
Random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can
With the medium of store program codes.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited to
In this, any one skilled in the art the invention discloses technical scope in, can be easily
Expect change or replacement, should all be included within the scope of the present invention.Therefore, protection of the invention
Scope described should be defined by scope of the claims.
Claims (20)
- A kind of 1. method of testing, it is characterised in that including:After testing single-board starts kernel and completes initialization, the testing single-board is obtained according to test The port data of sequence generation;The port data and the correction data corresponding with the cycle tests prestored are carried out pair Than determining the test result of the port of the testing single-board.
- 2. according to the method for claim 1, it is characterised in that the port of the testing single-board is Input port, methods described are performed by testing single-board, described to obtain the testing single-board according to cycle tests The port data of generation, including:The cycle tests that testing and control box is sent is received, the cycle tests is the testing and control box Sent on the testing single-board after electricity;The port data is generated according to the cycle tests.
- 3. according to the method for claim 2, it is characterised in that methods described also includes:The test result of the port is sent to test computer.
- 4. according to the method for claim 1, it is characterised in that the port of the testing single-board is Output port, methods described are performed by test computer, described to obtain the testing single-board according to cycle tests The port data of generation, including:The port data of testing and control box forwarding is received, the port data is the testing single-board root Generated and sent according to the cycle tests prestored to the testing and control box.
- 5. according to the method any one of claim 1-4, it is characterised in that the test side Method is used to carry out the port video measurement, and the port data is the part end corresponding to contrast district Mouth data, the correction data are the part correction data corresponding to the contrast district, wherein, it is described Contrast district is the subregion in the viewing area of the testing single-board.
- 6. according to the method any one of claim 1-4, it is characterised in that the test side Method is used to carry out audio-frequency test to the port.
- 7. according to the method any one of claim 1-6, it is characterised in that described by described in Port data and the correction data prestored are contrasted, and determine the test of the port of the testing single-board As a result, including:Determine the difference of the port data and the correction data;According to the port data and the difference of the correction data, the port of the testing single-board is determined Test result.
- 8. according to the method for claim 7, it is characterised in that described according to the port data With the difference of the correction data, the test result of the port of the testing single-board is determined, including:If the absolute value of the difference of the port data and the correction data is more than first threshold, institute The test result for stating port represents that the port is abnormal, and the first threshold is the positive number more than zero;If the absolute value of the difference of the port data and the correction data is less than or equal to described the One threshold value, then the test result expression port of the port is normal.
- 9. according to the method any one of claim 1-6, it is characterised in that described by described in Port data and the correction data prestored are contrasted, and determine the test of the port of the testing single-board As a result, including:Determine the port data and the ratio of the correction data;According to the port data and the ratio of the correction data, the port of the testing single-board is determined Test result.
- 10. according to the method for claim 9, it is characterised in that described according to the port data With the difference of the correction data, the test result of the port of the testing single-board is determined, including:If the absolute value of the ratio and 1 difference of the port data and the correction data is more than second Threshold value, then the test result expression port of the port is abnormal, and the Second Threshold is more than zero Positive number;If the port data and the ratio of the correction data and the absolute value of 1 difference are less than or waited In the Second Threshold, then the test result expression port of the port is normal.
- A kind of 11. test device, it is characterised in that including:Acquiring unit, for after testing single-board starts kernel and completes initialization, obtaining the survey The port data that examination veneer generates according to cycle tests;Determining unit, for by the port data and prestore it is corresponding with the cycle tests right Contrasted than data, determine the test result of the port of the testing single-board.
- 12. device according to claim 11, it is characterised in that the port of the testing single-board For input port, described device is testing single-board, and the acquiring unit is specifically used for:The cycle tests that testing and control box is sent is received, the cycle tests is the testing and control box Sent on the testing single-board after electricity;The port data is generated according to the cycle tests.
- 13. device according to claim 12, it is characterised in that described device also includes:Transmitting element, for sending the test result of the port to test computer.
- 14. device according to claim 11, it is characterised in that the port of the testing single-board For output port, described device is test computer, and the acquiring unit is specifically used for:The port data of testing and control box forwarding is received, the port data is the testing single-board root Generated and sent according to the cycle tests prestored to the testing and control box.
- 15. according to the device any one of claim 11-14, it is characterised in that the test Device is used to carry out the port video measurement, and the port data is the part corresponding to contrast district Port data, the correction data are the part correction data corresponding to the contrast district, wherein, institute State the subregion in the viewing area that contrast district is the testing single-board.
- 16. according to the device any one of claim 11-14, it is characterised in that the test Device is used to carry out audio-frequency test to the port.
- 17. according to the device any one of claim 11-16, it is characterised in that the determination Unit is specifically used for:Determine the difference of the port data and the correction data;According to the port data and the difference of the correction data, the port of the testing single-board is determined Test result.
- 18. device according to claim 17, it is characterised in that the determining unit is specifically used In:If the absolute value of the difference of the port data and the correction data is more than first threshold, institute The test result for stating port represents that the port is abnormal, and the first threshold is the positive number more than zero;If the absolute value of the difference of the port data and the correction data is less than or equal to described the One threshold value, then the test result expression port of the port is normal.
- 19. according to the device any one of claim 11-16, it is characterised in that the determination Unit is specifically used for:Determine the port data and the ratio of the correction data;According to the port data and the ratio of the correction data, the port of the testing single-board is determined Test result.
- 20. device according to claim 19, it is characterised in that the determining unit is specifically used In:If the absolute value of the ratio and 1 difference of the port data and the correction data is more than second Threshold value, then the test result expression port of the port is abnormal, and the Second Threshold is more than zero Positive number;If the port data and the ratio of the correction data and the absolute value of 1 difference are less than or waited In the Second Threshold, then the test result expression port of the port is normal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610343974.9A CN107423168B (en) | 2016-05-23 | 2016-05-23 | Test method and test device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610343974.9A CN107423168B (en) | 2016-05-23 | 2016-05-23 | Test method and test device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107423168A true CN107423168A (en) | 2017-12-01 |
CN107423168B CN107423168B (en) | 2021-01-29 |
Family
ID=60422269
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610343974.9A Active CN107423168B (en) | 2016-05-23 | 2016-05-23 | Test method and test device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107423168B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112731265A (en) * | 2021-01-07 | 2021-04-30 | 浙江正泰仪器仪表有限责任公司 | Method and system for testing single board of electric meter |
CN113836021A (en) * | 2021-09-24 | 2021-12-24 | 昆仑芯(北京)科技有限公司 | Test method, test device, electronic apparatus, and medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6792378B2 (en) * | 2002-11-21 | 2004-09-14 | Via Technologies, Inc. | Method for testing I/O ports of a computer motherboard |
CN104661169A (en) * | 2013-11-25 | 2015-05-27 | 深圳中电长城信息安全系统有限公司 | Audio testing method and device |
CN105004984A (en) * | 2015-06-25 | 2015-10-28 | 深圳市芯海科技有限公司 | Automatic chip testing method |
-
2016
- 2016-05-23 CN CN201610343974.9A patent/CN107423168B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6792378B2 (en) * | 2002-11-21 | 2004-09-14 | Via Technologies, Inc. | Method for testing I/O ports of a computer motherboard |
CN104661169A (en) * | 2013-11-25 | 2015-05-27 | 深圳中电长城信息安全系统有限公司 | Audio testing method and device |
CN105004984A (en) * | 2015-06-25 | 2015-10-28 | 深圳市芯海科技有限公司 | Automatic chip testing method |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112731265A (en) * | 2021-01-07 | 2021-04-30 | 浙江正泰仪器仪表有限责任公司 | Method and system for testing single board of electric meter |
CN113836021A (en) * | 2021-09-24 | 2021-12-24 | 昆仑芯(北京)科技有限公司 | Test method, test device, electronic apparatus, and medium |
CN113836021B (en) * | 2021-09-24 | 2024-10-08 | 昆仑芯(北京)科技有限公司 | Test method, test device, electronic equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN107423168B (en) | 2021-01-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104205234B (en) | For the conventional data scrambler of memory test circuit engine | |
CN107766194A (en) | Method of testing, device, system, terminal device and computer-readable recording medium | |
US9886766B2 (en) | Electronic device and method for adding data to image and extracting added data from image | |
CN107038990A (en) | Connector assembly, display screen control card and display screen system | |
CN107888978A (en) | KEY codes method for burn-recording, device and computer-readable recording medium | |
CN104170287B (en) | In annex or computing equipment, stop because the receiver of radiation HDMI signal subtracts quick method and apparatus | |
CN110032512A (en) | A kind of adjustment method of small routine, relevant device and terminal | |
CN109039480A (en) | A kind of WIFI test method, device, terminal and storage medium | |
US9621986B2 (en) | Electronic device, audio device, and method for supplying power to the audio device | |
CN106600521A (en) | Image processing method and terminal device | |
CN110875850A (en) | Firmware upgrading method and system, readable storage medium and terminal equipment | |
CN111881051B (en) | Method, device, terminal and storage medium for generating test cases | |
US20140149815A1 (en) | System and method for programming chips on circuit board through boundary scan technology | |
CN107423168A (en) | Method of testing and test device | |
CN107977290A (en) | The test method and test system in a kind of MIPI circuits | |
US9959598B2 (en) | Method of processing image and electronic device thereof | |
CN107248910A (en) | Method for security protection and equipment | |
US20150169425A1 (en) | Electronic device and operating method thereof | |
CN110310341A (en) | Method, device, equipment and storage medium for generating default parameters in color algorithm | |
US10123184B2 (en) | Method for controlling call forwarding information and electronic device thereof | |
WO2019100934A1 (en) | Container arrangement method, device, and storage medium | |
US10446091B2 (en) | Electronic device and display control method thereof | |
CN106708688A (en) | Module testing method and terminal | |
US9804814B2 (en) | Electronic device and method of interconnecting the same | |
CN112100012A (en) | Android device testing method, android device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |