云计算百科
云计算领域专业知识百科平台

LoRaWAN详解:物联网世界的远距离低功耗通信

🔥作者简介: 一个平凡而乐于分享的小比特,中南民族大学通信工程专业研究生,研究方向无线联邦学习 🎬擅长领域:驱动开发,嵌入式软件开发,BSP开发 ❄️作者主页:一个平凡而乐于分享的小比特的个人主页 ✨收录专栏:无线通信技术,本专栏介绍无线通信相关技术 欢迎大家点赞 👍 收藏 ⭐ 加关注哦!💖💖

在这里插入图片描述

LoRaWAN详解:物联网世界的远距离低功耗通信

一、什么是LoRaWAN?

LoRaWAN是一种专为物联网设备设计的低功耗广域网通信协议。想象一下,如果你想让一个放在地下室的水表自动上报读数,或者让牧场里的牛羊定位器发送位置信息,传统的WiFi覆盖不了那么远,蓝牙距离太短,而4G又太耗电——这时候就需要LoRaWAN出马了。

LoRaWAN的核心特点

  • 远距离:郊区可达15公里,城市可达3-5公里
  • 低功耗:一节电池可以用5-10年
  • 低成本:模块便宜,网络免费(非蜂窝网络)
  • 低数据量:每次传输几十字节,适合传感器数据

二、LoRa vs LoRaWAN:傻傻分不清?

很多人容易混淆这两个概念,其实很简单:

特性LoRaLoRaWAN
定义 物理层无线调制技术 通信协议和网络架构
类比 就像普通话 就像打电话的礼仪规范
作用 负责怎么发送信号 负责谁说话、说多久、怎么说
层级 OSI模型的物理层 OSI模型的MAC层及以上

简单理解:LoRa是底层技术,决定了信号能传多远;LoRaWAN是上层协议,决定了设备如何接入网络、如何传输数据。

三、LoRaWAN网络架构

LoRaWAN采用星型网络拓扑,主要由四部分组成:

#mermaid-svg-8vIyUNwDDkxLHxQu{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-8vIyUNwDDkxLHxQu .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-8vIyUNwDDkxLHxQu .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-8vIyUNwDDkxLHxQu .error-icon{fill:#552222;}#mermaid-svg-8vIyUNwDDkxLHxQu .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-8vIyUNwDDkxLHxQu .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-8vIyUNwDDkxLHxQu .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-8vIyUNwDDkxLHxQu .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-8vIyUNwDDkxLHxQu .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-8vIyUNwDDkxLHxQu .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-8vIyUNwDDkxLHxQu .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-8vIyUNwDDkxLHxQu .marker{fill:#333333;stroke:#333333;}#mermaid-svg-8vIyUNwDDkxLHxQu .marker.cross{stroke:#333333;}#mermaid-svg-8vIyUNwDDkxLHxQu svg{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-8vIyUNwDDkxLHxQu p{margin:0;}#mermaid-svg-8vIyUNwDDkxLHxQu .label{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;color:#333;}#mermaid-svg-8vIyUNwDDkxLHxQu .cluster-label text{fill:#333;}#mermaid-svg-8vIyUNwDDkxLHxQu .cluster-label span{color:#333;}#mermaid-svg-8vIyUNwDDkxLHxQu .cluster-label span p{background-color:transparent;}#mermaid-svg-8vIyUNwDDkxLHxQu .label text,#mermaid-svg-8vIyUNwDDkxLHxQu span{fill:#333;color:#333;}#mermaid-svg-8vIyUNwDDkxLHxQu .node rect,#mermaid-svg-8vIyUNwDDkxLHxQu .node circle,#mermaid-svg-8vIyUNwDDkxLHxQu .node ellipse,#mermaid-svg-8vIyUNwDDkxLHxQu .node polygon,#mermaid-svg-8vIyUNwDDkxLHxQu .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-8vIyUNwDDkxLHxQu .rough-node .label text,#mermaid-svg-8vIyUNwDDkxLHxQu .node .label text,#mermaid-svg-8vIyUNwDDkxLHxQu .image-shape .label,#mermaid-svg-8vIyUNwDDkxLHxQu .icon-shape .label{text-anchor:middle;}#mermaid-svg-8vIyUNwDDkxLHxQu .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-8vIyUNwDDkxLHxQu .rough-node .label,#mermaid-svg-8vIyUNwDDkxLHxQu .node .label,#mermaid-svg-8vIyUNwDDkxLHxQu .image-shape .label,#mermaid-svg-8vIyUNwDDkxLHxQu .icon-shape .label{text-align:center;}#mermaid-svg-8vIyUNwDDkxLHxQu .node.clickable{cursor:pointer;}#mermaid-svg-8vIyUNwDDkxLHxQu .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-8vIyUNwDDkxLHxQu .arrowheadPath{fill:#333333;}#mermaid-svg-8vIyUNwDDkxLHxQu .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-8vIyUNwDDkxLHxQu .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-8vIyUNwDDkxLHxQu .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-8vIyUNwDDkxLHxQu .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-8vIyUNwDDkxLHxQu .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-8vIyUNwDDkxLHxQu .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-8vIyUNwDDkxLHxQu .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-8vIyUNwDDkxLHxQu .cluster text{fill:#333;}#mermaid-svg-8vIyUNwDDkxLHxQu .cluster span{color:#333;}#mermaid-svg-8vIyUNwDDkxLHxQu div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-8vIyUNwDDkxLHxQu .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-8vIyUNwDDkxLHxQu rect.text{fill:none;stroke-width:0;}#mermaid-svg-8vIyUNwDDkxLHxQu .icon-shape,#mermaid-svg-8vIyUNwDDkxLHxQu .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-8vIyUNwDDkxLHxQu .icon-shape p,#mermaid-svg-8vIyUNwDDkxLHxQu .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-8vIyUNwDDkxLHxQu .icon-shape rect,#mermaid-svg-8vIyUNwDDkxLHxQu .image-shape rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-8vIyUNwDDkxLHxQu .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-8vIyUNwDDkxLHxQu .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-8vIyUNwDDkxLHxQu :root{–mermaid-font-family:\”trebuchet ms\”,verdana,arial,sans-serif;}

