Disclosure of Invention
Aiming at the technical problem of low manual quality detection efficiency in the prior art, the invention provides a method, a device, a system, equipment and a medium for testing a projection mainboard.
In order to achieve the purpose, the invention is realized by the following technical scheme:
in a first aspect of the embodiments of the present invention, a method for testing a projection motherboard is provided, where the method is applied to a test terminal, and the method includes:
under the condition that the projection mainboard to be tested is detected to be accessed to the test terminal through the test signal acquisition card, acquiring a first output signal generated by the projection mainboard to be tested according to a preset test signal input by the signal source equipment when the projection mainboard to be tested is accessed to the signal source equipment through the test signal acquisition card, and acquiring configuration information configured in advance according to identity information of the projection mainboard to be tested through the test signal acquisition card, wherein the first output signal at least comprises one of the following: LVDS image signals, audio signals sent by the projection mainboard to be tested corresponding to the loudspeaker equipment, mainboard voltage signals, GPIO state signals and HDMI signals;
receiving a first USB signal generated by the test signal acquisition card according to the first output signal and the configuration information sent by the test signal acquisition card; determining a configuration test flow and a configuration test item of the projection mainboard to be tested according to the configuration information, and determining target configuration data corresponding to the configuration test item from a preset configuration database, wherein the target configuration data at least comprises one of the following data: configuring image data, audio data, voltage data and signal path information;
comparing the target configuration data with the first USB signal according to the configuration test flow, generating a mainboard control instruction under the condition that the target configuration data is matched with the first USB signal, sending the mainboard control instruction to the test signal acquisition card, so that the test signal acquisition card generates a serial communication instruction, an infrared remote control instruction and/or an analog key instruction of the projection mainboard to be tested according to the mainboard control instruction, and sends the serial communication instruction, the infrared remote control instruction and/or the analog key instruction to the projection mainboard to be tested;
receiving a second USB signal fed back by the test signal acquisition card, determining a target feedback signal according to the mainboard control instruction, comparing the target feedback signal with the second USB signal to generate a mainboard test result, and sending the mainboard test result to a cloud server so that the cloud server detects WIFI MAC address information and a mainboard serial number of the projection mainboard to be tested according to the mainboard test result to generate a target test result, wherein the second USB signal is generated by the test signal acquisition card according to a response instruction signal fed back by the projection mainboard to be tested, and the response instruction signal is generated by the projection mainboard to be tested according to the infrared remote control instruction and/or the simulation key instruction and is sent to the test signal acquisition card through the target communication interface when a corresponding target communication interface is determined according to the serial communication instruction.
Optionally, the comparing the target configuration data with the first USB signal according to the configuration test procedure includes:
under the condition that the configuration test process is determined to be an audio signal test process, performing Fourier transform on the audio format signal in the first USB signal to generate a corresponding frequency domain signal;
performing audio filtering on the frequency domain signal to determine an audio energy value of the frequency domain signal in a preset frequency band;
comparing the energy threshold value to the audio energy value.
Optionally, the audio filtering the frequency-domain signal to determine an audio energy value of the frequency-domain signal in a preset frequency band includes:
determining a preset left channel audio frequency and a preset right channel audio frequency of the projection main board to be tested according to the configuration information;
performing audio filtering on the frequency domain signal according to the preset left channel audio frequency and the preset right channel audio frequency to generate a first filtering signal and a second filtering signal;
determining a corresponding first audio energy interval according to the amplitude of the first filtering signal, and determining a corresponding second audio energy interval according to the amplitude of the second filtering signal;
weighting the first and second intervals of audio energy to generate the audio energy value.
Optionally, the method further comprises:
under the condition that the target configuration data are not matched with the first USB signal, generating a mainboard fault signal corresponding to the projection mainboard to be tested according to the configuration information;
and acquiring the identity information of the projection mainboard to be detected, and sending the mainboard fault signal to corresponding mobile equipment according to the identity information.
In a second aspect of the embodiments of the present invention, a system for testing a projection motherboard is provided, where the system includes: the system comprises a test signal acquisition card, a test terminal and a cloud server;
the test signal acquisition card is used for acquiring an output signal and configuration information of the projection mainboard to be tested, converting the output signal into a USB signal which can be identified by the test terminal, and sending the USB signal and the configuration information to the test terminal;
the test terminal is used for determining target configuration data of the projection mainboard to be tested according to the configuration information, detecting the USB signal according to the target configuration data to generate a mainboard test result, and sending the mainboard test result to the cloud server;
the cloud server is used for receiving a plurality of mainboard test results of the projection mainboards to be tested, which are sent by the test terminal, in a one-to-one correspondence manner, and carrying out anomaly detection on a plurality of WIFI MAC address information and a plurality of mainboard serial numbers corresponding to the projection mainboards to be tested according to the plurality of mainboard test results.
Optionally, the target configuration data is an energy threshold; the cloud server is further configured to determine, according to the test results of the plurality of main boards, the plurality of WIFI MAC address information and the plurality of main board serial numbers corresponding to the plurality of projection main boards to be tested; and comparing the plurality of WIFI MAC address information to determine whether repeated WIFI MAC address information exists, comparing the plurality of mainboard serial numbers to determine whether repeated mainboard serial numbers exist, and generating a mainboard fault signal and sending the mainboard fault signal to the corresponding mobile equipment under the condition that the repeated WIFI MAC address information and/or the repeated mainboard serial numbers exist.
In a third aspect of the embodiments of the present invention, a device for testing a projection motherboard is provided, where the device includes:
the acquisition module is used for acquiring a first output signal generated by the projection mainboard to be tested according to a preset test signal input by the signal source equipment when the projection mainboard to be tested is accessed to the signal source equipment through the test signal acquisition card under the condition that the projection mainboard to be tested is accessed to the test terminal through the test signal acquisition card, and acquiring configuration information configured in advance according to the identity information of the projection mainboard to be tested through the test signal acquisition card, wherein the first output signal at least comprises one of the following: LVDS image signals, audio signals sent by the projection mainboard to be tested corresponding to the loudspeaker equipment, mainboard voltage signals, GPIO state signals and HDMI signals;
the determining module is used for receiving a first USB signal generated by the test signal acquisition card according to the first output signal and the configuration information sent by the test signal acquisition card; determining a configuration test flow and a configuration test item of the projection mainboard to be tested according to the configuration information, and determining target configuration data corresponding to the configuration test item from a preset configuration database, wherein the target configuration data at least comprises one of the following data: configuring image data, audio data, voltage data and signal path information;
the sending module is used for comparing the target configuration data with the first USB signal according to the configuration test flow, generating a mainboard control instruction under the condition that the target configuration data is matched with the first USB signal, sending the mainboard control instruction to the test signal acquisition card, enabling the test signal acquisition card to generate a serial communication instruction, an infrared remote control instruction and/or an analog key instruction of the projection mainboard to be tested according to the mainboard control instruction, and sending the serial communication instruction, the infrared remote control instruction and/or the analog key instruction to the projection mainboard to be tested;
the receiving module is used for receiving a second USB signal fed back by the test signal acquisition card, determining a target feedback signal according to the mainboard control instruction, comparing the target feedback signal with the second USB signal to generate a mainboard test result, and sending the mainboard test result to the cloud server so that the cloud server detects WIFI MAC address information and a mainboard serial number of the projection mainboard to be tested according to the mainboard test result to generate a target test result, wherein the second USB signal is generated by the test signal acquisition card according to a response instruction signal fed back by the projection mainboard to be tested, and the response instruction signal is generated by the projection mainboard to be tested according to the infrared remote control instruction and/or the simulation key instruction and is sent to the test signal acquisition card through the target communication interface when a corresponding target communication interface is determined according to the serial communication instruction.
Optionally, the sending module is configured to:
under the condition that the configuration test process is determined to be an audio signal test process, performing Fourier transform on the audio format signal in the first USB signal to generate a corresponding frequency domain signal;
performing audio filtering on the frequency domain signal to determine an audio energy value of the frequency domain signal in a preset frequency band;
comparing the energy threshold value to the audio energy value.
In a fourth aspect of the embodiments of the present invention, there is provided an electronic device, including:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to perform the steps of the method of any one of the first aspect of the invention.
In a fifth aspect of the embodiments of the present invention, there is provided a computer-readable storage medium, on which computer program instructions are stored, which when executed by a processor implement the steps of the method according to any one of the first aspect of the present invention.
The invention provides a method, a device, a system, equipment and a medium for testing a projection mainboard. Compared with the prior art, the method has the following beneficial effects:
the method comprises the steps that a test signal acquisition card acquires a first output signal generated according to a preset test signal input by signal source equipment when the projection mainboard to be tested is connected to the signal source equipment, and configuration information pre-configured by the projection mainboard to be tested receives a first USB signal and the configuration information, target configuration data is determined according to the configuration information, according to a configuration test flow, the target configuration data is compared with the first USB signal, under the condition that the target configuration data is matched with the first USB signal, a mainboard control instruction is generated, the mainboard control instruction is sent to the test signal acquisition card, so that the test signal acquisition card generates a serial communication instruction, an infrared remote control instruction and/or an analog key instruction of the projection mainboard to be tested according to the mainboard control instruction, the serial communication instruction, the infrared remote control instruction and/or the analog key instruction are sent to the projection mainboard to be tested, a second USB signal fed back by the test signal acquisition card is received, a target feedback signal is determined according to the mainboard control instruction, the target feedback signal is compared with the second USB signal to generate a mainboard test result, the mainboard test result is sent to a cloud server to enable the mainboard to perform a test result and a target MAC (MAC) test server to perform a target test on the mainboard. Therefore, the projection main board is detected through the test terminal, the artificial judgment is omitted, the error probability is reduced, the automatic test efficiency is high, the production efficiency is greatly improved, and the production cost is reduced.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of a method for testing a projection motherboard, please refer to fig. 1, the method is applied to a test terminal, and the method includes the following steps.
Step S11, acquiring a first output signal generated by the projection mainboard to be tested according to a preset test signal input by the signal source equipment when the projection mainboard to be tested is connected to the signal source equipment, and acquiring configuration information pre-configured according to the identity information of the projection mainboard to be tested through a test signal acquisition card.
For example, in this embodiment, under the condition that it is detected that the projection motherboard to be tested is connected to the test terminal through the test signal acquisition card, the test signal acquisition card is used to acquire a first output signal generated according to a preset test signal input by the signal source device when the projection motherboard to be tested is connected to the signal source device, and the test signal acquisition card is used to acquire configuration information pre-configured according to identity information of the projection motherboard to be tested, where the first output signal at least includes one of: LVDS image signals, audio signals sent by the projection mainboard to be tested corresponding to the loudspeaker equipment, mainboard voltage signals, GPIO state signals and HDMI signals.
And S12, receiving the first USB signal and the configuration information, determining a configuration test flow and a configuration test item of the projection mainboard to be tested according to the configuration information, and determining target configuration data corresponding to the configuration test item from a preset configuration database.
For example, in this embodiment, the first USB signal generated by the test signal acquisition card according to the first output signal and the configuration information sent by the test signal acquisition card are received; determining a configuration test flow and a configuration test item of the projection mainboard to be tested according to the configuration information, and determining target configuration data corresponding to the configuration test item from a preset configuration database, wherein the target configuration data at least comprises one of the following data: configuring image data, audio data, voltage data and signal path information;
and S13, under the condition that the target configuration data is matched with the first USB signal, generating a mainboard control instruction, and sending the mainboard control instruction to the test signal acquisition card, so that the test signal acquisition card generates a serial communication instruction, an infrared remote control instruction and/or an analog key instruction of the projection mainboard to be tested according to the mainboard control instruction, and sends the serial communication instruction, the infrared remote control instruction and/or the analog key instruction to the projection mainboard to be tested.
For example, in this embodiment, according to the configuration test process, the target configuration data is compared with the first USB signal, a motherboard control instruction is generated when the target configuration data is matched with the first USB signal, and the motherboard control instruction is sent to the test signal acquisition card, so that the test signal acquisition card generates a serial communication instruction, an infrared remote control instruction, and/or an analog key instruction of the projection motherboard to be tested according to the motherboard control instruction, and sends the serial communication instruction, the infrared remote control instruction, and/or the analog key instruction to the projection motherboard to be tested.
And S14, receiving the second USB signal, determining a target feedback signal according to the mainboard control instruction, comparing the target feedback signal with the second USB signal to generate a mainboard test result, and sending the mainboard test result to the cloud server.
For example, in this embodiment, a second USB signal fed back by the test signal acquisition card is received, a target feedback signal is determined according to the motherboard control instruction, the target feedback signal is compared with the second USB signal to generate a motherboard test result, and the motherboard test result is sent to a cloud server, so that the cloud server detects WIFI MAC address information and a motherboard serial number of the projection motherboard to be tested according to the motherboard test result, and generates a target test result, where the second USB signal is generated by the test signal acquisition card according to a response instruction signal fed back by the projection motherboard to be tested, and the response instruction signal is generated by the projection motherboard to be tested according to the infrared remote control instruction and/or the analog key instruction, and is sent to the test signal acquisition card through the target communication interface when a corresponding target communication interface is determined according to the serial communication instruction.
Optionally, in an embodiment, the step of comparing the target configuration data with the first USB signal according to the configuration test procedure includes:
under the condition that the configuration test process is determined to be an audio signal test process, performing Fourier transform on the audio format signal in the first USB signal to generate a corresponding frequency domain signal;
performing audio filtering on the frequency domain signal to determine an audio energy value of the frequency domain signal in a preset frequency band;
comparing the energy threshold value to the audio energy value.
Optionally, in an embodiment, the audio filtering the frequency-domain signal to determine an audio energy value of the frequency-domain signal in a preset frequency band includes:
determining a preset left channel audio frequency and a preset right channel audio frequency of the projection main board to be tested according to the configuration information;
performing audio filtering on the frequency domain signal according to the preset left channel audio frequency and the preset right channel audio frequency to generate a first filtering signal and a second filtering signal;
determining a corresponding first audio energy interval according to the amplitude of the first filtering signal, and determining a corresponding second audio energy interval according to the amplitude of the second filtering signal;
weighting the first and second intervals of audio energy to generate the audio energy value.
Optionally, the method further comprises:
under the condition that the target configuration data are not matched with the first USB signal, generating a mainboard fault signal corresponding to the projection mainboard to be tested according to the configuration information;
and acquiring the identity information of the projection mainboard to be detected, and sending the mainboard fault signal to corresponding mobile equipment according to the identity information.
The method comprises the steps that a test signal acquisition card acquires a first output signal generated according to a preset test signal input by signal source equipment when the projection mainboard to be tested is connected to the signal source equipment, and configuration information pre-configured by the projection mainboard to be tested receives a first USB signal and the configuration information, target configuration data is determined according to the configuration information, according to a configuration test flow, the target configuration data is compared with the first USB signal, under the condition that the target configuration data is matched with the first USB signal, a mainboard control instruction is generated, the mainboard control instruction is sent to the test signal acquisition card, so that the test signal acquisition card generates a serial communication instruction, an infrared remote control instruction and/or an analog key instruction of the projection mainboard to be tested according to the mainboard control instruction, the serial communication instruction, the infrared remote control instruction and/or the analog key instruction are sent to the projection mainboard to be tested, a second USB signal fed back by the test signal acquisition card is received, a target feedback signal is determined according to the mainboard control instruction, the target feedback signal is compared with the second USB signal to generate a mainboard test result, the mainboard test result is sent to a cloud server to enable the mainboard to perform a test result and a target MAC (MAC) test server to perform a target test on the mainboard. Therefore, the projection main board is detected through the test terminal, manual judgment is omitted, the error probability is reduced, the automatic test efficiency is high, the production efficiency is greatly improved, and the production cost is reduced.
Fig. 2 is a structural diagram of a testing system for a projection motherboard according to the present invention, please refer to fig. 2, the system includes: the system comprises a test signal acquisition card, a test terminal and a cloud server;
the test signal acquisition card is used for acquiring an output signal and configuration information of the projection mainboard to be tested, converting the output signal into a USB signal which can be identified by the test terminal, and sending the USB signal and the configuration information to the test terminal;
the test terminal is used for determining target configuration data of the projection mainboard to be tested according to the configuration information, detecting the USB signal according to the target configuration data to generate a mainboard test result, and sending the mainboard test result to the cloud server;
the cloud server is used for receiving a plurality of mainboard test results of the projection mainboards to be tested, which are sent by the test terminal, in a one-to-one correspondence manner, and carrying out anomaly detection on a plurality of WIFI MAC address information and a plurality of mainboard serial numbers corresponding to the projection mainboards to be tested according to the plurality of mainboard test results.
Optionally, in an embodiment, the target configuration data is an energy threshold value, and the cloud server is further configured to determine, according to the test results of the multiple main boards, the multiple pieces of WIFI MAC address information and the multiple main board serial numbers corresponding to the multiple projection main boards to be tested; and comparing the plurality of WIFI MAC address information to determine whether repeated WIFI MAC address information exists, comparing the plurality of mainboard serial numbers to determine whether repeated mainboard serial numbers exist, and generating a mainboard fault signal and sending the mainboard fault signal to the corresponding mobile equipment under the condition that the repeated WIFI MAC address information and/or the repeated mainboard serial numbers exist.
Fig. 3 is a flowchart of a testing method for a projection motherboard according to the present invention, please refer to fig. 3, the method is applied in a testing system, the testing system includes: the system comprises a test signal acquisition card, a test computer and a cloud data processing center.
For example, the test signal acquisition card in this embodiment mainly functions as follows: 1. acquiring an image signal in an LVDS (Low-Voltage differential Signaling) format, converting the image signal into a USB signal and outputting the USB signal to a test computer; 2. collecting sound signals of a main board loudspeaker, converting the sound signals into USB signals and outputting the USB signals to a test computer; 3. collecting the voltage of the mainboard, converting the analog signal into a digital signal and outputting the digital signal to a test computer; 4. collecting the state of a GPIO (General Purpose Input/Output) of a mainboard, converting the state into a USB signal and outputting the USB signal to a test computer; 5. receiving a computer testing instruction, and converting the computer testing instruction into an infrared remote control instruction and an analog key instruction which can be received by the mainboard; 6. and receiving a test computer instruction, converting the test computer instruction into a serial port instruction which can be received by the mainboard, and carrying out mutual communication.
The testing computer is provided with automatic testing upper computer software and has the main functions of: 1. and loading the configuration information of the tested mainboard, and judging the mainboard test item and the test result by configuring the test item. 2. And controlling the whole automatic test process according to the test configuration information. 3. And identifying the image information of the test signal acquisition card, comparing the image information with the configured image, and judging whether the picture is normal or not. 4. And recognizing the sound signal of the test signal acquisition card, comparing the sound signal with the configured sound, and judging whether the sound is normal or not. 5. And comparing whether the voltage of the mainboard, the GPIO, each module of the mainboard and each signal channel of the mainboard are normal or not according to the configuration information. 6. And displaying the test process and the result thereof. 7. And uploading the test data to a cloud data processing center for archiving.
The cloud data processing center has the main functions as follows: 1. storing test data, integrating the test data of a plurality of test devices, and storing uniformly; 2. and uniformly analyzing the test results of all the devices, and checking whether the data have problems. For example, whether the WIFI MAC address is duplicated, whether the main board serial number is duplicated, and the like. 3. If the test result data has problems and risks, the mails timely inform relevant personnel such as a test factory, production quality and the like, so that the production personnel can timely deal with the problems. 4. And the test condition is displayed and inquired, so that the subsequent tracking of the mainboard condition is facilitated.
Fig. 4 is a block diagram of a testing apparatus for a projection motherboard according to the present invention, referring to fig. 4, the apparatus 100 includes: an acquisition module 110, a determination module 120, a sending module 130 and a receiving module 140;
an obtaining module 110, configured to, when it is detected that the projection motherboard to be tested is connected to the test terminal through a test signal acquisition card, obtain, through the test signal acquisition card, a first output signal generated according to a preset test signal input by the signal source device when the projection motherboard to be tested is connected to the signal source device, and obtain, through the test signal acquisition card, configuration information pre-configured according to identity information of the projection motherboard to be tested, where the first output signal at least includes one of: LVDS image signals, audio signals sent by the projection mainboard to be tested corresponding to the loudspeaker equipment, mainboard voltage signals, GPIO state signals and HDMI signals;
a determining module 120, configured to receive a first USB signal generated by the test signal acquisition card according to the first output signal and the configuration information sent by the test signal acquisition card; determining a configuration test flow and a configuration test item of the projection mainboard to be tested according to the configuration information, and determining target configuration data corresponding to the configuration test item from a preset configuration database, wherein the target configuration data at least comprises one of the following data: configuring image data, audio data, voltage data and signal path information;
a sending module 130, configured to compare the target configuration data with the first USB signal according to the configuration test flow, generate a motherboard control instruction under the condition that the target configuration data is matched with the first USB signal, send the motherboard control instruction to the test signal acquisition card, so that the test signal acquisition card generates a serial communication instruction, an infrared remote control instruction, and/or an analog key instruction of the projection motherboard to be tested according to the motherboard control instruction, and sends the serial communication instruction, the infrared remote control instruction, and/or the analog key instruction to the projection motherboard to be tested;
the receiving module 140 is configured to receive a second USB signal fed back by the test signal acquisition card, determine a target feedback signal according to the motherboard control instruction, compare the target feedback signal with the second USB signal to generate a motherboard test result, and send the motherboard test result to the cloud server, so that the cloud server detects WIFI MAC address information and a motherboard serial number of the projection motherboard to be tested according to the motherboard test result to generate a target test result, where the second USB signal is generated by the test signal acquisition card according to a response instruction signal fed back by the projection motherboard to be tested, and the response instruction signal is generated by the projection motherboard to be tested according to the infrared remote control instruction and/or the analog key instruction, and is sent to the test signal acquisition card through the target communication interface when a corresponding target communication interface is determined according to the serial communication instruction.
Optionally, the sending module 130 includes:
the generating submodule is used for carrying out Fourier transform on the audio format signal in the first USB signal to generate a corresponding frequency domain signal under the condition that the configuration testing process is determined to be an audio signal testing process;
the determining submodule is used for performing audio filtering on the frequency domain signal so as to determine an audio energy value of the frequency domain signal in a preset frequency band;
and the execution sub-module is used for comparing the energy threshold value with the audio energy value.
Optionally, a determination submodule for:
determining a preset left channel audio frequency and a preset right channel audio frequency of the projection main board to be detected according to the configuration information;
performing audio filtering on the frequency domain signal according to the preset left channel audio frequency and the preset right channel audio frequency to generate a first filtering signal and a second filtering signal;
determining a corresponding first audio energy interval according to the amplitude of the first filtering signal, and determining a corresponding second audio energy interval according to the amplitude of the second filtering signal;
weighting the first and second intervals of audio energy to generate the audio energy value.
Optionally, the apparatus 100 further comprises a determining module, configured to:
under the condition that the target configuration data are not matched with the first USB signal, generating a mainboard fault signal corresponding to the projection mainboard to be tested according to the configuration information;
and acquiring the identity information of the projection mainboard to be detected, and sending the mainboard fault signal to corresponding mobile equipment according to the identity information.
An embodiment of the present disclosure further provides an electronic device, including:
a memory having a computer program stored thereon;
a processor, configured to execute the computer program in the memory to implement the steps of any one of the above methods for testing a projection motherboard.
The embodiment of the disclosure also provides a computer readable storage medium, on which computer program instructions are stored, and the program instructions, when executed by a processor, implement the steps of the method for testing the projection motherboard according to any one of the above-mentioned embodiments.
In light of the foregoing description of the preferred embodiments according to the present application, it is to be understood that various changes and modifications may be made without departing from the spirit and scope of the invention. The technical scope of the present application is not limited to the content of the specification, and must be determined according to the scope of the claims.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.