Quickly get started with AWS IoT Core for LoRaWAN with sample solutions (binary decoding, device and gateway monitoring, downlink, dashboarding, provisioning automation)

aws-samples, updated πŸ•₯ 2022-10-28 14:35:25

Quickly get started with AWS IoT Core for LoRaWAN with sample solutions (binary decoding, device and gateway monitoring, downlink, dashboarding, provisioning automation)

New to AWS IoT Core for LoRaWAN? Consider step-by-step tutorial at https://iotwireless.workshop.aws

AWS IoT Core for LoRaWAN enables you to set up a private LoRaWAN network by connecting your devices and gateways with no LoRaWAN Network Server setup required. This repository contains resources to quickly get started developing solutions using AWS IoT Core for LoRaWAN. It includes samples for typical design patterns (binary decoder, downlink messaging, Thing shadow update) and fully functional applications (dashboards, condition monitoring and alarming) and automation and observability guidelines.

Please consider our developer guide to learn how to connect your wireless devices and gateways to AWS IoT Core for LoRaWAN.

Automation and observability

Decoding binary payloads

LoRaWAN devices typically send uplink payloads as binary encoded messages. Below you will find various options for an implementation of binary payload decoding.

  • Decoding binary payloads from LoRaWAN devices with Python and Node.js
    In this sample you will learn how to decode a binary message from your LoRaWAN device using Python or Node.js and integrate the decoded payload with more than 17 AWS services using AWS IoT Rules. Guidelines for an integration of existing decoder code in Node.js and Python and building your own decoders are included. See a list of >12 included examples decoders here, new contributions are welcome.

  • Decoding binary payloads from LoRaWAN devices using Pilot Things Sensor Library
    This repository can help you to accelerate development of your LoRaWAN-based IoT solutions by providing a deployable reference architecture which will decode binary data using the Pilot Things Sensor Library. The Pilot Things Sensor Library is a SaaS offering that can be purchased from the AWS marketplace

  • Decoding Cayenne Low Power Payload (LPP)
    Cayenne LPP format allows the device to send multiple sensor data at one time. Different kinds of sensor data are sent in the individual frames and each sensor data is prefixed with two bytes: data channel (a unique sensor identifier) and one of predefined data types (e.g. analog input, humidity or GPS location).

Samples for typical design patterns

  • Sending downlink payload to a LoRaWAN device
    In this sample you will learn how to implement different options for sending downlink payload to your LoRaWAN devices. It includes examples for AWS SDK, AWS CLI and AWS IoT Core message broker.

  • Updating IoT Thing shadow with decoded device payload
    AWS IoT Thing Shadows can make a device’s state available to apps and other services whether the device is connected to AWS IoT or not. In this sample you will learn how to update the shadow of an AWS IoT Thing with the telemetry from a LoRaWAN device.

Deployable sample applications

Useful guidelines

Included binary decoders

LoRaWAN devices often encode transmitted data in a binary format, as it increases transmission efficiency and improves battery lifetime. However, as the data arrive in the cloud, many use cases require a structured format. Transforming the binary data into JSON, for example, enables filtering and enrichment using AWS IoT SQL as well as integration with further AWS services using AWS IoT Rule Actions.

