In recent years,with the impact of global warming,overgrazing,weather drought and other factors,the grassland environment has been seriously damaged,the trend of land desertification is more and more serious.The method of monitoring ecological indicators with a large number of human resources has been unable to complete the task well due to geographical factors,cost and other constraints.In view of these problems,this paper mainly establishes a set of grassland ecological monitoring system with ultra-long-distance transmission performance,which can complete the function of ecological index monitoring accurately and in real time.The core content of this project is to send sensor data to the upper computer for display by developing an embedded system and equipped with LoRa rf chip.Firstly,the hardware of the system is selected.STM8 L chip is selected as the main control chip.By comparing the performance indexes of different sensors,the model is selected.Determine the networking plan and draw the PCB board.Software part first LoRa peer-to-peer system is designed as a gateway to use the system,by improving the traditional time slot allocation protocol to ensure the stability of the upload data,in this way,packet loss rate can be reduced and channel conflicts can be avoided.SX1278 rf chip for sending and receiving the sequential design,and transplanted the Contiki operating system as a terminal node embedded chip operating system,reading data from the PC.Through test,This system can complete the transmission of ecological data of the grassland,dynamic slot allocation protocol can ensure the system packet loss rate within the expected,the terminal in the open field transmission distance up to 7-9 km,and the overall power consumption of the system is expected to use more than 3 years,stable and reliable data transmission,this design has been basically achieved the expected function. |