Camera single board testing system and automatic testing method
By designing a single-board test system for cameras and using a network hard disk recorder to decode audio and video data, the problem of inefficient testing in the existing technology is solved, and the automated testing of multiple single-boards is realized, and the testing efficiency is improved.
Patent Information
- Application Number
- CN202211325968.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-27
- Publication Date
- 2025-08-29
- Estimated Expiration
- 2042-10-27
AI Technical Summary
In the prior art, the camera single board testing is inefficient, especially the audio and video test cannot be automated, and multiple single boards cannot be tested simultaneously, resulting in waste of human resources and equipment resources.
A single-board test system for cameras is designed, including single-board test fixtures, network hard disk recorders and monitors. The audio and video data of the single-board to be tested is decoded through the network hard disk recorder, and the test results are visually displayed through the display to realize automated testing.
Automatic testing of single-board input voltage, current, functional testing and other items is realized, and audio and video testing is completed at the same time, which improves testing efficiency, reduces manual intervention, and can test multiple single-boards at the same time.
Smart Images

Figure CN115665404B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic equipment testing, and more particularly to a camera single board testing system and an automatic testing method. Background Art
[0002] With the booming development of the imaging camera industry, more and more cameras are being produced, and their functions are becoming more and more complex. If testing efficiency cannot be improved, it means that factories will need to invest more human resources and equipment resources to complete single-board testing of camera products. How to make good use of production automation testing is crucial. The prerequisite is to build a stable, reliable and highly efficient hardware platform to ensure the accuracy of camera single-board functional testing while improving factory production capacity.
[0003] Conventional network camera products must undergo single-board testing. Currently, single-board testing requires testing personnel to complete processes such as wiring, powering on, logging into the webpage, image testing, and interface function testing. Depending on the functional complexity of different single-boards, the number of single-board connections and test items will vary. It takes at least three minutes to test a single board, which is inefficient. Especially for audio and video testing, since the current test platform cannot decode, manual judgment is required, resulting in low efficiency. Summary of the Invention
[0004] The purpose of the present invention is to overcome the deficiencies of the prior art and provide a camera single board testing system and an automatic testing method, aiming to improve the single board testing efficiency.
[0005] To achieve the above object, the present invention adopts the following technical solutions:
[0006] On the one hand, a camera single-board test system includes a single-board test fixture, a network hard disk recorder and a display; the single-board test fixture is communicatively connected to the network hard disk recorder, and the network hard disk recorder is communicatively connected to the display; multiple single boards to be tested are installed on the single-board test fixture, and the single-board test fixture is used to automatically test the multiple single boards to be tested for first type test items, and the network hard disk recorder is used to automatically test the multiple single boards to be tested for second type test items, and the display is used to visually display the test items and test results.
[0007] Its further technical solution is: the single-board test fixture includes a test motherboard; the test motherboard is provided with a main control template and a voltage acquisition module, the voltage acquisition module is electrically connected to the main control template, and the voltage acquisition module is used to collect the input voltage of the single board to be tested and the test point voltage of the single board to be tested.
[0008] A further technical solution is: the test motherboard is further provided with a current acquisition module, the current acquisition module is electrically connected to the main control template, and the current acquisition module is used to acquire the input current of the single board to be tested.
[0009] Its further technical solution is: the single board test fixture also includes a companion test fixture board; the companion test fixture board is electrically connected to the test motherboard, and the companion test fixture board is used to lead out the hardware interface of the single board to be tested.
[0010] Its further technical solution is: the accompanying test fixture board is provided with an infrared lamp drive to alarm output module, a filter drive to alarm output module, a white light lamp drive to alarm output module and an alarm input to reset button signal module. The infrared lamp drive to alarm output module is used to output an alarm according to the results of the infrared lamp lighting test item, the filter drive to alarm output module is used to output an alarm according to the results of the filter drive test item, the white light lamp drive to alarm output module is used to output an alarm according to the structure of the white light lamp lighting test item, and the alarm input to reset button signal module is used to reset the button signal according to the alarm input and output test item.
[0011] Its further technical solution is: the accompanying test fixture board is also provided with a TF card interface, a speaker interface, an audio interface and a network port; the TF card interface is used to insert a TF card, and then transparently transmit it to the single board to be tested; the speaker interface is used to insert a speaker to play the audio output of the single board to be tested; the audio interface is used to output the audio of the network hard disk recorder to the audio input of the single board test fixture, and then transparently transmit it to the single board to be tested; the network port is used for the network interface of the network hard disk recorder and the network port of the single board test fixture, and then transparently transmit it to the single board to be tested.
[0012] Its further technical solution is: the test motherboard and the accompanying test fixture board are both provided with RS485 interfaces for data exchange with the network hard disk video recorder.
[0013] The further technical solution is as follows: the first type of test items include single board input voltage test, single board input current test, single board test point voltage test, single board function signal conversion test, POE power supply test, network connectivity test, infrared lamp drive test, white light lamp drive test, reset button test, TF card test, filter drive test, built-in MIC circuit test and speaker output circuit test. The second type of test items include audio test and video test.
[0014] On the other hand, a camera single board automatic testing method uses the above-mentioned camera single board testing system to perform single board automatic testing, and the method includes:
[0015] configuring test items, wherein the test items include first-type test items and second-type test items;
[0016] Execute automatic testing of the first type of test items;
[0017] Execute automatic testing of the second type of test items;
[0018] A test report is generated based on the automatic test results of the first type of test items and the second type of test items, and uploaded to a display for visual display.
[0019] A further technical solution is as follows: the automatic test of the second type of test items includes:
[0020] Check whether the board under test currently has the factory default MAC address;
[0021] If it is the factory default MAC address, change the MAC address of the board to be tested to a randomly generated MAC address;
[0022] The network hard disk recorder receives the broadcast data packet sent by the single board to be tested, modifies the IP address of the single board to be tested through a private protocol, and completes the network connection;
[0023] The network video recorder logs in to the account of the board to be tested through a private protocol and sends requests for audio and video data;
[0024] The board under test encapsulates the encoded audio and video streams according to the received audio and video data requests and sends them to the network video recorder in accordance with the agreed protocol.
[0025] The network video recorder parses the network packets to obtain the audio and video streams;
[0026] The network video recorder decodes the obtained audio stream and video stream to obtain the original audio and video;
[0027] The network video recorder transmits the decoded video to the monitor for display;
[0028] The network video recorder plays the decoded audio through the speaker.
[0029] The beneficial effects of the present invention compared with the prior art are: the test system constructed by the present invention can not only complete the automated testing of first-type test items such as single-board input voltage test, single-board input current test, single-board test point voltage test, single-board function signal conversion test, POE power supply test, network connectivity test, infrared lamp drive test, white light lamp drive test, etc., but also automatically complete the automated testing of second-type test items such as audio test and video test. The tester only needs to set up the test system, and the test can be completed automatically afterwards. No human participation is required in the test process, and multiple boards can be tested at the same time, which greatly improves the test efficiency.
[0030] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the following preferred embodiments are specifically cited and described in detail as follows. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0032] Figure 1 A hardware framework diagram of a camera single-board test system provided in a specific embodiment of the present invention;
[0033] Figure 2 A flowchart of a method for automatically testing a camera board according to a specific embodiment of the present invention;
[0034] Figure 3 This is a flow chart of automatic testing of the second type of test items in the camera board automatic testing method provided by a specific embodiment of the present invention. DETAILED DESCRIPTION
[0035] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0036] It will be understood that when used in this specification and the appended claims, the terms “comprises” and “comprising” indicate the presence of described features, integers, steps, operations, elements and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.
[0037] It should also be understood that the terms used in the present specification are only for the purpose of describing particular embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms unless the context clearly indicates otherwise.
[0038] It should be further understood that the term "and / or" used in the present description and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0039] The embodiment of the present invention provides a camera single board test system, such as Figure 1 As shown, it includes a single-board test fixture, a network hard disk video recorder and a display; the single-board test fixture is communicatively connected to the network hard disk video recorder, and the network hard disk video recorder is communicatively connected to the display; multiple single boards to be tested are installed on the single-board test fixture, and the single-board test fixture is used to automatically test the multiple single boards to be tested for first type test items, and the network hard disk video recorder is used to automatically test the multiple single boards to be tested for second type test items, and the test items and test results are visually displayed on the display.
[0040] In this embodiment, the first type of test items include single-board input voltage test, single-board input current test, single-board test point voltage test, single-board function signal conversion test, PoE power supply test, network connectivity test, infrared lamp drive test, white light lamp drive test, reset button test, TF card test, filter drive test, built-in MIC circuit test, and speaker output circuit test. The second type of test items include audio test and video test.
[0041] The main reasons for low test efficiency in existing technologies are the inability to automatically complete audio and video tests on individual boards, the inability to test multiple boards simultaneously, and the need for manual judgment of functional tests. However, the test system designed by the present invention incorporates a network hard disk video recorder (NVR) that can decode the audio and video data output by the test board and can decode multiple test boards simultaneously. This allows for automatic testing without manual judgment, greatly improving test efficiency.
[0042] In one embodiment, if Figure 1 As shown, the single-board test fixture includes a test motherboard; the test motherboard is provided with a main control template and a voltage acquisition module, the voltage acquisition module is electrically connected to the main control template, and the voltage acquisition module is used to collect the input voltage of the single board to be tested and the test point voltage of the single board to be tested.
[0043] In one embodiment, if Figure 1 As shown, the test motherboard is further provided with a current acquisition module, which is electrically connected to the main control template and is used to collect the input current of the single board to be tested.
[0044] In one embodiment, if Figure 1 As shown, the single board test fixture also includes a companion test fixture board; the companion test fixture board is electrically connected to the test motherboard, and the companion test fixture board is used to lead out the hardware interface of the single board to be tested.
[0045] In one embodiment, if Figure 1 As shown, the test fixture board is provided with an infrared lamp drive to alarm output module, a filter drive to alarm output module, a white light lamp drive to alarm output module and an alarm input to reset button signal module. The infrared lamp drive to alarm output module is used to output an alarm according to the results of the infrared lamp lighting test item, the filter drive to alarm output module is used to output an alarm according to the results of the filter drive test item, the white light lamp drive to alarm output module is used to output an alarm according to the structure of the white light lamp lighting test item, and the alarm input to reset button signal module is used to reset the button signal according to the alarm input and output test item.
[0046] In one embodiment, if Figure 1 As shown, the accompanying test fixture board is also provided with a TF card interface, a speaker interface, an audio interface and a network port; the TF card interface is used to insert a TF card, which is then transparently transmitted to the single board to be tested; the speaker interface is used to insert a speaker to play the audio output of the single board to be tested; the audio interface is used to output the audio of the network hard disk recorder to the audio input of the single board test fixture, which is then transparently transmitted to the single board to be tested; the network port is used for the network interface of the network hard disk recorder and the network port of the single board test fixture, which is then transparently transmitted to the single board to be tested.
[0047] In this embodiment, the test motherboard and the accompanying test fixture board are both provided with an RS485 interface for data exchange with the network hard disk video recorder. Of course, in other embodiments, an interface similar to the RS485 interface can also be used instead.
[0048] In this embodiment, the network video recorder is connected to the display via an HDMI interface.
[0049] In actual application, the test system also needs to use devices such as mouse and keyboard, so the mouse and keyboard are connected through the USB interface of the network hard disk recorder.
[0050] Different test items for the board under test are completed by different parts of the test system. For example, the board test fixture can complete tests including: board input voltage and current testing, board test point voltage testing, signal conversion for board functions, network, and TF card transparent transmission. Network DVR tests include: network communication, audio testing, alarm input and output signal detection, and image testing. Self-test items for the board under test include: TF card status, reset button status, etc.
[0051] The embodiment of the present invention also provides a camera single board automatic testing method, which uses the above-mentioned camera single board testing system to perform single board automatic testing, such as Figure 2 The method includes the following steps: S10-S40.
[0052] S10. Configure test items, where the test items include first-type test items and second-type test items.
[0053] Before step S10, the test system needs to be connected and put into working state, and then the system is powered on. The system power-on is mainly for the single-board test fixture and the network hard disk recorder. The display presents the visual interface of the network hard disk recorder. After the power-on is completed, the test items can be configured.
[0054] Since the models of the boards to be tested are different, the test items required for each board to be tested are also different. Therefore, the test items can be configured according to the models of the boards to be tested.
[0055] S20: Execute automatic testing of the first type of test items.
[0056] S30: Execute automatic testing of the second type of test items.
[0057] Before steps S20 and S30, after completing the configuration test items, the board to be tested needs to be placed into the board test fixture and ensure that the ejector pins of the board test fixture are in contact with the board to be tested. After this task is completed, the test can be started and the automatic test can be performed. During the test process, the board test fixture will first power on the board to be tested and scan the board barcode. After waiting for 40 seconds, the automatic test will begin. In this embodiment, the entire test process (including startup) for four boards only takes 120 seconds, which greatly improves test efficiency compared to existing technologies.
[0058] It should be noted that the automatic tests of the first type of test items and the second type of test items can be performed simultaneously or separately. Of course, in order to improve efficiency, they are performed simultaneously.
[0059] S40: Generate a test report based on the automatic test results of the first type test items and the second type test items, and upload the report to a display for visual display.
[0060] After the test is complete, the test results of all test items and the test report for the entire test can be viewed on the display. After the tester confirms the completion of the test report, all boards in the current batch are removed from the single board test fixture and classified, and then replaced with the next batch of boards for the next round of testing.
[0061] In one embodiment, step S30 specifically includes the following steps:
[0062] S301. Check whether the current MAC address of the board to be tested is the factory default.
[0063] S302: If it is the factory default MAC address, modify the MAC address of the board to be tested to a randomly generated MAC address.
[0064] S303: The network hard disk video recorder receives the broadcast data packet sent by the single board to be tested, modifies the IP address of the single board to be tested through a private protocol, and completes the network connection.
[0065] S304: The network hard disk video recorder logs in to the account of the board to be tested through a private protocol and sends a request for audio data and video data.
[0066] S305 , the board to be tested performs network packetization on the encoded audio stream and video stream according to the received audio data and video data requests and in accordance with the agreed protocol, and then sends the result to the network hard disk video recorder.
[0067] S306: The network hard disk video recorder parses the network packet to obtain the audio stream and the video stream.
[0068] S307: The network hard disk video recorder decodes the obtained audio stream and video stream to obtain the original audio and video.
[0069] S308: The network hard disk video recorder transmits the decoded video to the display and displays it.
[0070] S309: The network hard disk video recorder plays the decoded audio through a speaker.
[0071] The network hard disk recorder is used to realize the automated testing of audio and video of the single board, which greatly improves the testing efficiency.
[0072] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and such modifications or substitutions are intended to be within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the scope of protection of the claims.
Claims
1. A camera board automatic testing method, characterized in that: A camera single-board test system is used to perform single-board automatic testing, the camera single-board test system comprising a single-board test fixture, a network hard disk video recorder, and a display; the single-board test fixture is communicatively connected to the network hard disk video recorder, and the network hard disk video recorder is communicatively connected to the display; A plurality of single boards to be tested are mounted on the single board test fixture, the single board test fixture is used to automatically test the plurality of single boards to be tested for a first type of test item, the network hard disk recorder is used to automatically test the plurality of single boards to be tested for a second type of test item, and the display is used to visually display the test items and test results; the method comprises: configuring test items, wherein the test items include first-type test items and second-type test items; Execute automatic testing of the first type of test items; Execute automatic testing of the second type of test items; Generate a test report based on the automatic test results of the first type of test items and the second type of test items, and upload it to a display for visual display; The automatic testing of the second type of test items includes: Check whether the board under test currently has the factory default MAC address; If it is the factory default MAC address, change the MAC address of the board to be tested to a randomly generated MAC address; The network hard disk recorder receives the broadcast data packet sent by the single board to be tested, modifies the IP address of the single board to be tested through a private protocol, and completes the network connection; The network video recorder logs in to the account of the board to be tested through a private protocol and sends requests for audio and video data; The board under test encapsulates the encoded audio and video streams according to the received audio and video data requests and sends them to the network video recorder in accordance with the agreed protocol. The network video recorder parses the network packets to obtain the audio and video streams; The network video recorder decodes the obtained audio stream and video stream to obtain the original audio and video; The network video recorder transmits the decoded video to the monitor for display; The network video recorder plays the decoded audio through the speaker.
2. The camera board automatic testing method according to claim 1, characterized in that: The single-board test fixture includes a test motherboard; the test motherboard is provided with a main control template and a voltage acquisition module, the voltage acquisition module is electrically connected to the main control template, and the voltage acquisition module is used to collect the input voltage of the single board to be tested and the test point voltage of the single board to be tested.
3. The camera single board automatic testing method according to claim 2, characterized in that: The test motherboard is further provided with a current acquisition module, which is electrically connected to the main control template and is used to acquire the input current of the single board to be tested.
4. The camera single board automatic testing method according to claim 3, characterized in that: The single board test fixture further comprises a companion test fixture board; the companion test fixture board is electrically connected to the test motherboard, and the companion test fixture board is used to lead out the hardware interface of the single board to be tested.
5. The camera single board automatic testing method according to claim 4, characterized in that: The accompanying test fixture board is provided with an infrared lamp drive alarm output module, a filter drive alarm output module, a white light lamp drive alarm output module and an alarm input to reset button signal module. The infrared lamp drive alarm output module is used to output an alarm according to the results of the infrared lamp lighting test item, the filter drive alarm output module is used to output an alarm according to the results of the filter drive test item, the white light lamp drive alarm output module is used to output an alarm according to the structure of the white light lamp lighting test item, and the alarm input to reset button signal module is used to reset the button signal according to the alarm input and output test item.
6. The camera single board automatic testing method according to claim 5, characterized in that: The accompanying test fixture board is also provided with a TF card interface, a speaker interface, an audio interface and a network port; the TF card interface is used to insert a TF card, and then transparently transmit it to the single board to be tested; the speaker interface is used to insert a speaker to play the audio output of the single board to be tested; the audio interface is used to output the audio of the network hard disk recorder to the audio input of the single board test fixture, and then transparently transmit it to the single board to be tested; the network port is used for the network interface of the network hard disk recorder and the network port of the single board test fixture, and then transparently transmit it to the single board to be tested.
7. The camera single board automatic testing method according to claim 6, characterized in that: The test motherboard and the accompanying test fixture board are both provided with RS485 interfaces for data exchange with the network hard disk video recorder.
8. The camera board automatic testing method according to claim 1, characterized in that: The first type of test items include single board input voltage test, single board input current test, single board test point voltage test, single board function signal conversion test, POE power supply test, network connectivity test, infrared light drive test, white light drive test, reset button test, TF card test, filter drive test, built-in MIC circuit test and speaker output circuit test; the second type of test items include audio test and video test.
Citation Information
Patent Citations
Automatic test control system and method in production of POS machine
CN101739770A
Method, device and system for automatically upgrading configuration and detection of network camera
CN110365972A