【RT-Thread作品秀】基于WSN的农作物环境监测系统-电路方案

  • a3_662531
    了解作者
  • 1.3MB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-06 22:42
    上传日期
作者:zhouyuanzhi 作品概述 农作物的生长状况与其周边环境是息息相关的,对农业环境进行实时监控,及时调整有关环境参数,能够有力促进农作物增产增收。基于WSN的农作物环境监测系统将结合现代生态农业技术、现代无线传感技术、水肥药一体化技术等先进技术,来采集、传输、存储、查询并分析农作物的环境信息,为农业生产提供科学指导。 开发环境 硬件:STM32F407,CC2530,Fibocom L610,BH1750光照强度传感器,DHT11温湿度传感器,土壤PH传感器,土壤温湿度氮磷钾传感器。 RT-Thread版本:RT-Thread Nano 3.1.3 开发工具及版本:MDK 5.27,STM32CubeMx RT-Thread使用情况概述 内核部分:调度器,信号量,线程。 调度器:创建多个线程来实现不同的工作。 线程:uart2_rx_thread_entry和led_thread_entry uart2_rx_thread_entry线程接收到串口2中断回调函数释放的信号量后,对数据进行整理并上传至阿里云;led_thread_entry线程使LED间隔1秒闪烁,提示系统正在运行。 系统硬件介绍 系统由终端节点、路由器节点、协调器节点、STM32F407通讯网关、云服务器四部分组成。终端节点以CC2530为核心通过传感器采集空气温湿度、光照强度、土壤温湿度、土壤氮磷钾含量以及土壤PH值数据信息并通过ZigBee协议传输数据到路由器,再经路由器转发至协调器,协调器接收到数据后通过串口把数据转发给STM32F407通讯网关,STM32F407通讯网关完成数据汇总,解析,打包,在LCD上显示采集到数据,并通过GPRS上传数据至阿里云IOT平台,阿里云IOT平台将数据包通过AMQP服务端订阅转发到智慧农业系统。系统整体结构图如图所示。 系统软件介绍 硬件端采集到所有环境数据后,按照协议将所有数据封装成包。并将这些数据包上传到阿里云IOT平台。上传到服务器时采用的协议是MQTT协议;阿里云IOT平台将数据包通过AMQP服务端订阅转发到智慧农业系统的后端服务器;智慧农业系统的后端服务器按照规则完成数据包的解析,并将解析出的环境数据存入MySql数据库中;后端将数据从数据库中取出发送到前端并在网页上显示所有环境数据。 演示效果 采集终端: 路由器和协调器: 网关: 数据采集和上传: 代码地址(附件为代码地址,下载后打开可见)
21916.zip
  • 程序源码.txt
    302B
  • FpiB7a_rGRRdJUU7eF_ewYovRQJm.png
    359.4KB
  • Fnp2R1l6kw4JoxpGS5uZOur1tZvP.png
    516KB
  • FkyDboX55lUjE0y605AbATIhNuko.png
    50.8KB
  • FmuGmhLkqBwa-sivOetJMXnK4RKo.png
    37.6KB
  • 基于WSN的农作物环境监测系统.pdf
    377.5KB
