| In recent years,with the adjustment of China’s agricultural structure,the aquaculture industry has gradually evolved from the traditional artificial breeding mode to the informatization and intensive cultivation mode.Aquaculture water quality monitoring has become a key link in intensive farming.In order to improve the current status of aquaculture water quality monitoring in China,an on-line monitoring system for aquaculture water quality based on fog calculation was designed to monitored and record the important aquaculture water quality such as pH,water temperature,dissolved oxygen and water level in the aquaculture environment in real time.The change of parameters provides users with corresponding data references,early detection of existing problems,early prevention and early treatment,and reduces the economic losses caused by water quality changes.The design consists of three parts: terminal data acquisition system,fog computing center monitoring system and cloud server.Water quality parameter terminal data acquisition system based on high-performance microcontroller STM32F767 realizes continuous collection of water quality parameters in aquiculture water environment through PH value sensor,water level sensor,dissolved oxygen sensor and temperature sensor,and displays the data in real time on the LCD screen.The terminal data acquisition system transmits the data collected by the sensor to the fog computing center monitoring system through the serial port.The central monitoring system based on fog computing thought is a fog server that is closer to the terminal equipment designed through C# application programming technology.The data collected by the terminal data acquisition system is subjected to median filtering and denoising,and threshold alarm processing is implemented at the edge of the network.The data is calculated,filtered,and historical data is stored in chronological order in the ACCESS database for later review.The fog computing center monitoring system uploads the processed specific data to the cloud server storage through the TCP/IP protocol,making it easy for users to view historical data through mobile phones,tablets,and other mobile terminal devices anytime,anywhere,and make state predictions and overall decisions based on historical experience.This design uses fog computing technology combined with sensor technology,embedded technology,and C# application programming technology to design a new model for aquaculture water quality monitoring based on fog calculations to address water quality monitoring issues in aquaculture.The design has the following characteristics:(1)The system has added the idea of fog computing,and the monitoring data is calculated and stored in a fog server closer to the terminal equipment,shortening the distance between the terminal equipment and the server,and reducing the remoteness of the broadband.Transmission,which reduces latency.(2)The fog server of each farm belongs to a fog node.Since the servers for fog calculation are usually relatively small,there are many nodes and they can be widely deployed to realize full-scale real-time monitoring of every farm in the entire region.(3)The design adopts the median filter algorithm to achieve the effect of denoising the collected data.At the same time,it adds the threshold alarm function to provide alarm prompts for the farm area where the problem has occurred. |