Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Selecting a region

The Things Stack is a new version of The Things network.

...

Choose your region and login with The Things network account or other credentials.

Registering gateway

Once logged in, go to Register a gateway

Image Removed

Fill in the blank spaces and make sure that the Gateway server address matches the one set in the router. Example here: The Things Network

Image Removed

If everything is filled in correctly in short moment you should see the gateway online and Live data coming in

Image Removed

navigate to "Go to gateways":


Image Added


Register a gateway by clicking on the "+ Register gateway" button:

Image Added

UDP protocol gateway registration

Fill in the blank spaces. Input Gateway EUI. Make sure to select a correct frequency plan. Do not enable "Require authenticated connection" option (it is used for LNS and CUPS)!


Image Added


In RouterOS, Gateway EUI value can be found under "IoT>LoRa>Devices>Gateway ID"):

Image Added

For additional information check their documentation page.

UDP scenario RouterOS settings

Double-check that the correct TTN server is selected by the LoRa device (in RouterOS) and that the server setting uses "UDP" protocol:

Image Added

LNS and CUPS protocol gateway registration

Fill in the blank spaces. Input Gateway EUI. Make sure to select a correct frequency plan. Enable "Require authenticated connection" and the follow-up (for LNS) "Generate API key for LNS" and (for CUPS) "Generate API key for CUPS" options:

Image Added

In RouterOS, Gateway EUI value can be found under "IoT>LoRa>Devices>Gateway ID":

Image Added

After clicking on "Register gateway" button, you should be prompted to download the keys. Download them.

To view LNS and CUPS keys, inspect download files. LNS key should also be visible under the"LoRa Basics Station LNS authentication Key" field:

Image Added


For additional information check their documentation page.

LNS scenario RouterOS settings

Make sure that the correct TTN server is selected, that the correct port is configured (TTN expects LNS over 8887), that LNS protocol is chosen, that the LNS key (from the "LoRa Basics Station LNS authentication Key" field) is input and that "SSL" checkbox is enabled:

Image Added

The last step is to download and import Root Certificates. The page has links to the required file.

After the certificate file was downloaded, drag and drop it into the RouterOS file menu and import the certificate list:

Image Added

This should make the certificate list trusted:

Image Added

CUPS scenario RouterOS settings

Make sure that the correct TTN server is selected, that the correct port is configured (TTN expects CUPS over 443), that CUPS protocol is chosen, that the CUPS key is input and that "SSL" checkbox is enabled:

Image Added

The last step is to download and import Root Certificates. The page has links to the required file.

After the certificate file was downloaded, drag and drop it into the RouterOS file menu and import the certificate list:

Image Added

This should make the certificate list trusted:

Image Added

Verification

If everything is configured in correctly, right after you enable the LoRa interface in RouterOS ("IoT>LoRa>Devices>Enable"):

Image Added

You should see the gateway connection "Live data" update:

Image AddedFor additional information check their documentation site