CN115079664A - Embedded automatic testing device and method thereof - Google Patents

Embedded automatic testing device and method thereof Download PDF

Info

Publication number
CN115079664A
CN115079664A CN202111058076.6A CN202111058076A CN115079664A CN 115079664 A CN115079664 A CN 115079664A CN 202111058076 A CN202111058076 A CN 202111058076A CN 115079664 A CN115079664 A CN 115079664A
Authority
CN
China
Prior art keywords
module
image
tested
data processing
testing
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.)
Pending
Application number
CN202111058076.6A
Other languages
Chinese (zh)
Inventor
郑朋桥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Tianshuang Technology Co ltd
Original Assignee
Shenzhen Tianshuang Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Tianshuang Technology Co ltd filed Critical Shenzhen Tianshuang Technology Co ltd
Priority to CN202111058076.6A priority Critical patent/CN115079664A/en
Publication of CN115079664A publication Critical patent/CN115079664A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0208Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
    • G05B23/0213Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24065Real time diagnostics

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Automation & Control Theory (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)

Abstract

The invention relates to an embedded automatic testing device, which comprises an image acquisition module, a TTHBP extension module, a module to be tested and a data processing center module, wherein the data processing center module transmits a power supply signal and an instruction control signal to the module to be tested through the TTHBP extension module, and the image acquisition module transmits an acquired image signal of the module to be tested to the data processing center module, belonging to the technical field of embedded automatic detection. The purpose is through carrying out state control and screen visual analysis to the test piece and accomplishing the full-automatic test flow of problem point, has alleviateed tester's work load, and can carry out a large amount of long-time incessant pressure tests, guarantees the stability of product.

Description

