【平头哥RVB2601创意应用开发】LoRa网关无线上位机
<p>终于完成创意项目开发的作品了,此贴包含作品设计说明文档前三节。</p><hr />
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:"Times New Roman""><b><span style="font-size:16.0000pt"><span style="background:#ffffff"><span style="font-family:微软雅黑"><font face="微软雅黑">一、</font></span></span></span></b><b><span style="font-size:16.0000pt"><span style="background:#ffffff"><span style="font-family:微软雅黑"><font face="微软雅黑">项目背景</font></span></span></span></b></span></span></p>
<p style="text-indent:24.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:"Times New Roman""><span style="font-size:12.0000pt"><span style="background:#ffffff"><span style="font-family:微软雅黑"><span style="color:#000000"><span style="letter-spacing:0.0000pt"><span style="font-style:normal"><font face="微软雅黑">土木建筑项目无论是在施工期间还是建成使用中,对要对建筑结构实时健康监测,比如:倾角变化、墙体下沉位移、支架压力、混凝土凝固期温度</font><font face="微软雅黑">……</font></span></span></span></span></span></span></span></span></p>
<p style="text-indent:24.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:"Times New Roman""><span style="font-size:12.0000pt"><span style="background:#ffffff"><span style="font-family:微软雅黑"><span style="color:#000000"><span style="letter-spacing:0.0000pt"><span style="font-style:normal"><font face="微软雅黑">传统的监测方式,一般采用现场布线,人工定时巡逻,并手持仪器现场读取的方式,物联网技术使用严重不足。因而,本项目将利用</font><font face="微软雅黑">LoRa组网和物联技术,实现无线式、自动化的建筑监测应用。</font></span></span></span></span></span></span></span></span></p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:"Times New Roman""><b><span class="15" style="font-size:16.0000pt"><span style="font-family:微软雅黑"><font face="微软雅黑">二、</font></span></span></b><b><span class="15" style="font-size:16.0000pt"><span style="font-family:微软雅黑"><font face="微软雅黑">作品简介</font></span></span></b></span></span></p>
<p style="text-indent:24.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:"Times New Roman""><span style="font-size:12.0000pt"><span style="background:#ffffff"><span style="font-family:微软雅黑"><span style="color:#000000"><span style="letter-spacing:0.0000pt"><span style="font-style:normal"><font face="微软雅黑">目前有很多成形的</font>LoRa网关,</span></span></span></span></span></span><span style="font-size:12.0000pt"><span style="background:#ffffff"><span style="font-family:微软雅黑"><span style="color:#000000"><span style="letter-spacing:0.0000pt"><span style="font-style:normal"><font face="微软雅黑">不过一般都</font></span></span></span></span></span></span><span style="font-size:12.0000pt"><span style="background:#ffffff"><span style="font-family:微软雅黑"><span style="color:#000000"><span style="letter-spacing:0.0000pt"><span style="font-style:normal"><font face="微软雅黑">需要搭配上位机进行控制,常见的有串口方式、</font>WiFi方式等。本</span></span></span></span></span></span><span style="font-size:12.0000pt"><span style="background:#ffffff"><span style="font-family:微软雅黑"><span style="color:#000000"><span style="letter-spacing:0.0000pt"><span style="font-style:normal"><font face="微软雅黑">项目</font></span></span></span></span></span></span><span style="font-size:12.0000pt"><span style="background:#ffffff"><span style="font-family:微软雅黑"><span style="color:#000000"><span style="letter-spacing:0.0000pt"><span style="font-style:normal"><font face="微软雅黑">利用</font>RVB2601搭载的WiFi模块实现对一款LoRa网关的无线连接(</span></span></span></span></span></span><span style="font-size:12.0000pt"><span style="background:#ffffff"><span style="font-family:微软雅黑"><span style="color:#000000"><span style="letter-spacing:0.0000pt"><span style="font-style:normal"><font face="微软雅黑">以</font></span></span></span></span></span></span><span style="font-size:12.0000pt"><span style="background:#ffffff"><span style="font-family:微软雅黑"><span style="color:#000000"><span style="letter-spacing:0.0000pt"><span style="font-style:normal"><font face="微软雅黑">有人</font>USR220 4G版</span></span></span></span></span></span><span style="font-size:12.0000pt"><span style="background:#ffffff"><span style="font-family:微软雅黑"><span style="color:#000000"><span style="letter-spacing:0.0000pt"><span style="font-style:normal"><font face="微软雅黑">为例</font></span></span></span></span></span></span><span style="font-size:12.0000pt"><span style="background:#ffffff"><span style="font-family:微软雅黑"><span style="color:#000000"><span style="letter-spacing:0.0000pt"><span style="font-style:normal"><font face="微软雅黑">),</font></span></span></span></span></span></span><span style="font-size:12.0000pt"><span style="background:#ffffff"><span style="font-family:微软雅黑"><span style="color:#000000"><span style="letter-spacing:0.0000pt"><span style="font-style:normal"><font face="微软雅黑">周期性</font></span></span></span></span></span></span><span style="font-size:12.0000pt"><span style="background:#ffffff"><span style="font-family:微软雅黑"><span style="color:#000000"><span style="letter-spacing:0.0000pt"><span style="font-style:normal"><font face="微软雅黑">发送控制指令,</font></span></span></span></span></span></span><span style="font-size:12.0000pt"><span style="background:#ffffff"><span style="font-family:微软雅黑"><span style="color:#000000"><span style="letter-spacing:0.0000pt"><span style="font-style:normal"><font face="微软雅黑">指令帧格式采用网关自定义协议,用于控制网关唤醒网段内的</font><font face="微软雅黑">LoRa终端,并进行传感器采集建筑健康参数。然后,RVB2601上位机</font></span></span></span></span></span></span><span style="font-size:12.0000pt"><span style="background:#ffffff"><span style="font-family:微软雅黑"><span style="color:#000000"><span style="letter-spacing:0.0000pt"><span style="font-style:normal"><font face="微软雅黑">接收网关采集到的终端传感器数据,并将接收数据转发到云平台。</font></span></span></span></span></span></span></span></span></p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:"Times New Roman""><b><span class="15" style="font-size:16.0000pt"><span style="font-family:微软雅黑"><font face="微软雅黑">三、</font></span></span></b><b><span class="15" style="font-size:16.0000pt"><span style="font-family:微软雅黑"><font face="微软雅黑">系统框图</font></span></span></b></span></span></p>
<p style="text-indent:24.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:"Times New Roman""><span style="font-size:12.0000pt"><span style="background:#ffffff"><span style="font-family:微软雅黑"><span style="color:#333333"><span style="letter-spacing:0.0000pt"><span style="font-style:normal"><font face="微软雅黑">本系统属于标准的物联网应用架构,由设备侧(包括:</font><font face="微软雅黑">LoRa网关、采集终端、RVB2601上位机)+云平台(采用OneNet公共云)+应用侧(包括:Android APP和Winform应用)。</font></span></span></span></span></span></span></span></span></p>
<p style="text-indent:24.0000pt; text-align:justify"> </p>
<p class="imagemiddle" style="text-align: center;"></p>
<p style="text-align: center;"><span style="font-size:10.5pt"><span style="font-family:"Times New Roman""><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">图</font><font face="Times New Roman">3-1 </font><font face="宋体">有人</font><font face="Times New Roman">LoRa</font><font face="宋体">网关工作模式</font></span></span></span></span></p>
<p align="center" style="text-align:center"> </p>
<p style="text-indent:24.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:"Times New Roman""><span style="font-size:12.0000pt"><span style="background:#ffffff"><span style="font-family:微软雅黑"><span style="color:#333333"><span style="letter-spacing:0.0000pt"><span style="font-style:normal"><font face="微软雅黑">本次应用创意则是隶属项目的设备侧中</font><font face="微软雅黑">USR220 LoRa网关上位机,利用Wi-Fi与网关连接。USR220作为AP,RVB2601接入后,与其开启TCP连接。</font></span></span></span></span></span></span></span></span></p>
<p style="text-indent:24.0000pt; text-align:justify"> </p>
<p class="imagemiddle" style="text-align: center;"></p>
<p style="text-align: center;"><span style="font-size:10.5pt"><span style="font-family:"Times New Roman""><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">图</font><font face="Times New Roman">3-2 </font><font face="宋体">系统结构框图</font></span></span></span></span></p>
<p style="text-align: center;"> </p>
<p> </p>
<p style="text-align:justify"><span style="color:#333333">作品说明视频内容5:10,主要是对项目运行过程的说明,EEWORLD论坛链接如下:</span></p>
<p style="text-align:justify"><a href="https://training.eeworld.com.cn/video/33388"><u><span style="color:#0000ff"><u>https://training.eeworld.com.cn/video/33388</u></span></u></a></p>
sonicfirr 发表于 2022-5-21 12:29
作品说明视频内容5:10,主要是对项目运行过程的说明,EEWORLD论坛链接如下:
http://training.eeworld.c ...
<p>视频也可以直接插入到帖子里,论坛编辑器升级了,可以直接上传视频了</p>
<p>以后发帖再上传视频,点击下图所示的图标就可以了<br />
</p>
<p>作者这里的时间获取是传感器采集数据的时间,还是RVB2601上传云平台的时间呢?</p>
<p> </p>
<p>时间的获取是通过什么方式实现的呢?</p>
梦溪开物 发表于 2022-5-29 10:46
时间的获取是通过什么方式实现的呢?
<p>ntp方式,也是搞了很久才解决,然后对RTC进行更新,之后就可以获取本地时间了。</p>
梦溪开物 发表于 2022-5-29 10:46
作者这里的时间获取是传感器采集数据的时间,还是RVB2601上传云平台的时间呢?
<p>准确说是LoRa网关回复的时间,不过一般在Lora终端可以响应的情况下,这个延时不超过一秒。</p>
<p>实际工程中,用于建筑监测,这个延时完全可以忽略。</p>
nmg 发表于 2022-5-25 09:44
视频也可以直接插入到帖子里,论坛编辑器升级了,可以直接上传视频了
以后发帖再上传视频,点击下图所 ...
<p>谢谢提示,下次尝试一下。</p>
<p>lora前几年炒的很火,现在用的多吗?</p>
freebsder 发表于 2022-5-31 23:57
lora前几年炒的很火,现在用的多吗?
<p>个人觉得要看具体场景吧,现在建筑监测领域有无线化转型的意向,LoRa是比较合适的方案。</p>
页:
[1]