Notes for CloudStudio

Version 126.1 by Mengting Qiu on 2025/08/14 17:35

     Table of Contents:

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.

AD_4nXfHqy9yfnmGJMemFCARh7a1yHir9Sw9e-5dtO5SffOxRDJM2GakvAoct-OZBNDhjXy0E75nGt0nORsdUAWCJcAQ3sh6LIg0KDB9HW35qW4W5pRMopZxcl4nogb3YRxK9gsissGpbQ

Step 2: 

Fill in the required fields and click Create Application.

AD_4nXfyL_g6JiKtkY1r4xEjq_nU6PEeIYtSwcQy0wFnNx5n0dzptYnCgwSKl_FgS0EjND931clQQvaNYPx4wAVwRlD3byx0-OFozQAdqarWAi2C80SMl6-HvWS-32hS4kYaEGMYHB3yvw

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.

AD_4nXeJEQuEERXILO4GWROFEj7eALLLMPfzZAFiD2okV6u2v6ZoYXfjmcx6IHC4TG7mc0edCztyWO24gCiVQtT6r9Wfn5OCFIBDOBAUKMCtGYzMhxqoCL0rG5vrWSz321YewiZMe1_5jg

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:

1755162968187-879.png

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.

AD_4nXfMnziRfzaI4Ynw2z7cntE13mPEe5Lh7Qq1FPbrktzqbw2mY_NJMo0fqfwvq0EuvE38z4SqZ9UFKUXTFpftggS6a1y5bFl255TGrT0L5p-o2n9LDTcEa4FozCbKNjzEfGkHvVtWbQ

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.

AD_4nXfK8MDKf1sDac6wvjwwIhWWUTUop64icr1iwu-wv3e4QKLk-M0fv_LduKu8tuCKISKD6yTfYflcJhPKmrNzvn0JNEYORK_567Lul9QPy62grCUT0Rgj0LzPZTqmVnn1yzFG3mro

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.

AD_4nXfT4Vt1IXk4znjHjfbzG84fqd1r1G5Vz4JvyVgmUSzMBLj5DJeamkipnMoN1AAdOljjG3EaNMc8hAY9OIFb09VJ4ViHfyIap9ALSewcUIkNwvKxU80MSSNBnjkNGrXpfrPIf9FCFw

AD_4nXeLxVFDP93c-2Gs3elsHdSm_mntfJJq5RT_GO2ibC21U0cPEtXJFyVFX5iNQuFxqakUqD3xyxE0z6IaQyCAQNfovnVZhlOHiddrRd14k1zyR8soTxvmSL-CKVxsfV8oVALr_yUqUg

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".

AD_4nXeg_LbwZkwREu_ZHdsBdOuRQJeNyjSGaRQB4RYeMxJjYZ2QuA1rpcLJ3xQgzeRg5aPYMLoY4wRuVpzZssEyBjSpgy1lRtw8Zu4ukxx6MAbYOQe5ZpMJ-C1S7X3HncySJFSsZULRbA