Embedded automatic testing device and method thereof
Technical Field
The present invention relates to an embedded automatic test device, and more particularly, to an embedded automatic test device and method thereof.
Background
The new product requires a lot of stability tests and suffers from many occasional problems, which if tested repeatedly by manpower, are difficult to find and confirm if the modification is valid and consume a lot of manpower.
At present, most problems of embedded products are the problem that the embedded products are started repeatedly and are sporadic, because the test involves repeated restarting of the products and needs to check the display state after starting to judge whether the abnormity exists, the problem is artificially tested at present.
Disclosure of Invention
The invention aims to solve the problems of frequent abnormal display, frequent non-starting and the like in the existing artificial detection and needs a large amount of repeated tests, and provides an embedded automatic testing device and a method thereof.
An embedded automatic testing device comprises an image acquisition module, a TTHBP extension module, a module to be tested and a data processing center module, wherein the data processing center module transmits a power supply signal and an instruction control signal to the module to be tested through the TTHBP extension module, and the image acquisition module transmits an acquired image signal of the module to be tested to the data processing center module.
Furthermore, the data processing center module is data processing system software operated by a PC computer end, and the TTHBP expansion module is USB expansion hardware of the PC computer.
Furthermore, the image acquisition module is a USB camera, and the module to be tested is the equipment to be tested.
Furthermore, the method for embedded automatic testing device as described above is adopted, and the steps of the testing method are as follows:
1. sequentially connecting a testing tool and a device to be tested A;
2. selecting a corresponding test interface, and configuring the parameters of the interface;
3. test control and data processing flow;
4. and (5) image detection flow.
Further, in the method, the step of selecting the corresponding test interface and configuring the parameters of the interface comprises the following steps:
1. opening a camera and selecting an image detection area;
2. TTHBP extension module connection selection;
3. power supply time and test strategy selection;
4. selecting a video recording and stopping strategy;
5. the test is started.
Further, the steps of the test control and data processing flow in the method are as follows:
1. powering on the control equipment A;
2. waiting for the starting of the equipment A to be completed;
3. detecting whether the selected area is abnormal;
4. and (4) exception handling:
a. recording abnormal information when the abnormal condition occurs, and continuing testing;
b. and stopping testing without power failure, and keeping the problem site.
Further, the image detection flow steps of the method are as follows:
1. acquiring a display interface of a product to be tested from a camera;
2. taking out the selected detection area from the image;
3. calculating the detection area of each selected area according to a strategy, such as the difference, variance, mean value and the like of the image, and then storing the calculation result into a corresponding list;
4. displaying the selected area and the real-time calculation result to an image area real-time detection value area;
5. superposing the region and the region calculation information on a camera image, and then displaying the camera image in an image display region;
6. and storing the video in real time, and if the video is wrong, storing the current picture.
The beneficial effect of adopting above-mentioned technical scheme is: the invention completes the full-automatic test flow of the problem point by carrying out state control and screen visual analysis on the test piece, lightens the workload of the tester, can carry out a large amount of long-time uninterrupted pressure tests and ensures the stability of the product.
Drawings
FIG. 1 is a schematic structural diagram of the test apparatus according to the present embodiment;
FIG. 2 is a schematic diagram of software modules running on a TTHBP;
FIG. 3 is a block diagram of a TTHBP module operational flow;
FIG. 4 is a functional schematic of the CheckTool detection software;
FIG. 5 is a schematic illustration of a TTHBP test interface;
FIG. 6 is a first schematic view of a color/splash screen detection interface;
FIG. 7 is a schematic view of a video and graphics storage function interface;
FIG. 8 is a second schematic view of a color/flower screen configuration control option;
fig. 9 is a schematic view of the detection and control flow.
Detailed Description
The invention will be further described with reference to the accompanying drawings and preferred embodiments of the invention. The examples are given solely for the purpose of illustration and are not intended to limit the scope of the invention.
As shown in fig. 1 to 9, the embedded automatic testing device in this embodiment includes an image acquisition module, a TTHBP extension module, a module to be tested, and a data processing center module, where the data processing center module transmits a power supply signal and an instruction control signal to the module to be tested through the TTHBP extension module, and the image acquisition module transmits an acquired image signal of the module to be tested to the data processing center module. The TTHBP expansion module in the scheme is USB expansion hardware of a PC computer, and further the image acquisition module in the scheme is a USB camera, and the module to be tested is the equipment to be tested.
In the scheme, the TTHBP is USB extended hardware of the PC computer and is used for completing GPIO/I2C/serial port signal conversion from the instruction of the PC computer to the hardware so as to provide power supply and signal control capability of the computer to the test equipment. The TTHBP hardware is a minimum system of an STC89C52 single chip microcomputer, a pin is LED out, communication is carried out with a PC computer through a serial port protocol, a software module running on the TTHBP is shown in figure 2, a state lamp is controlled through an LED module, the working state of the current module is displayed through flicker frequency, CmdShell is a serial port data analysis module, instruction analysis is completed according to a custom format, and an instruction is converted into a GPIO high-low level and an I2C/UART data forwarding function. The specific flow is shown in fig. 3:
1. initializing a system, wherein the system comprises a timer TIMMER, a UART, an LED and an I2C configuration;
2. receiving serial port data, judging the data content type, and then analyzing according to a binary system or an AT instruction format;
3. according to the instruction content, GPIO control is carried out or a UART/I2C signal is forwarded to achieve power supply control or signal control of the device to be tested;
4. and returning the execution result to the PC end through UART communication.
In the scheme, the software for detecting the CheckTool at the PC end is developed by using a QT interface framework and an OpenCV vision library, and has the specific functions as shown in FIG. 4: the method provides the overall logic control of the test, provides the test interface of the TTHBP hardware, and has the functions of screen-splash detection, color (black screen, green screen, blue screen and the like) detection, video recording and image storage. The interfaces and functions are introduced as follows:
1. as shown in fig. 5, a serial port configuration area selects a serial port and a baud rate for communicating with the TTHBP expansion hardware, a pin test area tests whether pin control of the TTHBP expansion hardware is normal, a sending and receiving instruction area is a display area for sending and receiving messages, history of communication is recorded, and the sending instruction area can directly send an instruction to test a communication state and control over the expansion hardware;
2. the color/screen-patterned detection interface, as shown in fig. 6 and 8, configures a control area for configuration and selection, sets various parameters and inspection strategies of an algorithm, displays a camera interface image and a mark position in real time in an image display area and displays a real-time numerical value, displays time and times of problems occurring in a test process in a problem point recording area, and displays a real-time calculation result of the selection area and a real-time effect image (such as an original image, a difference image and an R/G/B channel image) under the selection detection strategy in an image area real-time detection area. In the process of displaying the automatic test in the current operation state display area, the operation and state display at the current stage;
3. the video recording and image storing functions, as shown in fig. 7, may select to perform video recording in real time during the test process, configure the size of a single video file, and store the corresponding abnormal image if an abnormal detection occurs during the test process. The stored picture content, the abnormal time information, the frequency information, the detection area and the numerical value during the detection.
The method for adopting the embedded automatic testing device comprises the following steps:
1. sequentially connecting a testing tool and a device to be tested A;
2. selecting a corresponding test interface, and configuring the parameters of the interface;
2.1, opening a camera and selecting an image detection area;
2.2, selecting the connection of the TTHBP expansion module;
2.3, power supply time and test strategy selection;
2.4, selecting video recording and stopping strategies;
2.5, start the test.
3. Test control and data processing flow;
3.1, controlling equipment A to be powered on;
3.2, waiting for the completion of the starting of the equipment A;
3.3, detecting whether the selected area is abnormal;
and 3.4, exception handling:
a. recording abnormal information when the abnormal condition occurs, and continuing testing;
b. and stopping testing without power failure, and keeping the problem site.
4. And (3) image detection flow:
4.1, acquiring a display interface of a product to be tested from the camera;
4.2, taking out the selected detection area from the image;
4.3, calculating the detection area of each selected area according to a strategy, such as the difference, the variance, the mean value and the like of the image, and then storing the calculation result into a corresponding list;
4.4, displaying the selected area and the real-time calculation result to an image area real-time detection value area;
4.5, overlapping the region and the region calculation information to the camera image, and then displaying the camera image in an image display region;
and 4.6, storing the video in real time, and storing the current picture if the video is wrong.
The principle of the detection method in the scheme is as follows:
1. detecting a black screen: calculating the image of the test area into a gray image, then calculating the mean value of the image, comparing the settlement result with a specified threshold value, wherein the result is abnormal when the value is smaller than the threshold value, and the result is in a normal state when the value is larger than the threshold value;
2. green, blue, red screens will be measured: separating the red, green and blue corresponding channels of the selected area, then calculating the mean value of the individual channels, and comparing the calculation result with a set threshold value, wherein the abnormal state is determined when the calculation result is larger than the threshold value, and the normal state is determined when the calculation result is smaller than the threshold value;
3. and (3) detecting the screen, updating the selected template when the template is normal, recording a correct image, calculating the difference value of the selected image and the correct image when the template is detected, wherein if the difference value is smaller than a set threshold value, the image is normal, and if the difference value is larger than the normal threshold value, the image is abnormal.
Test example, Black Screen test
1. Opening a camera Video to display a camera image, and selecting an area with higher brightness in normal time as a detection area;
2. the TTHBP connection is opened, the serial port number is automatically searched by default, and the connection is correct;
3. ensuring that the numerical values of the detection area meet the requirements in normal operation, if the numerical values do not meet the requirements, adjusting the color threshold value to ensure that the detection area is larger than the threshold value in normal operation and smaller than the threshold value in black screen operation;
4. configuring power-on time, delay detection time and power-off time, and configuring and detecting abnormal stop and starting video recording;
5. when the click starts to detect, the program can run normally, and the test can be stopped when the black screen is detected, and the site is reserved;
6. and displaying the test times, and if the test times are abnormal, a developer can check the problems, or the specified times of the pressure test are not repeated to ensure that the problems are solved.
Test example, screen test
1. Opening a camera Video to display a camera image, and selecting a plurality of detection areas;
2. the TTHBP connection is opened, the serial port number is automatically searched by default, and the connection is correct;
3. ensuring that the numerical values of the detection areas meet the requirements in normal operation, and if the numerical values do not meet the requirements, adjusting the screen-blooming threshold to ensure that the detection areas are smaller than the threshold in normal operation and larger than the threshold in screen-blooming;
4. configuring power-on time, delay detection time and power-off time, and configuring and detecting abnormal stop and starting video recording;
5. when the image is normal, updating the selection template to record the normal state and provide comparison for the next test to determine whether the image is normal;
6. when the click starts to detect, the program can normally run, and when the screen splash (the difference between the displayed image and the image in the normal state is extremely large) is detected, the test can be stopped, and the site is reserved;
7. and displaying the test times, and if abnormity occurs, allowing a developer to carry out problem troubleshooting, or ensuring that the problem is solved because the set specified times of the pressure test are not repeated.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (7)

