| This subject is designed based on the water conservancy scientific and technological mainproject of the Water Ministry -- study on the system of computer network measuring andcontrolling in irrigated district. According to the condition of Zhulu County, Hebei Province, the author applies the real-time operating system μC/OS-Ⅱ to the study of Water Long-Distance Monitoring and Forecasting System in Irrigation District.This system regards PSTN as communication channels and realizes data long-distance transmitting, saving and processing. The embedded data collecting system in Monitoring site adopts a new design idea and utilizes real-time operating system μC/OS-Ⅱ to carry on switching and communicating between the tasks, then ensures the real-time character, dependability and stability of the system. The system uses the embedded microprocessor S3C44B0X to control the sensor to gather water data, then processes, saves and displays them. At the same time it waits to be connected with PC at the control center, receives command-string, then uses MODEM to send the corresponding data with predefined communication protocol to PC through PSTN. The information management system in PC then puts the received data into the corresponding table orderly for user's inquiry and analyses in the future, thus it realizes water consumption of irrigation district to observe and predict in real time and scientific management.This thesis first analyses the demand of the system, confirms system function goals and required performance, then puts forward the designing overall frame and divides function modules. It also introduces the hardware design and software programming of the embedded data collecting system based on uC/OS- II and develops software method of the PC information management system in detail, then puts forward some methods to improve systematic dependability. Last it introduces the debugging circumstances, and suggests the idea of the system in the further contents and directions. |