The ecosystem of LoRaWAN is quite good, with open-source or free resources available for nodes, gateways, and servers. Among them, the free server www.thethingsnetwork.org is very popular, with nearly ten thousand gateways deployed worldwide. Today, we will discuss how to use this server.
You need to register an account at https://www.thethingsnetwork.org (hereinafter referred to as ttn). This involves two parts: first, connecting the gateway to ttn, and second, connecting the node to ttn.
Connecting the Gateway to ttn
1. Select a Gateway
2. Register a Gateway
3. Enter the Gateway EUI, select the frequency band, description, etc. The standard gateway EUI is 8 bytes, and it is required that the gateway uses the Semtech standard packet forwarding protocol format.
4. Gateway Settings
Set the server address to: router.cn.thethings.network. The setup method varies depending on the gateway.
5. Check Status
Connecting the Node to ttn
1. Select Application
2. Create Application
3. Add Device under the ff6 Application
The appeui for the ff06 application is: 70 b3 d5 7e d0 01 c5 df (70b3d57ed001c5df)
4. Keep the Node’s Device EUI, App Key, and App EUI consistent with the above, and ensure the node’s frequency point matches that of the gateway.
5. Allow the Node to Join the Network
6. After joining the network, the generated Device Address, Network Session Key, and App Session Key
7. View Data
8. Send Data
9. The Node reports a confirm message, and the platform replies with ack
At this point, the gateway and node have successfully connected to ttn.
Recommended Reading:
LoRa Chip SX127x Series Calculation Tool LoRa Modem Calculator Tool
A Quick Start Guide to LoRa Development
Detailed Explanation of STM32+SX1276 Linux Compilation Environment Setup
Long press to identify, more IoT sharing awaits you