Sample implementation of LoRaWAN components to connect LoRaWAN antenna gateway running IoT Edge directly with Azure IoT.
Перейти к файлу
Patrick Schuler 1fb6473071
Fixing docker build for LNS (#527)
* docker module builds were broken for the network server due to the addition of buidl props and version synchronization. The versions were not picked up causing the build to break.

* removing stylecop

Co-authored-by: Patrick Schuler <paschule@microsoft.com>
2021-10-14 09:32:19 +02:00
.github Add global EditorConfig file for consistency (#487) 2021-10-11 15:50:09 +02:00
Arduino Add global EditorConfig file for consistency (#487) 2021-10-11 15:50:09 +02:00
Docs Add global EditorConfig file for consistency (#487) 2021-10-11 15:50:09 +02:00
LoRaEngine Fixing docker build for LNS (#527) 2021-10-14 09:32:19 +02:00
Samples Add global EditorConfig file for consistency (#487) 2021-10-11 15:50:09 +02:00
Template Add global EditorConfig file for consistency (#487) 2021-10-11 15:50:09 +02:00
Tests/Shared Bump Microsoft.Azure.EventHubs from 4.2.0 to 4.3.2 in /LoRaEngine (#490) 2021-10-12 13:25:07 +02:00
Tools/Cli-LoRa-Device-Provisioning Fixing docker build for LNS (#527) 2021-10-14 09:32:19 +02:00
devops Add global EditorConfig file for consistency (#487) 2021-10-11 15:50:09 +02:00
.dockerignore Add global EditorConfig file for consistency (#487) 2021-10-11 15:50:09 +02:00
.editorconfig Use "var" consistently (#494) 2021-10-12 09:02:00 +02:00
.gitattributes Normalize line-endings consistently (#476) 2021-10-08 17:46:16 +02:00
.gitignore Add global EditorConfig file for consistency (#487) 2021-10-11 15:50:09 +02:00
.gitmodules Adding doc for RAK833 USB Packet Forwarder Module (#45) 2018-11-29 16:23:16 +01:00
.markdown-link-check.jsonc Add global EditorConfig file for consistency (#487) 2021-10-11 15:50:09 +02:00
.markdownlint.jsonc Add global EditorConfig file for consistency (#487) 2021-10-11 15:50:09 +02:00
CONTRIBUTING.md Feature/346 enable markdown linting (#371) 2021-09-25 13:49:11 +02:00
LICENSE Add global EditorConfig file for consistency (#487) 2021-10-11 15:50:09 +02:00
README.md Add global EditorConfig file for consistency (#487) 2021-10-11 15:50:09 +02:00
global.json Pin solution to .NET 5 SDK (#437) 2021-10-01 16:24:20 +02:00

README.md

Azure IoT Edge LoRaWAN Starter Kit

LoRa CI LoRa CI Markdown codecov

The LoRaWAN starter kit is an OSS cross platform private network implementation of the LoRaWAN specification built for connectivity to Azure IoT Hub. It enables users to setup their own LoRaWAN network that can connect to LoRa based nodes (sensors) and send decoded message packets to Azure IoT Hub for cloud based processing, analytics and other workloads. Alternatively, it allows sending commands from the cloud to the end nodes. The goal of the the project is to provide guidance and a reference for Azure IoT Edge users to experiment with LoRaWAN technology.

Architecture

Features

  • LoRaWAN 1.0.2 implementation (see LoRaWAN Specification Support for more details)
  • Device and Gateway management done completely through Azure IoT Hub.
  • Bi-directional communication between LoRa end devices and Azure cloud.
  • Custom packet decoding framework.
  • Identity Translation for LoRa devices with caching support.
  • Partial Offline and Casually connected Gateways scenarios.*
  • Easy deployment and setup using Azure ARM templates.
  • Small to Midsize Scalability Tests.
  • Simulator for development and testing without the need to own a Gateway.

LoRaWAN Specification Support

We plan to support the following key features of LoRaWAN 1.0.2 specification, however please note that not all of them are available as of today. Please refer to our release notes for more details on what is available.

  • Current supported Specification: 1.0.2.
  • Support of Class A and C devices.
  • Support of EU868 and US915 channel frequencies.
  • Activation through ABP and OTAA.
  • Confirmed and unconfirmed upstream messages.
  • Confirmed and unconfirmed downstream messages.
  • Multi-gateways.
  • Message de-duplication.
  • Support of MAC commands.
  • ADR Support.

Prerequisites

The following should be completed before proceeding with the LoRaWAN starter kit development or deployment in your environment.

  • You must have an Azure subscription. Get an Azure Free account to get started.
  • We are based on Azure IoT Edge so it is important that you understand the concepts and deployment model for Azure IoT Edge. Refer to Azure IoT Edge documentation to see how it works.
  • Understand how LoRa and LoRaWAN works. A great primer is available at the LoRa Alliance website.
  • To test the solution on a device, you need to have a LoRaWAN Device Kit Gateway and a LoRa end node. We have some recommendations in the Tested Gateways section below.

Getting Started

We have a variety of ways you can get started with the kit, chose the appropriate documentation based on your persona and applicability.

  • Setup a LoRaWAN Gateway: We provide an easy to use Azure ARM template and deployment guidance to get you quickly started with the LoRaWAN starter kit. Use the Quick Start to setup a LoRaWAN Gateway and connect to LoRA end nodes.

  • Upgrade an existing installation: Refer to the upgrade guide for instructions and tips for a clean upgrade.

  • Develop and debug the LoRaWAN starter kit: If you are a developer and want to contribute or customize the LoRaWAN starter kit, refer to our Developer Guidance for more details on how to build, test and deploy the kit in your dev environment. We also support a

  • Enable a gateway or device to be compatible with the starter kit: We have developed the LoRaWAN starter kit agnostic of a device manufacturer implementation and focussed on the specifics on underlying architectures (arm, x86). However, we understand that device manufacturers can have specific requirements; these could be specific to a gateway and the packet forwarders they use or to the LoRa nodes and the decoders the device may use. We have provided specific instructions on making these specialized hardware compatible with our kit. You can follow these instructions depending on your scenarios and also have your device gateway highlighted on our repo.

Known Issues and Limitations

Refer to Known Issues for known issues, gotchas and limitations.

Tested Gateways

Support

The LoRaWAN starter kit is an open source solution, it is NOT a Microsoft supported solution or product. For bugs and issues with the codebase please log an issue in this repo.

Contributing

If you would like to contribute to the IoT Edge LoRaWAN Starter Kit source code, please base your own branch and pull request (PR) off our dev branch. Refer to the Dev Guide for development and debugging instructions.