Disclosure of Invention
The invention aims to solve the technical problem of realizing a vehicle-mounted multimedia test system which has strong universality, high inspection efficiency and stable and reliable work.
In order to achieve the purpose, the invention adopts the technical scheme that: the utility model provides a test system for on-vehicle multimedia equipment, is equipped with the anchor clamps of fixed equipment under test and the programmable power supply for the system power supply on the workstation, the output of programmable power supply passes through the power cord and connects IO cardboard, test box, equipment under test's input, the industrial computer is connected to IO cardboard communication end, equipment under test is connected to the control end of IO cardboard.
The output end of the programmable power supply is connected with the input ends of the multimeter and the oscilloscope through power lines, the multimeter and oscilloscope test heads are connected with the tested equipment, and the test signal output ends of the multimeter and the oscilloscope are connected with the industrial personal computer through signal lines.
The industrial personal computer is connected with the test box, and the test box is directly connected with the tested equipment and/or is connected with the tested equipment through the CAN tool.
The utility model discloses a protection cavity, including anchor clamps, protection cavity, IO integrated circuit board, display, the anchor clamps are equipped with the protection cavity of fixing on the workstation outward, three side doors about before the protection cavity, protection cavity top is equipped with the display that connects the IO integrated circuit board and be used for observing the state, the industrial computer of steerable peripheral equipment is connected to the display.
The protection cavity is internally fixed with a mechanical arm and a camera for shooting the working condition of the equipment to be tested, and the industrial personal computer is connected with the mechanical arm and the camera.
The test method based on the test system for the vehicle-mounted multimedia equipment comprises the following steps:
1) placing the tested equipment in a clamp, and starting an industrial personal computer after connecting a program control power supply;
2) the industrial personal computer controls the IO card board to initialize the tested equipment in the script operation process;
3) running the script;
4) sending the test report to an industrial personal computer;
5) checking whether an unexecuted script exists, if not, returning to 3), and if so, ending the test;
6) and (5) exiting the system.
And 3), controlling the camera to record working condition video or photo information of the tested equipment and transmit the working condition video or photo information to the industrial personal computer, and controlling the manipulator to execute key touch operation matched with the operation of the script.
And 2), configuring the script file on the UI interface of the upper computer program in advance.
In the step 3), the running script comprises the following steps:
a. translating the test case into script voice according to the rule;
b. loading and checking grammar by using a terminal program;
c. debugging the Debug function;
d. the start position is selected to execute the script.
The multimedia test system increases the test coverage, improves the test efficiency and the test accuracy, effectively solves the problem that the manual test is insensitive to weak variation, can set various test conditions which cannot be achieved manually, and has strong universality.
Detailed Description
The following description of the embodiments with reference to the drawings is provided to describe the embodiments of the present invention, and the embodiments of the present invention, such as the shapes and configurations of the components, the mutual positions and connection relationships of the components, the functions and working principles of the components, the manufacturing processes and the operation and use methods, etc., will be further described in detail to help those skilled in the art to more completely, accurately and deeply understand the inventive concept and technical solutions of the present invention.
A test system for vehicle-mounted multimedia equipment is shown in figure 1, a workbench for bearing and integrating equipment required by each subsystem (particularly, the workbench is provided with a front left side door and a front right side door, a display is arranged above the front side to form a protection cavity, a clamp special for fixing tested equipment is arranged in the protection cavity), an industrial control computer is fixed on the workbench, a program control power supply for providing power output supplies power for system equipment, an oscilloscope for monitoring the state of electronic and electric appliances of a product and a test head of a universal meter are connected with the tested equipment, an industrial personal computer is connected with a test box, the test box is connected with a CAN tool, the test box is used for digital signal input, analog signal input and a CAN communication interface, the industrial personal computer is communicated with the tested equipment through the test box and/or the CAN tool, a camera for collecting the state of the product and a robot (manipulator) for moving the camera are, the manipulator can be used for performing touch operation on the equipment to be tested and controlling the board card of the tri-state IO to be connected with the equipment to be tested.
The system is a totally-enclosed integrated workstation; the robot is combined with a camera to realize automatic mobile photographing; HMI identification analysis method based on VisionPro and Opencv; based on a flexible combination configuration mode of a software platform and a formalized script language, multiple test working conditions are realized, and a hardware-in-loop (HIL) test environment of multimedia system interaction is realized; highly modular to support its expandability.
The system works in the process of operating the script, the script can be loaded in advance by the aid of an advanced loading mechanism, parameter checking/matching is performed by means of intelligent inference before the script runs, the parameter is loaded into the memory through a data structure, and the script does not need to be loaded again when running; the process-oriented programming feature allows programming to be done completely per the test procedure, increasing the readability of the script; the running mode is driven by data change, namely running according to the sequence of data change (such as jump of CAN signal) in the execution process, triggering an event, sending a message and executing a script
When preparing for the preselection of the script, debugging is needed when the terminal program runs on the PC, as shown in FIG. 2, the method comprises the following steps:
static analysis and error check of the script are carried out, and the script is loaded into a UI (user interface);
a single script statement is taken as a minimum debugging unit, so that breakpoints can be flexibly set;
monitoring the value of the key information;
recording debugging data and saving Log;
when the script is executed, as shown in fig. 3, the method includes the following steps:
step 1. particularly, the script language designs the 'macro' function, which can integrate a series of repeated statements into 'macro' and is convenient for calling for a plurality of times
Step2 script lightweight integration into test case, can be expressed as series Excel data starting with column header, which makes it very flexible to enable/disable and locate when loaded by software
Step3, the debugging panel can be single-Step debugged, and the error position can be fixed quickly by matching the output of data monitoring
Step4, positioning according to the use case item when loading the script, partitioning the script of each use case, increasing the flexibility of script execution
As shown in fig. 4, the following solutions are currently commonly used for testing and automating the vehicle-mounted multimedia device:
depth customization: that is, a software/hardware solution is customized for a certain product, and the singleness of the method is too strong, so that the diversity and the iteration speed of the current vehicle-mounted multimedia equipment are not suitable;
an automated testing scheme based on an NI platform is characterized in that each module is specially subjected to software programming according to the characteristics of a product based on Labview and other integrated tools to generate a specific sub VI module. The method increases the participation difficulty of the tester and the project maintenance cost;
the test software part is customized, namely a part of configuration interfaces are opened in the software for a tester to use, and the tester changes the software after finishing configuring a certain product. This approach can result in a substantial increase in time and communication costs;
as shown in fig. 5, compared with other existing solutions, the solution of the automated testing system provided by the present invention provides a software and hardware system with strong expansibility, and a script language is matched to make script development work simpler and lighter, and meanwhile, a flexible software architecture makes the system adaptable to various multimedia devices, providing various testing environments, and has high flexibility and low maintenance cost.
As shown in fig. 6, the specific testing process includes the following steps:
when the software and hardware are in normal state, the tested object is placed in the clamp, and the industrial personal computer can be started after the tested object is connected with the workstation for power supply;
entering a test environment, wherein other hardware equipment can be initialized by an industrial personal computer in the script operation process through a board card, and the step can enter an upper computer program UI interface only after a script file is configured;
the full-automatic test work can be started after the script is run, and the test report is checked and whether a new test is executed or not is intervened after the test;
starting a new round of test, namely realizing various/multifunctional tests by replacing the script or configuring different modules in the same script;
in the test, manual intervention is not needed in the process, and the test work (including but not limited to power-on, camera position moving, picture shooting, signal sending, state monitoring, log recording, report output and other actions) is automatically carried out by the workstation;
finishing the test, namely finishing the test of the round when all the test scripts are executed, acquiring the automatically generated test report and the process data, and then quitting the system;
the invention has been described above with reference to the accompanying drawings, it is obvious that the invention is not limited to the specific implementation in the above-described manner, and it is within the scope of the invention to apply the inventive concept and solution to other applications without substantial modification.