百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
L

LoRaMac-node

> DevOps
开源

LoRa 网络节点的参考实现和文档。

2.0K stars0 点赞1 次浏览
访问官网GitHub

工具介绍

LoRa 网络节点的参考实现和文档。

LoRaWAN end-device stack implementation and example projects

Subsequent to the availability of a new and feature enhanced LoRaWAN� stack within LoRa Basics� Modem, Semtech has decided to transition LoRaMac-Node to maintenance mode (critical bug fixes will still be supported).

LoRa Basics� Modem is the platform implementing new LoRaWAN features (i.e. Relay, CSMA) and will support future improvements introduced by the LoRa Alliance (e.g. LoRaWAN 1.2). While the formerly introduced LoRaMac-Node stack transitions to maintenance mode Semtech recommends customers to use LoRa Basics� Modem for new designs.

Introduction

The aim of this project is to show an example of an end-device LoRaWAN stack implementation.

This project has 2 active branches in place.

Branch L2 spec RP spec Tag/Milestone Class Comments
1.0.4 / 1.1.0 + FCntDwn ERRATA 2-1.0.3 v4.7.0 A/B/C LoRaWAN L2 1.0.4 - Released
master 1.0.4 / 1.1.0 + FCntDwn ERRATA 2-1.0.3 v4.7.0 A/B/C LoRaWAN L2 1.0.4 / 1.1.0
v5.0.0-branch 1.0.4 / 1.1.0 + FCntDwn ERRATA 2-1.0.3 M 5.0.0 A/B/C LoRaWAN L2 1.0.4 / 1.1.0 - Adds support for LR-FHSS modulation

This project fully implements ClassA, ClassB and ClassC end-device classes and it also provides SX1272/73, SX1276/77/78/79, SX1261/2 and LR1110 radio drivers.

For each currently supported platform example applications are provided.

  • 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/*) 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/

Supported platforms

This project currently provides support for the below platforms.
This project can be ported to other platforms using different MCU than the ones currently supported.
The Porting Guide document provides guide lines on how to port the project to other platforms.

  • NAMote72

    • NAMote72 platform documentation
  • NucleoLxxx - Discovery kit

    • NucleoLxxx and Discovery kit platforms documentation
  • SKiM880B, SKiM980A, SKiM881AXL

    • SKiM88xx platforms documentation
  • SAMR34

    • SAMR34 platform documentation

Getting Started

Prerequisites

Please follow instructions provided by Development environment document.

Cloning the repository

Clone the repository from GitHub

bash
$ git clone https://github.com/lora-net/loramac-node.git loramac-node

LoRaMac-node project contains Git submodules that must be initialized

bash
$ cd loramac-node
$ git submodule update --init

Secure-element commissioning

This project currently supports 3 different secure-elements soft-se, lr1110-se and atecc608a-tnglora-se implementations.

In order to personalize the MCU binary file with LoRaWAN EUIs or/and AES128 keys one must follow the instructions provided by soft-se, lr1110-se and atecc608a-tnglora-se chapters

soft-se

soft-se is a pure software emulation of a secure-element. It means that everything is located on the host MCU memories. The DevEUI, JoinEUI and AES128 keys may be stored on a non-volatile memory through dedicated APIs.

In order to update the end-device identity (DevEUI, JoinEUI and AES128 keys) one must update the se-identity.h file located under ./src/peripherals/soft-se/ directory.

Note: In previous versions of this project this was done inside Commissioning.h files located under each provided example directory.

lr1110-se

lr1110-se abstraction implementation handles all the required exchanges with the LR1110 radio crypto-engine.

All LR1110 radio chips are pre-provisioned out of factory in order to be used with LoRa Cloud Device Join Service.

In case other Join Servers are to be used the DevEUI, Pin, JoinEUI and AES128 keys can be updated by following the instructions provided on chapter "13. LR1110 Provisioning" of the LR1110 User Manual.

When the compile option SECURE_ELEMENT_PRE_PROVISIONED is set to ON the lr1110-se will use the factory provisioned data (DevEUI, JoinEUI and AES128 keys).
When the compile option SECURE_ELEMENT_PRE_PROVISIONED is set to OFF the lr1110-se has to be provisioned by following one of the methods described on chapter "13. LR1110 Provisioning" of the LR1110 User Manual. The DevEUI, Pin and JoinEUI can be changed by editing the se-identity.h file located in ./src/peripherals/lr1110-se/ directory.

atecc608a-tnglora-se

The atecc608a-tnglora-se abstraction implementation handles all the required exchanges with the ATECC608A-TNGLORA and ATECC608B-TNGLORA secure-elements.

This secure-element is always pre-provisioned and its contents can't be changed.

Building Process

Command line

periodic-uplink-lpp example for NucleoL476 platform with LR1110MB1DIS MBED shield and using LR1110 pre-provisioned secure-element

…

ping-pong example using LoRa modulation for NucleoL476 platform with LR1110MB1DIS MBED shield

…

VSCode

periodic-uplink-lpp example for NucleoL476 platform with LR1110MB1DIS MBED shield and using LR1110 pre-provisioned secure-element

  • Please edit .vscode/settings.json file
Click to expand!

…

  • Click on "CMake: Debug: Ready" and select build type Debug or Release.

  • Wait for configuration process to finish

  • Click on "Build" to build the project.

  • Wait for build process to finish

  • Binary files will be available under ./build/src/apps/LoRaMac/

    • LoRaMac-periodic-uplink-lpp - elf format
    • LoRaMac-periodic-uplink-lpp.bin - binary format
    • LoRaMac-periodic-uplink-lpp.hex - hex format

ping-pong example using LoRa modulation for NucleoL476 platform with LR1110MB1DIS MBED shield

  • Please edit .vscode/settings.json file
Click to expand!

…

  • Click on "CMake: Debug: Ready" and select build type Debug or Release.

  • Wait for configuration process to finish

  • Click on "Build" to build the project.

  • Wait for build process to finish

  • Binary files will be available under ./build/src/apps/ping-pong/

    • ping-pong - elf format
    • ping-pong.bin - binary format
    • ping-pong.hex - hex format

Serial console NVM management

The periodic-uplink-lpp and fuota-test-01 examples allow to reset the NVM storage through the serial interface.

In order to reset the NVM contents one must hit ESC + N keyboard keys on a serial terminal.

The serial terminal will show the following after ESC + N keyboard keys are hit. After reseting the end-device the clean NVM will be used.

ESC + N

NVM factory reset succeed

PLEASE RESET THE END-DEVICE

Acknowledgments

  • The mbed (https://mbed.org/) project was used at the beginning as source of inspiration.
  • This program uses the AES algorithm implementation (http://www.gladman.me.uk/) by Brian Gladman.
  • This program uses the CMAC algorithm implementation (http://www.cse.chalmers.se/research/group/dcs/masters/contikisec/) by Lander Casado, Philippas Tsigas.
  • The Things Industries for providing Microchip/Atmel SAMR34 platform and ATECC608A-TNGLORA secure-element support.
  • Tencent Blade Team for security breach findings and solving propositions.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Ccloramaclorawanlorawan-certification

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类DevOps
定价开源

> 相关工具

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理