节点文献
基于NB-IoT的太阳能杀虫灯远程控制系统
Remote Control System of Solar Insecticidal Lamp Based on NB-IoT
【作者】 杨涛;
【导师】 阚江明;
【作者基本信息】 北京林业大学 , 工程硕士(专业学位), 2020, 硕士
【摘要】 随着人民群众生活水平和安全意识的不断提高,人们越来越重视食品的质量与安全,农业病虫害的防治就显得尤为重要。与传统农药防治病虫害的方法相比,灯光诱杀具有低化学污染的特点,因此将逐步替代化学防治害虫的方法。另一方面,传统资源日渐枯竭,太阳能作为清洁能源,在未来将会被广泛应用。设计太阳能杀虫灯远程控制系统既能达到物理杀灭害虫的目的,又能开发利用新能源。目前国内太阳能杀虫灯大多独立安装、手动调试及使用,缺少对杀虫的远程监控,给用户的使用带来不便。已有的联网型太阳能杀虫灯都采用GPRS技术进行远程控制,此方式需要一直缴纳流量费用,增加了设备成本,且对所在区域的通信信号和覆盖要求较高。因此针对目前太阳能杀虫灯存在的上述问题,本文提出了一种基于NB-IoT的太阳能杀虫灯远程控制系统,利用NB-IoT技术覆盖广、低成本和低功耗的特点,实现杀虫灯的远程监控。主要研究内容如下:(1)根据实际应用需求,构建以终端层—物联网平台—应用层三层架构组成的太阳能杀虫灯远程控制系统。(2)以STM32F051C8微处理器为主控芯片设计太阳能杀虫灯硬件系统,包括电源管理模块、多个传感器组成的数据采集模块、指令控制模块和基于NBIoT的远程通信模块。(3)利用C语言设计太阳能杀虫灯终端系统的软件。用JAVA语言开发杀虫灯远程监控APP作为系统的应用软件,APP利用“轻量级”的MQTT协议与物联网云平台层建立连接,通过调用云平台的接口,重写接口里的方法,实现客户端的实时数据显示、下发控制命令等功能,同时提供查询历史数据和GPS定位功能。文章最后对系统的整体性能进行了测试,测试结果表明,该系统能准确定位、采集温湿度等信息,并将数据上传到客户端,能从客户端下发命令实现远程控制,通信稳定可靠,达到了预期的设计要求。
【Abstract】 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.
【Key words】 Solar insecticidal lamp; NB-IoT; Remote control; IoT cloud platform; App;
- 【网络出版投稿人】 北京林业大学 【网络出版年期】2021年 02期
- 【分类号】S475;TK519
- 【被引频次】4
- 【下载频次】323