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 above purpose, the invention is realized by the following technical scheme:
in a first aspect of the embodiment of the present invention, a method for testing a projection motherboard is provided, and the method is applied to a test terminal, and includes:
under the condition that the projection mainboard to be detected is detected to be connected into the test terminal through the test signal acquisition card, acquiring a first output signal generated by the projection mainboard to be detected according to a preset test signal input by the signal source equipment when the projection mainboard to be detected is connected into the signal source equipment through the test signal acquisition card, and acquiring configuration information which is preset according to identity information of the projection mainboard to be detected through the test signal acquisition card, wherein the first output signal at least comprises one of the following components: LVDS image signals, audio signals sent by the loudspeaker equipment corresponding to the projection main board to be detected, main board 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: configuring image data, configuring audio data, configuring voltage data, configuring signal path information;
comparing the target configuration data with the first USB signal according to the configuration test flow, generating a main board control instruction under the condition that the target configuration data is matched with the first USB signal, and sending the main board 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 a simulation key instruction of the projection main board to be tested according to the main board control instruction, and sending the serial communication instruction, the infrared remote control instruction and/or the simulation key instruction to the projection main board to be tested;
receiving a second USB signal fed back by the test signal acquisition card, determining a target feedback signal according to the main board control instruction, comparing the target feedback signal with the second USB signal to generate a main board test result, sending the main board test result to a cloud server so that the cloud server detects WIFI MAC address information and a main board serial number of the to-be-tested projection main board according to the main board 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 to-be-tested projection main board, and the response instruction signal is generated by the to-be-tested projection main board 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 target configuration data is an energy threshold, and comparing, according to the configuration test procedure, the target configuration data with the first USB signal includes:
under the condition that the configuration test flow is determined to be an audio signal test flow, carrying out Fourier transform on the audio format signals in the first USB signals to generate corresponding frequency domain signals;
performing audio filtering on the frequency domain signal to determine an audio energy value of the frequency domain signal in a preset frequency band;
the energy threshold value is compared with 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:
according to the configuration information, 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 preset left channel audio frequency and the preset right channel audio frequency, carrying out audio filtering on the frequency domain signal 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;
the first audio energy interval and the second audio energy interval are weighted to generate the audio energy value.
Optionally, the method further comprises:
generating a main board fault signal corresponding to the projection main board to be detected according to the configuration information under the condition that the target configuration data is not matched with the first USB signal;
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 embodiment of the present invention, a test system for a projection motherboard is provided, 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 output signals and configuration information of the projection mainboard to be tested, converting the output signals into USB signals which can be identified by the test terminal, and sending the USB signals 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 main board test results which are sent by the test terminal and correspond to the projection main boards to be tested one by one, and carrying out anomaly detection on a plurality of WIFI MAC address information and a plurality of main board serial numbers which correspond to the projection main boards to be tested according to the plurality of main board test results.
Optionally, the target configuration data is an energy threshold value; the cloud server is further configured to determine, according to the test results of the plurality of mainboards, the plurality of WIFI MAC address information and the plurality of mainboard serial numbers corresponding to the plurality of projection mainboards to be tested; comparing the WIFI MAC address information to determine whether repeated WIFI MAC address information exists, comparing the mainboard serial numbers to determine whether repeated mainboard serial numbers exist, and generating a mainboard fault signal to send to corresponding mobile equipment under the condition that the repeated WIFI MAC address information and/or the mainboard serial numbers exist.
In a third aspect of the embodiment of the present invention, there is provided a testing device for a projection motherboard, the device including:
the system comprises an acquisition module, a test signal acquisition card and a configuration module, wherein the acquisition module is used for acquiring a first output signal generated by the test signal acquisition card according to a preset test signal input by signal source equipment when the projection main board to be tested is connected to the test terminal through the test signal acquisition card, and acquiring configuration information pre-configured according to identity information of the projection main board 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 loudspeaker equipment corresponding to the projection main board to be detected, main board voltage signals, GPIO state signals and HDMI signals;
the determining module is used for receiving 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; 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: configuring image data, configuring audio data, configuring voltage data, configuring signal path information;
the transmitting module is used for comparing the target configuration data with the first USB signal according to the configuration test flow, generating a main board control instruction under the condition that the target configuration data is matched with the first USB signal, and transmitting the main board 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 a simulation key instruction of the projection main board to be tested according to the main board control instruction, and transmitting the serial communication instruction, the infrared remote control instruction and/or the simulation key instruction to the projection main board 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 main board control instruction, comparing the target feedback signal with the second USB signal to generate a main board test result, sending the main board test result to the cloud server, so that the cloud server detects WIFI MAC address information and a main board serial number of the projection main board to be tested according to the main board test result, and generating 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 main board to be tested, and the response instruction signal is generated by the projection main board 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 is configured to:
under the condition that the configuration test flow is determined to be an audio signal test flow, carrying out Fourier transform on the audio format signals in the first USB signals to generate corresponding frequency domain signals;
performing audio filtering on the frequency domain signal to determine an audio energy value of the frequency domain signal in a preset frequency band;
the energy threshold value is compared with the audio energy value.
In a fourth aspect of the embodiment 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 implement the steps of the method according to any one of the first aspects of the present invention.
In a fifth aspect of the embodiments of the present invention, there is provided a computer readable storage medium having stored thereon computer program instructions which when executed by a processor perform the steps of the method according to any of the first aspects 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 of obtaining a preset test signal input by signal source equipment through a test signal acquisition card when the to-be-tested projection mainboard is accessed to the signal source equipment, generating a first output signal and configuration information which are preconfigured by the to-be-tested projection mainboard, receiving a first USB signal and the configuration information, determining target configuration data according to the configuration 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, 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 to-be-tested projection mainboard according to the mainboard control instruction, sending the serial communication instruction, the infrared remote control instruction and/or the analog key instruction to the to-be-tested projection mainboard, 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 first USB signal, generating a cloud service serial number and a cloud service test result by a cloud service, and comparing the target feedback signal with the second USB signal to the test result. Therefore, the projection mainboard is detected through the test terminal, artificial judgment is omitted, error probability is reduced, automatic test efficiency is high, production efficiency is greatly improved, and production cost is reduced.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Fig. 1 is a flowchart of a testing method of a projection motherboard, referring to fig. 1, the method is applied to a test terminal, and the method includes the following steps.
Step S11, a first output signal generated by the projection main board to be tested according to a preset test signal input by the signal source device when the projection main board to be tested is accessed to the signal source device is obtained, and configuration information which is preset according to identity information of the projection main board to be tested is obtained through a test signal acquisition card.
In this embodiment, when it is detected that a projection main board to be tested is connected to the test terminal through a test signal acquisition card, a first output signal generated by the test signal acquisition card according to a preset test signal input by a signal source device when the projection main board to be tested is connected to the signal source device is obtained, and configuration information pre-configured according to identity information of the projection main board to be tested is obtained by the test signal acquisition card, where the first output signal at least includes one of: LVDS image signals, audio signals sent by the loudspeaker equipment corresponding to the projection main board to be detected, main board voltage signals, GPIO state signals and HDMI signals.
Step 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 configuration information sent by the test signal acquisition card and the first USB signal generated by the test signal acquisition card according to the first output signal 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: configuring image data, configuring audio data, configuring voltage data, configuring signal path information;
step S13, generating a main board control instruction under the condition that the target configuration data is matched with the first USB signal, and sending the main board 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 a simulated key instruction of the projection main board to be tested according to the main board control instruction, and sends the serial communication instruction, the infrared remote control instruction and/or the simulated key instruction to the projection main board to be tested.
In this embodiment, the target configuration data is compared with the first USB signal according to the configuration test procedure, and a main board control instruction is generated and sent to the test signal acquisition card when the target configuration data is matched with the first USB signal, 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 to-be-tested projection main board according to the main board control instruction, and sends the serial communication instruction, the infrared remote control instruction, and/or the analog key instruction to the to-be-tested projection main board.
Step S14, receiving the second USB signal, determining a target feedback signal according to the main board control instruction, comparing the target feedback signal with the second USB signal to generate a main board test result, and sending the main board test result to the cloud server.
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 main board control instruction, the target feedback signal is compared with the second USB signal to generate a main board test result, the main board test result is sent to a cloud server, so that the cloud server detects WIFI MAC address information and a main board serial number of the to-be-tested projection main board according to the main board test result, and a target test result is generated, where the second USB signal is generated by the test signal acquisition card according to a response instruction signal fed back by the to-be-tested projection main board, and the response instruction signal is generated by the to-be-tested projection main board 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 determining a corresponding target communication interface according to the serial communication instruction.
Optionally, in an embodiment, in the step of the foregoing step, the target configuration data is an energy threshold, and the comparing, according to the configuration test procedure, the target configuration data with the first USB signal includes:
under the condition that the configuration test flow is determined to be an audio signal test flow, carrying out Fourier transform on the audio format signals in the first USB signals to generate corresponding frequency domain signals;
performing audio filtering on the frequency domain signal to determine an audio energy value of the frequency domain signal in a preset frequency band;
the energy threshold value is compared with the audio energy value.
Optionally, in an embodiment, the step of performing audio filtering on the frequency domain signal to determine an audio energy value of the frequency domain signal in a preset frequency band includes:
according to the configuration information, 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 preset left channel audio frequency and the preset right channel audio frequency, carrying out audio filtering on the frequency domain signal 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;
the first audio energy interval and the second audio energy interval are weighted to generate the audio energy value.
Optionally, the method further comprises:
generating a main board fault signal corresponding to the projection main board to be detected according to the configuration information under the condition that the target configuration data is not matched with the first USB signal;
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 of obtaining a preset test signal input by signal source equipment through a test signal acquisition card when the to-be-tested projection mainboard is accessed to the signal source equipment, generating a first output signal and configuration information which are preconfigured by the to-be-tested projection mainboard, receiving a first USB signal and the configuration information, determining target configuration data according to the configuration 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, 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 to-be-tested projection mainboard according to the mainboard control instruction, sending the serial communication instruction, the infrared remote control instruction and/or the analog key instruction to the to-be-tested projection mainboard, 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 first USB signal, generating a cloud service serial number and a cloud service test result by a cloud service, and comparing the target feedback signal with the second USB signal to the test result. Therefore, the projection mainboard is detected through the test terminal, artificial judgment is omitted, error probability is reduced, automatic test efficiency is high, production efficiency is greatly improved, and production cost is reduced.
Fig. 2 is a block diagram of a test system for a projection motherboard according to the present invention, referring 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 output signals and configuration information of the projection mainboard to be tested, converting the output signals into USB signals which can be identified by the test terminal, and sending the USB signals 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 main board test results which are sent by the test terminal and correspond to the projection main boards to be tested one by one, and carrying out anomaly detection on a plurality of WIFI MAC address information and a plurality of main board serial numbers which correspond to the projection main boards to be tested according to the plurality of main board test results.
Optionally, in an embodiment, the target configuration data is an energy threshold, and the cloud server is further configured to determine, according to the multiple motherboard test results, the multiple WIFI MAC address information and the multiple motherboard serial numbers corresponding to the multiple projection motherboards to be tested; comparing the WIFI MAC address information to determine whether repeated WIFI MAC address information exists, comparing the mainboard serial numbers to determine whether repeated mainboard serial numbers exist, and generating a mainboard fault signal to send to corresponding mobile equipment under the condition that the repeated WIFI MAC address information and/or the mainboard serial numbers exist.
Fig. 3 is a flowchart of a testing method of 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: test signal acquisition card, test computer, cloud data processing center.
For example, the test signal acquisition card in this embodiment has the main functions of: 1. collecting an image signal in an LVDS (Low-VoltageDifferential Signaling, low voltage differential signal) 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 a main board, converting the voltage into a digital signal by an analog signal, and outputting the digital signal to a test computer; 4. collecting the state of a main board GPIO (General Purpose Input Output, general purpose input/output), converting the state into a USB signal and outputting the USB signal to a test computer; 5. receiving a test computer instruction, and converting the test computer instruction into an infrared remote control instruction and a simulated key instruction which can be received by a main board; 6. and receiving a test computer instruction, converting the test computer instruction into a serial port instruction which can be received by the main board, and communicating with each other.
The test computer is provided with automatic test upper computer software, and has the main functions of: 1. loading configuration information of the tested mainboard, and judging the mainboard test items and test results through configuration test items. 2. And controlling the whole flow of the automatic test 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 identifying 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 main board, the GPIO, each module of the main board and each signal channel of the main board are normal or not according to the configuration information. 6. Displaying the test procedure and the results thereof. 7. Uploading the test data to a cloud data processing center for archiving.
The cloud data processing center mainly comprises the following functions: 1. storing test data, integrating test data of a plurality of test devices, and uniformly storing; 2. and uniformly analyzing test results of all the devices, and checking whether the data has problems. Such as whether the WIFI MAC address is duplicated, whether the motherboard serial number is duplicated, etc. 3. If the test result data has problems and risks, the mail timely informs related personnel such as a test factory, production quality and the like, so that production personnel can timely process the problems. 4. And the test condition is displayed and inquired, so that the follow-up mainboard condition is convenient.
Fig. 4 is a block diagram of a testing apparatus for a projection motherboard, referring to fig. 4, the apparatus 100 includes: an acquisition module 110, a determination module 120, a transmission module 130, and a reception module 140;
the obtaining module 110 is configured to obtain, by using the test signal acquisition card, a first output signal generated by the projection main board to be tested according to a preset test signal input by the signal source device when the projection main board to be tested is connected to the signal source device, and obtain, by using the test signal acquisition card, configuration information configured in advance according to identity information of the projection main board to be tested, where the first output signal at least includes one of: LVDS image signals, audio signals sent by the loudspeaker equipment corresponding to the projection main board to be detected, main board voltage signals, GPIO state signals and HDMI signals;
the determining module 120 is configured to receive 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; 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: configuring image data, configuring audio data, configuring voltage data, configuring signal path information;
the sending module 130 is configured to compare the target configuration data with the first USB signal according to the configuration test procedure, generate a main board control instruction when the target configuration data is matched with the first USB signal, and send the main board 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 to-be-tested projection main board according to the main board control instruction, and send the serial communication instruction, the infrared remote control instruction, and/or the analog key instruction to the to-be-tested projection main board;
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, send the motherboard test result to a cloud server, so that the cloud server detects WIFI MAC address information and a motherboard serial number of the to-be-tested projection motherboard according to the motherboard test result, and 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 to-be-tested projection motherboard, and the response instruction signal is generated by the to-be-tested projection motherboard 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 determining a corresponding target communication interface according to the serial communication instruction.
Optionally, the sending module 130 includes:
the generating sub-module is used for carrying out Fourier transform on the audio format signals in the first USB signals to generate corresponding frequency domain signals under the condition that the configuration test flow is determined to be the audio signal test flow;
the determining submodule is used for carrying out 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 submodule is used for comparing the energy threshold value with the audio energy value.
Optionally, the determining submodule is configured to:
according to the configuration information, 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 preset left channel audio frequency and the preset right channel audio frequency, carrying out audio filtering on the frequency domain signal 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;
the first audio energy interval and the second audio energy interval are weighted to generate the audio energy value.
Optionally, the apparatus 100 further comprises a determination module for:
generating a main board fault signal corresponding to the projection main board to be detected according to the configuration information under the condition that the target configuration data is not matched with the first USB signal;
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 embodiment of the disclosure also provides an electronic device, including:
a memory having a computer program stored thereon;
and the processor is used for executing the computer program in the memory to realize the steps of the testing method of the projection mainboard.
Embodiments of the present disclosure also provide a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the method for testing a projection motherboard of any of the above.
With the above-described preferred embodiments according to the present application as a teaching, the related workers can make various changes and modifications without departing from the scope of the technical idea of the present application. The technical scope of the present application is not limited to the contents of the specification, and must be determined according to the scope of claims.
Although embodiments of the present invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made therein without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.