1. An embedded automatic testing device is characterized in that: the device comprises an image acquisition module, a TTHBP expansion module, a module to be tested and a data processing center module, wherein the data processing center module transmits a power supply signal and an instruction control signal to the module to be tested through the TTHBP expansion module, and the image acquisition module transmits an acquired image signal of the module to be tested to the data processing center module.
2. The embedded automatic test device of claim 1, wherein: the data processing center module is data processing system software operated by a PC computer end, and the TTHBP expansion module is USB expansion hardware of the PC computer.
3. The embedded automatic test device of claim 1, wherein: the image acquisition module is a USB camera, and the module to be tested is the equipment to be tested.
4. Method for using an embedded automatic test device according to any of claims 1 to 3, characterized in that the steps of the test method are as follows:
4.1, connecting a testing tool and a device A to be tested in sequence;
4.2, selecting a corresponding test interface, and configuring interface parameters;
4.3, testing control and data processing flow;
and 4.4, image detection flow.
5. The method for testing an embedded automatic test device according to claim 4, wherein: the method comprises the following steps of selecting a corresponding test interface and configuring interface parameters:
5.1, opening a camera and selecting an image detection area;
5.2, selecting the connection of the TTHBP expansion module;
5.3, power supply time and test strategy selection;
5.4, selecting a video recording and stopping strategy;
5.5, start the test.
6. The method for testing an embedded automatic test device according to claim 4, wherein: the steps of the test control and data processing flow in the method are as follows:
6.1, controlling the equipment A to be powered on;
6.2, waiting for the completion of the starting of the equipment A;
6.3, detecting whether the selected area is abnormal;
6.4, exception handling:
a. recording abnormal information when the abnormal condition occurs, and continuing testing;
b. and stopping testing without power failure, and keeping the problem site.
7. The method for testing an embedded automatic test device according to claim 4, wherein: the image detection flow steps of the method are as follows:
7.1, acquiring a display interface of a product to be tested from the camera;
7.2, taking out the selected detection area from the image;
7.3, calculating the detection area of each selected area according to a strategy, such as the difference, the variance, the mean value and the like of the image, and then storing the calculation result into a corresponding list;
7.4, displaying the selected area and the real-time calculation result to an image area real-time detection value area;
7.5, overlapping the region and the region calculation information to the camera image, and then displaying the camera image in an image display region;
7.6, storing the video in real time, and if the video is wrong, storing the current picture.
CN202111058076.6A 2021-09-09 2021-09-09 Embedded automatic testing device and method thereof Pending CN115079664A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111058076.6A CN115079664A (en) 2021-09-09 2021-09-09 Embedded automatic testing device and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111058076.6A CN115079664A (en) 2021-09-09 2021-09-09 Embedded automatic testing device and method thereof

