lora.svehagen.io

Here you can find information about the LoRaWAN network in Jönköping, Sweden.

Dashboard

The data that is reported by the nodes are collected in a database so that it can be retrieved later on. Here is a dashboard to present the data that has been collected over time.

View dashboard
Coverage

The area covered by a gateway is highly dependant on the type and position of the antenna. Here is a map showing the coverage with the current setup and a 2 dBi antenna gain.

View coverage map
Manage

If you have a login to the server you can manage your gateways and nodes here. Contact me if you want access.

Go to login

What is this LoRa?

LoRa is a technology for building long range, low power wireless networks. Combined with the LoRaWAN protocol it creates a secure communication channel for connected devices.

Find out more about LoRa and LoRaWAN at Semtech and Wikipedia.

About

There are four main parts involved in the setup. A node that collects the data, a gateway that receives the data, the applications that use the data and the server to manage the nodes, gateways and applications.

Here you can find some technical information on what is being used in this setup and also some information for how to build your own network or build devices to extend an already existing network. When extending or connecting to and existing network you will need some information from the network owner to be able to connect new gateways or nodes.

If you are interested in extending or connecting to this network, just contact me!

Gateway

The responsibility of the gateway is to send and receive packets to and from the nodes. Two applications are involved in this process. First, lora_pkt_fwd is used to interface with the LoRa concentrator board, the iC880A, and then send them in JSON format via UDP. The next application, lora-gateway-bridge, will receive the UDP messages and send them to the backend via MQTT. Packets can also be sent from the backend to the gateway so that they can be sent out to the nodes in the next send window.

If you are interested in building your own gateway like this, I made a docker image to make it easy to get up and running. You can look here for how to set it up.

Part Note
Raspberry Pi 3 Any similar board with ethernet will do. For example the BeagleBone.
iC880A LoRa Concentrator Handles reception on 8 channels in parallel
GPS Receiver Optional but needed for LoRaWAN class B networks
Enclosure Drill holes in the mounting plate to mount the boards
RJ-45 Cable Gland Quite nice to be able to disconnect the cable instead of having it go through a gland
Antennas An antenna for 868MHz and optionally a GPS antenna
N-type to u.FL connectors -
PoE splitter Power-over-Ethernet with 5V output

The total cost is about €250

Nodes

One thing to keep in mind when choosing LoRa circuit for the node is to check whether it support LoRaWAN or just the LoRa modulation. If LoRaWAN is not supported as is the case with the popular SX1276 (e.g. RFM95), the LoRaWAN stack must be run in another processor and thus might require some extra space. If you were to use a LoRa module such as the RN2483 for example, LoRaWAN is handled directly in the module.

For the node displayed here I choose a board from Adafruit which has both the RFM95 for LoRa and an ATmega32U4 MCU which is used for LoRaWAN stack and main application. I used the LMIC LoRaWAN stack for arduino which can be found here and my application for this node can be found here. For this to fit in the 32u4 you need to disable ping and beacons in src/lmic/config.h. You will also need to connect the DIO1 pin from the RFM95 to a pin on the 32u4. I simply connected it to digital pin 1 on the 32u4 since they're right next to each other on the Adafruit board.

The node here is used for measuring temperature but you can of course connect other sensors, modify the code and measure whatever you want.

Part Note
LoRa Radio I choose to use the LoRa Feather from Adafruit. It has a LoRa radio and an MCU for running the LMIC LoRaWAN stack.
Battery -
Enclosure Also get this for outside use
Temperature sensor ±0.5°C
M8 Circular Connector Go with M12 if more than 4 wires are needed
SMA Connector Get one with an o-ring for weather protection
Antenna 868MHz antenna

Server

The server application used is the awesome project loraserver.io. All information can be found on the projects page but basically the role of the server is to manage the LoRaWAN network, i.e. gateways, nodes, applications and users.

Contact

Please visit svehagen.io for contact information.