The sample Decoding binary payloads from LoRaWAN devices repository contains examples of binary decoders. Please note that all decoders are provided without any guarantee to fit for any specific purpose and are only intended for use in a laboratory or prototyping environment. The list below is not to be understood as a recommendation of specific manufacturers or specific device models. AWS IoT Core for LoRaWAN supports any LoRaWAN device that complies with LoRaWAN specifications 1.0.x and 1.1. Please consult AWS Partner Device Catalog for an overview of qualified devices. Said that, please find an overview of examples below:

  • Generic
  • Dragino LSN50
  • Air quality / CO2 / environment measurement
  • Elsys ERS CO2
  • Door and window opening
  • Elsys EMS Door
  • Dragino LDS01
  • GNSS tracking
  • Dragino LGT92
  • Globalsat LT-100
  • Browan Tabs Object Locator
  • Presence and smart home
  • Tektelic Smart Room Sensor
  • Sound level measurement
  • Elsys ERS Sound
  • Temperature, humidity and moisture
  • Browan Tabs Temperature & Humidity Sensor
  • Dragino LHT65 (temperature and humidity)
  • Dragino LSE01 (temperature and moisture)
  • Dragino LLMS01 (leaf moisture sensor)
  • Dragino LAQ4 (Air Quality Sensor CO2 + TVOC)
  • Elsys ERS Lite
  • Laird Senstrius RS1xx
  • Water Metering
  • Axioma W1
  • Cayenne Low Power Payload (LPP)
  • Network tester
  • Adeunis FTD2
  • Digital Contact Sensor
  • Adeunis Dry Contacts
  • Weather station
  • MeteoHelix Iot Pro
  • Development Board
  • ST Nucleo-WL55JC

Contributions to example binary decoders are welcome.

Getting help

Test results

| Branch | Result | | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | main | |


AWS IoT Support for RAK 7258-Gateway or RAK 4630-Core

opened on 2022-10-03 15:40:52 by Devansh-Shah-5400

Can you also add support for RAKWireless Devices Rak7258 or RAK4630 to connect with AWS-IoT Core-LoRaWAN

AWS IoT LoRa Gateway DYI with Raspberry PI and Dragino LoRa GPS HAT

opened on 2022-09-08 03:00:24 by leojapakn


I'm running the AWS workshop in order to build a DYI gateway but buying a RAK 2245 as the Workshop suggests is not affordable for my use case. I'm looking for use the Draginop LoRa GPS HAT with SX1276 Transciever. here is the official manual: https://www.dragino.com/downloads/downloads/LoRa-GPS-HAT/LoRa_GPS_HAT_UserManual_v1.0.pdf https://catalog.us-east-1.prod.workshops.aws/workshops/b95a6659-bd4f-4567-8307-bddb43a608c4/en-US/700-advanced/diygw-intro

Could it be possible to build a gateway with it?

If yes, it is also possible to use an end node with an ESP32 with GPS module?

Thanks in advance!

RA-02 SX1278 - 433Mhz AWS Lora Gateway

opened on 2022-09-05 13:09:45 by hakaiderii

is there any possible way to create AWS lora gateway using RA-02 SX1278 with 433Mhz ? i can not see option to choose low frequency band can i use random EUI number ?

Dragino LT-22222 LoRaWan Controller

opened on 2022-08-07 14:50:10 by pimoba


following indications from the AWS Workshop, I was hoping the following LoRaWAn controller could be added as end devices for LoraWan: Dragino LT-22222

Thanks a lot

Milesight LoRaWan Controller UC501 v1

opened on 2022-08-07 14:46:29 by pimoba

Hi, I appreciate it if you may help me by including this device. Regards.

GlobalSat LT-100 is not supported even if decoder name exists.

opened on 2022-06-28 08:04:32 by tooruuetani

See https://catalog.us-east-1.prod.workshops.aws/workshops/b95a6659-bd4f-4567-8307-bddb43a608c4/en-US/400-decoding-binary/200-build-deploy

I choose GlobalSat LT-100, and inputed DecoderName to globalsat_lt100. But there was an error message. Parameter 'DecoderName' must be one of AllowedValues

How do I configure this lambda function ?

2022-06-28 16_59_11


Added a capability to build and deploy Node.js binary decoders 2021-02-22 10:02:44

  • Added AWS Lambda in Node.js
  • Added IoT Rule to invoke lambda
  • Added sample decoders in Node.js

Initial release 2021-02-15 19:33:04

iot lorawan lns aws-iot-core aws-iot lpwan lorawan-devices timestream lorawan-device lora decoder binary-decoders python nodejs