Skip to main content

The Things Stack

This guide shows how to connect the HARDWARIO EMBER LoRaWAN gateway (MikroTik RouterOS) to The Things Stack (TTS).

Useful docs

Prerequisites

  • Access to the EMBER management interface (WebFig or WinBox)
  • A TTS account with permissions to create gateways
  • If you are not using the EMBER Cloud service, point the LoRaWAN server address to your own LoRaWAN server (no VPN tunnels needed).

1) Get the Gateway EUI (EUI-64)

On MikroTik RouterOS, the gateway EUI is shown as Gateway ID:

  • IoT → LoRa → Devices → Gateway ID

2) Register the gateway in The Things Stack

  1. In TTS Console, click Register gateway.
  2. Enter the Gateway EUI (use RouterOS Gateway ID).
  3. Fill the gateway details:
    • Gateway ID
    • Gateway Name
    • Frequency plan (choose the one matching your region/hardware; e.g., Europe 868.1 MHz)
  4. Enable Require authenticated connection.
  5. Enable both:
    • Generate API key for CUPS
    • Generate API key for LNS
  6. Click Register gateway and download both API keys (CUPS + LNS).

RouterOS typically requires the LoRa card to be Disabled while you change LoRa settings.

You’ll use the downloaded keys in RouterOS.

LNS (LoRa Basics Station)

  • Protocol: LNS
  • Port: 8887
  • Set the LoRa Basics Station LNS authentication Key to the LNS key
  • Enable SSL/TLS

CUPS (Configuration & Update Server)

  • Protocol: CUPS
  • Port: 443
  • Set the CUPS key (from the downloaded cups.key file)
  • Enable SSL/TLS

Root certificates (required for SSL/TLS)

To establish a secure TLS connection to The Things Stack (LNS / CUPS), import the official The Things Stack Root CA certificates into RouterOS and mark them as trusted.


4) Enable and verify

  1. In RouterOS: IoT → LoRa → Devices → Enable
  2. In TTS Console, open the gateway and confirm Live data updates.

Decoders are configured per end device/application in TTS (Payload Formatter).

Example decoder (CHESTER Clime):