LoRa射频

TCP/IP

TCP/IP

终端设备End Device

网关Gateway

网络服务器Network Server

应用服务器Application Server

各组件职责

组件角色主要职责
终端设备 传感器/执行器 采集数据、执行命令
网关 信号中转站 接收/发送LoRa信号,转发给网络服务器
网络服务器 网络大脑 处理重复包、安全检查、速率适配
应用服务器 业务处理 解析数据、执行业务逻辑

四、设备类型:三类不同需求的终端

LoRaWAN定义了三种类型的终端设备,以满足不同场景需求:

#mermaid-svg-priUc1OJCGAlNoUM{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-priUc1OJCGAlNoUM .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-priUc1OJCGAlNoUM .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-priUc1OJCGAlNoUM .error-icon{fill:#552222;}#mermaid-svg-priUc1OJCGAlNoUM .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-priUc1OJCGAlNoUM .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-priUc1OJCGAlNoUM .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-priUc1OJCGAlNoUM .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-priUc1OJCGAlNoUM .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-priUc1OJCGAlNoUM .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-priUc1OJCGAlNoUM .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-priUc1OJCGAlNoUM .marker{fill:#333333;stroke:#333333;}#mermaid-svg-priUc1OJCGAlNoUM .marker.cross{stroke:#333333;}#mermaid-svg-priUc1OJCGAlNoUM svg{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-priUc1OJCGAlNoUM p{margin:0;}#mermaid-svg-priUc1OJCGAlNoUM .label{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;color:#333;}#mermaid-svg-priUc1OJCGAlNoUM .cluster-label text{fill:#333;}#mermaid-svg-priUc1OJCGAlNoUM .cluster-label span{color:#333;}#mermaid-svg-priUc1OJCGAlNoUM .cluster-label span p{background-color:transparent;}#mermaid-svg-priUc1OJCGAlNoUM .label text,#mermaid-svg-priUc1OJCGAlNoUM span{fill:#333;color:#333;}#mermaid-svg-priUc1OJCGAlNoUM .node rect,#mermaid-svg-priUc1OJCGAlNoUM .node circle,#mermaid-svg-priUc1OJCGAlNoUM .node ellipse,#mermaid-svg-priUc1OJCGAlNoUM .node polygon,#mermaid-svg-priUc1OJCGAlNoUM .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-priUc1OJCGAlNoUM .rough-node .label text,#mermaid-svg-priUc1OJCGAlNoUM .node .label text,#mermaid-svg-priUc1OJCGAlNoUM .image-shape .label,#mermaid-svg-priUc1OJCGAlNoUM .icon-shape .label{text-anchor:middle;}#mermaid-svg-priUc1OJCGAlNoUM .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-priUc1OJCGAlNoUM .rough-node .label,#mermaid-svg-priUc1OJCGAlNoUM .node .label,#mermaid-svg-priUc1OJCGAlNoUM .image-shape .label,#mermaid-svg-priUc1OJCGAlNoUM .icon-shape .label{text-align:center;}#mermaid-svg-priUc1OJCGAlNoUM .node.clickable{cursor:pointer;}#mermaid-svg-priUc1OJCGAlNoUM .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-priUc1OJCGAlNoUM .arrowheadPath{fill:#333333;}#mermaid-svg-priUc1OJCGAlNoUM .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-priUc1OJCGAlNoUM .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-priUc1OJCGAlNoUM .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-priUc1OJCGAlNoUM .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-priUc1OJCGAlNoUM .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-priUc1OJCGAlNoUM .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-priUc1OJCGAlNoUM .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-priUc1OJCGAlNoUM .cluster text{fill:#333;}#mermaid-svg-priUc1OJCGAlNoUM .cluster span{color:#333;}#mermaid-svg-priUc1OJCGAlNoUM div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-priUc1OJCGAlNoUM .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-priUc1OJCGAlNoUM rect.text{fill:none;stroke-width:0;}#mermaid-svg-priUc1OJCGAlNoUM .icon-shape,#mermaid-svg-priUc1OJCGAlNoUM .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-priUc1OJCGAlNoUM .icon-shape p,#mermaid-svg-priUc1OJCGAlNoUM .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-priUc1OJCGAlNoUM .icon-shape rect,#mermaid-svg-priUc1OJCGAlNoUM .image-shape rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-priUc1OJCGAlNoUM .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-priUc1OJCGAlNoUM .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-priUc1OJCGAlNoUM :root{–mermaid-font-family:\”trebuchet ms\”,verdana,arial,sans-serif;}

