How to Connect Dusun LoRaWAN Gateway to TTN Platform?

ttn lorawan gateway
Table of Contents

Dusun LoRaWAN gateway runs a Linux-based OS to implement a LoRa package forwarder solution integrating with the TTN(The Things Network) to complete the data upload channel.

TTN is The Things Network, which is a global collaborative Internet of Things ecosystem that creates networks, devices, and solutions using LoRaWAN. The Things Network runs The Things Stack Community Edition, which is a crowdsourced, open, and decentralized LoRaWAN network. This network is a great way to get started testing devices, applications, and integrations, and get familiar with LoRaWAN.

Packet Forwarder: Dusun gateways use Semtech UDP Packet Forwarder to manage connection with TTN.

PlatformTTNChirpStackAWS
Packet ForwarderSemtech UDP Packet
Forwarder
Semtech UDP Packet
Forwarder
Basics Station

Configuration Steps

Step 1: Configuration in TTN (The Things Network)

In this document, take The Things Stack Community Edition as an example.

Note: The Things Network transitioned to The Things Stack Community Edition in 2021, here we take TTN and The Things Stack Community Edition as equivalent.

The detailed steps for configuration in The Things Network are shown below,

a) Choose the correct region and create an account in the link https://console.cloud.thethings.network/

b) Log in to the Console and select Register gateway

图片1

c) Customize a unique EUI and it will be used in the next step when you configure the Dusun gateway.

图片2

d) Fill in the Gateway ID, the name and frequency plan recorded on the gateway label, and click “Register gateway”.

图片3

Then gateway is successfully registered, and now we get the “Gateway Server address”, which will be used in the next step.

图片4

Step 2: Configuration in Dusun Gateways

a) Log in gateway using the IP address gotten from your router, default user name: root, Password: root

图片5

b) Switch to “IOT Services -> Cloud Config -> The Things Stack”;

Fill in the correct domain we recorded just now, “eu1.cloud. the things.network”, fill in the Gateway EUI you set before, then click Save & Apply.

图片6

Step 3: Check the connection status on TTN

a) Log in to the console, it can be seen the gateway is correctly connected,

图片7

b) Select the gateway created just now, the message from the gateway can be seen in the Live data section

图片8

Connect LoRaWAN Devices

Step 1: Create application

Create the application step by step on the TTN console.

图片9
图片10

Step 2: Register LoRaWAN devices

Select the application created just now, go to the “End devices” tab, and click “Register end device”

图片11

Here we specify the configuration manually, you can choose to select from the LoRaWAN Device Repository too. It’s up to you. In this example, the frequency plan of the end device is US 902-928MHz, the same as the Dusun gateway.

图片12

Fill in the parameters, and then click “Register end device”.

You can get these parameters from the device manufacturer or set them yourself on the device with a tool.

图片13

Now the end device is registered.

图片14

Step 3: Send message

In this example, we use the IPOP application to connect a PC with the device via the serial port. And simulate sending messages forward uplink. You can use your method.

图片15

Now you can see messages on the “Live data” page of the end device.

图片16

At the same time, you can check the “Live data” page of the gateway to make sure the gateway received an uplink message from the end device.

图片17

Leave a Reply

Looking For An IoT Device Supplier For Your Projects?

CONTACT US

    This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

    IoT Gateways for Recommendation

    CONTACT US

      This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

      Welcome to DusunIoT

      Hi there 👋 Is there anything we can help you with today? Please fill in the form below for the team to follow up if you become disconnected.

        Download

          This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

          Ultimate IoT White Paper for Developer Gateway

          DusunIoT Distributor Program

            This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

              This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.