A conceptual diagram showing a Robustel LoRaWAN gateway connecting securely to The Things Network cloud via the Basic Station protocol.

Connecting Your Robustel LoRaWAN Gateway to The Things Network (TTN) V3

Written by: Robert Liao

|

Published on

|

Time to read 5 min

Author: Robert Liao, Technical Support Engineer

Robert Liao is an IoT Technical Support Engineer at Robustel with hands-on experience in industrial networking and edge connectivity. Certified as a Networking Engineer, he specializes in helping customers deploy, configure, and troubleshoot IIoT solutions in real-world environments. In addition to delivering expert training and support, Robert provides tailored solutions based on customer needs—ensuring reliable, scalable, and efficient system performance across a wide range of industrial applications.

Summary

The Things Network (TTN) is the global collaborative Internet of Things ecosystem. Connecting your industrial LoRaWAN gateway to TTN V3 (The Things Stack) allows you to test sensors, build pilots, and leverage a worldwide community network. This guide provides a definitive walkthrough for connecting a Robustel gateway (like the R1520LG) to TTN. We cover the essential steps: locating your Gateway EUI, registering the device in the TTN Console, and configuring the "LoRa Basics Station" protocol for a secure, encrypted connection.

Key Takeaways

The Protocol Choice: While legacy Packet Forwarders (UDP) work, TTN V3 prefers LoRa Basics Station. It is more secure and handles updates better.

The Gateway EUI: This 16-character code is the unique ID of your LoRaWAN gateway. You must find it in the RobustOS interface to register your device.

Frequency Plans: Selecting the wrong plan (e.g., US915 in Europe) is the #1 reason for failure. Ensure your LoRaWAN gateway hardware matches your TTN region settings.

Live Verification: Use the TTN Console's "Live Data" stream to verify your gateway is receiving and forwarding heartbeat messages.

Connecting Your Robustel LoRaWAN Gateway to The Things Network (TTN) V3

The Things Network (TTN) has democratized the Internet of Things. It allows anyone to build a sensor network without paying telecom fees. But to join the party, you need a bridge.

You need a LoRaWAN gateway.

While you could use a cheap DIY gateway, industrial pilots require industrial hardware. Connecting a rugged Robustel LoRaWAN gateway to TTN gives you the best of both worlds: professional hardware reliability with the flexibility of the community network.

This guide walks you through the configuration process, moving from "out of the box" to "online" in under 15 minutes.


A conceptual diagram showing a Robustel LoRaWAN gateway connecting securely to The Things Network cloud via the Basic Station protocol.


Prerequisites

Before you log in, ensure you have the following:

  1. A Robustel LoRaWAN Gateway: (e.g., R3000 LG) powered on and connected to the internet (via Ethernet or 4G).
  2. A TTN Account: Create a free account at thethingsnetwork.org.
  3. The Gateway EUI: Log into your gateway's web GUI (RobustOS). Go to Interface > LoRa > Config. Copy the "Gateway EUI" string (e.g., 00A0C5FFFF123456).

Step 1: Register the LoRaWAN Gateway in TTN Console

You must tell the cloud to expect your device.

  1. Log in to The Things Stack Console.
  2. Click Gateways > + Add Gateway.
  3. Gateway EUI: Paste the 16-character EUI you copied from your LoRaWAN gateway.
  4. Gateway ID: Create a human-readable name (e.g., factory-gateway-01).
  5. Frequency Plan: This is critical. Select the plan that matches your hardware and country (e.g., Europe 863-870 MHz (RX2 SF9) for EU, United States 902-928 MHz for US).
  6. Click Create Gateway.

Note: Keep this browser tab open. You will need the Server Address and API keys soon.

Step 2: Configure the Robustel LoRaWAN Gateway

Now, tell the hardware where to send the data. We will use the LoRa Basics Station protocol, which is more secure than the legacy UDP forwarder.

  1. Log into your Robustel gateway's Web GUI.
  2. Navigate to Services > LoRaWAN > Packet Forwarder.
  3. Select Protocol Type:Basic Station.
  4. Server URL: Copy this from your TTN Console (Overview page). It usually looks like wss://eu1.cloud.thethings.network:443. Note the wss:// prefix for secure websocket.
  5. Authentication: TTN V3 uses an LNS Key.
    • Go back to TTN Console > API Keys > Add API Key.
    • Grant rights for "Link as Gateway."
    • Copy the generated key.
    • Paste it into the Robustel LoRaWAN gateway "Token" or "Key" field.
  1. Click Submit and Save & Apply.

Step 3: Verify Connectivity

The LoRaWAN gateway will now restart its LoRa service and attempt to dial the server.

  1. Go back to the TTN Console.
  2. Click on your gateway and navigate to the Live Data tab.
  3. Wait 30 seconds.
  4. Success: You should see a stream of blue and green events. Look for Gateway Connection Stats or Receive Gateway Status.
    • If you see Drop uplink message, it means your frequency plan might be wrong, or the sensor keys are invalid (not the gateway's fault).
    • If you see Disconnected, check your internet backhaul (4G/Ethernet) and ensure port 443 is open.

Common Troubleshooting Tips

Even pros get stuck. Here are the common fixes for a silent LoRaWAN gateway.

1. The Frequency Mismatch Did you buy a 915 MHz gateway but configure it for EU868 in the console? The LoRaWAN gateway hardware is tuned to a specific band. The software configuration must match the physical radio chips. Check the label on the bottom of the device.

2. The Legacy UDP Fallback If Basic Station fails (due to certificate issues), try the Semtech UDP Packet Forwarder.

  • In RobustOS, switch Protocol to Semtech UDP.
  • In TTN Console, disable "Require Authenticated Connection."
  • Set the Server Address to eu1.cloud.thethings.network (no wss://) and Port 1700.
  • This is less secure but often easier to debug for beginners setting up their first LoRaWAN gateway.

A screenshot of The Things Network console showing live data stream confirming the LoRaWAN gateway is connected and receiving messages.


Conclusion: You Are Now the Network

Congratulations. Your industrial LoRaWAN gateway is now part of the global IoT infrastructure.

You can now deploy sensors anywhere within miles of your device, and their data will flow securely to The Things Network. By using robust hardware and correct configuration, you have built a stable foundation for your IoT applications, moving from "testing" to "deployment" with confidence.

Frequently Asked Questions (FAQ)

Q1: Can I connect multiple gateways to the same TTN account?

A1: Yes. TTN allows you to register an unlimited number of devices. However, each LoRaWAN gateway must have a unique Gateway EUI. Never try to clone the EUI onto a second device, or the network server will ban both connections due to security conflicts.

Q2: Does TTN V3 support private enterprise deployments?

A2: The community edition is public. If you need a private SLA and data privacy for a commercial LoRaWAN gateway deployment, you should use The Things Industries (TTI) enterprise instance. The configuration steps on the Robustel gateway remain exactly the same; only the Server URL changes.

Q3: My gateway is online, but I don't see sensor data?

A3: A LoRaWAN gateway only forwards packets; it doesn't decrypt them. If the gateway is online in the console, but you don't see sensor payloads, the issue is likely with the sensor registration (AppKey/DevEUI mismatch) or the sensor is out of range. The gateway is doing its job.