LoRa 网络节点的参考实现和文档。
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.
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/
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
NucleoLxxx - Discovery kit
SKiM880B, SKiM980A, SKiM881AXL
SAMR34
Please follow instructions provided by Development environment document.
Clone the repository from GitHub
$ git clone https://github.com/lora-net/loramac-node.git loramac-nodeLoRaMac-node project contains Git submodules that must be initialized
$ cd loramac-node
$ git submodule update --initThis 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 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 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.
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.
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
…periodic-uplink-lpp example for NucleoL476 platform with LR1110MB1DIS MBED shield and using LR1110 pre-provisioned secure-element
…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/
ping-pong example using LoRa modulation for NucleoL476 platform with LR1110MB1DIS MBED shield
…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/
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暂无开放 Issues,或尚未同步最近议题。