Class C: 实时型

持续接收

几乎无延迟

Class B: 平衡型

定期接收

同步信标

定时下行

Class A: 最省电

上传数据

接收窗口1

接收窗口2

Class

三类设备详细对比

特性Class A (最常用)Class BClass C
接收时机 上传后短暂打开 定期打开 几乎一直打开
功耗 最低(电池可用数年) 中等 最高(需电源供电)
下行延迟 取决于上传周期 可预测(秒级) 最低(毫秒级)
典型应用 水表、环境监测 智能路灯 执行器、控制器
成本 最低 中等 较高

五、数据传输过程详解

数据上行流程

应用服务器

网络服务器

网关B

网关A

终端设备

应用服务器

网络服务器

网关B

网关A

终端设备

#mermaid-svg-bw2JvByqBXyTJd6z{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-bw2JvByqBXyTJd6z .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-bw2JvByqBXyTJd6z .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-bw2JvByqBXyTJd6z .error-icon{fill:#552222;}#mermaid-svg-bw2JvByqBXyTJd6z .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-bw2JvByqBXyTJd6z .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-bw2JvByqBXyTJd6z .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-bw2JvByqBXyTJd6z .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-bw2JvByqBXyTJd6z .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-bw2JvByqBXyTJd6z .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-bw2JvByqBXyTJd6z .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-bw2JvByqBXyTJd6z .marker{fill:#333333;stroke:#333333;}#mermaid-svg-bw2JvByqBXyTJd6z .marker.cross{stroke:#333333;}#mermaid-svg-bw2JvByqBXyTJd6z svg{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-bw2JvByqBXyTJd6z p{margin:0;}#mermaid-svg-bw2JvByqBXyTJd6z .actor{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-bw2JvByqBXyTJd6z text.actor>tspan{fill:black;stroke:none;}#mermaid-svg-bw2JvByqBXyTJd6z .actor-line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mermaid-svg-bw2JvByqBXyTJd6z .innerArc{stroke-width:1.5;stroke-dasharray:none;}#mermaid-svg-bw2JvByqBXyTJd6z .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333;}#mermaid-svg-bw2JvByqBXyTJd6z .messageLine1{stroke-width:1.5;stroke-dasharray:2,2;stroke:#333;}#mermaid-svg-bw2JvByqBXyTJd6z #arrowhead path{fill:#333;stroke:#333;}#mermaid-svg-bw2JvByqBXyTJd6z .sequenceNumber{fill:white;}#mermaid-svg-bw2JvByqBXyTJd6z #sequencenumber{fill:#333;}#mermaid-svg-bw2JvByqBXyTJd6z #crosshead path{fill:#333;stroke:#333;}#mermaid-svg-bw2JvByqBXyTJd6z .messageText{fill:#333;stroke:none;}#mermaid-svg-bw2JvByqBXyTJd6z .labelBox{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-bw2JvByqBXyTJd6z .labelText,#mermaid-svg-bw2JvByqBXyTJd6z .labelText>tspan{fill:black;stroke:none;}#mermaid-svg-bw2JvByqBXyTJd6z .loopText,#mermaid-svg-bw2JvByqBXyTJd6z .loopText>tspan{fill:black;stroke:none;}#mermaid-svg-bw2JvByqBXyTJd6z .loopLine{stroke-width:2px;stroke-dasharray:2,2;stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mermaid-svg-bw2JvByqBXyTJd6z .note{stroke:#aaaa33;fill:#fff5ad;}#mermaid-svg-bw2JvByqBXyTJd6z .noteText,#mermaid-svg-bw2JvByqBXyTJd6z .noteText>tspan{fill:black;stroke:none;}#mermaid-svg-bw2JvByqBXyTJd6z .activation0{fill:#f4f4f4;stroke:#666;}#mermaid-svg-bw2JvByqBXyTJd6z .activation1{fill:#f4f4f4;stroke:#666;}#mermaid-svg-bw2JvByqBXyTJd6z .activation2{fill:#f4f4f4;stroke:#666;}#mermaid-svg-bw2JvByqBXyTJd6z .actorPopupMenu{position:absolute;}#mermaid-svg-bw2JvByqBXyTJd6z .actorPopupMenuPanel{position:absolute;fill:#ECECFF;box-shadow:0px 8px 16px 0px rgba(0,0,0,0.2);filter:drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));}#mermaid-svg-bw2JvByqBXyTJd6z .actor-man line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-bw2JvByqBXyTJd6z .actor-man circle,#mermaid-svg-bw2JvByqBXyTJd6z line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;stroke-width:2px;}#mermaid-svg-bw2JvByqBXyTJd6z :root{–mermaid-font-family:\”trebuchet ms\”,verdana,arial,sans-serif;}

