基于MQTT的智能农业系统的设计与实现DesignandImplementationofIntelligentAgriculturalSystemBasedonMQTT摘要智能农业是随着Internet的普及使用而发展起来的一门技术,他是集新兴的互联网、移动互联、云计算和物联网技术为一体,依托在现场的各种传感器节点(空气温度传感器、空气湿度传感器、光照传感器,土壤湿度传感器、二氧化碳传感器)和无线网络共同实现农业生产过程中的各阶段的智能感知、预警、收集、分析、决策,为农业生产提供可视化的管理和智能化的决策。MQTT(MessageQueuingTelemetryTransport,消息队列遥测传输协议),是一种基于发布/订阅(publish/subscribe)模式的轻量级协议,该协议构建于TCP/IP协议之上,MQTT最大优点在于,可以以极少的代码和有限的带宽,为连接远程设备提供实时可靠的消息服务。作为一种低开销、低带宽占用的即时通讯协议,使其在物联网、小型设备、移动应用等方面有较广泛的应用。可以完整的体现出我对于知识的综合运用和理解。本系统通过前端开发和后端开发的结合,以及充分利用JAVA这个主流的脚本语言,实现了一个功能健全的智能农业系统关键字:智能农业;物联网;传感器;MQTTABSTRACTIntelligentagricultureisatechnologydevelopedwiththepopularityofInternet.ItisaintegrationofemergingInternet,mobileinterconnection,cloudcomputingandtheInternetofthingstechnology,relyingonvarioussensornodesinthefield(airtemperaturesensor,airhumiditysensor,lightsensor,soilhumiditysensor,Carbondioxidesensor)andwirelessnetworkcanrealizeintelligentperception,earlywarning,collection,analysisanddecision-makinginallstagesofagriculturalproduction,andprovidevisualmanagementandintelligentdecision-makingforagriculturalproduction.TheMQTT(MessageQueuingTelemetryTransport)isalightweightprotocolbasedonpublish/subscribemode,whichisbuiltontheTCP/IPprotocol.ThegreatestadvantageofMQTTisthatitcanprovidereal-timeandreliablemessageserviceforconnectingremotedeviceswithverylittlecodeandlimitedbandwidth.Asalow-costandlow-bandwidthinstantcommunicationprotocol,ithasawideapplicationintheaspectsoftheInternetofThings,smalldevices,mobileapplicationsandsoon.Thecomprehensiveapplicationandunderstandingofmyknowledgecanbefullyreflected.Thissystemrealizesacomplete,comprehensiveandintelligentagriculturalsystemthroughthecombinationoffront-enddevelopmentandback-enddevelopment,aswellasmakingfulluseofJAVA,themainstreamscriptlanguage.Keywords:Intelligentagriculture;Internetofthings;sensor;MQTT;目录第一章绪论...........................................................................................1第一节智能农业研究的目的...............................................................1第二节智能农业研究的背景...............................................................1第三节智能农业研究的意义...............................................................1第四节智能农业研究的主要工作.......................................................2第五节智能农业研究结构安排...................................2第二章智能农业系统的需求分析与概要设计...................................4第一节需求分析...................................................................................4第二节系统架构设计...........................................................................5第三节系统功能模块设计....................................................................8第四节开发原则...................................................................................9第三章智能农业系统的详细设计与实现.........................................11第一节开发语言及开发工具简介...........................