Test platform and test method for camera core module
By designing a test platform with integrated processing chips, using the expansion board to introduce multiple hardware interfaces and connection board access interfaces, the problems of low testing efficiency and development efficiency in the existing technology are solved, and higher versatility and adaptability are achieved, and testing efficiency and development efficiency are improved.
Patent Information
- Application Number
- CN202510166244.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-14
- Publication Date
- 2025-05-16
AI Technical Summary
The existing camera movement module testing methods require the development of different test core boards for different module models, resulting in low testing efficiency and development efficiency.
Design a test platform including integrated processing chips, introduces multiple types of hardware interfaces through the expansion board, and connects them to the movement module to be tested through the connection board access interface, and automatically selects the appropriate interface for testing according to the test instructions.
It improves the versatility and adaptability of the test platform, reduces manual configuration time, reduces error rate, improves testing efficiency, and saves development time.
Smart Images

Figure CN120017825A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of camera core module testing, and in particular to a testing platform and a testing method for a camera core module. Background Art
[0002] With the development of camera technology, the application scenarios and product forms of cameras have also increased. Taking infrared cameras as an example, infrared sensors are the core components of infrared cameras, which are used to detect and convert infrared radiation. As an important perception technology, infrared image sensors have been widely used in night observation, industrial temperature measurement, autonomous driving, AIOT, outdoor sports, drone payloads, security monitoring, mobile phone plug-ins, intelligent robots and other fields.
[0003] The current camera product forms are becoming more and more extensive, with various detectors, modules and complete machine forms emerging one after another. Taking infrared camera products as an example, there are various forms of infrared thermal imaging image output interface and control interface. More and more infrared movements, modules, etc. have shown many differences in structure, hardware and software. Traditional testing methods usually require the development of different test core boards for each movement module, resulting in problems with low testing efficiency and development efficiency. Summary of the invention
[0004] In order to solve the existing technical problems, the present application provides a testing platform and a testing method for a camera movement module which can improve the testing efficiency and development efficiency.
[0005] In a first aspect, a test platform for a camera core module is provided, comprising:
[0006] A core board (11) integrating a processing chip (110);
[0007] An expansion board (12) connected to the core board (11), the expansion board (12) leading to multiple types of first hardware interfaces (121) of the processing chip (110), and at least one connection board access interface (122); the connection board access interface (122) is used to access the connection board (20), one end of the connection board (20) is connected to the pin of the core module (30) to be tested, and the other end is connected to the various types of first hardware interfaces (121) of the expansion board (12) through the connection board access interface (122);
[0008] The processing chip (110) of the core board (11) is used to obtain a first test instruction; the first test instruction indicates a hardware connection mode and a test procedure of the core module to be tested;
[0009] Determine a target first hardware interface according to the first test instruction;
[0010] Controlling the target first hardware interface of the expansion board (12) to be turned on, so that the core board (11) is connected to the core module (30) to be tested through the target first hardware interface of the expansion board (12) and the connection board (20);
[0011] The test program is executed to obtain the test result of the movement module (30) to be tested.
[0012] In a second aspect, a method for testing a camera core module is provided, which is applied to a processing chip (110) of a testing platform for the camera core module, and the method comprises:
[0013] Obtaining a first test instruction; the first test instruction indicates a hardware connection method and a test procedure of the core module to be tested;
[0014] Determine a target first hardware interface according to the first test instruction;
[0015] Controlling the target first hardware interface of the expansion board (12) to be turned on, so that the core board (11) is connected to the core module (30) to be tested through the target first hardware interface of the expansion board (12) and the connection board (20);
[0016] Execute the test program to obtain the test result of the movement module to be tested.
[0017] The test platform for the camera core module provided by the above embodiment, by leading out various types of first hardware interfaces 121 of the processing chip 110 on the expansion board 12, enriches the types of the first hardware interfaces 121 on the test platform, so that the test platform can adapt to most of the camera core modules, improves the versatility and adaptability of the test platform, so that the manufacturer does not need to redevelop the test platform for different camera core modules, can save development time, and improve development efficiency. Then, when the first test instruction is triggered during the test, the processing chip can automatically select the target first hardware interface that matches the core module 30 to be tested according to the test instruction, and conduct the target first hardware interface on the expansion board, so that the core board 11 is connected to the core module 30 to be tested through the target first hardware interface of the expansion board 12 and the connecting board 20, thereby reducing the time of manual configuration, reducing the error rate, and improving the test efficiency.
[0018] The camera core module testing method provided in the above embodiment belongs to the same concept as the corresponding embodiment of the testing platform for the camera core module, and thus has the same technical effect as the corresponding embodiment of the testing platform for the camera core module, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 Schematic diagram of the structure of a testing platform for a camera core module in one embodiment.
[0020] Figure 2 Schematic diagram of the structure of a testing platform for a camera core module in one embodiment.
[0021] Figure 3 Schematic diagram of the structure of a testing platform for a camera core module in one embodiment.
[0022] Figure 4 Schematic diagram of the structure of a testing platform for a camera core module in one embodiment.
[0023] Figure 5 The present invention is a flow chart of a method for testing a camera core module according to an embodiment of the present invention.
[0024] Figure 6 The present invention is a flow chart of a method for testing a camera core module according to an embodiment of the present invention. DETAILED DESCRIPTION
[0025] The technical solution of the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments.
[0026] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.
[0027] In the following description, the expression "some embodiments" is involved, which describes a subset of all possible embodiments. It should be noted that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
[0028] In the following description, the terms "first, second, third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first, second, third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0029] like Figure 1 As shown, the present application provides a test platform 10 for a camera core module, comprising:
[0030] A core board 11 integrating a processing chip 110, an expansion board 12 connected to the core board 11, the expansion board 12 leading to multiple types of first hardware interfaces 121 on the processing chip 110, and at least one connecting board access interface 122; the connecting board access interface 122 is used to access the connecting board 20, one end of the connecting board 20 is connected to the pins of the movement module 30 to be tested, and the other end is connected to various types of first hardware interfaces 121 of the expansion board 12 through the connecting board access interface 122.
[0031] Among them, the core board 11 is integrated with a processing chip 110, which should be able to meet the camera core module test requirements. In one example, Rockchip's RK3568 can be used, which has powerful multimedia processing capabilities, rich interface resources, high-performance AI computing power and hardware encoding and decoding capabilities, can meet the various test requirements of the camera core module, and is an ideal core board chip. In this example, the core board is based on the Rockchip RK3568J / RK3568B2 processor design, quad-core ARM Cortex-A55, and the main frequency of each core is up to 1.8GHz / 2.0GHz. All components of the RK3568 core board, such as CPU, ROM, RAM, power supply, crystal oscillator, connector, etc., adopt domestic industrial-grade solutions, integrating dual-core architecture GPU and high-performance NPU; maximum support 8G large memory; support WiFi6, 5G / 4G and other high-speed wireless network communications; has rich interface expansion, supports a variety of video input and output interfaces, and can be applied to smart NVR, cloud terminal, Internet of Things gateway, industrial control and other scenarios, which is convenient for users to quickly evaluate product solutions and pre-research technology. Therefore, it is very suitable for the technical research and development platform of camera movement modules.
[0032] The hardware interface refers to the physical connection point in a computer or electronic device for connecting different hardware modules or peripherals, which is used for physical connection and data transmission between devices, and is implemented through a physical connector. By providing various types of first hardware interfaces 121 on the expansion board 12, core modules of different types and product forms can be connected, thereby improving the versatility and adaptability of the test platform. Thus, the test platform of the camera core module can be used as a universal and unified platform to verify and test the camera core module. For manufacturers, for different camera core modules 30, it is only necessary to develop a connection board 20 connected to the pins of the camera core module 30 in a targeted manner. Manufacturers do not need to redevelop the test platform for different camera core modules, which can save development time and improve development efficiency.
[0033] Taking the core module of an infrared camera as an example, the current product forms of infrared cameras are becoming more and more extensive, with various detectors, modules and complete machine forms emerging in an endless stream, and more and more infrared thermal imaging image output interfaces, such as USB, MIPI-CSI2, SPI, DVP, BT656, BT1120, PAL, wifi, network port output, etc. The control interface of the infrared camera also has various forms, including UART interface, I2C interface and USB interface, etc. More and more infrared cores, modules, etc. have shown more differences in structure, hardware and software. In order to enable the test platform to adapt to most infrared camera modules, in this embodiment, by leading out various types of first hardware interfaces 121 of the processing chip 110 on the expansion board 12, by enriching the types of the first hardware interface 121, the test platform can be adapted to most camera core modules, thereby improving the versatility and adaptability of the test platform.
[0034] However, with the increase of hardware interface types, the test operation becomes more complicated. The user needs to connect the core module to be tested with the first hardware interface 121 adapted on the expansion board 12 according to the interface form of the core module to be tested. If the connection is wrong, the test efficiency will be affected.
[0035] To solve this problem, in this embodiment, a test method is implemented based on the processing chip 110 of the core board. Specifically, the processing chip 110 of the core board 11 is used to obtain a first test instruction; the first test instruction indicates the hardware connection mode and the test program of the core module 30 to be tested; the target first hardware interface is determined according to the first test instruction; the target first hardware interface of the expansion board 12 is controlled to be turned on, so that the core board 11 is connected to the core module 30 to be tested through the target first hardware interface of the expansion board 12 and the connecting board 20; the test program is executed to obtain the test result of the core module to be tested.
[0036] Specifically, the user logs in to the test platform and triggers the first test instruction, which indicates the hardware connection method and the test program of the movement module to be tested. Among them, the hardware connection method indicates that the movement module 30 to be tested is connected to the core board 11 through the first hardware interface 121. The test program is a program for testing the movement module 30 to be tested. By pre-configuring the test programs of different movement modules 30 to be tested, by inputting the movement module to be tested, or the identification of the test program, the processing chip 110 is instructed to call the corresponding test program to test the movement module 30 to be tested.
[0037] That is to say, there is a corresponding relationship between the test program and the movement module 30 to be tested, and in order to reduce the manual operation of the interface connection, in this embodiment, the type of the first hardware interface 121 of the expansion board 12 to be used is configured according to the type and form of the interface of the movement module 30 to be tested in the test program, that is, the mapping relationship between the configuration test program, the movement module 30 to be tested and the type of the first hardware interface 121. In this way, the processing chip 110 can determine the type of the first hardware interface 121, that is, the target first hardware interface, according to the first test instruction, and control the target first hardware interface of the expansion board 12 to be turned on, so that the core board 11 is connected to the movement module 30 to be tested through the target first hardware interface of the expansion board 12 and the connecting board 20.
[0038] During the test operation, the user only needs to load the movement module 30 to be tested into the connecting board 20, connect the connecting board 20 to the connecting board access interface 122 on the expansion board 12, and trigger the first test instruction, so that the processing chip 110 can automatically select the target first hardware interface that matches the movement module 30 to be tested according to the test instruction, and turn on the target first hardware interface on the expansion board, so that the core board 11 is connected to the movement module 30 to be tested through the target first hardware interface of the expansion board 12 and the connecting board 20, thereby eliminating the need to manually select the interface corresponding to the movement module from the numerous first hardware interfaces 121 to connect the movement module 30 to the core board 11, thereby reducing the time for manual configuration, reducing the error rate, and improving the test efficiency.
[0039] After the connection between the core module 30 to be tested and the core board 11 is established, the processing chip 110 executes the test program to obtain the test result of the core module 30 to be tested.
[0040] The above-mentioned test platform for the camera core module, by leading out the first hardware interface 121 of setting various types of the processing chip 110 on the expansion board 12, enriches the types of the first hardware interface 121 on the test platform, so that the test platform can be adapted to most of the camera core modules, improves the versatility and adaptability of the test platform, so that the manufacturer does not need to redevelop the test platform for different camera core modules, can save development time, and improve development efficiency. Then the first test instruction is triggered during the test, so that the processing chip 110 can automatically select the target first hardware interface matching the core module 30 to be tested according to the test instruction, and the target first hardware interface on the expansion board is turned on, so that the core board 11 is connected to the core module 30 to be tested through the target first hardware interface of the expansion board 12 and the connecting board 20, thereby reducing the time of manual configuration, reducing the error rate, and improving the test efficiency.
[0041] In one embodiment, if Figure 2As shown, the expansion board 12 includes multiple groups of first hardware interface groups 120 that match the number of connection board access interfaces 122, each group of first hardware interface groups 120 is used to connect to a connection board access interface 122 respectively, and each group of first hardware interface groups 120 includes multiple types of first hardware interfaces 121; the types of the first hardware interfaces 121 in each first hardware interface group 120 are the same or different.
[0042] In this example, multiple groups of first hardware interface groups 120 are set, and each group of first hardware interface groups 120 is used to connect to a connection board access interface 122 respectively. The processing chip 110 of the core board 11 is used to obtain a first test instruction; the first test instruction indicates the hardware connection mode and the test program of each core module to be tested, and the target first hardware interface in each group of first hardware interface groups 120 is determined according to the first test instruction; the target first hardware interface of the expansion board 12 is controlled to be turned on, so that the core board 11 is connected to the core module (30) to be tested through the target first hardware interface in each group of first hardware interface groups 120 of the expansion board (12) and the connection board (20); the test program is executed to obtain the test results of each core module to be tested.
[0043] The type of the first hardware interface (121) in each first hardware interface group (120) can be set according to the actual test product, and the type of the first hardware interface (121) in each first hardware interface group (120) can be the same or different.
[0044] The above structure of the test platform can be used to test multiple core modules 30 to be tested at the same time. During the test, the user can load the core modules 30 to be tested to the connecting plate 20 respectively. For example, when testing the dual-light fusion in a dual-light camera product, each camera module in the dual-light camera can be loaded to a different connecting plate 20, and the connecting plate 20 can be connected to the connecting plate access interface 122 respectively. Then, the dual-light fusion test can be performed on the dual-light camera by doing the calibration and registration work based on the test platform.
[0045] In this embodiment, the test platform for the camera movement module can adapt to a variety of dual-camera / multi-camera product solutions, for example, it can adapt to the product form of simultaneous testing of a single infrared + single visible light module, and can also adapt to the solution of simultaneous testing of dual infrared modules or dual visible light modules.
[0046] In one embodiment, the first hardware interface 121 includes a data stream interface and a control interface.
[0047] The data stream interface is an interface for transmitting the video data stream of the core module 30 to be tested to the core board 11. The control interface is an interface for outputting control instructions from the core board 11 to the core module 30 to be tested.
[0048] In one embodiment, the data stream interface includes at least one of a DVP interface, a MIPI-CSI interface, an SPI interface, and a USB interface. The control interface includes at least one of a UART interface, an I2Cmaster interface, a PWM interface, and a GPIO interface.
[0049] The test platform integrates multiple data stream interfaces (DVP, MIPI, SPI and USB interfaces) and control interfaces (UART, I2C master, PWM and GPIO), making it compatible with various types of camera movement modules and improving hardware adaptability. Furthermore, by reserving a PWM wave output interface, it can output PWM waves of different frequencies and duty cycles, which can be used to control the motor speed. By reserving GPIO, it can be used for common chip power-on control, reset control and shutter control tests.
[0050] The setting of the above interface enables the test platform to support the access of traditional camera core modules. Taking the infrared core module as an example, a typical infrared core module can transmit the image data stream from the DVP interface / MIPI-CSI interface / SPI / USB interface of the expansion board 12 to the processing chip 110 of the core board 11 through the connecting board 20. After the processing chip 110 receives the data stream signal, it receives the data stream and stores it in the corresponding cache by polling or interruption. At the same time, the processing chip 110 can send control instructions through the UART interface / I2C master / PWM interface / GPIO interface of the expansion board 12, and transmit it to the infrared core module through the connecting board 20.
[0051] In one embodiment, if Figure 3 As shown, the expansion board 12 also leads out a second hardware interface 123 on the processing chip 110 , and the second hardware interface 123 is used to access the core module 30 to be tested and / or the input / output device 40 of the test platform.
[0052] In one embodiment, the expansion board 12 also leads out the network interface 124 on the processing chip 110 , and the network interface 124 is used to access the core module 30 to be tested and / or the input / output device 40 of the test platform.
[0053] The network interface refers to an interface connected through a network adapter. In one example, the network adapter may be an Ethernet card or a wireless network card, and the corresponding network interface may include an Ethernet interface or a WIFI interface.
[0054] Specifically, the second hardware interface 123 and the network interface 124 can both realize the connection between the core board 11 and the input / output device 40. The second hardware interface realizes data transmission in a manner that is usually based on a local bus or a dedicated hardware communication protocol. For example, the USB interface uses the USB protocol for data transmission, and the data is directly transmitted through the USB bus. The network interface realizes data transmission in a manner that is based on a network protocol, such as the TCP / IP protocol. The data is encapsulated into a network data packet and transmitted through a network line. Among them, the input / output device 40 may include an external display for displaying the video image collected by the movement module 30 to be tested. The input / output device 40 may also be a mouse and a keyboard, and based on the pre-installed graphical interface of the processing chip 110, the user can operate and control the device conveniently using a mouse and a keyboard. The input / output device may include devices such as a PC and a mobile terminal. The video image collected by the movement module 30 to be tested may be output to a PC and a mobile terminal, or the test platform may be logged in through a PC and a mobile terminal, so that the user can input test instructions and configurations.
[0055] The second hardware interface 123 and the network interface 124 can both realize the connection between the core board 11 and the core module 30 to be tested, so that the camera core module 30 can be directly connected to the core board 11 through the second hardware interface 123 or the network interface 124 for testing.
[0056] In one embodiment, the type of the second hardware interface (123) includes: at least one of a USB to UART interface, a debug UART interface, a MIPI-DSI interface, and a HDMI interface.
[0057] In one embodiment, the type of the network interface includes: at least one of an Ethernet interface, a WIFI interface, a Bluetooth interface, and a mobile communication interface.
[0058] In this way, on the one hand, the infrared camera video data output method can be enriched. For some scenarios where it is not convenient to access the MIPI display, such as high and low temperature test environments, HDMI output method and WiFi and network port push stream output method are provided, which can be directly output to external displays, or devices such as PCs and mobile phones, which is very convenient for users in various application scenarios. On the other hand, the main control platform development, debugging and control methods can be enriched. Users can use the USB debugging interface, UART debugging interface, network port, WiFi and other methods to log in to the file system of the test platform for verification and test analysis. If the test platform is pre-installed with a graphical interface system, an external mouse and keyboard can also be connected for easy operation and control.
[0059] In one embodiment, based on the network interface 124 of the expansion board 12, the core module 30 to be tested can be connected to the core board 11, so that the architecture of the test platform can support the test of the core module of the network camera. Specifically, the test process is as follows: the processing chip 110 obtains the network interface connection parameters and the second test instruction, and the second test instruction indicates the test program of the core module 30 to be tested; the processing chip 110 is connected to the core module 30 to be tested through the corresponding network interface 124 according to the network interface connection parameters, and executes the test program to obtain the test result of the core module to be tested.
[0060] Specifically, the processing chip 110 first obtains the network interface connection parameters through an internal program or external input (such as user settings, configuration files, etc.). These parameters may include network type (such as wired network, wireless network), IP address, subnet mask, gateway, DNS server, etc. According to the obtained network interface connection parameters, the processing chip 110 configures the network interface 124 on the core board to establish a connection between the core board and the core module 30 to be tested in the network. The network connection is successfully established, and the processing chip 110 obtains the second test instruction through the network interface 124. The second test instruction indicates the test program for testing the core module to be tested, and the processing chip 110 executes the test program, obtains the image data of the core module to be tested through the network interface 124, and analyzes and processes the image data to obtain the analysis and processing results, and sends a control instruction to the core module to be tested through the network interface 124 to obtain a control response result; according to the analysis and processing results and the control response results, the test results of the core module to be tested are obtained.
[0061] The system architecture of the test platform enables the test platform to test the network camera core module through the network interface 124.
[0062] In one embodiment, if Figure 3 As shown, the expansion board is provided with a plurality of test points 125 for signal lines, and the test points are used to access the test equipment 50. The test equipment 50 may be an oscilloscope, a multimeter or the like.
[0063] The processing chip 110 is also used to respond to the test point test instruction, and send a third test instruction corresponding to the test point to the movement module 30 to be tested according to the test point test instruction. The movement module 30 to be tested processes according to the third test instruction, and the testing equipment 50 collects the signal change data during the execution of the third test instruction by the movement module 30 to be tested, which is used to determine whether there is a hardware abnormality in the signal line of the test point.
[0064] In one example, a gain cutting test can be performed on the camera movement module. During the test, the relevant test points are connected to an oscilloscope, and the gain cutting instruction is sent by controlling the analog voltage and bias voltage of the camera movement module. During the gain cutting test, it is observed whether the changes on the oscilloscope are consistent with expectations to determine whether the signal line where the relevant test point is located is abnormal.
[0065] In this embodiment, by setting a test point 125 on the expansion board 12 for accessing the test equipment 50, signal measurement and troubleshooting can be facilitated. Developers collect signal change data during the test point test process to facilitate hardware signal testing, abnormal diagnosis and analysis.
[0066] In one embodiment, a test platform for a camera core module is provided, such as Figure 4 As shown, it includes: a core board integrating a processing chip 110, an expansion board connected to the core board, the expansion board is provided with at least one connection board access interface 122, and a plurality of first hardware interface groups 120 matching the number of the connection board access interfaces 122, each first hardware interface group 120 is used to connect to a connection board access interface 122 respectively, and each first hardware interface group 120 includes a plurality of types of first hardware interfaces 121; the types of the first hardware interfaces in each first hardware interface group 120 are the same or different. The connection board access interface 122 is used to access the connection board, one end of the connection board is connected to the pin of the movement module to be tested, and the other end is connected to the various types of first hardware interfaces of the expansion board through the connection board access interface 122.
[0067] In one embodiment, the first hardware interface includes a data stream interface and a control interface; the type of the data stream interface includes: at least one of a DVP interface, a MIPI-CSI interface, an SPI interface and a USB interface; the control interface includes at least one of a UART interface, an I2Cmaster interface, a PWM interface and a GPIO interface.
[0068] In one embodiment, the expansion board also includes at least one second hardware interface and / or at least one network interface, the second hardware interface is used to access the input / output device of the movement module to be tested and / or the test platform; the network interface is used to access the input / output device of the movement module to be tested and / or the test platform.
[0069] In one embodiment, the type of the second hardware interface includes: at least one of a USB to UART interface, a debug UART interface, a MIPI-DSI interface, and a HDMI interface.
[0070] In one embodiment, the type of the network interface includes: at least one of an Ethernet interface, a WIFI interface, a Bluetooth interface, and a mobile communication interface.
[0071] In one embodiment, the expansion board is provided with test points for a plurality of signal lines, and the test points are used to access the test equipment.
[0072] like Figure 4 As shown, the test platform brings out 2 groups of MIPI-CSI interfaces of the processing chip 110 on the expansion board, 1 group of MIPI-DSI interface, 1 group of HDMI interface, 3 groups of USB host2.0 interfaces, 1 group of USB3.0 OTG interface, 2 groups of USB to UART interfaces, 1 group of debugging UART interface, one group of wifi antenna interface, 1 group of Ethernet interface, 2 groups of PWM interfaces, 6 groups of GPIO interfaces, 2 groups of I2C master interfaces, 2 groups of SPI master interfaces, one group of DVP 8 / 16bit interface, and one group of wifi antenna interface.
[0073] The test platform brings out various types of interfaces of the core board through the expansion board, supporting USB input, MIPI-CSI2 input, DVP input (including BT656 and BT1120), SPI input, Ethernet input and wifi input of the camera movement module, which can cover most application scenarios.
[0074] The test platform supports the access of traditional camera core modules. A typical infrared core can output the image data stream from the DVP interface (including BT656 and BT1120) / MIPI-CSI interface / SPI interface / USB interface and the core board on the expansion board to the processing chip 110 through the connection board. After receiving the data stream signal, the processing chip 110 receives the data stream through polling or interruption and stores it in the corresponding cache. At the same time, the processing chip 110 can send control instructions through the UART, I2C master or USB interface, and transmit them to the camera core module through the core board, expansion board and adapter board.
[0075] The test platform also supports the access of network camera core modules. The network camera can be accessed through the network port or wifi of the platform, receive data based on the corresponding network protocol, and send control command requests to the network camera through the network port.
[0076] The test platform is suitable for a variety of dual-camera / multi-camera product solutions. For example, it can adapt to the product form of single infrared + single visible light module input at the same time, and it can also adapt to the solution of dual infrared modules input at the same time.
[0077] The test platform has reserved a PWM wave output interface, which can output PWM waves of different frequencies and duty cycles, and supports internal and external synchronization output modes of infrared cameras.
[0078] The test platform enriches the output methods of the camera core module on the test platform. For some scenarios where it is not convenient to access the MIPI display, such as high and low temperature test environments, HDMI output and WiFi and network port push streaming output are provided, which can be directly output to external displays, or devices such as PCs and mobile phones, which is very convenient for users in various application scenarios.
[0079] The test platform reserves many test points for signal lines, which makes it very convenient for developers to collect signals from the test points for hardware signal testing, abnormality diagnosis and analysis.
[0080] This test platform enriches the development, debugging and control methods of the main control platform. You can use the USB debugging interface, UART debugging interface, network port, wifi and other methods to log in to the file system of the processing chip (such as RK3568) platform for verification and test analysis. If RK3568 is pre-installed with a graphical interface system, you can also connect an external mouse and keyboard for easy operation and control.
[0081] The test platform reserves PWM waves for controlling motor speed and reserves GPIO for common chip power-on control, reset control, and shutter control.
[0082] Based on the processing chip 110 of the test platform of the camera core module, the present application also provides a test method of the camera core module, such as Figure 5 As shown, the following steps are included:
[0083] Step 502, obtaining a first test instruction; the first test instruction indicates a hardware connection method and a test procedure for the movement module to be tested.
[0084] Step 504: determine a target first hardware interface according to the first test instruction.
[0085] Step 506, controlling the target first hardware interface of the expansion board to be turned on, so that the core board is connected to the core module to be tested through the target first hardware interface of the expansion board and the connecting board.
[0086] Step 508, executing the test program to obtain the test result of the movement module to be tested.
[0087] Specifically, the user logs in to the test platform and triggers the first test instruction, which indicates the hardware connection method and the test program of the movement module to be tested. Among them, the hardware connection method indicates that the movement module 30 to be tested is connected to the core board 11 through the first hardware interface 121. The test program is a program for testing the movement module 30 to be tested. By pre-configuring the test programs of different movement modules to be tested, by inputting the movement module to be tested, or the identification of the test program, the processing chip 110 is instructed to call the corresponding test program to test the movement module 30 to be tested.
[0088] That is to say, there is a corresponding relationship between the test program and the movement module 30 to be tested, and in order to reduce the manual operation of the interface connection, in this embodiment, the type of the first hardware interface 121 of the expansion board 12 to be used is configured according to the type and form of the interface of the movement module 30 to be tested in the test program, that is, the mapping relationship between the configuration test program, the movement module 30 to be tested and the type of the first hardware interface 121. In this way, the processing chip 110 can determine the type of the first hardware interface 121, that is, the target first hardware interface, according to the first test instruction, and control the target first hardware interface of the expansion board 12 to be turned on, so that the core board 11 is connected to the movement module 30 to be tested through the target first hardware interface of the expansion board 12 and the connecting board 20.
[0089] During the test operation, the user only needs to load the movement module 30 to be tested into the connecting board 20, connect the connecting board 20 to the connecting board access interface 122 on the expansion board 12, and trigger the first test instruction, so that the processing chip 110 can automatically select the target first hardware interface that matches the movement module 30 to be tested according to the test instruction, and turn on the target first hardware interface on the expansion board, so that the core board 11 is connected to the movement module 30 to be tested through the target first hardware interface of the expansion board 12 and the connecting board 20, thereby eliminating the need to manually select the interface corresponding to the movement module from the numerous first hardware interfaces 121 to connect the movement module 30 to the core board 11, thereby reducing the time for manual configuration, reducing the error rate, and improving the test efficiency.
[0090] After the connection between the core module 30 to be tested and the core board 11 is established, the processing chip 110 executes the test program to obtain the test result of the core module 30 to be tested.
[0091] The above-mentioned test method for the camera core module, the test platform, by leading out the various types of the first hardware interface 121 of the processing chip 110 on the expansion board 12, enriches the types of the first hardware interface 121 on the test platform, so that the test platform can be adapted to most of the camera core modules, improves the versatility and adaptability of the test platform, so that the manufacturer does not need to redevelop the test platform for different camera core modules, can save development time, and improve development efficiency. Then the first test instruction is triggered during the test, so that the processing chip 110 can automatically select the target first hardware interface that matches the core module 30 to be tested according to the test instruction, and the target first hardware interface on the expansion board is turned on, so that the core board 11 is connected to the core module 30 to be tested through the target first hardware interface of the expansion board 12 and the connecting board 20, thereby reducing the time of manual configuration, reducing the error rate, and improving the test efficiency.
[0092] In one example, the method further includes:
[0093] The network interface connection parameters and the second test instruction are obtained, and the second test instruction indicates the test procedure of the movement module to be tested; the processing chip 110 is connected to the movement module to be tested through the corresponding network interface according to the network interface connection parameters, and executes the test procedure to obtain the test result of the movement module to be tested.
[0094] The system architecture of the test platform enables the test platform to test the network camera core module through the network interface 124.
[0095] In one embodiment, a test program is executed to obtain the test results of the movement module to be tested, including: executing the test program, obtaining image data of the movement module to be tested, and analyzing and processing the image data to obtain analysis and processing results, and sending control instructions to the movement module to be tested to obtain control response results; based on the analysis and processing results and the control response results, the test results of the movement module to be tested are obtained.
[0096] In this embodiment, the test results include image analysis and processing results and control response results, and can comprehensively test the movement module to be tested.
[0097] In one example, the method further includes:
[0098] The image data of the movement module 30 to be tested is obtained, and the image data is analyzed and processed to obtain the analysis and processing result; a control instruction is sent to the movement module 30 to be tested to obtain a control response result; and a test result of the movement module 30 to be tested is obtained according to the analysis and processing result and the control response result.
[0099] In this embodiment, by setting a test point on the expansion board for accessing the test equipment, signal measurement and problem troubleshooting can be facilitated. The developer collects signal data during the test point test process for hardware signal testing, abnormality diagnosis and analysis.
[0100] Specifically, taking the processing chip 110 as RK3568 as an example, the test method of the camera core module is as follows: Figure 6 As shown, the following steps are included:
[0101] The typical usage process is as follows:
[0102] Step 1: Power on and reset, and the RK3568 platform starts.
[0103] Step 2: The user logs in to the file system of RK3568 through the USB port, network port or serial port.
[0104] Step 3: Load the camera driver of RK3568.
[0105] Step 4: Configure the camera driver parameters of RK3568. In this step, the target first hardware interface can be determined.
[0106] Step 5: Initialize the control interface and data stream interface of RK3568, that is, initialize the first hardware interface determined in step 4.
[0107] Step 6: Start the outflow.
[0108] Step 7: Collect image data, analyze the data, and process the image.
[0109] Step 8: Various instruction tests can be performed during the outflow process.
[0110] Step 9: Stop collecting data stream after reaching the stop condition (instruction or reaching the outflow time).
[0111] Step 10: Initialize the RK3568 control interface and data stream interface.
[0112] The test platform and test method for camera movement modules of the present application can be widely used in the preliminary research, development verification, software testing, SDK testing, hardware testing, product-level testing, customer on-site technical support and other scenarios of technical solutions such as long-wave / short-wave infrared movements / modules, visible light cameras, dual infrared, and infrared-visible dual-light fusion.
[0113] On the other hand, the embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, each process of the above-mentioned camera core module test method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0114] On the other hand, an embodiment of the present application further provides a computer program product, including a computer program. When the computer program is executed by a processor, it implements the various processes of the embodiment of the test method for the camera movement module and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0115] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0116] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0117] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A test platform for a camera core module, characterized in that: include: A core board (11) integrating a processing chip (110); An expansion board (12) connected to the core board (11), the expansion board (12) leading to multiple types of first hardware interfaces (121) of the processing chip (110), and at least one connection board access interface (122); the connection board access interface (122) is used to access the connection board (20), one end of the connection board (20) is connected to the pin of the core module (30) to be tested, and the other end is connected to the various types of first hardware interfaces (121) of the expansion board (12) through the connection board access interface (122); The processing chip (110) of the core board (11) is used to obtain a first test instruction; the first test instruction indicates a hardware connection mode and a test procedure of the core module to be tested; Determine a target first hardware interface according to the first test instruction; Controlling the target first hardware interface of the expansion board (12) to be turned on, so that the core board (11) is connected to the core module (30) to be tested through the target first hardware interface of the expansion board (12) and the connection board (20); The test program is executed to obtain the test result of the movement module (30) to be tested.
2. The test platform for camera core module according to claim 1, characterized in that: The expansion board (12) comprises a plurality of first hardware interface groups (120) matching the number of the connection board access interfaces (122); each first hardware interface group (120) is used to connect to one of the connection board access interfaces (122), and each first hardware interface group (120) comprises a plurality of types of the first hardware interfaces (121); the types of the first hardware interfaces (121) in each first hardware interface group (120) are the same or different.
3. The test platform for camera core module according to claim 1 or 2, characterized in that: The first hardware interface (121) includes a data stream interface and a control interface; The type of the data stream interface includes: at least one of a DVP interface, a MIPI-CSI interface, an SPI interface and a USB interface; the control interface includes at least one of a UART interface, an I2Cmaster interface, a PWM interface and a GPIO interface.
4. The test platform for camera core module according to claim 1 or 2, characterized in that: The expansion board (12) also leads to at least one second hardware interface (123) and / or at least one network interface (124) of the processing chip (110), wherein the second hardware interface (123) is used to access the input / output device of the movement module to be tested and / or the test platform; and the network interface (124) is used to access the input / output device of the movement module to be tested and / or the test platform.
5. The test platform for camera core module according to claim 4, characterized in that: The type of the second hardware interface (123) includes: at least one of a USB to UART interface, a debug UART interface, a MIPI-DSI interface and an HDMI interface; and / or the type of the network interface (124) includes: at least one of an Ethernet interface, a WIFI interface, a Bluetooth interface and a mobile communication interface.
6. The test platform for camera core module according to claim 1, characterized in that: The expansion board (12) is provided with a plurality of test points (125) for signal lines, and the test points (125) are used to access the test equipment (50); The processing chip (110) is also used to respond to a test point test instruction, and send a third test instruction corresponding to the test point to the movement module (30) to be tested according to the test point test instruction, the movement module (30) to be tested performs processing according to the third test instruction, and the test device (50) collects signal change data during the process of the movement module (30) to be tested executing the third test instruction, so as to determine whether there is a hardware abnormality in the signal line of the test point.
7. A method for testing a camera core module, applied to the test platform of the camera core module according to any one of claims 1 to 6, characterized in that: The method comprises: Obtaining a first test instruction; the first test instruction indicates a hardware connection method and a test procedure of the core module to be tested; Determine a target first hardware interface according to the first test instruction; Controlling the target first hardware interface of the expansion board (12) to be turned on, so that the core board (11) is connected to the core module (30) to be tested through the target first hardware interface of the expansion board (12) and the connection board (20); Execute the test program to obtain the test result of the movement module to be tested.
8. The method for testing a camera core module according to claim 7, characterized in that: The method further comprises: Acquire network interface connection parameters and a second test instruction, where the second test instruction indicates a test procedure for the core module to be tested; Connecting to the core module (30) to be tested via a corresponding network interface (124) according to the network interface connection parameters; The test program is executed to obtain the test result of the movement module (30) to be tested.
9. The method for testing a camera core module according to claim 7 or 8, characterized in that: The executing the test program to obtain the test result of the core module to be tested includes: Acquiring image data of the movement module (30) to be tested, and analyzing and processing the image data to obtain analysis and processing results; Sending a control instruction to the core module (30) to be tested to obtain a control response result; The test result of the movement module (30) to be tested is obtained according to the analysis and processing result and the control response result.
10. The method for testing a camera core module according to claim 7, characterized in that: The method further comprises: Responding to a test point test instruction, sending a third test instruction corresponding to the test point to the movement module (30) to be tested according to the test point test instruction; The core module (30) to be tested is processed according to the third test instruction, and the testing device (50) collects signal change data during the process of the core module (30) to be tested executing the third test instruction, so as to determine whether there is a hardware abnormality on the signal line at the test point.