| With the acceleration of socialist modernization process,a large number of young and middle-aged laborers in rural areas has transferred to urban non-agricultural industries,the aging trend of rural labour force is obvious,farmers are not willing to grow grain,the phenomenon of cultivated land desolation is gradually common,the gap between grain production and demand is increasing year by year,facing the problem of food security.The transfer of rural labour force to cities has led to a rapid increase in the space for large-scale operation of agriculture and centralized cultivation of land,providing conditions for the development of smart agriculture.In this thesis,the smart agriculture system based on wireless sensors networks has been designed and implemented to solve the problem of agricultural labor shortage,which provides scientific and comprehensive guidance for increasing the crop yield and realizes science and technology to serve modern agricultural production.Through the analysis of the smart agriculture and related technologies,the design of smart agriculture system is divided into three parts: perception layer,network layer and application layer.The perception layer consists of acquisition terminals and control terminals.The acquisition terminals are equipped with multiple sensors for the collection and transmission of crop environmental parameters,and the control terminals are equipped with multiple relays for the control of agricultural equipments,so as to regulate crop environmental parameters.The acquisition terminals and control terminals are designed based on STM32WL55JCI6 controller,and the LoRa wireless communication technology is adopted to realize ultra-long-distance data transmission.The network layer consists of LoRa gateways,which are responsible for uploading data from acquisition terminals and control terminals in the perception layer and delivering control instructions from the application layer.LoRa gateways are implemented based on the STM32F746 ZG controller and SX1301 gateway digital baseband chip.They are connected to network servers in the application layer through ethernet.In application layer,the application programs and the We Chat applet are developed and configured for the perception layer devices,which enable the devices to have mobile application capabilities.And the data mining is implemented for the devices in the perception layer,which realizes the automatic push of the alarm information and the automatic control of the device through the analysis and processing of the data.Finally,the function test and performance test of the smart agricultural system are carried out,and the results show that all the functions and performance of the system meet the expected requirements.The system is able to realize ultra-long-distance data collection and transmission,automatic control of device,and automatic push of alarm information.The system also has the characteristics of ultra-low power consumption,which meets the needs of smart agriculture and has a good application prospect. |