发送传感器数据

发送传感器数据(同时)

转发数据(带信号质量)

转发数据(带信号质量)

去重、选择最佳质量

推送有效数据

返回确认(可选)

下发确认(通过最佳网关)

发送确认

关键特性:自适应数据速率(ADR)

LoRaWAN最智能的特性之一就是ADR,它能自动调整设备的传输参数:

#mermaid-svg-6rI5HohHoq7DOAXB{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-6rI5HohHoq7DOAXB .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-6rI5HohHoq7DOAXB .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-6rI5HohHoq7DOAXB .error-icon{fill:#552222;}#mermaid-svg-6rI5HohHoq7DOAXB .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-6rI5HohHoq7DOAXB .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-6rI5HohHoq7DOAXB .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-6rI5HohHoq7DOAXB .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-6rI5HohHoq7DOAXB .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-6rI5HohHoq7DOAXB .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-6rI5HohHoq7DOAXB .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-6rI5HohHoq7DOAXB .marker{fill:#333333;stroke:#333333;}#mermaid-svg-6rI5HohHoq7DOAXB .marker.cross{stroke:#333333;}#mermaid-svg-6rI5HohHoq7DOAXB svg{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-6rI5HohHoq7DOAXB p{margin:0;}#mermaid-svg-6rI5HohHoq7DOAXB .label{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;color:#333;}#mermaid-svg-6rI5HohHoq7DOAXB .cluster-label text{fill:#333;}#mermaid-svg-6rI5HohHoq7DOAXB .cluster-label span{color:#333;}#mermaid-svg-6rI5HohHoq7DOAXB .cluster-label span p{background-color:transparent;}#mermaid-svg-6rI5HohHoq7DOAXB .label text,#mermaid-svg-6rI5HohHoq7DOAXB span{fill:#333;color:#333;}#mermaid-svg-6rI5HohHoq7DOAXB .node rect,#mermaid-svg-6rI5HohHoq7DOAXB .node circle,#mermaid-svg-6rI5HohHoq7DOAXB .node ellipse,#mermaid-svg-6rI5HohHoq7DOAXB .node polygon,#mermaid-svg-6rI5HohHoq7DOAXB .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-6rI5HohHoq7DOAXB .rough-node .label text,#mermaid-svg-6rI5HohHoq7DOAXB .node .label text,#mermaid-svg-6rI5HohHoq7DOAXB .image-shape .label,#mermaid-svg-6rI5HohHoq7DOAXB .icon-shape .label{text-anchor:middle;}#mermaid-svg-6rI5HohHoq7DOAXB .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-6rI5HohHoq7DOAXB .rough-node .label,#mermaid-svg-6rI5HohHoq7DOAXB .node .label,#mermaid-svg-6rI5HohHoq7DOAXB .image-shape .label,#mermaid-svg-6rI5HohHoq7DOAXB .icon-shape .label{text-align:center;}#mermaid-svg-6rI5HohHoq7DOAXB .node.clickable{cursor:pointer;}#mermaid-svg-6rI5HohHoq7DOAXB .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-6rI5HohHoq7DOAXB .arrowheadPath{fill:#333333;}#mermaid-svg-6rI5HohHoq7DOAXB .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-6rI5HohHoq7DOAXB .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-6rI5HohHoq7DOAXB .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-6rI5HohHoq7DOAXB .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-6rI5HohHoq7DOAXB .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-6rI5HohHoq7DOAXB .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-6rI5HohHoq7DOAXB .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-6rI5HohHoq7DOAXB .cluster text{fill:#333;}#mermaid-svg-6rI5HohHoq7DOAXB .cluster span{color:#333;}#mermaid-svg-6rI5HohHoq7DOAXB div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-6rI5HohHoq7DOAXB .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-6rI5HohHoq7DOAXB rect.text{fill:none;stroke-width:0;}#mermaid-svg-6rI5HohHoq7DOAXB .icon-shape,#mermaid-svg-6rI5HohHoq7DOAXB .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-6rI5HohHoq7DOAXB .icon-shape p,#mermaid-svg-6rI5HohHoq7DOAXB .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-6rI5HohHoq7DOAXB .icon-shape rect,#mermaid-svg-6rI5HohHoq7DOAXB .image-shape rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-6rI5HohHoq7DOAXB .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-6rI5HohHoq7DOAXB .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-6rI5HohHoq7DOAXB :root{–mermaid-font-family:\”trebuchet ms\”,verdana,arial,sans-serif;}

