| Unimaginable consequences are often caused by internal defects in the workpiece.In order to avoid the occurrence of accidents,the internal defects of the workpiece are generally detected by the ultrasonic flaw detector in the industry.And the performance of traditional ultrasonic flaw detectors in graphic images,humancomputer interaction,etc.can be improved by using Android and USB OTG.Therefore,an Android-based ultrasonic flaw detector software solution is proposed in this thesis,which can cooperate with hardware to detect workpieces in real time,evaluate workpiece quality and ensure application security.According to the software function correlation of ultrasonic flaw detector,it is divided into four modules: data communication,data display,human-computer interaction and other functions.The functions of each module is detailedly analyzed,designed and implemented in this thesis.The main research contents are as follows.Firstly,high-speed data communication between the software and the hardware of ultrasonic flaw detector is realized.By designing multi-thread data communication method based on USB OTG technology,data downlink and data uplink can be simultaneously implemented,thus improving software operation efficiency and data transmission rate.Secondly,the real-time rendering method of A-scan,B-scan and C-scan is proposed.Through the data processing,timer setting and mutable bitmap setting,the real-time display of ultrasonic graphic images is achieved.Thirdly,the human-computer interaction mode is optimized.The user interface is designed by analyzing the layout characteristics of the existing ultrasonic flaw detector software and the usage habits of the Android device.Different functions are realized by monitoring different click events.Through the above two ways,making the software more user-friendly.Finaly,the function of the ultrasonic flaw detector has been expanded.By analyzing the application requirements and Android features of the flaw detector,the functions of data storage and online upgrade have been expanded to provide convenience for the inspectors.The Android-based ultrasonic flaw detector software is tested and verified in this thesis.The test results show that the software frame rate is 62.5fps,the data transmission rate with the hardware is up to 125 Mbps,the compatibility test result of the software is 95%,the average CPU occupancy value is 4.28%,the average memory occupancy is 127 MB,the average traffic consumption value is 1100 KB,and the average GPU occupancy value is 4.19%.Each performance and function meets the design specifications.The ultrasonic flaw detector software is realized by Android can not only improve portability and graphic image processing capability,but also optimize human-computer interaction mode and add online upgrade functions.Therefore,this design has a certain practical value. |