In the field of modern intelligent manufacturing,industrial vision inspection systems are widely used in many manufacturing processes,such as product production,on-site monitoring,and quality management.In the industrial visual inspection system,the control terminal acts as the coordinator of the entire device and the only human-computer interaction interface,which is the concentrated expression of the whole "intelligence".The design of the control terminal directly affects the performance and reliability of the entire detection system.The technical research on the control terminal has great significance for the industrial visual inspection system and even the entire intelligent manufacturing field.In recent years,Android system has been increasingly used in industrial control terminals due to its excellent human-computer interaction performance.But at this stage,because Android is an emerging operating system,most of the control terminal software based on Android system is designed to achieve specific functions.These softwares do not have a clear architectural model,and generally have shortcomings such as low development efficiency,high software coupling,and poor reliability.In view of the above problems,this paper has carried out research on software architecture and performance optimization scheme within the framework of Android system,and the results are as follows:First of all,in order to clearly control the location of the terminal function,this paper decomposes the problem domain of the detection system.Then,according to the software requirements,an improved MVC architecture mode is proposed to ensure the overall reliability,reusability and scalability of the software.The architecture decouples the traditional MVC pattern based on the hierarchical model idea.Experiments show that the architecture meets the software quality requirements of industrial control terminals.This paper proposes a task scheduling technology based on Handler.The task scheduling technology adopts real-time system task organization criteria to decompose terminal functions into different types of tasks.In order to achieve concurrency and real-time,the task scheduling technology uses the sub-thread asynchronous communication technology and message queue management technology of Android system.Experiments show that the task scheduling technology performs well in the terminal software and meets the needs of terminal task processing performance.In order to improve the performance of the software interface,this paper analyzes the reasons that affect the performance of the terminal software interface.In response to these problems,this paper carries out research on the optimization of terminal software interface performance from two aspects: main thread optimization and interface layout optimization.In response to these problems,this paper studies the optimization of terminal software interface performance from the perspective of main thread optimization and interface layout optimization.Under the premise of not replacing hardware devices,this paper has carried out the maximum performance mining of terminal software interface performance.The experiment proves that the optimized terminal interface performance is good and no longer becomes a bottleneck restricting the overall performance of the software.This paper relies on a specific detection system to design a software architecture for Android terminals.Through in-depth analysis of the Android application framework,this paper studies some key technical issues in the design of terminal software.For the similar software design and development,the solution ideas and technical solutions proposed in this paper have certain reference value. |