| The ultrasonic drilling monitor is used for the measurement of drilling holes in the foundation construction of large buildings.The quality of holes will have a great impact on the quality of pile after pouring concrete,thus affecting the stability of the whole building structure.Therefore,the measurement accuracy of ultrasonic drilling monitor plays a very important role in the construction process of large buildings and it also puts forward higher requirements for the performance of embedded real-time operating system used in the system.With the popularity of 5G technology and Internet of things(IOT),embedded system is gradually applied to all aspects of life.Real time operating system(RTOS)is widely used in embedded system because of its real-time,high reliability,strong specificity,easy to cut and transplant.Scheduling algorithm is the key to ensure the performance of real-time operating system.Due to the complexity of system application scenarios,a single scheduling algorithm can not make the system performance optimal in all scenarios.How to improve the existing real-time operating system and extend its scheduling algorithm without affecting the performance of the original system,so that developers can choose a more appropriate scheduling algorithm in different scenarios is particularly important.In view of the above problems,this thesis implements the ultrasonic drilling monitor measurement system and mixed scheduling algorithm.The system completes the measurement function of the ultrasonic drilling monitor and the mixed scheduling algorithm expands the task scheduling function of the real-time operating system.It has better execution performance when there are periodic tasks and aperiodic tasks in the embedded system at the same time.The main work of this thesis is as follows: firstly,the design scheme of high frequency serial communication module is given while the function of ultrasonic sidewall measurement system is realized.This thesis analyzes the relationship between bit error ratio and communication protocol in the process of data transmission,which provides a theoretical basis for the subsequent scheme selection.Secondly,the task scheduling kernel of μC/OS-Ⅲreal-time operating system is improved.Two hybrid scheduling algorithms,MEDF-H and MEDF-T,are proposed.MEDF-H algorithm divides the periodic task and aperiodic task in the system under the condition of ensuring the scalability of the original system.It extends the system scheduling algorithm and facilitates the schedulability analysis of system tasks.MEDF-T algorithm is more specific,which can greatly improve the performance of ultrasonic drilling monitor measurement system and provide design ideas for the use of similar scenes.For the problems encountered in the design process of the measurement system,task timeout processing,system schedulability analysis,the corresponding solutions are also given in this thesis.Finally,the man-machine interface and operation flow of the measurement system are introduced and the processing method of the measured drilling data and the drilling 3D map drawn after the test are given.This thesis verifies the performance of the mixed scheduling algorithm on the hardware platform based on Cortex-M4 kernel through experiments.The experimental results show that the mixed scheduling algorithm improves the task scheduling function of RTOS and the task completion rate of the mixed scheduling algorithm is 6.81% higher than that of the original scheduling algorithm in μC/OS-Ⅲ RTOS,which indicates that the mixed scheduling algorithm has good performance on the hardware platform based on low power consumption. |