loader

Getting started with TTN and LoRa

The goal of this tutorial is to connect a LoRa module to The Things Network, also known as TTN.

Lista de materiales necesarios

  • NUCLEO-L476RG board
  • LoRa® module

Introduction

TTN relies on gateways (LoRa antennas) to provide IoT connectivity.
If a TTN network already exists in your location, you can simply connect your LoRa device to it by following the steps below.
If there is no TTN network around, you might need to create your own TTN network with a gateway with the help of this tutorial : connect-a-new-ttn-gateway

How to find your devEUI

Step 1 : Connect the LoRa-E5 module directly to the "UART" slot.
l476_with_module
Step 2 : Go to https://fr.vittascience.com/l476/
Step 3 : Pick the initialisation block of the LoRa module from the Communication category and drop it in the blockly workspace.
Step 4 : Connect the board to your computer and click on the upload button.
Step 5 : Once the upload is finished , the program will start and you will see lots of information about your module in the console.

log_lora

Keep it in mind you will need it when adding your module to the application.

TTN Console Configuration Setup

Step 1 : Load into TTN website: https://www.thethingsnetwork.org and create your account, then access “Console” and first click on "APPLICATIONS"
ttn_website
Step 2 : + Add an Application
- Application ID : Enter a unique name.
- Application name : Enter a name
- Description: Enter a description.

Then click on click_on

Step 3 : Once your application is created, click on it and access the application's control panel
app_control_panel

Then click on “Add end device”.


Step 4 : Now you can register your LoRa module, select the frequency plan depending on your location, your module version, regional parameters and your devEUI.
The AppEUI and AppKey can be generated at this moment.

register_end_device

Finally choose your end device id and click on “Register end device”.

That's it, your application and your LoRa module are now set up !

Licencia de uso

Licence Creative Commons

Este recurso está disponible bajo los términos de la licencia Creative Commons Attribution-Share Alike 2.0 France License.
Preparing interface...