自适应数据速率工作流程

设备发送数据

网络服务器计算信噪比和RSSI

信号质量好?

提高数据速率降低功耗

降低数据速率增加覆盖

发送MAC命令调整设备参数

ADR的好处:

  • 近处设备用高速率,省电
  • 远处设备用低速率,保证通信
  • 自动优化整个网络的容量

六、与其他技术的对比

LoRaWAN vs NB-IoT vs 传统蜂窝

对比维度LoRaWANNB-IoT传统蜂窝(4G/5G)
频谱 免授权频段(免费) 授权频段(需牌照) 授权频段
网络费用 免费 按流量收费 按套餐收费
功耗 极低(10年电池) 较低(几年) 高(几天)
数据速率 0.3-50kbps 200kbps Mbps-Gbps
覆盖范围 广(15km郊区) 广(依赖基站) 非常广
部署成本 低(可自建网络) 高(依赖运营商)
穿透能力 强(可穿透地下室) 较强 一般
适合场景 传感器、表计 工业、车联网 视频、语音

LoRaWAN vs WiFi vs 蓝牙

对比维度LoRaWANWiFi蓝牙
传输距离 公里级 几十米 10米左右
功耗 极低
数据量 小(字节级) 大(兆字节级) 中等
网络拓扑 星型 星型 网状/点对点
穿透能力
适用场景 户外传感器 室内上网 穿戴设备

七、实际应用场景

场景一:智能水表

