| With the continuous improvement of people’s living standards and safety awareness,people pay more and more attention to the quality and safety of food,and the prevention and control of agricultural diseases and insect pests is particularly important.Compared with the traditional methods of pest control,light trapping has the characteristics of low chemical pollution,so it will gradually replace the chemical methods of pest control.On the other hand,traditional resources are drying up day by day.As a clean energy,solar energy will be widely used in the future.The design of the remote control system of solar insecticidal lamp can not only achieve the purpose of physical killing pests,but also develop and utilize new energy.At present,most domestic solar insecticidal lamps are independently installed,manually debugged and used.The lack of remote monitoring of insecticidal lamps brings inconvenience to users.Existing networked solar insecticidal lamps all use GPRS technology for remote control.This method requires continuous payment of traffic fees,which increases the cost of equipment and requires higher communication signals and coverage in the area.Therefore,aiming at the above-mentioned problems existing in the current solar insecticidal lamps.This paper presents a remote control system for solar insecticidal lamps based on NB-IoT,which uses the features of wide coverage,low cost and low power consumption of NB-IoT technology to realize remote monitoring of insecticidal lamps.The main research contents are as follows:(1)According to the actual application requirements,build a remote control system for solar insecticidal lamps with a three-layer architecture of terminal layer-Internet of Things platformapplication layer.(2)The solar insecticidal lamp hardware system is designed with the STM32F051C8 microprocessor as the main control chip,including a power management module,a data acquisition module composed of multiple sensors,a command control module,and a remote communication module based on NB-IoT.(3)Use C language to design the software of solar insecticidal lamp terminal system.Use the JAVA language to develop the insecticidal lamp remote monitoring APP as the system’s application software.The APP uses the "lightweight" MQTT protocol to establish a connection with the cloud platform layer.By calling the cloud platform interface,the method in the interface is rewritten to implement the client Real-time data display,issuing control commands and other functions,while providing historical data query and GPS positioning functions.The article finally tested the overall performance of the system.The test results show that the system can accurately locate,collect temperature and humidity information,and upload the data to the client,can issue commands from the client to achieve remote control,and the communication is stable and reliable.Meet the expected design requirements. |