LoRaWAN Gateway (TTN – TheThingsNetwork)


What we do
What we need
How we do (Hardware)
How we do (Software)
Still shots Outcome
What we do

Have you heard about LoRa, LoRaWan and LPWAN? 


What is LPWAN?

A low-power wide-area network (LPWAN) or low-power wide-area (LPWA) network or low-power network (LPN) is a type of wireless telecommunication wide area network designed to allow long range communications at a low bit rate among things (connected objects), such as sensors operated on a battery.


What is LoRa and LoRaWAN?

LoRa is a wireless data communication technology that uses a radio modulation technique that can be generated by Semtech LoRa transceiver chips.

The LoRaWAN protocol is a Low Power Wide Area Network (LPWAN) specification derived from LoRa technology standardized by the LoRa Alliance.

LoRa and LoraWAN belong to the category of non-cellular LPWAN wireless communication network protocols and players, operating in the license-free spectrum. Other technologies that operate in the license-free frequency bands include Sigfox, Ingenu and several more.


LoRa and LoRaWAN Network Topology

The LoRaWAN networks laid out in a star-of-stars topology have base stations relaying the data between the sensor nodes and the network server.

Communication between the sensor nodes and the base stations goes over the wireless channel utilizing the LoRa physical layer, whilst the connection between the gateways and the central server are handled over a backbone IP-based network.



End Nodes transmit directly to all gateways within range, using LoRa.
Gateways relay messages between end-devices and a central network server using IP.

Network servers can be cloud based platform solutions like The Things Network (TTN) or LoRIOT. The network servers connect to the gateways and de-dup data packets, and then routes it to the relevant application.


We're able to make Gateway, End nodes, but going to use TTN(TheThingsNetwork) as Network Server and Application Server. 🙂


so at this post, Let's make a Gateway first!


How we do (Hardware)


  • Connection between LoRaWAN Gateway module and LoRaWAN Converter board



  • Connection between Raspberry Pi 3 and the above (LoRa Gateway module + LoRa Converter board)



  • Connect  Antenna to LoRaWAN Gateway module

  • Connect GPS antenna to LoRaWAN Converter board

  • Connect Power to Raspberry Pi 3
How we do (Software)

  • Sneak peek on Software part


First of all, you should prepare Raspberry Pi.

Please click these buttons to look into other posts for prerequisite learnings.


Prepare RaspberryPi


Once your Raspberry Pi is ready,


1. update and upgrade
2. pre-steps on raspberry pi
3. Install Git
4. Install TTN packet forwarder
5. run script and test (debugging)


The full details are explained in the enclosed docs. (HowToSetupGateway.txt)

Still shots Outcome

The last step, you need to go The Things Network and complete sign up.

and then create your own gateway setup and register. 

Here are some screenshots of mine. 🙂


As you can see from the screen shots, there are nothing in the Gateway traffic. 

This is correct because i didn't add any node(end node) yet which can transmit some data to Gateway. 


so , now it's time to go next post to add end node to make our Gateway useful! 🙂

Once you add end nodes to your gateway, then we'll be able to see some data coming in like the following. 



1 reply

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply