Automated testing methods, apparatus, equipment and storage media for MIPI signals
By using an automated testing method and a combination of cameras, screens, and barcode scanners, fully automated testing of MIPI signals was achieved, solving the problems of high labor costs and low accuracy in existing technologies, and improving testing accuracy and reliability.
Patent Information
- Application Number
- CN202211736695.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-30
- Publication Date
- 2025-10-31
- Estimated Expiration
- 2042-12-30
AI Technical Summary
Existing MIPI signal testing solutions mainly rely on manual judgment or semi-automation, resulting in high labor costs, low judgment reliability, and insufficient testing accuracy, which cannot meet the high requirements of multi-camera and screen display devices.
An automated testing method is adopted, in which a camera captures a QR code image, displays it on the screen, and scans it with a barcode scanner. The terminal judges the consistency of the image, realizing fully automated testing, reducing human intervention and improving testing accuracy.
It has achieved fully automated testing of MIPI signals, improved testing accuracy, reduced labor and time costs, enhanced testing reliability, and met the testing needs of multi-camera and screen display devices.
Smart Images

Figure CN116095304B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to an automated testing method, apparatus, device, and storage medium for MIPI signals. Background Technology
[0002] With the technological advancements and increasing demands for product performance and market share in the new era of terminal devices, more and more terminal devices are placing higher requirements on platform support for multiple cameras and improved screen display effects. Consequently, testing standards for module performance and functionality need to be further enhanced. The functions implemented by the pins of manufactured smart modules are also becoming increasingly diversified to meet the diverse application scenarios designed and selected by customers. Against this backdrop, pre-shipment reliability testing of modules faces greater challenges and requires more functional implementations for various application scenarios. To ensure the performance and quality of shipped modules, full pin functional testing is required during production testing to verify the reliability of the module surface mount. This leads to an increase in the number of MIPI signals output from the platform; more and more module products have 3 to 4 sets of MIPI CSI signals, or 1 to 2 sets of MIPI DSI signals.
[0003] Most existing testing solutions rely on manual judgment or semi-automated testing. However, these methods suffer from high labor costs, low reliability of judgment, and insufficient testing accuracy. Summary of the Invention
[0004] The purpose of this invention is to solve the above-mentioned problems and provide an automated testing method, apparatus, device and storage medium for MIPI signals, which realizes fully automated testing of MIPI signals, improves testing accuracy and reduces testing time and labor costs.
[0005] To address the aforementioned issues, embodiments of this application provide an automated testing method for MIPI signals, applied to a testing device comprising: N cameras, M screens, and a barcode scanner. The method includes: capturing a first QR code image using the cameras; displaying the camera capture result on the screens; scanning the displayed capture result on the screens using the barcode scanner to obtain a second QR code image, wherein the second QR code image is the image of the first QR code image after being captured, displayed, and scanned; transmitting the second QR code image to a terminal for the terminal to determine whether the information of the second QR code image is consistent with the information of the pre-stored first QR code image; if the terminal determines that the information of the second QR code image is inconsistent with the information of the first QR code image, determining that the connection between the screens and cameras and the module under test is abnormal; wherein the module under test establishes a communication connection with the screens and cameras via MIPI signals.
[0006] To address the aforementioned issues, embodiments of this application provide an automated testing method for MIPI signals, applied to a terminal, which receives a second QR code image; wherein the second QR code image is an image obtained after capturing, displaying, and scanning a first QR code image; information of the second QR code image is acquired, and it is determined whether the information of the second QR code image is consistent with that of the pre-stored first QR code image; if it is determined that the information of the second QR code image is inconsistent with that of the first QR code image, it is determined that the connection between the screen and the camera and the module under test is abnormal; wherein the module under test establishes a communication connection with the screen and the camera through a MIPI signal.
[0007] To address the aforementioned issues, embodiments of this application provide an automated testing device for MIPI signals, comprising: a capturing module for capturing a first QR code image using a camera; a display module for displaying the camera's capture result on a screen; a scanning module for scanning the captured result displayed on the screen using a barcode scanner to obtain a second QR code image, wherein the second QR code image is the image of the first QR code image after being captured, displayed, and scanned; and a transmission module for transmitting the second QR code image to a terminal for the terminal to determine whether the information of the second QR code image is consistent with the information of the pre-stored first QR code image; if the terminal determines that the information of the second QR code image is inconsistent with the information of the first QR code image, it determines that the connection between the screen and the camera and the module under test is abnormal; wherein the module under test establishes a communication connection with the screen and the camera through a MIPI signal.
[0008] To address the aforementioned issues, embodiments of this application provide a terminal, comprising: a receiving module for receiving a second QR code image; wherein the second QR code image is an image obtained by capturing, displaying, and scanning the first QR code image; a judging module for acquiring information from the second QR code image and judging whether the information of the second QR code image is consistent with that of the pre-stored first QR code image; and determining, if the information of the second QR code image is inconsistent with that of the first QR code image, that the connection between the screen and the camera and the module under test is abnormal; wherein the module under test establishes a communication connection with the screen and the camera via a MIPI signal.
[0009] To address the aforementioned issues, this application provides a testing device comprising: at least one camera, at least one screen, a barcode scanner, and a testing fixture; the testing fixture is located at the bottom layer of the testing device; a fixed baffle is located above the testing fixture, and a first QR code image is affixed directly below the fixed baffle; the barcode scanner is fixed directly above the screen; the testing fixture includes a module to be tested, which is connected to the camera and the screen via a CSI interface and a DSI interface, respectively.
[0010] To address the aforementioned problems, embodiments of this application also provide an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to execute the aforementioned automated testing method for MIPI signals applied to the automated testing apparatus for MIPI signals, or to execute the aforementioned automated testing method for MIPI signals applied to a terminal.
[0011] To address the aforementioned issues, embodiments of this application also provide a computer-readable storage medium storing a computer program. When executed by a processor, the computer program implements an automated testing method for MIPI signals applied to a testing device, or is capable of executing the aforementioned automated testing method for MIPI signals applied to a terminal.
[0012] The automated testing method for MIPI signals provided in this application firstly captures a preset first QR code image using a camera, then displays the camera's capture result on a screen, and finally scans it with a barcode scanner to obtain the captured, displayed, and scanned first QR code image, i.e., the second QR code image. The obtained second QR code image is transmitted to a terminal for the terminal to determine whether the information of the captured, displayed, and scanned first QR code image is consistent with the information of the first QR code image. If the information is inconsistent, it is determined that the connection between the module under test, which provides the function, and the camera and screen is abnormal. In the above-mentioned automated testing method for MIPI signals, the full pin function testing requirements of the module are realized. By using machines and tools to scan codes and perform image information analysis, no manual intervention is required, avoiding misjudgments caused by manual image recognition, enhancing the reliability of the test, and reducing the labor and time costs of production testing. Attached Figure Description
[0013] One or more embodiments are illustrated by way of example with reference numerals in the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.
[0014] Figure 1 This is a flowchart of an automated testing method for MIPI signals applied to a testing device, provided in an embodiment of this application;
[0015] Figure 2 This is a flowchart of an automated testing method for MIPI signals applied to a terminal, provided in an embodiment of this application;
[0016] Figure 3This is a schematic diagram of a test device provided in one embodiment of this application;
[0017] Figure 4 This is a schematic diagram of the structure of a testing device provided in an embodiment of this application;
[0018] Figure 5 This is a schematic diagram of the structure of a terminal provided in an embodiment of this application;
[0019] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0020] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the various embodiments of this application will be described in detail below with reference to the accompanying drawings. However, those skilled in the art will understand that many technical details have been presented in the various embodiments of this application to enable the reader to better understand this application. However, the technical solutions claimed in this application can be implemented even without these technical details and various changes and modifications based on the following embodiments.
[0021] One embodiment of this application relates to an automated testing method for MIPI signals, applied to a testing device comprising N cameras, M screens, and a barcode scanner. The method includes: capturing a first QR code image using the cameras; displaying the camera capture results on the screens; scanning the displayed capture results using the barcode scanner to obtain a second QR code image, wherein the second QR code image is the image of the first QR code image after being captured, displayed, and scanned; transmitting the second QR code image to a terminal for the terminal to determine whether the information of the second QR code image is consistent with the information of the pre-stored first QR code image; and determining that the test has failed if the terminal determines that the information of the second QR code image is inconsistent with the information of the first QR code image. This method achieves fully automated testing of module functional pins without manual intervention, improving testing accuracy, saving testing time, and reducing testing costs.
[0022] The following details the implementation of the automated MIPI signal testing method in this embodiment. This content is for illustrative purposes only and is not essential for implementing this solution. The specific process is as follows: Figure 1 As shown, the steps may include the following:
[0023] S1: Capture the first QR code image using a camera.
[0024] In this embodiment of the application, the first QR code image is a pre-prepared image. The first QR code image can take many forms and the information in the first QR code image can be of various types. For example, the information in the first QR code image can be defined as 0 or 1. In addition, the image captured by the camera can also be a barcode image or other images that can store information.
[0025] S2: Display the camera's shooting results on the screen.
[0026] In this embodiment of the application, after the testing device captures the first QR code image through a camera, it performs image processing and adjustment to display the captured first QR code image on the screen.
[0027] S3: Scan the captured image displayed on the screen with a barcode scanner to obtain a second QR code image, wherein the second QR code image is the image of the first QR code image after being captured, displayed and scanned.
[0028] In this embodiment, a barcode scanner that has passed functional testing and exhibits high stability is selected. The scanner is configured as a serial port device. In one example, the QR code is defined as a serial port device by scanning the factory-installed serial port configuration. After the terminal reads the serial port device, the QR code is scanned in the automated testing process to check information consistency. In the above steps, the barcode scanner can scan images on multiple screens without requiring additional scanners, reducing production line testing costs, simplifying production line testing procedures and standards, and avoiding conflicts between different scanners that could delay the testing process.
[0029] In one example, the scanning result displayed on the LCD screen is scanned by a barcode scanner. The scanning result is the image of the first QR code image after being captured by the camera, displayed on the screen, and scanned by the barcode scanner.
[0030] In this embodiment of the application, since the camera participating in QR code shooting and the screen displaying the shooting results are in a test state, the camera and screen may malfunction during the test. When at least one of the camera and screen devices malfunctions, the first QR code image and the second QR code image are not the same image.
[0031] S4: Transmit a second QR code image to the terminal for the terminal to determine whether the information in the second QR code image is consistent with the information in the pre-stored first QR code image. If the terminal determines that the information in the second QR code image is inconsistent with the information in the first QR code image, it determines that the connection between the screen and the camera and the module under test is abnormal; wherein, the module under test establishes a communication connection with the screen and the camera through MIPI signals.
[0032] In this embodiment, the module under test establishes a connection with the camera and screen via a MIPI signal line, enabling the camera and screen to perform normal shooting and display functions. Therefore, the first QR code image (second QR code image) after being captured, displayed, and scanned is transmitted to the terminal. The terminal analyzes and compares the information of the second QR code image with the pre-stored information of the first QR code image to determine if the image information is consistent. If the terminal determines that the information of the second QR code image is inconsistent with the first QR code image, it indicates that at least one of the camera and screen devices is malfunctioning. In this case, the connection between the module under test and the camera and screen is abnormal, and the functional test of the pins of the module under test fails.
[0033] In this embodiment, if the terminal determines that the information of the second QR code image is consistent with that of the first QR code image, it indicates that the functions of the camera and the screen are normal. Therefore, the MIPI signal connection related to the function of the camera and the screen is normal, that is, the connection between the module under test and the camera and the screen is normal, and the function test of the pins of the module under test is passed.
[0034] In the above example, the fully automated production line testing process tests the full pin functionality of the module under test by testing the camera function and screen display function. The terminal automatically determines the functionality without human intervention, thus optimizing production testing time and costs.
[0035] In this embodiment, the number of cameras N and the number of screens M are both 1. When the terminal determines that the information of the second QR code image is consistent with that of the first QR code image, it is determined that the connection between the module under test and the camera and screen is normal.
[0036] In one example, when the number of cameras and screens participating in the testing process is 1 each, the testing process of this application is as follows: During production automation testing, the camera captures a first QR code image, the LCD screen displays the captured first QR code image, the barcode scanner scans the image displayed on the LCD screen to obtain a second QR code image, and transmits the scanned second QR code image to the terminal. The terminal side checks whether the information of the second QR code image scanned by the barcode scanner is consistent with the information of the pre-stored first QR code image. If the information is consistent, it indicates that the camera capturing function and the screen display function are normal, and the functional test of the pin of the module under test passes. If the terminal side detects that the information of the second QR code image scanned by the barcode scanner is inconsistent with the information of the first QR code image, it indicates that at least one device, the camera or the screen, is malfunctioning, and the functional test of the pin of the module under test fails.
[0037] In this embodiment of the application, when the number of cameras N (N is an integer) participating in the test process is greater than 1, the above S1 to S4 processes are executed one by one for each of the N cameras until the terminal determines that the information of the second QR code image is inconsistent with that of the first QR code image, and determines that the connection between the module under test and the camera and the screen is normal.
[0038] In one example, during production line testing, cameras A and B are involved in the test. At the start of the test, camera A captures a first QR code image. Image processing is then applied to display this image on an LCD screen. A barcode scanner scans the screen, displaying the result captured by camera A. After scanning, the scanner sends the scanned second QR code image to the terminal for comparison. The terminal compares the information in the second QR code image with the pre-stored information in the first QR code image. If they match, camera A and the screen are functioning correctly. When the testing device receives information from the second QR code image that matches the pre-stored information, the test process continues, repeating the above process of capturing, displaying, scanning, and judging to test the functionality of camera B. When the terminal determines that the information in the second QR code image from camera B matches the pre-stored information in the first QR code image, it indicates that cameras A, B, and the screen are all functioning correctly. At this point, the pin functionality test of the module under test passes.
[0039] When the terminal determines that the information of the second QR code image from camera A is inconsistent with the information of the pre-stored first QR code image, it indicates that at least one device, including camera A and the screen, is malfunctioning. The test process ends directly, and the conclusion is that the functional test of the pins of the module under test fails. In other words, if any link in the test process fails, the functional test of the pins of the module under test will fail, and the test process will terminate.
[0040] In this embodiment of the application, the number of screens in the test process M (M is an integer) is greater than 1. For each of the M screens, the above S1 to S4 processes are executed one by one until the terminal determines that the information of the second QR code image is inconsistent with that of the first QR code image, and the test is determined to have failed.
[0041] In one example, during the production line testing phase, screens A and B are involved in the test. After the camera captures the first QR code image, the image is projected onto screen A. The barcode scanner scans screen A to obtain the captured, displayed, and scanned first QR code image (i.e., the second QR code image). The scanned second QR code image is then reported to the terminal for comparison. The terminal compares the information in the second QR code image with the information in the pre-stored first QR code image. If the information matches, it indicates that the camera and screen A are functioning normally, and the subsequent testing process continues. The captured image is projected onto screen B, and the barcode scanner scans the captured image on screen B again, transmitting the scanned second QR code image to the terminal. The terminal analyzes the information displayed on screen B. If the information in the second QR code image matches the information in the pre-stored first QR code image, it indicates that screens A, B, and the camera are all functioning normally. At this point, the pin function test of the module under test passes.
[0042] When the terminal determines that the information of the second QR code image is inconsistent with the information of the pre-stored first QR code image, it indicates that at least one of the devices, screen A and camera, is malfunctioning. The test process ends directly, and the conclusion is that the functional test of the pin of the module under test fails.
[0043] It should be noted that the embodiments of this application do not limit the number of screens and cameras involved in the automated testing process of MIPI signals. The above content is only for the purpose of more clearly explaining the testing process of the embodiments of this application. The specific number of screens and cameras during the testing process is set according to the specific application scenario.
[0044] In one example, the camera's functionality is tested by connecting to the camera via power supply and MIPI signal lines to establish a communication connection. Then, through the connection of control signals GPIO and a set of I2C paths, the hardware establishes physical paths for camera-related signals. Therefore, since the selected GPIO controls the power supply, providing normal power to the screen and camera, if the screen and camera tests are successful, it indicates that the GPIO test is also successful.
[0045] The automated testing method for MIPI signals applied to a testing device provided in this application firstly captures a preset first QR code image using a camera, then displays the camera's capture result on a screen, and finally scans it with a barcode scanner to obtain the captured, displayed, and scanned first QR code image, i.e., the second QR code image. The obtained second QR code image is transmitted to a terminal for the terminal to determine whether the information of the captured, displayed, and scanned first QR code image is consistent with the information of the first QR code image. If the information is inconsistent, it is determined that the connection between the module under test, which provides the function, and the camera and screen is abnormal. In the above-mentioned automated testing method for MIPI signals, the full pin functional testing requirements of the module under test are realized, helping the production line to complete the fully automated testing of MIPI-related signals of the module's functional pins. By using machines and tools to scan and analyze image information, no manual plugging and unplugging or intervention is required, avoiding misjudgments caused by manual image recognition, enhancing the reliability of the test, and reducing the labor and time costs of production testing.
[0046] An embodiment of this application also relates to an automated testing method for MIPI signals, applied to a terminal, comprising: receiving a second QR code image; wherein the second QR code image is an image of a first QR code image after being captured, displayed, and scanned; acquiring information of the second QR code image and determining whether the information of the second QR code image is consistent with the information of the pre-stored first QR code image; if it is determined that the information of the second QR code image is inconsistent with the information of the first QR code image, determining that the connection between the module under test and the camera and the screen is abnormal, wherein the module under test establishes a communication connection with the screen and the camera through a MIPI signal.
[0047] The following details the implementation of the automated MIPI signal testing method in this embodiment. This content is for illustrative purposes only and is not essential for implementing this solution. The specific process is as follows: Figure 2 As shown, the steps may include the following:
[0048] In step 201, a second QR code image is received; wherein the second QR code image is the image of the first QR code image after being captured, displayed and scanned.
[0049] In one example, the terminal receives the first QR code image, i.e. the second QR code image, transmitted by the testing device after being captured by a camera, displayed on the screen, and scanned by a barcode scanner.
[0050] In step 202, information from the second QR code image is acquired, and it is determined whether the information of the second QR code image is consistent with that of the pre-stored first QR code image. If it is determined that the information of the second QR code image is inconsistent with that of the first QR code image, it is determined that the connection between the module under test and the camera and the screen is abnormal. The module under test establishes a communication connection with the screen and the camera through a MIPI signal.
[0051] In one example, the terminal compares the information of the image scanned by the barcode scanner with the information of a pre-set first QR code image. If the information of the scanned second QR code image matches the information of the pre-set first QR code, it indicates that the camera and screen are functioning normally, and the functional test of the pins of the module under test passes. If the information of the scanned second QR code image does not match the information of the pre-set first QR code, it indicates that at least one of the camera and screen devices is malfunctioning, and the functional test of the pins of the module under test fails.
[0052] In this embodiment of the application, if it is determined that the information of the second QR code image is inconsistent with that of the first QR code image, the method further includes: transmitting the test failure result to the test device; interrupting the test process and re-performing the compression test on the module to be tested.
[0053] In one example, when it is determined that the information of the second QR code image is inconsistent with the information of the pre-set first QR code, the system reports that the functional test of the pin of the module under test has failed, the terminal test process stops, and the module under test is re-tested.
[0054] In this embodiment of the application, a device port is defined in the UI interface of the terminal. The device port is used for the device in the test device to connect to the terminal, for the barcode scanner to be converted into a serial port device after connecting to the terminal, and for the test module to be identified as a device port after powering on. After the above two device ports are identified as consistent, they are connected to the terminal to participate in the automated test method of MIPI signal provided in this embodiment of the application. It is worth mentioning that the definition only needs to be made once in the UI interface of the terminal, and there is no need to define it repeatedly.
[0055] In one example, the barcode scanner can connect directly to the terminal without defining any content. The barcode scanner can directly scan the code written in the code and use it. Alternatively, the barcode scanner can be configured to scan the factory serial port settings and define the QR code as a serial port device. After the terminal reads the serial port device, the consistency of the QR code information is judged in the testing process.
[0056] In this embodiment of the application, the test generation function can be optimized through the terminal, providing more possibilities for generating test items, avoiding manual intervention in the test process, and allowing for continuous optimization and the addition of more test items.
[0057] The automated testing method for MIPI signals applied to terminals provided in this application embodiment automatically determines content consistency through the terminal without manual intervention, avoiding the waste of time and manpower caused by manual determination, optimizing production testing time and cost, and enhancing test reliability. In addition, it can effectively switch test cases and optimize production testing functions on the terminal through tools to meet the testing needs of more test projects.
[0058] The steps of the various methods described above are only for clarity. In practice, they can be combined into one step or some steps can be split into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this patent. Adding insignificant modifications or introducing insignificant designs to the algorithm or process, but without changing the core design of the algorithm and process, are also within the scope of protection of this patent.
[0059] This application also relates to a testing device, such as... Figure 3 As shown, the device includes: at least one camera, at least one screen, a barcode scanner, and a test fixture; the test fixture is located at the bottom layer of the test equipment; a fixed baffle is located above the test fixture, and a first QR code image is affixed directly below the fixed baffle; the barcode scanner is fixed directly above the screen; the test fixture includes a module to be tested, and the module to be tested in the test fixture is connected to the camera and the screen respectively through the CSI interface and the DSI interface.
[0060] A fixture is a device used in mechanical manufacturing to fix a workpiece in the correct position for construction or inspection. In a broader sense, any device used to quickly, conveniently, and safely install a workpiece in any step of the process can be called a fixture.
[0061] In one example, before starting the automated testing method for MIPI signals according to this application embodiment, the module under test is placed in a test fixture. The signal of the module under test is connected to the camera and screen signals in the testing device via the fixture test board. The control components in the fixture mainly include: a camera interface (CSI), a screen display interface (DSI), and a screen touch interface (TP). Fixed traces are provided on the test board. In the testing state, the test fixture connects to the corresponding camera and screen.
[0062] This application also relates to an automated testing device for MIPI signals, such as... Figure 4As shown, it includes: a shooting module 401, a display module 402, a scanning module 403, and a transmission module 404.
[0063] Specifically, the shooting module 401 is used to capture a first QR code image using a camera; the display module 402 displays the camera's shooting result on a screen; the scanning module 403 scans the shooting result displayed on the screen using a barcode scanner to obtain a second QR code image, wherein the second QR code image is the image of the first QR code image after being captured, displayed, and scanned; the transmission module 404 is used to transmit the second QR code image to the terminal, so that the terminal can determine whether the information of the second QR code image is consistent with the information of the pre-stored first QR code image; if the terminal determines that the information of the second QR code image is inconsistent with the information of the first QR code image, it determines that the connection between the screen and the camera and the module under test is abnormal; wherein the module under test establishes a communication connection with the screen and the camera through a MIPI signal.
[0064] In one example, during production automation testing, the camera module 401 captures a first QR code image, the display module 402 displays the captured first QR code image, the scanning module 403 scans the image displayed on the LCD screen to obtain a second QR code image, and the transmission module 404 transmits the scanned second QR code image to the terminal for the terminal to check whether the information of the second QR code image scanned by the barcode scanner is consistent with the information of the pre-stored first QR code image. If the information is consistent, it indicates that the camera capturing function and the screen display function are normal, and the function test of the pins of the module under test passes. If the information of the second QR code image scanned by the barcode scanner is inconsistent with the information of the first QR code image detected by the terminal, it indicates that at least one of the camera and screen devices is malfunctioning, and the function test of the pins of the module under test fails.
[0065] It is not difficult to see that this embodiment is a device embodiment corresponding to the above-described embodiment of the automated testing method for MIPI signals applied to an automated testing apparatus for MIPI signals. This embodiment can be implemented in conjunction with the above-described embodiment of the automated testing method for MIPI signals applied to a testing apparatus. The relevant technical details mentioned in the above-described embodiment of the automated testing method for MIPI signals applied to a testing apparatus are still valid in this embodiment, and will not be repeated here to reduce repetition. Accordingly, the relevant technical details mentioned in this embodiment can also be applied to the above-described embodiment of the automated testing method for MIPI signals.
[0066] The testing device provided in this application first captures a preset first QR code image through a camera, then displays the camera's capture result on a screen, and finally scans it with a barcode scanner to obtain the captured, displayed, and scanned first QR code image, i.e., the second QR code image. The obtained second QR code image is transmitted to a terminal for the terminal to determine whether the information of the captured, displayed, and scanned first QR code image is consistent with the information of the first QR code image. If the information is inconsistent, it is determined that the connection between the module under test, which provides the function, and the camera and screen is abnormal. In the above-mentioned automated testing method for MIPI signals, the full pin functional testing requirements of the module under test are realized, helping the production line to complete the fully automated testing of MIPI-related signals of the module's functional pins. By using machines and tools to scan and analyze image information, no manual plugging and unplugging or intervention is required, avoiding misjudgments caused by manual image recognition, enhancing the reliability of the test, and reducing the labor and time costs of production testing.
[0067] This application also relates to a terminal, such as... Figure 5 As shown, it includes: a receiving module 501 and a judging module 502.
[0068] Specifically, the receiving module 501 is used to receive a second QR code image; wherein the second QR code image is an image of the first QR code image after being captured, displayed, and scanned; the judging module 502 is used to obtain information from the second QR code image and judge whether the information of the second QR code image is consistent with the information of the pre-stored first QR code image; if it is determined that the information of the second QR code image is inconsistent with the information of the first QR code image, it is determined that the connection between the screen and the camera and the module under test is abnormal; wherein the module under test establishes a communication connection with the screen and the camera through a MIPI signal.
[0069] In one example, the judgment module 502 compares the information of the image scanned by the barcode scanner with the information of the pre-set first QR code image. If the information of the scanned second QR code image is consistent with the information of the pre-set first QR code, it indicates that the camera and screen are functioning normally, and the function test of the pin of the module under test passes. If the information of the scanned second QR code image is inconsistent with the information of the pre-set first QR code, it indicates that at least one of the camera and screen devices has a malfunction, and the function test of the pin of the module under test fails.
[0070] It is not difficult to see that this embodiment is a device embodiment corresponding to the above-described embodiment of the automated testing method for MIPI signals applied to terminals. This embodiment can be implemented in conjunction with the above-described embodiment of the automated testing method for MIPI signals applied to terminals. The relevant technical details mentioned in the above-described embodiment of the automated testing method for MIPI signals applied to terminals are still valid in this embodiment, and will not be repeated here to reduce repetition. Accordingly, the relevant technical details mentioned in this embodiment can also be applied to the above-described embodiment of the automated testing method for MIPI signals.
[0071] The terminal provided in this application embodiment automatically determines content consistency without manual intervention, avoiding the waste of time and manpower caused by manual determination, optimizing production testing time and costs, and enhancing test reliability. In addition, it can effectively switch test cases and optimize production testing functions through tools on the terminal to meet the testing needs of more test projects.
[0072] It is worth mentioning that all modules involved in the above embodiments of this application are logical modules. In practical applications, a logical unit can be a physical unit, a part of a physical unit, or a combination of multiple physical units. Furthermore, to highlight the innovative aspects of this application, this embodiment does not introduce units that are not closely related to solving the technical problem proposed in this application; however, this does not mean that other units are absent from this embodiment.
[0073] Embodiments of this application also provide an electronic device, such as... Figure 6 As shown, it includes at least one processor 601; and a memory 602 communicatively connected to the at least one processor 601; wherein the memory 602 stores instructions that can be executed by the at least one processor 601, the instructions being executed by the at least one processor 601 to enable the at least one processor to execute the above-described automated testing method for MIPI signals applied to a testing device, or to execute the above-described automated testing method for MIPI signals applied to a terminal.
[0074] The memory and processor are connected via a bus, which can include any number of interconnecting buses and bridges, connecting various circuits of one or more processors and memories. The bus can also connect various other circuits, such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and will not be described further herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be a single element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices over a transmission medium. Data processed by the processor is transmitted over the wireless medium via an antenna, which further receives data and transmits it to the processor.
[0075] The processor manages the bus and general processing, and also provides various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. Memory is used to store data used by the processor during operation.
[0076] The above-mentioned products can perform the methods provided in the embodiments of this application, and have the corresponding functional modules and beneficial effects of performing the methods. For technical details not described in detail in this embodiment, please refer to the methods provided in the embodiments of this application.
[0077] Embodiments of this application also provide a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the above-described method embodiments.
[0078] Those skilled in the art will understand that all or part of the steps in the methods of the above embodiments can be implemented by a program instructing related hardware. This program is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0079] The above embodiments are provided for those skilled in the art to implement and use this application. Those skilled in the art can make various modifications or changes to the above embodiments without departing from the inventive concept of this application. Therefore, the protection scope of this application is not limited to the above embodiments, but should conform to the maximum scope of the innovative features mentioned in the claims.
Claims
1. An automated testing method for MIPI signals, characterized in that, The method is applied to a testing device, which includes N cameras, M screens, and a barcode scanner; the testing device includes: S1: Capture the first QR code image using a camera; S2: Display the camera's shooting results on the screen; S3: Scan the captured result displayed on the screen with a barcode scanner to obtain a second QR code image, wherein the second QR code image is the image of the first QR code image after being captured, displayed and scanned; S4: Transmit the second QR code image to the terminal so that the terminal can determine whether the information of the second QR code image is consistent with the information of the pre-stored first QR code image; If the terminal determines that the information of the second QR code image is inconsistent with that of the first QR code image, it determines that the connection between the screen and the camera and the module under test is abnormal; wherein, the module under test establishes a communication connection with the screen and the camera through a MIPI signal.
2. The automated testing method for MIPI signals according to claim 1, characterized in that, When N and M are both 1, if the terminal determines that the information of the second QR code image is consistent with that of the first QR code image, it is determined that the screen and the camera are normally connected to the module under test.
3. The automated testing method for MIPI signals according to claim 1, characterized in that, Where N is an integer greater than 1, the automated testing method for the MIPI signal further includes: For each of the N cameras, S1 to S4 are executed one by one until the terminal determines that the information of the second QR code image is inconsistent with that of the first QR code image, and determines that the connection between the screen and the camera and the module under test is abnormal.
4. The automated testing method for MIPI signals according to claim 1, characterized in that, Where M is an integer greater than 1, the automated testing method for the MIPI signal further includes: For each of the M screens, S1 to S4 are executed one by one until the terminal determines that the information of the second QR code image is inconsistent with that of the first QR code image, and determines that the connection between the screen, the camera, and the module under test is abnormal.
5. The automated testing method for MIPI signals according to any one of claims 1-4, characterized in that, Configure the barcode scanner to use a serial port.
6. An automated testing method for MIPI signals, characterized in that, Applied to terminals, including: Receive a second QR code image; wherein the second QR code image is obtained by scanning the shooting result displayed on the screen of the testing device with a barcode scanner, and the shooting result is a first QR code image captured by the camera of the testing device; Obtain the information of the second QR code image and determine whether the information of the second QR code image is consistent with the information of the pre-stored first QR code image; If the information in the second QR code image is found to be inconsistent with that in the first QR code image, it is determined that the connection between the screen and the camera and the module under test is abnormal; wherein, the module under test establishes a communication connection with the screen and the camera through a MIPI signal.
7. The automated testing method for MIPI signals according to claim 6, further comprising, when it is determined that the information of the second QR code image is inconsistent with that of the first QR code image: Transmit test failure results to the testing device; The test process is interrupted.
8. The automated testing method for MIPI signals according to claim 6, further comprising, before performing the automated testing method for MIPI signals: The device port is defined through the UI interface; wherein the device port is used for the device in the test device to connect to the terminal.
9. An automated testing device for MIPI signals, characterized in that, include: The camera module is used to capture the first QR code image using a camera. The display module displays the camera's shooting results on a screen; The scanning module scans the captured result displayed on the screen with a barcode scanner to obtain a second QR code image, wherein the second QR code image is the image of the first QR code image after being captured, displayed and scanned; The transmission module is used to transmit the second QR code image to the terminal, so that the terminal can determine whether the information of the second QR code image is consistent with the information of the pre-stored first QR code image; If the terminal determines that the information of the second QR code image is inconsistent with that of the first QR code image, it determines that the connection between the screen and the camera and the module under test is abnormal; wherein, the module under test establishes a communication connection with the screen and the camera through a MIPI signal.
10. A terminal, characterized in that, include: A receiving module is used to receive a second QR code image; wherein the second QR code image is obtained by scanning the shooting result displayed on the screen of the testing device with a barcode scanner, and the shooting result is a first QR code image captured by the camera of the testing device. The judgment module is used to obtain information of the second QR code image and determine whether the information of the second QR code image is consistent with the information of the pre-stored first QR code image; If the information in the second QR code image is found to be inconsistent with that in the first QR code image, it is determined that the connection between the screen and the camera and the module under test is abnormal; wherein, the module under test establishes a communication connection with the screen and the camera through a MIPI signal.
11. A testing apparatus for performing an automated testing method for MIPI signals as described in any one of claims 1-5, characterized in that, The testing equipment includes: at least one camera, at least one screen, a barcode scanner, and a test fixture; The test fixture is located at the bottom layer of the test equipment; The test fixture has a fixed baffle above it, and a first QR code image is affixed directly below the fixed baffle. The barcode scanner is fixed directly above the screen; The test fixture includes a module to be tested, which is connected to the camera and the screen via CSI and DSI interfaces, respectively.
12. An electronic device, characterized in that, include: At least one processor; as well as, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, which, when executed by the at least one processor, enables the at least one processor to perform an automated testing method for MIPI signals as described in any one of claims 1 to 5, or to perform an automated testing method for MIPI signals as described in any one of claims 6 to 8.
13. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the automated testing method for MIPI signals as described in any one of claims 1 to 5, or it is capable of executing the automated testing method for MIPI signals as described in any one of claims 6 to 8.
Citation Information
Patent Citations
Image detection method of display module and related equipment
CN115470063A
Automatic function test system of bar code reading equipment
CN214278315U