| With the development and application of modern science and technology,people’s living standards have been steadily improved,and the environmental requirements are also getting higher and higher.The real-time and accuracy of environmental monitoring’ have also become an important indicator of the monitoring system.In addition to the above shortcomings,the traditional monitoring methods have high system costs and inconvenient sharing of information.In particular,the large-scale geographical environment and the problems of long distance and low power consumption are facing the problem.Therefore,a new type of intelligent monitoring System is particularly necessary.In this paper,an intelligent monitoring system based on LoRa(Long Range)is designed.The core of the system is LoRa-based wireless data collection network.The environment parameters are collected by the sensors and transmitted to the cloud virtual machine through the LoRa gateway and the host computer to achieve network client access.The main contents of this paper include hardware circuit design and system software programming.In terms of hardware,LoRa node circuit is designed with low-power chips SX1278 and STM32F101 to meet the needs of miniaturization and low power consumption of node circuits.The LoRa gateway circuit is designed based on S3C2440,which greatly reduces the system cost under the premise of portability,scalability and strong data processing capability.In terms of software,LoRa instruction format and communication mechanism are designed to ensure the stability of data transmission between nodes and gateways.The real time operating system FreeRTOS is transplanted to the node chip,and the embedded operating system Linux is transplanted to the gateway chip,and the tasks of the controller are written.Through serial programming and network programming,the host computer software is developed to control the state of each node.At the same time,using the idea of server/client,the communication between the host computer and the cloud virtual machine is realized,and the corresponding network client software is developed.Finally,the communication distance,node power and system functions of the system are tested in detail.It proves that the system has high accuracy,real-time and wide applicability. |