CN107423168B - Test method and test device - Google Patents
Test method and test device Download PDFInfo
- Publication number
- CN107423168B CN107423168B CN201610343974.9A CN201610343974A CN107423168B CN 107423168 B CN107423168 B CN 107423168B CN 201610343974 A CN201610343974 A CN 201610343974A CN 107423168 B CN107423168 B CN 107423168B
- Authority
- CN
- China
- Prior art keywords
- test
- port
- data
- board
- comparison
- 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.)
- Active
Links
Images
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 embodiment of the invention provides a test method and a test device, wherein the test method comprises the steps of obtaining port data generated by a test single board according to a test sequence after the test single board starts an inner core and completes initialization; and comparing the port data with pre-stored comparison data corresponding to the test sequence to determine the test result of the port of the test single board. In the embodiment of the invention, after the test single board starts the kernel and completes initialization, the hardware of the corresponding port can normally work, at this time, the test program can be started, and whether the test single board normally works can be judged without waiting for the test single board to stably output the display result, so that the time required by the test can be reduced, and the test efficiency can be improved.
Description
Technical Field
The invention relates to the field of equipment production and test, in particular to a test method and a test device in the field of equipment production and test.
Background
The equipment with display input and output interfaces, such as a Television (TV), a mobile phone or a set top box, needs to be tested by a production line before the production line is produced and leaves a factory, and the efficiency of the production line test directly affects the production cost of the product. Production line testing is different from functional testing, and focuses on connectivity of each device on a produced single board. The production line test inputs a test signal at an input end, captures an output signal at an output end, and determines whether the whole display channel is normal or not by comparing the test signal with the output information.
In the current test scheme, a test single board needs to be normally started to Android to start a test program, the time from power-on to the completion of starting an Android system is 20s to 30s, and a test computer can determine a test result according to a display result output by the test single board after the function of the test single board is stably output and displayed. This results in a long test time and a low overall test efficiency.
Disclosure of Invention
The embodiment of the invention provides a test method and a test device, which can reduce the time required by the test and improve the test efficiency.
In a first aspect, an embodiment of the present invention provides a testing method, including: after a test single board starts an inner core and completes initialization, acquiring port data generated by the test single board according to a test sequence; and comparing the port data with pre-stored comparison data corresponding to the test sequence to determine the test result of the port of the test single board.
In the embodiment of the invention, after the test single board starts the inner core and completes initialization, the port data generated by the test single board is compared with the prestored comparison data, so that whether the port of the test single board works normally can be determined. In the embodiment of the invention, after the test single board starts the kernel and completes initialization, the hardware of the corresponding port can normally work, at this time, the test program can be started, and whether the test single board normally works can be judged without waiting for the test single board to stably output the display result, so that the time required by the test can be reduced, and the test efficiency can be improved.
Optionally, the method is executed by a test board, and the obtaining port data generated by the test board according to a test sequence includes:
receiving the test sequence sent by a test control box, wherein the test sequence is sent by the test control box after the test single board is powered on;
and generating the port data according to the test sequence.
Here, the test control box stores the test sequence in advance, and the test board stores the comparison data corresponding to the test sequence in advance. Thus, the test board can receive the test sequence sent by the test control box and generate port data after starting the kernel and completing initialization, and the test board can also compare the port data with the pre-stored comparison data, so as to determine whether the input port of the test board is working normally.
Optionally, the method further includes:
and sending the test result of the port to a test computer. Specifically, the test result can be forwarded to the test computer through the test control box. The bytes occupied by the test result sent by the test single board to the test computer can be very small.
Optionally, the port of the test board is an output port, the method is executed by a test computer, and the obtaining port data generated by the test board according to the test sequence includes:
and receiving the port data forwarded by the test control box, wherein the port data is generated by the test single board according to the pre-stored test sequence and is sent to the test control box.
Here, the test sequence is pre-stored in the test board, and the comparison data corresponding to the test sequence is pre-stored in the test computer. Therefore, the test computer can receive the port data generated by the test control box according to the pre-stored test sequence after the test single board starts the kernel and completes initialization, and can compare the port data with the pre-stored comparison data, so as to determine whether the output port of the test single board works normally.
It should be noted that, in the embodiment of the present invention, the test of the input port and the test of the output port are independent from each other, that is, the test of the input port and the test of the output port may be performed simultaneously, or the test of the input port may be performed first and then the test of the output port may be performed, or the test of the output port may be performed first and then the test of the input port is performed, which is not limited in the embodiment of the present invention.
Optionally, the testing method is configured to perform a video test on the port, where the port data is a part of port data corresponding to a comparison area, and the comparison data is a part of comparison data corresponding to the comparison area, where the comparison area is a part of area in a display area of the test board.
In the embodiment of the invention, the test result of the port of the test single board is determined by comparing part of the port data with part of the comparison data, so that the compared data amount can be reduced, the test result can be obtained more quickly, and the test efficiency is further improved.
Optionally, the testing method is used for performing audio testing on the port.
Optionally, the comparing the port data with pre-stored comparison data to determine a test result of the port of the test board includes:
determining a difference between the port data and the contrast data;
and determining the test result of the port of the test single board according to the difference value of the port data and the comparison data.
Optionally, the determining a test result of the port of the test board according to the difference between the port data and the comparison data includes:
if the absolute value of the difference between the port data and the comparison data is greater than a first threshold, the test result of the port indicates that the port is abnormal, and the first threshold is a positive number greater than zero;
if the absolute value of the difference between the port data and the comparison data is less than or equal to the first threshold, the test result of the port indicates that the port is normal.
Optionally, the comparing the port data with pre-stored comparison data to determine a test result of the port of the test board includes:
determining a ratio of the port data and the contrast data;
and determining the test result of the port of the test single board according to the ratio of the port data and the comparison data.
Optionally, the determining a test result of the port of the test board according to the difference between the port data and the comparison data includes:
if the absolute value of the difference between the ratio of the port data and the comparison data and 1 is greater than a second threshold value, the test result of the port indicates that the port is abnormal, and the second threshold value is a positive number greater than zero;
and if the absolute value of the difference value between the ratio of the port data and the comparison data and 1 is less than or equal to the second threshold value, the test result of the port indicates that the port is normal.
In a second aspect, an embodiment of the present invention provides a test apparatus, where the test apparatus includes an obtaining unit, configured to obtain, after a test board starts an inner core and completes initialization, port data generated by the test board according to a test sequence; and the determining unit is used for comparing the port data with pre-stored comparison data corresponding to the test sequence to determine a test result of the port of the test single board. The apparatus is configured to perform the method of the first aspect or any possible implementation manner of the first aspect.
In a third aspect, an embodiment of the present invention provides a test apparatus, including: the device comprises a memory, a processor, a transceiver and a bus system, wherein the transceiver is used for acquiring port data generated by the test single board according to a test sequence, and the processor is used for comparing the port data with pre-stored comparison data corresponding to the test sequence and determining a test result of a port of the test single board. Wherein the memory and the processor are connected by the bus system, the memory is configured to store instructions and comparison data, the processor is configured to execute the instructions stored by the memory, and when the processor executes the instructions stored by the memory, the execution causes the processor to execute the method of the first aspect or any possible implementation manner of the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable medium for storing a computer program including instructions for executing the method of the first aspect or any possible implementation manner of the first aspect.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments of the present invention will be briefly described below, and it is obvious that the drawings described below are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic block diagram of a test framework of an embodiment of the present invention.
FIG. 2 is a schematic flow chart diagram of a testing method.
FIG. 3 is a schematic flow chart of a testing method of an embodiment of the present invention.
FIG. 4 is a schematic flow chart diagram of another testing method of an embodiment of the present invention.
FIG. 5 is a schematic block diagram of a test apparatus according to an embodiment of the present invention.
FIG. 6 is a schematic block diagram of another test apparatus of an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, shall fall within the scope of protection of the present invention.
FIG. 1 shows a schematic block diagram of a test framework of an embodiment of the present invention. The test framework comprises a test single board 10 and a test system 20, wherein the test system 20 comprises a test rack 21, a test control box 22, a test computer 23 and a server 24. The test board 10 is a test object, and in the embodiment of the present invention, the test board may be a chip in a device having a display screen, such as a television, a mobile phone, or a set-top box.
The test in the embodiment of the invention can be a production line test, and the production line test relates to the following functions: testing whether the input port on the single board is welded normally, testing whether the main chip on the single board is welded normally, testing whether the input port and the internal function of the main chip on the single board are normal, testing whether the output port of the main chip on the single board is welded normally, testing whether the output port on the single board is normal, testing whether the output port on the single board is welded normally.
In the test framework in the embodiment of the present invention, the test rack 21 is connected to the test board 10, and in the test, except that a Radio Frequency (RF), a High-Definition Multimedia Interface (HDMI), a VBO, and a Universal Serial Bus (USB) Interface need to be manually plugged, other interfaces are connected to the test board 10 by directly contacting with a thimble on the test rack 21. The test rack 21 is used for supplying power to the test board 10 or transmitting data with the test board 10. The test control box 22 may provide generation of interface signals related to the test, transmit the interface signals to the test board 10 through the test rack 21, and capture data output by the test board through the test rack 21. The test computer 23 may send test instructions to the test control box 22, the test instructions being used to control the generation of test-related interface signals of the test control box 22. The server 24 is responsible for managing the entire testing process.
The test computer 23 can send a test instruction for testing a certain port to the test control box 22, the test control box 22 generates a test signal according to the test instruction, and inputs the test signal to the test single board 10 through the test frame 21, the test single board 10 generates an output signal corresponding to the test signal, the test control box 22 captures the output information and sends the output signal to the test computer 23, and the test computer 23 judges whether the test single board functions normally according to the output signal and comparison data corresponding to the test instruction.
Fig. 2 shows a schematic flow diagram of a testing method 100. As shown in fig. 2, the method 100 is executed by a test board, and includes:
and 110, powering up.
Specifically, the test board may be powered on through the test rack 21.
And 120, starting the kernel.
And 130, initializing driving.
140, starting Android.
And the test single board is started from power-on to the Android system, and the base line time is 20s to 30 s. After the Android is started, the software system on the test single board can normally operate, the display interface of the test single board can also normally operate, and the test single board can stably output and display, for example, output video data or audio data.
150, a test procedure is initiated.
Here, the test program needs to be started after the Android is started, and the single board can receive the test signal sent by the test control box after the test program is started.
And 160, reading the USB flash disk boot file.
Because the test board reads the USB disk boot file through the USB interface, the test board in 160 can synchronously complete the USB test. The startup file in the usb disk may also contain data required for testing, such as a channel table required for testing the RF interface.
170, view channel table.
When the RF interface test is performed, the test board needs to search a channel to display a test image. At this time, the channel can be quickly determined by looking at the channel table, and the test audio or video is output, thereby reducing the time consumption of searching the channel.
Shielding information, such as infrared signals generated by the remote control, from interfering with the test 180.
After the test board starts the test program, by executing all or part of the steps 160 to 180, test data, such as video data or audio data, may be generated according to the received test signal sent by the test control box, and then the test data is stably output and displayed.
At this time, the test control box can capture the stably output test data and forward the test data to the test computer. And the test computer judges whether the display channel of the test single board is normal or not according to the test data.
After the test data of the test single board is stably output and displayed, the test single board can receive the next test signal sent by the test control box.
In the test method, the chip and the scheme shown in fig. 2, no special design is needed in the whole process, and only a manufacturer writes a test program and builds a test frame. However, the test program in the method can be started only after the Android is started, and the test computer can determine the test result according to the display result output by the test single board only after the function of the test single board is stably output and displayed. The testing time for testing each function of the single board can reach 2 minutes to 3 minutes, so that the testing time is long, and the overall testing efficiency is low.
FIG. 3 shows a schematic flow chart of a test method 200 of an embodiment of the present invention. The method 200 comprises:
s210, after the test single board starts the kernel and completes the initialization drive, the port data generated by the test single board according to the test sequence is obtained.
S220, comparing the port data with pre-stored comparison data corresponding to the test sequence, and determining the test result of the port of the test single board.
Here, the test board is started to the BOOT or the operating system kernel, and after the driver is initialized, each hardware port or interface of the test board can normally run.
In the embodiment of the invention, the port of the test single board can be an input port or an output port. When the port is an input port, the testing method 100 is executed by the testing board. At this time, obtaining port data generated by the test board according to the test sequence includes:
receiving the test sequence sent by a test control box, wherein the test sequence is sent by the test control box after the test single board is powered on;
and generating the port data according to the test sequence.
Here, the test control box stores the test sequence in advance, and the test board stores the comparison data corresponding to the test sequence in advance. For example, the test sequence may be stored in a storage area of the test control box before the test control box is shipped from the factory, or the test sequence may be written in advance in the storage area in the test control box. The comparison data may be stored in a storage area (e.g., a flash memory) of the test board before the test board leaves the factory.
In addition, the test control box may store a plurality of test sequences in advance, the plurality of test sequences may be audio test sequences or video test sequences, and each test sequence may have an identifier (for example, a number), in this case, the test board may store comparison data corresponding to each test sequence in advance, and the comparison data corresponding to the test sequence may have an identifier (for example, a number) corresponding to the test sequence.
Optionally, the testing method 100 may be used to perform a video test on a port of a tested board, and may also be used to perform an audio test on the port of the tested board.
In the embodiment of the invention, the display image or the audio frequency of the test sequence is the same as the display image or the audio frequency of the comparison data corresponding to the test sequence. For example, when a video test is performed, if the display image corresponding to the test sequence is a circle, the display image corresponding to the contrast data is also the same circle.
In the embodiment of the present invention, the test board may be provided with an interface, and the interface is configured to capture port data and compare the port data with comparison data. Thus, the test board may generate port data after receiving the test sequence sent by the test control box, and the interface captures the port data, and determines whether the input port of the test board is normal or not according to the port data and the comparison data corresponding to the test sequence stored in the test board in advance.
Optionally, in the embodiment of the present invention, when the port of the test board is an input port, the test board may further send the test result to the test computer.
Specifically, the test result can be forwarded to the test computer through the test control box. The test result may be that the input port is normal, or that the input port is not normal. For example, 1 may be used to indicate that the input port is normal, and 0 may be used to indicate that the input port is not normal, so that the bytes occupied by the data sent by the test board to the test computer may be small.
Therefore, the test board in the embodiment of the present invention may receive the test sequence sent by the test control box after starting the kernel and completing initialization, and generate port data, and the test board may further compare the port data with the pre-stored comparison data, so as to determine whether the input port of the test board is working normally. In the embodiment of the invention, after the test single board starts the kernel and completes initialization, the hardware of the corresponding port can normally work, at this time, the test program can be started, and whether the test single board normally works can be judged without waiting for the test single board to stably output the display result, so that the time required by the test can be reduced, and the test efficiency is improved.
When the port is an output port, the testing method 100 is executed by a testing computer. At this time, the port data generated by the test board according to the test sequence may be acquired as follows: and receiving the port data forwarded by the test control box, wherein the port data is generated by the test single board according to the pre-stored test sequence and is sent to the test control box.
Here, the test sequence is pre-stored in the test board, and the comparison data corresponding to the test sequence is pre-stored in the test computer. For example, the test sequence may be stored in a storage area (e.g., a flash memory) of the test control box before the test board leaves a factory, the comparison data may be stored in a storage area of the test computer before the test computer leaves a factory, or the comparison data may be written in the storage area of the test computer in advance. Similarly, the test board may store a plurality of test sequences in advance, the test sequences may be audio test sequences or video test sequences, and each test sequence may have an identifier (for example, a number), the test computer may store comparison data corresponding to each test sequence in advance, and the comparison data corresponding to the test sequences may have identifiers (for example, numbers) corresponding to the test sequences.
Therefore, the test computer can receive the port data forwarded by the test control box, the port data is generated by the test single board according to the pre-stored test sequence and is sent to the test control box, and the test computer determines whether the output port of the test single board is normal or not by the port data and the comparison data which is pre-stored in the test computer and corresponds to the test sequence.
Therefore, the test computer in the embodiment of the present invention may receive the port data generated by the test control box forwarding the test board according to the pre-stored test sequence after the test board starts the kernel and completes initialization, and may compare the port data with the pre-stored comparison data, so as to determine whether the output port of the test board is working normally. In the embodiment of the invention, after the test single board starts the kernel and completes initialization, the hardware of the corresponding port can normally work, at this time, the test program can be started, and whether the test single board normally works can be judged without waiting for the test single board to stably output the display result, so that the time required by the test can be reduced, and the test efficiency is improved.
It should be noted that, in the embodiment of the present invention, the test of the input port and the test of the output port are independent from each other, that is, the test of the input port and the test of the output port may be performed simultaneously, or the test of the input port may be performed first and then the test of the output port may be performed, or the test of the output port may be performed first and then the test of the input port is performed, which is not limited in the embodiment of the present invention.
Optionally, the testing method 100 may be configured to perform a video test on the input or output port, where the port data may be a part of port data corresponding to a contrast area, and the contrast data may be a part of contrast data corresponding to the contrast area, where the contrast area is a part of area in a display area of the test board.
Specifically, when the input port data and the comparison data are video data, a partial area may be determined in the display area of the test board, and the partial area may be used as the comparison area. Then acquiring partial port data of the port data corresponding to the contrast area; and acquiring partial contrast data corresponding to the contrast data in the contrast area, wherein the port data can be partial port data, and the contrast data can be partial contrast data.
For example, if the resolution of the display of the test board is 1920 × 1080, the contrast area may be a 25 × 25 area in the display, which may be located anywhere on the display, such as the middle portion, the upper left corner, or the lower right corner.
In the embodiment of the invention, the test result of the port of the test single board is determined by comparing part of the port data with part of the comparison data, so that the compared data amount can be reduced, the test result can be obtained more quickly, and the test efficiency is further improved.
Optionally, the comparing the port data with pre-stored comparison data to determine a test result of the port of the test board includes:
determining a difference between the port data and the contrast data;
and determining the test result of the port of the test single board according to the difference value of the port data and the comparison data.
Specifically, in this embodiment of the present invention, if the absolute value of the difference between the port data and the comparison data is greater than a first threshold, the test result of the port indicates that the port is abnormal, and the first threshold is a positive number greater than zero; if the absolute value of the difference between the port data and the comparison data is less than or equal to the first threshold, the test result of the port indicates that the port is normal.
In the embodiment of the present invention, the difference between the port data and the comparison data is within a certain range (for example, the first threshold), and the port may be considered to be normal. The first threshold value can be preset in the test single board and the test computer.
When a video test is performed, Red Green Blue (RGB) values of port data and comparison data may be compared, and an input port may be normal when an absolute value of a difference between RGB values of the port data and the comparison data is set to be less than or equal to a first threshold, and the input port may be abnormal when the absolute value of the difference between RGB values of the port data and the comparison data is greater than the first threshold. In particular, each component of the RGB values may be compared to a first threshold.
For example, the first threshold value pre-stored in the test board or the test computer is (10,10, 10). When the RGB value of the port data corresponding to the pixel point in the contrast region is (90,85,87), the RGB value of the contrast data corresponding to the pixel point in the contrast region is (85,85, 85). Thus, the absolute value of the difference between the port data and the comparison data is (5,0, 2). At this time, the port of the test board may be considered normal. When the RGB values of the port data corresponding to the pixel points in the contrast region are (102,74,83), the RGB values of the contrast data corresponding to the pixel points in the contrast region are (85,85, 85). Thus, the absolute value of the difference between the port data and the comparison data is (17, | -11|, | -2 |). At this time, the port of the test board may be considered to be abnormal.
Optionally, in this embodiment of the present invention, comparing the port data with pre-stored comparison data to determine a test result of the port of the test board may include: determining a ratio of the port data and the contrast data; and determining the test result of the port of the test single board according to the ratio of the port data and the comparison data.
Specifically, if the absolute value of the difference between the ratio of the port data and the comparison data and 1 is greater than a second threshold, the test result of the port indicates that the port is abnormal, and the second threshold is a positive number greater than zero; and if the absolute value of the difference value between the ratio of the port data and the comparison data and 1 is less than or equal to the second threshold value, the test result of the port indicates that the port is normal.
In the embodiment of the present invention, the port may be considered to be normal if the ratio existing between the port data and the comparison data is within a certain range, for example, the difference between the ratio and 1 is within a second threshold range. The second threshold value can be preset in the test single board and the test computer.
For example, the second threshold value pre-stored in the test board or the test computer is (0.1,0.1, 0.1). When the RGB value of the port data corresponding to the pixel point in the contrast region is (90,85,87), the RGB value of the contrast data corresponding to the pixel point in the contrast region is (85,85, 85). Thus, the absolute value of the difference between the ratio of the port data and the comparison data and 1 is (5/85,0, 2/85). At this time, the port of the test board may be considered normal. When the RGB values of the port data corresponding to the pixel points in the contrast region are (102,74,83), the RGB values of the contrast data corresponding to the pixel points in the contrast region are (85,85, 85). Thus, the absolute value of the difference between the ratio of the port data and the comparison data and 1 is (17/85, | 11/85|, | -2/85 |). At this time, the port of the test board may be considered to be abnormal.
FIG. 4 shows a schematic flow diagram of a testing method 300 of the present invention. The testing method 300 is executed by a testing board, and includes:
and 310, powering up.
When the test rack supplies power to the test board 10, or after the test rack supplies power to the test board 10, the test control box may send a test sequence to the test board. Here, the test control box does not need to receive any control information, and once the test control box determines that the test single board is powered on, the test control box can send a test sequence to the input end of the test single board.
And 320, starting the kernel.
And 330, initializing driving.
And starting the test single board to a BOOT or an operating system kernel, and after initializing the drive, enabling each hardware port or interface of the test single board to normally run.
340, reading the USB flash disk starting file, and synchronously completing the test of the USB.
Here, before reading the USB flash disk boot file, Android does not need to be started, and reading the USB flash disk boot file can be performed before starting the test program, so the embodiment of the present invention can shorten the time required by the USB test, and can acquire the data included in the boot file and required in the test in advance.
350, starting a test program.
At this time, a test function may be executed, that is, the test board may receive the test sequence sent by the test control box, or the test board may output a pre-stored test program, where the pre-stored test sequence may also be referred to as a built-in test sequence. Compared with the testing method in fig. 2, here, the testing function can be executed without starting the Android system on the testing board, that is, the testing can be performed without waiting for the normal operation of the Android system on the testing board. The test procedure initiated here is more complex than the test procedure in fig. 2.
And 360, checking the channel table.
360 are the same as 170 in fig. 2, and are not described again to avoid repetition.
Input port data is captured 370.
An interface may be provided in the test board, and the interface may be configured to capture input port data generated by the input port.
380, compare input port data to compare data.
The interface in the test single board can compare the input port data with the comparison data pre-stored in the storage area of the test single board to determine whether the input interface of the test single board is normal. Specifically, 380 may refer to the description of S220 in fig. 3, and is not described herein again to avoid redundancy.
Optionally, in the embodiment of the present invention, the test board further includes a sending unit, configured to send the test result of the input port to a test computer.
390, the built-in test sequence is sent to the display port.
Specifically, the test board 10 outputs the internally stored built-in test sequence as output port data through the output port.
390 may be performed after 350, and 390 may be performed before 360 or 370, may be performed after 360 or 370, or may be performed simultaneously with 360 or 370. That is, in the embodiment of the present invention, the test of the input port and the test of the output port may be performed independently.
390 thereafter, the test control box 22 in the test system captures the output port data and sends the output port data to the test computer. And the test computer compares the output port data with prestored comparison data to determine the test result of the output port of the test single board.
Specifically, the test result of the output port is determined according to the output port data and the prestored comparison data, which may be referred to as the description of S220 in fig. 3, and is not repeated here to avoid repetition.
Therefore, in the embodiment of the present invention, after the test board starts the kernel and completes initialization, the port data generated by the test board is compared with the pre-stored comparison data, so as to determine whether the port of the test board is working normally. In the embodiment of the invention, after the test single board starts the kernel and completes initialization, the hardware of the corresponding port can normally work, at this time, the test program can be started, and whether the test single board normally works can be judged without waiting for the test single board to stably output the display result, so that the time required by the test can be reduced, and the test efficiency is improved.
Fig. 5 is a schematic block diagram of a testing apparatus 500 according to an embodiment of the present invention. The apparatus 500 comprises:
an obtaining unit 510, configured to obtain port data generated by a test board according to a test sequence after the test board starts an inner core and completes initialization;
a determining unit 520, configured to compare the port data with pre-stored comparison data corresponding to the test sequence, and determine a test result of the port of the test board.
Therefore, in the embodiment of the present invention, after the test board starts the kernel and completes initialization, the port data generated by the test board is compared with the pre-stored comparison data, so as to determine whether the port of the test board is working normally. In the embodiment of the invention, after the test single board starts the kernel and completes initialization, the hardware of the corresponding port can normally work, at this time, the test program can be started, and whether the test single board normally works can be judged without waiting for the test single board to stably output the display result, so that the time required by the test can be reduced, and the test efficiency is improved.
Optionally, in this embodiment of the present invention, the port of the test board is an input port, and the apparatus 500 is a test board, that is, the test board may include an obtaining unit 510 and a determining unit 520. Wherein the obtaining unit 510 is specifically configured to:
after a test single board starts a kernel and completes initialization, receiving a test sequence sent by a test control box, wherein the test sequence is sent by the test control box after the test single board is powered on;
and generating the port data according to the test sequence.
Optionally, in this embodiment of the present invention, the apparatus 500 further includes: and the sending unit is used for sending the test result of the port to a test computer.
That is, the test board may include an obtaining unit 510, a determining unit 520, and a sending unit.
Optionally, in the embodiment of the present invention, a port of the test board is an output port, and the apparatus 500 is a test computer, that is, the test computer includes an obtaining unit 510 and a determining unit 520. Wherein the obtaining unit 510 is specifically configured to:
and receiving the port data forwarded by the test control box, wherein the port data is generated according to the pre-stored test sequence and sent to the test control box after the test single board starts the kernel and completes initialization.
Optionally, in this embodiment of the present invention, the testing apparatus 500 is configured to perform a video test on the port, where the port data is a part of port data corresponding to a comparison area, and the comparison data is a part of comparison data corresponding to the comparison area, where the comparison area is a part of area in a display area of the test board.
Optionally, in this embodiment of the present invention, the testing apparatus 500 is configured to perform an audio test on the port.
Optionally, in this embodiment of the present invention, the determining unit 520 is specifically configured to:
determining a difference between the port data and the contrast data;
and determining the test result of the port of the test single board according to the difference value of the port data and the comparison data.
Optionally, in this embodiment of the present invention, the determining unit 520 is specifically configured to:
if the absolute value of the difference between the port data and the comparison data is greater than a first threshold, the test result of the port indicates that the port is abnormal, and the first threshold is a positive number greater than zero;
if the absolute value of the difference between the port data and the comparison data is less than or equal to the first threshold, the test result of the port indicates that the port is normal.
Optionally, in this embodiment of the present invention, the determining unit 520 is specifically configured to:
determining a ratio of the port data and the contrast data;
and determining the test result of the port of the test single board according to the ratio of the port data and the comparison data.
Optionally, in this embodiment of the present invention, the determining unit 520 is specifically configured to:
if the absolute value of the difference between the ratio of the port data and the comparison data and 1 is greater than a second threshold value, the test result of the port indicates that the port is abnormal, and the second threshold value is a positive number greater than zero;
and if the absolute value of the difference value between the ratio of the port data and the comparison data and 1 is less than or equal to the second threshold value, the test result of the port indicates that the port is normal.
It should be noted that in the embodiment of the present invention, the obtaining unit 510 may be implemented by a transceiver, and the determining unit 520 may be implemented by a processor. As shown in fig. 6, the apparatus 600 may include a processor 610, a transceiver 620, a memory 630, and a bus system 640. Memory 630 may be used, among other things, to store code executed by processor 610.
The various components in device 600 are coupled together by a bus system 640, where bus system 640 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are designated in the figure as bus system 640.
In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 610. The steps of a method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 630, and the processor 610 reads the information in the memory 630 and performs the steps of the above method in combination with the hardware thereof. To avoid repetition, it is not described in detail here.
The apparatus 500 shown in fig. 5 or the apparatus 600 shown in fig. 6 can implement various processes corresponding to the method embodiments shown in fig. 1 to fig. 4, specifically, the apparatus 500 or the apparatus 600 may refer to the descriptions in fig. 1 to fig. 4, and is not described herein again to avoid repetition.
It should be understood that, in various embodiments of the present invention, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (20)
1. A method of testing, comprising:
after a test single board starts an inner core and completes initialization, acquiring port data generated by the test single board according to a test sequence;
and comparing the port data with pre-stored comparison data corresponding to the test sequence to determine the test result of the port of the test single board.
2. The method according to claim 1, wherein the port of the test board is an input port, the method is executed by the test board, and the obtaining port data generated by the test board according to the test sequence includes:
receiving the test sequence sent by a test control box, wherein the test sequence is sent by the test control box after the test single board is powered on;
and generating the port data according to the test sequence.
3. The method of claim 2, further comprising:
and sending the test result of the port to a test computer.
4. The method according to claim 1, wherein the port of the test board is an output port, the method is executed by a test computer, and the obtaining port data generated by the test board according to the test sequence includes:
and receiving the port data forwarded by the test control box, wherein the port data is generated by the test single board according to the pre-stored test sequence and is sent to the test control box.
5. The method according to any one of claims 1 to 4, wherein the testing method is used for performing video testing on the port, the port data is partial port data corresponding to a comparison area, and the comparison data is partial comparison data corresponding to the comparison area, wherein the comparison area is a partial area in a display area of the test board.
6. The method of any of claims 1-4, wherein the testing method is used for audio testing of the port.
7. The method according to any one of claims 1 to 4, wherein the comparing the port data with pre-stored comparison data to determine the test result of the port of the test board comprises:
determining a difference between the port data and the contrast data;
and determining the test result of the port of the test single board according to the difference value of the port data and the comparison data.
8. The method according to claim 7, wherein said determining a test result of the port of the test board according to the difference between the port data and the comparison data comprises:
if the absolute value of the difference between the port data and the comparison data is greater than a first threshold, the test result of the port indicates that the port is abnormal, and the first threshold is a positive number greater than zero;
if the absolute value of the difference between the port data and the comparison data is less than or equal to the first threshold, the test result of the port indicates that the port is normal.
9. The method according to any one of claims 1 to 4, wherein the comparing the port data with pre-stored comparison data to determine the test result of the port of the test board comprises:
determining a ratio of the port data and the contrast data;
and determining the test result of the port of the test single board according to the ratio of the port data and the comparison data.
10. The method according to claim 9, wherein said determining a test result of the port of the test board according to the difference between the port data and the comparison data comprises:
if the absolute value of the difference between the ratio of the port data and the comparison data and 1 is greater than a second threshold value, the test result of the port indicates that the port is abnormal, and the second threshold value is a positive number greater than zero;
and if the absolute value of the difference value between the ratio of the port data and the comparison data and 1 is less than or equal to the second threshold value, the test result of the port indicates that the port is normal.
11. A test apparatus, comprising:
an obtaining unit, configured to obtain port data generated by a test board according to a test sequence after the test board starts an inner core and completes initialization;
and the determining unit is used for comparing the port data with pre-stored comparison data corresponding to the test sequence to determine a test result of the port of the test single board.
12. The apparatus according to claim 11, wherein a port of the test board is an input port, the apparatus is a test board, and the obtaining unit is specifically configured to:
receiving the test sequence sent by a test control box, wherein the test sequence is sent by the test control box after the test single board is powered on;
and generating the port data according to the test sequence.
13. The apparatus of claim 12, further comprising:
and the sending unit is used for sending the test result of the port to a test computer.
14. The apparatus according to claim 11, wherein the port of the test board is an output port, the apparatus is a test computer, and the obtaining unit is specifically configured to:
and receiving the port data forwarded by the test control box, wherein the port data is generated by the test single board according to the pre-stored test sequence and is sent to the test control box.
15. The apparatus according to any one of claims 11 to 14, wherein the testing apparatus is configured to perform a video test on the port, the port data is partial port data corresponding to a comparison area, and the comparison data is partial comparison data corresponding to the comparison area, where the comparison area is a partial area in a display area of the test board.
16. The apparatus of any of claims 11-14, wherein the testing device is configured to perform audio testing on the port.
17. The apparatus according to any of claims 11-14, wherein the determining unit is specifically configured to:
determining a difference between the port data and the contrast data;
and determining the test result of the port of the test single board according to the difference value of the port data and the comparison data.
18. The apparatus according to claim 17, wherein the determining unit is specifically configured to:
if the absolute value of the difference between the port data and the comparison data is greater than a first threshold, the test result of the port indicates that the port is abnormal, and the first threshold is a positive number greater than zero;
if the absolute value of the difference between the port data and the comparison data is less than or equal to the first threshold, the test result of the port indicates that the port is normal.
19. The apparatus according to any of claims 11-14, wherein the determining unit is specifically configured to:
determining a ratio of the port data and the contrast data;
and determining the test result of the port of the test single board according to the ratio of the port data and the comparison data.
20. The apparatus according to claim 19, wherein the determining unit is specifically configured to:
if the absolute value of the difference between the ratio of the port data and the comparison data and 1 is greater than a second threshold value, the test result of the port indicates that the port is abnormal, and the second threshold value is a positive number greater than zero;
and if the absolute value of the difference value between the ratio of the port data and the comparison data and 1 is less than or equal to the second threshold value, the test result of the port indicates that 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 CN107423168A (en) | 2017-12-01 |
CN107423168B true 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) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112731265B (en) * | 2021-01-07 | 2022-08-19 | 浙江正泰仪器仪表有限责任公司 | 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 |
Family Cites Families (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 |
CN104661169B (en) * | 2013-11-25 | 2018-11-06 | 深圳中电长城信息安全***有限公司 | A kind of 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
Also Published As
Publication number | Publication date |
---|---|
CN107423168A (en) | 2017-12-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10366669B2 (en) | Electronic device and method for driving display thereof | |
CN105554547B (en) | The method and system of display screen adaptive configuration | |
CN105911451B (en) | Chip testing method and device | |
US11074157B2 (en) | Splicing screen debugging method, splicing screen and splicing wall | |
US10237508B2 (en) | Method and device for displaying boot screen | |
CN112075085B (en) | Electronic device and control method thereof | |
KR20150099269A (en) | Electronic device and method for firmware updating of a device | |
CN105120259A (en) | Detection method and apparatus for digital television | |
CN107423168B (en) | Test method and test device | |
CN111896884B (en) | Charging detection method and device | |
CN108289218B (en) | Audio and video test method and system and audio and video test equipment | |
CN111885418A (en) | EDID self-adaption method and device, display equipment and readable storage medium | |
US11197156B2 (en) | Electronic device, user terminal apparatus, and control method thereof | |
CN115308567A (en) | Method and device for positioning fault chip on computing device and storage medium | |
CN111651308B (en) | Method and device for acquiring debugging data of DP-HDMI chip and intelligent device | |
CN115237703B (en) | Method, device and equipment for debugging substrate management control chip and readable medium | |
US10228416B2 (en) | Testing integrated circuit, testing method and electronic device | |
CN107092542B (en) | Checking method of electronic device | |
EP3373147A1 (en) | A universal platform for testing of a plurality of electronic devices and a method therefor | |
CN112731102B (en) | Liquid crystal display television backlight fault detection method | |
CN106528031A (en) | Extended display identification data reading method and device | |
CN110545474B (en) | Screen protection control method and control system of TFT (thin film transistor) liquid crystal screen | |
CN107635108B (en) | Picture frame television | |
CN114816538B (en) | Display device and display method thereof | |
CN111079202A (en) | Information display method and device of terminal equipment and terminal equipment |
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 |