Publications (1)

Publication Number Publication Date
CN115079664A true CN115079664A (en) 2022-09-20

Family

ID=83245855

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111058076.6A Pending CN115079664A (en) 2021-09-09 2021-09-09 Embedded automatic testing device and method thereof

Country Status (1)

Country Link
CN (1) CN115079664A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115423803A (en) * 2022-10-19 2022-12-02 武汉中关村硬创空间科技有限公司 Assembly detection method, device, equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115423803A (en) * 2022-10-19 2022-12-02 武汉中关村硬创空间科技有限公司 Assembly detection method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106780521B (en) Screen light leakage detection method, system and device
CN101577078B (en) Full automatic adjustment and test system for liquid crystal display
CN104199755B (en) A kind of method and system that hardware module failure is diagnosed based on indicator lamp
CN103970628B (en) Automatic detection system and automatic detection method thereof
CN203134316U (en) LED full color screen system and detection circuit thereof
CN100562134C (en) A kind of test macro of digital display device and method of testing thereof
CN101373589A (en) Display control method used in a display apparatus, and display apparatus
CN112395928A (en) Method for automatically detecting equipment state operation
CN115079664A (en) Embedded automatic testing device and method thereof
CN102789405A (en) Automated testing method and system for mainboard
CN104394406A (en) Detection system and method applicable to AC startup and shutdown test of television
CN109710473A (en) A kind of SOC board measuring method, apparatus and system
CN103914361B (en) Detection jig and detection method of computer device
CN115373989A (en) Automatic test system and method for vehicle, vehicle and storage medium
CN113496661A (en) LED display control system detection method, device and system
CN202838905U (en) General test apparatus for LED display module group
CN1142442C (en) Autoamtic on-off tester
CN214669306U (en) Non-invasive load identification module detection device
CN107478980A (en) A kind of POS mainboard automated testing method and circuit
CN114170936A (en) Method for testing brightness, contrast and color temperature of display
CN112181772A (en) Intelligent test system of equipment
CN111212281A (en) Video board detection method and detection device
CN110824284A (en) Method and tool for testing expansion base
CN101777326A (en) VGA video card test tooling and method
CN215729736U (en) Multi-functional quick test intelligence product of fingerprint module

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination