LoRaMac-node 项目使用教程

LoRaMac-node 项目使用教程

LoRaMac-node Reference implementation and documentation of a LoRa network node. LoRaMac-node 项目地址: https://gitcode.com/gh_mirrors/lo/LoRaMac-node

1. 项目介绍

LoRaMac-node 是一个 LoRaWAN 网络节点的参考实现和文档项目。该项目旨在展示 LoRaWAN 终端设备堆栈的实现示例,支持 ClassA、ClassB 和 ClassC 终端设备类,并提供 SX1272/73、SX1276/77/78/79、SX1261/2 和 LR1110 无线电驱动程序。

2. 项目快速启动

2.1 克隆项目

首先,克隆 LoRaMac-node 项目到本地:

git clone https://github.com/Lora-net/LoRaMac-node.git
cd LoRaMac-node

2.2 初始化子模块

LoRaMac-node 项目包含 Git 子模块,需要初始化这些子模块:

git submodule update --init

2.3 构建项目

以下是构建 periodic-uplink-lpp 示例应用程序的命令行示例,适用于 NucleoL476 平台,使用 LR1110MB1DIS MBED 屏蔽和预配置的 LR1110 安全元素:

mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release \
      -DTOOLCHAIN_PREFIX="<replace by toolchain path>" \
      -DCMAKE_TOOLCHAIN_FILE="../cmake/toolchain-arm-none-eabi.cmake" \
      -DAPPLICATION="LoRaMac" \
      -DSUB_PROJECT="periodic-uplink-lpp" \
      -DCLASSB_ENABLED="ON" \
      -DACTIVE_REGION="LORAMAC_REGION_EU868" \
      -DREGION_EU868="ON" \
      -DREGION_US915="OFF" \
      -DREGION_CN779="OFF" \
      -DREGION_EU433="OFF" \
      -DREGION_AU915="OFF" \
      -DREGION_AS923="OFF" \
      -DREGION_CN470="OFF" \
      -DREGION_KR920="OFF" \
      -DREGION_IN865="OFF" \
      -DREGION_RU864="OFF" \
      -DBOARD="NucleoL476" \
      -DMBED_RADIO_SHIELD="LR1110MB1XXS" \
      -DSECURE_ELEMENT="LR1110_SE" \
      -DSECURE_ELEMENT_PRE_PROVISIONED="ON" \
      -DUSE_RADIO_DEBUG="ON"
make

3. 应用案例和最佳实践

3.1 FUOTA 测试场景

LoRaMac/fuota-test-01 是一个 FUOTA(Firmware Update Over The Air)测试场景的终端设备示例应用程序。该应用程序基于提供的通用包构建。

3.2 周期性上传

LoRaMac/periodic-uplink-lpp 是一个 ClassA/B/C 终端设备示例应用程序,周期性地使用 Cayenne LPP 协议上传帧。

3.3 点对点 RF 链路

ping-pong 是一个点对点 RF 链路示例应用程序。

4. 典型生态项目

4.1 LoRa Basics™ Modem

LoRa Basics™ Modem 是 Semtech 推出的平台,实现了新的 LoRaWAN 功能(如 Relay、CSMA),并支持 LoRa Alliance 引入的未来改进(如 LoRaWAN 1.2)。

4.2 LoRaWAN 认证协议

每个 LoRaWAN 应用程序示例(LoRaMac/*)都包含 LoRa-Alliance LoRaWAN 认证协议的实现。

4.3 LoRaWAN 堆栈 API 文档

LoRaWAN 堆栈 API 文档可以在 这里 找到。

LoRaMac-node Reference implementation and documentation of a LoRa network node. LoRaMac-node 项目地址: https://gitcode.com/gh_mirrors/lo/LoRaMac-node

创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考

The aim of this project is to show an example of the endpoint LoRaWAN stack implementation. This project has 3 active branches in place. The master branch which provides the latest released source code (v4.4.2), the develop branch which provides the current source code development status to be released next (Milestone 4.4.3) and the feature/5.0.0 branch which provides a preview of the current source code development status for LoRaWAN Specification v1.1 specification.(Milestone 5.0.0) The master branch implementation is based on LoRaWAN Specification v1.0.3 and LoRaWAN Regional Parameters v1.0.3revA specifications. ClassA, ClassB and ClassC end-device classes are fully implemented. The develop branch implementation is based on LoRaWAN Specification v1.0.3 and LoRaWAN Regional Parameters v1.0.3revA specifications. ClassA, ClassB and ClassC end-device classes are fully implemented. The feature/5.0.0 branch implementation is based on LoRaWAN Specification v1.1 and LoRaWAN Regional Parameters v1.1rB specifications. ClassA, ClassB and ClassC end-device classes are fully implemented. This project also provides SX1272/73, SX1276/77/78/79 and SX1261/2 radio drivers. For each currently supported platform example applications are provided. LoRaMac/classA: ClassA end-device example application. LoRaMac/classB: ClassB end-device example application. LoRaMac/classC: ClassC end-device example application. LoRaMac/fuota-test-01: FUOTA test scenario 01 end-device example application. (Based on provided application common packages) LoRaMac/periodic-uplink-lpp: ClassA/B/C end-device example application. Periodically uplinks a frame using the Cayenne LPP protocol. (Based on provided application common packages) ping-pong: Point to point RF link example application. rx-sensi: Example application useful to measure the radio sensitivity level using an RF generator. tx-cw: Example application to show how to generate an RF Continuous Wave transmission. Note: Each LoRaWAN application example (LoRaMac/classX) includes an implementation of the LoRa-Alliance; LoRaWAN certification protocol. Note: The LoRaWAN stack API documentation can be found at: http://stackforce.github.io/LoRaMac-doc/
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

卓桔洋

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值