Uncannier Software

It's not enough to just be uncanny

LoRaWAN Gateway: RAK2245, Raspberry Pi 3B+ & TTN

In this article I create a LoRaWAN gateway using a RAK Wireless RAK2245 Pi HAT LoRa Concentrator and a Raspberry Pi 3 Model B+. The gateway is registered on The Things Network.

This article is the first in a series:

In this article I get the gateway up and going in most basic form: indoors with no enclosure. Later articles cover outdoor antenna installation and improving the range and coverage.

Why RAK2245 & RPi 3B+?

In this world of things, and the internet of things, the holy US retail tradition of Black Friday has become a thing down under. The magnificent IOT Store, that happens to be in my city, was having a Black Friday sale. RAK Wireless seem to make lots of great stuff and the RAK2245 was going cheap. One limb instead of the normal two. I had a spare RPi 3B+ laying around and I was in a mood. I didn’t want to just buy a fully-assembled off-the-shelf gateway. Building my own gateway, even when just following the RAK guide, gives more scope for learning. Vamos!


Some great guides I’ve followed:

I’m not going to reproduce their details in my article.

RAK2245 Unboxing

Besides the HAT itself, you get basic LoRa and GPS antennas and a bag of stand-offs.

More than I’ll get for Christmas


Assembly is trivial. The guides strongly advise to attach the antennas before powering up.

Firmware & SD Card

You can take the low road or the high road:

Don’t labour the decision. It’s not important.

Gateway Configuration

Per the referenced guides, you need to SSH into the Raspberry Pi. Then start the configuration tool.

sudo gateway-config

See the referenced setup guides for details. You need to do the password, WiFi and LAN stuff.

For the WiFi, I think you should change it from AP Mode to Client Mode so that an attacker can’t get to your gateway over WiFi.

Consider also to put your gateway on your guest network or DMZ to keep it away from your other network devices. In the unlikely event that an attacker breaches the LoRaWAN interface to get into the gateway, they can’t access the rest of your network.

The most interesting part is the setup of the concentrator. I selected The Things Network as my server and AU915MHz as my channel plan.

The Things Network Registration

Login to your TTN account, go the console and register your gateway.

You should quickly find that your gateway is connected to TTN and pinging every 30 seconds.

Tagged , ,

Leave a Reply

Your email address will not be published. Required fields are marked *