#mermaid-svg-lBFFmB8sZB9XFpiT{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-lBFFmB8sZB9XFpiT .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-lBFFmB8sZB9XFpiT .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-lBFFmB8sZB9XFpiT .error-icon{fill:#552222;}#mermaid-svg-lBFFmB8sZB9XFpiT .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-lBFFmB8sZB9XFpiT .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-lBFFmB8sZB9XFpiT .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-lBFFmB8sZB9XFpiT .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-lBFFmB8sZB9XFpiT .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-lBFFmB8sZB9XFpiT .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-lBFFmB8sZB9XFpiT .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-lBFFmB8sZB9XFpiT .marker{fill:#333333;stroke:#333333;}#mermaid-svg-lBFFmB8sZB9XFpiT .marker.cross{stroke:#333333;}#mermaid-svg-lBFFmB8sZB9XFpiT svg{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-lBFFmB8sZB9XFpiT p{margin:0;}#mermaid-svg-lBFFmB8sZB9XFpiT .label{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;color:#333;}#mermaid-svg-lBFFmB8sZB9XFpiT .cluster-label text{fill:#333;}#mermaid-svg-lBFFmB8sZB9XFpiT .cluster-label span{color:#333;}#mermaid-svg-lBFFmB8sZB9XFpiT .cluster-label span p{background-color:transparent;}#mermaid-svg-lBFFmB8sZB9XFpiT .label text,#mermaid-svg-lBFFmB8sZB9XFpiT span{fill:#333;color:#333;}#mermaid-svg-lBFFmB8sZB9XFpiT .node rect,#mermaid-svg-lBFFmB8sZB9XFpiT .node circle,#mermaid-svg-lBFFmB8sZB9XFpiT .node ellipse,#mermaid-svg-lBFFmB8sZB9XFpiT .node polygon,#mermaid-svg-lBFFmB8sZB9XFpiT .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-lBFFmB8sZB9XFpiT .rough-node .label text,#mermaid-svg-lBFFmB8sZB9XFpiT .node .label text,#mermaid-svg-lBFFmB8sZB9XFpiT .image-shape .label,#mermaid-svg-lBFFmB8sZB9XFpiT .icon-shape .label{text-anchor:middle;}#mermaid-svg-lBFFmB8sZB9XFpiT .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-lBFFmB8sZB9XFpiT .rough-node .label,#mermaid-svg-lBFFmB8sZB9XFpiT .node .label,#mermaid-svg-lBFFmB8sZB9XFpiT .image-shape .label,#mermaid-svg-lBFFmB8sZB9XFpiT .icon-shape .label{text-align:center;}#mermaid-svg-lBFFmB8sZB9XFpiT .node.clickable{cursor:pointer;}#mermaid-svg-lBFFmB8sZB9XFpiT .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-lBFFmB8sZB9XFpiT .arrowheadPath{fill:#333333;}#mermaid-svg-lBFFmB8sZB9XFpiT .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-lBFFmB8sZB9XFpiT .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-lBFFmB8sZB9XFpiT .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-lBFFmB8sZB9XFpiT .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-lBFFmB8sZB9XFpiT .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-lBFFmB8sZB9XFpiT .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-lBFFmB8sZB9XFpiT .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-lBFFmB8sZB9XFpiT .cluster text{fill:#333;}#mermaid-svg-lBFFmB8sZB9XFpiT .cluster span{color:#333;}#mermaid-svg-lBFFmB8sZB9XFpiT div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-lBFFmB8sZB9XFpiT .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-lBFFmB8sZB9XFpiT rect.text{fill:none;stroke-width:0;}#mermaid-svg-lBFFmB8sZB9XFpiT .icon-shape,#mermaid-svg-lBFFmB8sZB9XFpiT .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-lBFFmB8sZB9XFpiT .icon-shape p,#mermaid-svg-lBFFmB8sZB9XFpiT .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-lBFFmB8sZB9XFpiT .icon-shape rect,#mermaid-svg-lBFFmB8sZB9XFpiT .image-shape rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-lBFFmB8sZB9XFpiT .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-lBFFmB8sZB9XFpiT .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-lBFFmB8sZB9XFpiT :root{–mermaid-font-family:\”trebuchet ms\”,verdana,arial,sans-serif;}

智能水表应用

Class A

4G/光纤

Class C阀门

地下室水表每天上报用水量

社区网关

水务云平台

异常用水告警

自动生成账单

远程关阀命令

为什么选择LoRaWAN?

  • 水表在地下室,需要强穿透
  • 5-10年不用换电池
  • 每天只需上传几十字节数据
  • 可以自建网络,无需付运营商费用

场景二:智慧农业

