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.
Platform | TTN | ChirpStack | AWS |
Packet Forwarder | Semtech 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
c) Customize a unique EUI and it will be used in the next step when you configure the Dusun gateway.
d) Fill in the Gateway ID, the name and frequency plan recorded on the gateway label, and click “Register gateway”.
Then gateway is successfully registered, and now we get the “Gateway Server address”, which will be used in the next step.
Step 2: Configuration in Dusun Gateways
a) Log in gateway using the IP address gotten from your router, default user name: root, Password: root
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.
Step 3: Check the connection status on TTN
a) Log in to the console, it can be seen the gateway is correctly connected,
b) Select the gateway created just now, the message from the gateway can be seen in the Live data section
Connect LoRaWAN Devices
Step 1: Create application
Create the application step by step on the TTN console.
Step 2: Register LoRaWAN devices
Select the application created just now, go to the “End devices” tab, and click “Register end device”
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.
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.
Now the end device is registered.
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.
Now you can see messages on the “Live data” page of the end device.
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.