内容介绍
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta charset="utf-8"><meta name="generator" content="pdf2htmlEX"><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><link rel="stylesheet" href="https://csdnimg.cn/release/download_crawler_static/css/base.min.css"><link rel="stylesheet" href="https://csdnimg.cn/release/download_crawler_static/css/fancy.min.css"><link rel="stylesheet" href="https://csdnimg.cn/release/download_crawler_static/16759846/raw.css"><script src="https://csdnimg.cn/release/download_crawler_static/js/compatibility.min.js"></script><script src="https://csdnimg.cn/release/download_crawler_static/js/pdf2htmlEX.min.js"></script><script>try{pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({});}catch(e){}</script><title></title></head><body><div id="sidebar" style="display: none"><div id="outline"></div></div><div id="pf1" class="pf w0 h0" data-page-no="1"><div class="pc pc1 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://csdnimg.cn/release/download_crawler_static/16759846/bg1.jpg"><div class="c x0 y1 w2 h0"><div class="t m0 x1 h2 y2 ff1 fs0 fc0 sc0 ls0 ws0">&#20316;&#32773;&#65306;<span class="ff2 sc1">zhouyuanz<span class="_ _0"></span>hi<span class="ff3"> </span></span></div><div class="t m0 x1 h2 y3 ff1 fs0 fc0 sc0 ls0 ws0">&#20316;&#21697;&#27010;&#36848;<span class="ff2 sc1"> </span></div><div class="t m0 x1 h3 y4 ff1 fs0 fc0 sc1 ls0 ws0">&#20892;&#20316;&#29289;&#30340;&#29983;&#38271;&#29366;<span class="_ _0"></span>&#20917;&#19982;&#20854;&#21608;&#36793;&#29615;&#22659;<span class="_ _0"></span>&#26159;&#24687;&#24687;&#30456;<span class="_ _0"></span>&#20851;&#30340;&#65292;&#23545;&#20892;&#19994;&#29615;<span class="_ _0"></span>&#22659;&#36827;&#34892;&#23454;&#26102;&#30417;<span class="_ _0"></span>&#25511;&#65292;&#21450;&#26102;&#35843;&#25972;</div><div class="t m0 x2 h4 y5 ff1 fs0 fc0 sc1 ls0 ws0">&#26377;&#20851;&#29615;&#22659;&#21442;&#25968;&#65292;<span class="_ _0"></span>&#33021;&#22815;&#26377;&#21147;&#20419;&#36827;&#20892;<span class="_ _0"></span>&#20316;&#29289;&#22686;&#20135;<span class="_ _0"></span>&#22686;&#25910;&#12290;&#22522;&#20110;<span class="_ _1"> </span><span class="ff3">WSN<span class="_ _1"> </span></span>&#30340;&#20892;&#20316;&#29289;&#29615;<span class="_ _0"></span>&#22659;&#30417;&#27979;&#31995;&#32479;<span class="_ _0"></span>&#23558;&#32467;&#21512;</div><div class="t m0 x2 h3 y6 ff1 fs0 fc0 sc1 ls0 ws0">&#29616;&#20195;&#29983;&#24577;&#20892;&#19994;&#25216;<span class="_ _0"></span>&#26415;&#12289;&#29616;&#20195;&#26080;&#32447;&#20256;<span class="_ _0"></span>&#24863;&#25216;&#26415;&#12289;<span class="_ _0"></span>&#27700;&#32933;&#33647;&#19968;&#20307;&#21270;&#25216;<span class="_ _0"></span>&#26415;&#31561;&#20808;&#36827;&#25216;&#26415;<span class="_ _0"></span>&#65292;&#26469;&#37319;&#38598;&#12289;&#20256;&#36755;<span class="_ _0"></span>&#12289;</div><div class="t m0 x2 h4 y7 ff1 fs0 fc0 sc1 ls0 ws0">&#23384;&#20648;&#12289;&#26597;&#35810;&#24182;&#20998;<span class="_ _0"></span>&#26512;&#20892;&#20316;&#29289;&#30340;&#29615;&#22659;<span class="_ _0"></span>&#20449;&#24687;&#65292;&#20026;<span class="_ _0"></span>&#20892;&#19994;&#29983;&#20135;&#25552;&#20379;&#31185;<span class="_ _0"></span>&#23398;&#25351;&#23548;&#12290;<span class="ff3"> </span></div><div class="t m0 x1 h4 y8 ff1 fs0 fc0 sc0 ls0 ws0">&#24320;&#21457;&#29615;&#22659;<span class="ff3 sc1"> </span></div><div class="t m0 x1 h4 y9 ff1 fs0 fc0 sc1 ls0 ws0">&#30828;&#20214;<span class="ff3">:STM3<span class="_ _0"></span>2F407<span class="ff1">&#65292;</span>CC25<span class="_ _0"></span>30<span class="ff1">&#65292;</span>Fiboco<span class="_ _0"></span>m L610<span class="ff1">&#65292;</span>BH1<span class="_ _0"></span>750<span class="_ _1"> </span><span class="ff1">&#20809;&#29031;&#24378;&#24230;&#20256;&#24863;&#22120;&#65292;<span class="_ _0"></span><span class="ff3">DHT11<span class="_ _1"> </span><span class="ff1">&#28201;</span></span></span></span></div><div class="t m0 x2 h4 ya ff1 fs0 fc0 sc1 ls0 ws0">&#28287;&#24230;&#20256;&#24863;&#22120;&#65292;&#22303;<span class="_ _0"></span>&#22756;<span class="_ _1"> </span><span class="ff3 ls1">PH<span class="_"> </span></span>&#20256;&#24863;&#22120;&#65292;<span class="_ _0"></span>&#22303;&#22756;&#28201;&#28287;&#24230;&#27694;<span class="_ _0"></span>&#30967;&#38078;&#20256;&#24863;&#22120;&#12290;<span class="_ _0"></span><span class="ff3"> </span></div><div class="t m0 x1 h4 yb ff3 fs0 fc0 sc1 ls2 ws0">RT<span class="ls0">-Thre<span class="_ _0"></span>ad<span class="_ _1"> </span><span class="ff1">&#29256;&#26412;&#65306;</span><span class="ls3">RT</span>-Thread N<span class="_ _0"></span>ano 3.1.3<span class="_ _0"></span> </span></div><div class="t m0 x1 h4 yc ff1 fs0 fc0 sc1 ls0 ws0">&#24320;&#21457;&#24037;&#20855;&#21450;&#29256;&#26412;<span class="_ _0"></span>&#65306;<span class="ff3">MDK <span class="_ _0"></span>5.27<span class="ff1">&#65292;</span>STM32<span class="_ _0"></span>CubeMx </span></div><div class="t m0 x1 h2 yd ff2 fs0 fc0 sc1 ls3 ws0">RT<span class="ls0">-Thread<span class="_ _1"> </span><span class="ff1 sc0">&#20351;&#29992;&#24773;&#20917;&#27010;&#36848;</span><span class="ff3"> </span></span></div><div class="t m0 x1 h4 ye ff1 fs0 fc0 sc1 ls0 ws0">&#20869;&#26680;&#37096;&#20998;&#65306;&#35843;&#24230;<span class="_ _0"></span>&#22120;&#65292;&#20449;&#21495;&#37327;&#65292;&#32447;<span class="_ _0"></span>&#31243;&#12290;<span class="ff3"> </span></div><div class="t m0 x1 h4 yf ff1 fs0 fc0 sc1 ls0 ws0">&#35843;&#24230;&#22120;&#65306;&#21019;&#24314;&#22810;<span class="_ _0"></span>&#20010;&#32447;&#31243;&#26469;&#23454;&#29616;&#19981;<span class="_ _0"></span>&#21516;&#30340;&#24037;&#20316;<span class="_ _0"></span>&#12290;<span class="ff3"> </span></div><div class="t m0 x1 h4 y10 ff1 fs0 fc0 sc1 ls0 ws0">&#32447;&#31243;&#65306;<span class="ff3">uart2_rx<span class="_ _0"></span>_thread_e<span class="_ _0"></span>ntry<span class="_ _1"> </span><span class="ff1">&#21644;<span class="_ _2"> </span></span>led_thread<span class="_ _0"></span>_entry </span></div><div class="t m0 x1 h4 y11 ff3 fs0 fc0 sc1 ls0 ws0">uart2_rx_thr<span class="_ _0"></span>ead_entry<span class="_ _1"> </span><span class="ff1">&#32447;&#31243;&#25509;&#25910;<span class="_ _0"></span>&#21040;&#20018;&#21475;<span class="_ _1"> </span><span class="ff3">2<span class="_ _1"> </span></span>&#20013;&#26029;&#22238;&#35843;<span class="_ _0"></span>&#20989;&#25968;&#37322;&#25918;&#30340;&#20449;&#21495;<span class="_ _0"></span>&#37327;&#21518;&#65292;&#23545;&#25968;&#25454;&#36827;<span class="_ _0"></span>&#34892;</span></div><div class="t m0 x2 h4 y12 ff1 fs0 fc0 sc1 ls0 ws0">&#25972;&#29702;&#24182;&#19978;&#20256;&#33267;&#38463;<span class="_ _0"></span>&#37324;&#20113;&#65307;<span class="ff3">led<span class="_ _0"></span>_thread_entry<span class="_ _1"> </span><span class="ff1">&#32447;&#31243;<span class="_ _0"></span>&#20351;<span class="_ _1"> </span><span class="ff3">LED<span class="_"> </span></span><span class="ls4">&#38388;&#38548;<span class="_ _1"> </span></span><span class="ff3">1<span class="_ _1"> </span></span>&#31186;&#38378;&#28865;&#65292;&#25552;&#31034;<span class="_ _0"></span>&#31995;&#32479;&#27491;&#22312;&#36816;&#34892;<span class="_ _0"></span>&#12290;<span class="ff3"> </span></span></span></div><div class="t m0 x1 h4 y13 ff1 fs0 fc0 sc0 ls0 ws0">&#31995;&#32479;&#30828;&#20214;&#20171;&#32461;<span class="ff3 sc1"> </span></div><div class="t m0 x1 h4 y14 ff1 fs0 fc0 sc1 ls0 ws0">&#31995;&#32479;&#30001;&#32456;&#31471;&#33410;&#28857;<span class="_ _0"></span>&#12289;&#36335;&#30001;&#22120;&#33410;&#28857;&#12289;<span class="_ _0"></span>&#21327;&#35843;&#22120;&#33410;<span class="_ _0"></span>&#28857;&#12289;<span class="ff3">STM32F4<span class="_ _0"></span>07<span class="_"> </span><span class="ff1">&#36890;<span class="_ _0"></span>&#35759;&#32593;&#20851;&#12289;&#20113;&#26381;<span class="_ _0"></span>&#21153;&#22120;&#22235;&#37096;</span></span></div><div class="t m0 x2 h4 y15 ff1 fs0 fc0 sc1 ls0 ws0">&#20998;&#32452;&#25104;&#12290;&#32456;&#31471;&#33410;<span class="_ _0"></span>&#28857;&#20197;<span class="_ _1"> </span><span class="ff3">CC2530<span class="_ _1"> </span></span>&#20026;&#26680;<span class="_ _0"></span>&#24515;&#36890;&#36807;&#20256;&#24863;&#22120;<span class="_ _0"></span>&#37319;&#38598;&#31354;&#27668;&#28201;&#28287;<span class="_ _0"></span>&#24230;&#12289;&#20809;&#29031;&#24378;&#24230;<span class="_ _0"></span>&#12289;&#22303;&#22756;&#28201;&#28287;</div><div class="t m0 x2 h4 y16 ff1 fs0 fc0 sc1 ls0 ws0">&#24230;&#12289;&#22303;&#22756;&#27694;&#30967;&#38078;<span class="_ _0"></span>&#21547;&#37327;&#20197;&#21450;&#22303;&#22756;<span class="_ _1"> </span><span class="ff3 ls1">PH<span class="_ _1"> </span></span>&#20540;&#25968;&#25454;&#20449;&#24687;<span class="_ _0"></span>&#24182;&#36890;&#36807;<span class="_ _1"> </span><span class="ff3">ZigBee<span class="_ _1"> </span></span>&#21327;&#35758;&#20256;&#36755;&#25968;&#25454;<span class="_ _0"></span>&#21040;&#36335;&#30001;&#22120;&#65292;&#20877;</div><div class="t m0 x2 h4 y17 ff1 fs0 fc0 sc1 ls0 ws0">&#32463;&#36335;&#30001;&#22120;&#36716;&#21457;&#33267;<span class="_ _0"></span>&#21327;&#35843;&#22120;&#65292;&#21327;&#35843;&#22120;<span class="_ _0"></span>&#25509;&#25910;&#21040;&#25968;<span class="_ _0"></span>&#25454;&#21518;&#36890;&#36807;&#20018;&#21475;&#25226;<span class="_ _0"></span>&#25968;&#25454;&#36716;&#21457;&#32473;<span class="_ _1"> </span><span class="ff3">STM32<span class="_ _0"></span>F407<span class="_ _1"> </span><span class="ff1">&#36890;&#35759;&#32593;</span></span></div></div></div><div class="pi" data-data='{"ctm":[1.611792,0.000000,0.000000,1.611792,0.000000,0.000000]}'></div></div></body></html>
评论
    相关推荐
    • sql数据库修复
      SQL数据库修复软件 3.8  本程序 目前支持SQL 7.0 2000 2005 2008 (32\64)位数据库MDF的修复,修复后将直接附加到SQL上生成新的MDF和LDF 文件。  特点:  对断电 黑客攻击 病毒破坏 数据库异常 置疑 脱机 ...
    • SQL教程指南.rar
      SQL教程指南
    • Azure IoT游泳池-项目开发
      使用Azure IoT中心,流分析,Azure SQL,API App,Raspberry Pi,Windows IoT核心版,Arduino来控制和监视游泳池。
    • iot-trucking-app-flink:带有Flink的IoT货运应用程序(具有Table API和SQL
      该项目通过Flink(主要是Flink Table API和SQL)重新实现了HDF IoT货运应用。 ,Hadoop首脑会议2017年 该项目提供了几个示例应用程序,分别利用了流流连接,窗口聚合和重复数据删除。 该项目取决于Flink 1.5.0。 ...
    • iot-project
      怎么跑 docker-compose up -d --build 或者sudo docker-compose up -d --build curl http://localhost:9080/products JSON使用 Sqlite用法 。 htm MQTT用法 MQTT示例
    • iot-scraper
      ***物联网爬虫***用途:该存储库旨在将数据从物联网设备加载到MariaDB。 先决条件: ... ***安装MariaDB驱动程序***要安装MariaDB sql驱动程序,请遵循以下指示。 mkdir odbc_package cd odbc_package wget
    • Microservices, IoT and Azure 高清版
      Microservices, IoT and Azure 高清版 Microservices, IoT and Azure 高清版
    • IoT-Microservice
      物联网微服务 论文项目 这是分散式物联网微服务的一部分。 它使用了针对Senserion SPS30颗粒物传感器的定制驱动程序,针对边缘物联网数据库的SQlite和用于管理服务的Python脚本。
    • SQL性能优化
       以上四个SQL在ORACLE分析整理之后产生的结果及执行的时间是一样的,但是从ORACLE共享内存SGA的原理,可以得出ORACLE对每个SQL 都会对其进行一次分析,并且占用共享内存,如果将SQL的字符串及格式写得完全相同则...
    • autoconciencia_iot
      autoconciencia_iot