#mermaid-svg-UsC23adx8FBNwdNm{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-UsC23adx8FBNwdNm .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-UsC23adx8FBNwdNm .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-UsC23adx8FBNwdNm .error-icon{fill:#552222;}#mermaid-svg-UsC23adx8FBNwdNm .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-UsC23adx8FBNwdNm .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-UsC23adx8FBNwdNm .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-UsC23adx8FBNwdNm .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-UsC23adx8FBNwdNm .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-UsC23adx8FBNwdNm .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-UsC23adx8FBNwdNm .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-UsC23adx8FBNwdNm .marker{fill:#333333;stroke:#333333;}#mermaid-svg-UsC23adx8FBNwdNm .marker.cross{stroke:#333333;}#mermaid-svg-UsC23adx8FBNwdNm svg{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-UsC23adx8FBNwdNm p{margin:0;}#mermaid-svg-UsC23adx8FBNwdNm .label{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;color:#333;}#mermaid-svg-UsC23adx8FBNwdNm .cluster-label text{fill:#333;}#mermaid-svg-UsC23adx8FBNwdNm .cluster-label span{color:#333;}#mermaid-svg-UsC23adx8FBNwdNm .cluster-label span p{background-color:transparent;}#mermaid-svg-UsC23adx8FBNwdNm .label text,#mermaid-svg-UsC23adx8FBNwdNm span{fill:#333;color:#333;}#mermaid-svg-UsC23adx8FBNwdNm .node rect,#mermaid-svg-UsC23adx8FBNwdNm .node circle,#mermaid-svg-UsC23adx8FBNwdNm .node ellipse,#mermaid-svg-UsC23adx8FBNwdNm .node polygon,#mermaid-svg-UsC23adx8FBNwdNm .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-UsC23adx8FBNwdNm .rough-node .label text,#mermaid-svg-UsC23adx8FBNwdNm .node .label text,#mermaid-svg-UsC23adx8FBNwdNm .image-shape .label,#mermaid-svg-UsC23adx8FBNwdNm .icon-shape .label{text-anchor:middle;}#mermaid-svg-UsC23adx8FBNwdNm .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-UsC23adx8FBNwdNm .rough-node .label,#mermaid-svg-UsC23adx8FBNwdNm .node .label,#mermaid-svg-UsC23adx8FBNwdNm .image-shape .label,#mermaid-svg-UsC23adx8FBNwdNm .icon-shape .label{text-align:center;}#mermaid-svg-UsC23adx8FBNwdNm .node.clickable{cursor:pointer;}#mermaid-svg-UsC23adx8FBNwdNm .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-UsC23adx8FBNwdNm .arrowheadPath{fill:#333333;}#mermaid-svg-UsC23adx8FBNwdNm .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-UsC23adx8FBNwdNm .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-UsC23adx8FBNwdNm .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-UsC23adx8FBNwdNm .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-UsC23adx8FBNwdNm .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-UsC23adx8FBNwdNm .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-UsC23adx8FBNwdNm .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-UsC23adx8FBNwdNm .cluster text{fill:#333;}#mermaid-svg-UsC23adx8FBNwdNm .cluster span{color:#333;}#mermaid-svg-UsC23adx8FBNwdNm div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-UsC23adx8FBNwdNm .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-UsC23adx8FBNwdNm rect.text{fill:none;stroke-width:0;}#mermaid-svg-UsC23adx8FBNwdNm .icon-shape,#mermaid-svg-UsC23adx8FBNwdNm .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-UsC23adx8FBNwdNm .icon-shape p,#mermaid-svg-UsC23adx8FBNwdNm .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-UsC23adx8FBNwdNm .icon-shape rect,#mermaid-svg-UsC23adx8FBNwdNm .image-shape rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-UsC23adx8FBNwdNm .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-UsC23adx8FBNwdNm .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-UsC23adx8FBNwdNm :root{–mermaid-font-family:\”trebuchet ms\”,verdana,arial,sans-serif;}

现代化农场

土壤湿度传感器Class A

网关

气象站Class A

灌溉阀门Class C

牛羊定位器Class B

网络服务器

手机APP

自动灌溉系统

优势体现:

  • 覆盖整个农场(几平方公里)
  • 牛羊定位器Class B模式,每天定时上报位置
  • 灌溉阀门Class C模式,随时准备接收开阀命令

场景三:智慧园区

应用设备类型数据量频率特殊需求
垃圾桶满溢检测 Class A 10字节 每小时 超低功耗
智能路灯控制 Class C 20字节 按需 实时响应
环境监测 Class A 50字节 每15分钟 多种传感器
停车位检测 Class A 5字节 状态变化 地埋式安装

八、安全性设计

LoRaWAN采用双重加密机制,确保数据安全:

