| Due to the particularity of national defense science and industry electronic equipment products,in the process of comprehensive product screening and testing,a single device test method was used in the past.The process of power distribution and power failure during the test is cumbersome,and various performance indicators need to be completed within the specified time limit.In order to improve the parallelism of the test,reduce the labor cost,and reduce the error caused by human factors in the test process,a set of batch automatic test system design scheme is proposed to realize the batch automatic test function of the product.The main work contents are as follows:(1)Complete the hardware design of the test board.Taking STM32 as the control core and aiming at the requirements of the batch automatic test system,the components of the power supply circuit,sampling circuit,storage circuit,power distribution logic circuit,communication circuit and other circuits of the test board are selected.,Design the schematic diagram,and finally complete the PCB design from the schematic diagram.(2)Complete the software design of the test board.According to the hardware design,the driver design of each module is completed and the Lw IP protocol stack and Free RTOS are transplanted to the STM32 platform.Then,different tasks are designed according to the project requirements,which are used to realize various business logics of the batch test system.Aiming at the problem of the extra overhead caused by the frequent switching of time slice round robin scheduling algorithm,which is caused by many tasks of the same priority in the system,an improved STCF scheduling algorithm is implemented,which reduces the average task turnaround time and task switching overhead.(3)Complete the host computer design of the batch test system.First of all,the communication between TCP and UDP on the server side is realized,and the data packets received by the host computer are processed and analyzed.On this basis,functions such as test control function,information display function,software configuration and test table export function are realized.Then,by implementing the Log4 Net entity class,the multi-threaded logging mechanism is implemented.Finally,the resulting distribution file is processed into a single distributable,executable file using the ILMerge tool.Finally,the system is debugged jointly by software and hardware.The test results show that the batch test system can meet the project acceptance requirements on the basis of ensuring stable operation.The system has been applied in practical projects,and related technologies and methods can be extended to related fields,with certain practical applications.Engineering application value. |