Notes for CloudStudio
Table of Contents:
- 1. Introduction
- 2. Prerequisites
- 3. Register the Device in The Things Network (TTN)
- 4. Create the integration between TTN and Cloud Studio IoT
1. Introduction
This guide provides step-by-step instructions for integrating Dragino LoRaWAN devices with the Cloud Studio IoT platform using The Things Network (TTN) as the network server.Cloud Studio IoT supports other LoRaWAN network servers like ChirpStack, Loriot, AWS IoT, Actility, Helium, and Orbiwise as well.
2. Prerequisites
Before starting, ensure you have:
- A Dragino LoRaWAN device (e.g., LHT65, LSE01, LGT92, etc.).
- An account on The Things Network (TTN).
- An account on Cloud Studio IoT.
3. Register the Device in The Things Network (TTN)
3.1 Create an Application in TTN
You must first have an account in The Things Network (TTN). Once logged in, the first step is to create an application in TTN. This creates a space where your devices will be grouped.
Step 1:
Log in to your TTN Console.
Navigate to Applications in the left menu and click Add application.
Step 2:
Fill in the required fields and click Create Application.
3.2 Register your Dragino device
This is a virtual representation in TTN of the physical device you want to integrate.
Step 1:
In your TTN application, go to End devices and click Register end device.
You can add your device in two ways:
- Selecting it from the repository (brand, model, hardware version, firmware version, and profile region)
- Adding it manually
For this example, we will select it from the repository.
Step 2:
Each Dragino device is shipped with a sticker with the default device EUI as below:
Further down, you'll need to enter the JoinEUI — a unique identifier provided by the manufacturer, used for OTAA (over-the-air activation), the process by which the device joins the LoRaWAN network.
Step 3:
When you click Confirm, you will see additional fields to complete:
DevEUI: Unique identifier from the manufacturer, often printed on the device casing.
AppKey: Used for OTAA activation; provided by the manufacturer or generated by you.
End device ID: Created by you to identify the device in the application.
Label: Optional; for grouping devices by tags.
Click Register end device.
Step 4: Power on the device and verify that it sends data by checking Live Data in TTN.
Once created, you can power on the device and check if it's sending LoRaWAN data. TTN should display the received packets under Live Data.
4. Create the integration between TTN and Cloud Studio IoT
This step allows TTN to forward the received data to Cloud Studio IoT.
4.1 Set Up a Webhook in TTN
Step 1: In your TTN application, go to Webhooks and click "Add webhook".