#mermaid-svg-iLxSQemLq2yaCdlM{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-iLxSQemLq2yaCdlM .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-iLxSQemLq2yaCdlM .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-iLxSQemLq2yaCdlM .error-icon{fill:#552222;}#mermaid-svg-iLxSQemLq2yaCdlM .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-iLxSQemLq2yaCdlM .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-iLxSQemLq2yaCdlM .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-iLxSQemLq2yaCdlM .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-iLxSQemLq2yaCdlM .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-iLxSQemLq2yaCdlM .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-iLxSQemLq2yaCdlM .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-iLxSQemLq2yaCdlM .marker{fill:#333333;stroke:#333333;}#mermaid-svg-iLxSQemLq2yaCdlM .marker.cross{stroke:#333333;}#mermaid-svg-iLxSQemLq2yaCdlM svg{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-iLxSQemLq2yaCdlM p{margin:0;}#mermaid-svg-iLxSQemLq2yaCdlM .label{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;color:#333;}#mermaid-svg-iLxSQemLq2yaCdlM .cluster-label text{fill:#333;}#mermaid-svg-iLxSQemLq2yaCdlM .cluster-label span{color:#333;}#mermaid-svg-iLxSQemLq2yaCdlM .cluster-label span p{background-color:transparent;}#mermaid-svg-iLxSQemLq2yaCdlM .label text,#mermaid-svg-iLxSQemLq2yaCdlM span{fill:#333;color:#333;}#mermaid-svg-iLxSQemLq2yaCdlM .node rect,#mermaid-svg-iLxSQemLq2yaCdlM .node circle,#mermaid-svg-iLxSQemLq2yaCdlM .node ellipse,#mermaid-svg-iLxSQemLq2yaCdlM .node polygon,#mermaid-svg-iLxSQemLq2yaCdlM .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-iLxSQemLq2yaCdlM .rough-node .label text,#mermaid-svg-iLxSQemLq2yaCdlM .node .label text,#mermaid-svg-iLxSQemLq2yaCdlM .image-shape .label,#mermaid-svg-iLxSQemLq2yaCdlM .icon-shape .label{text-anchor:middle;}#mermaid-svg-iLxSQemLq2yaCdlM .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-iLxSQemLq2yaCdlM .rough-node .label,#mermaid-svg-iLxSQemLq2yaCdlM .node .label,#mermaid-svg-iLxSQemLq2yaCdlM .image-shape .label,#mermaid-svg-iLxSQemLq2yaCdlM .icon-shape .label{text-align:center;}#mermaid-svg-iLxSQemLq2yaCdlM .node.clickable{cursor:pointer;}#mermaid-svg-iLxSQemLq2yaCdlM .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-iLxSQemLq2yaCdlM .arrowheadPath{fill:#333333;}#mermaid-svg-iLxSQemLq2yaCdlM .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-iLxSQemLq2yaCdlM .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-iLxSQemLq2yaCdlM .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-iLxSQemLq2yaCdlM .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-iLxSQemLq2yaCdlM .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-iLxSQemLq2yaCdlM .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-iLxSQemLq2yaCdlM .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-iLxSQemLq2yaCdlM .cluster text{fill:#333;}#mermaid-svg-iLxSQemLq2yaCdlM .cluster span{color:#333;}#mermaid-svg-iLxSQemLq2yaCdlM div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-iLxSQemLq2yaCdlM .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-iLxSQemLq2yaCdlM rect.text{fill:none;stroke-width:0;}#mermaid-svg-iLxSQemLq2yaCdlM .icon-shape,#mermaid-svg-iLxSQemLq2yaCdlM .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-iLxSQemLq2yaCdlM .icon-shape p,#mermaid-svg-iLxSQemLq2yaCdlM .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-iLxSQemLq2yaCdlM .icon-shape rect,#mermaid-svg-iLxSQemLq2yaCdlM .image-shape rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-iLxSQemLq2yaCdlM .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-iLxSQemLq2yaCdlM .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-iLxSQemLq2yaCdlM :root{–mermaid-font-family:\”trebuchet ms\”,verdana,arial,sans-serif;}

安全架构

只有应用服务器能解密

只有网络服务器能验证

应用层加密AppSKey

传感器数据

网络层加密NwkSKey

设备身份

端到端安全

安全特性

密钥用途谁拥有
AppKey 根密钥,用于生成会话密钥 设备和应用服务器
AppSKey 加密应用数据 设备和应用服务器
NwkSKey 验证设备身份和完整性 设备和网络服务器

九、LoRaWAN的局限性

虽然LoRaWAN很强大,但也有不适合的场景:

  • 不适合传输大数据:比如图片、视频
  • 不适合实时性要求高的场景:Class A模式下,下行需要等待
  • 不适合移动性强的设备:快速移动会影响通信质量
  • 不适合双向频繁通信:每次下行都要等待上传机会
  • 十、总结

    LoRaWAN就像物联网世界里的"信鸽"——它飞得远、吃得少、能穿透障碍,虽然每次只能带很小的纸条,但对于绝大多数传感器应用来说,这已经足够了。

    最佳适用场景 Checklist

    • 需要远距离通信(>1公里)
    • 电池供电,需要长续航
    • 每次传输数据量小(<100字节)
    • 传输频率不高(每天几次到每小时一次)
    • 希望降低网络运营成本

    如果你的项目符合以上大多数条件,那么LoRaWAN很可能就是你的最佳选择!

    赞(0)
    未经允许不得转载:网硕互联帮助中心 » LoRaWAN详解:物联网世界的远距离低功耗通信
    分享到: 更多 (0)

    评论 抢沙发

    评论前必须登录!