Engineering considerations for LoRaWAN gateway design | Avnet Silica

Display portlet menu

Engineering considerations for LoRaWAN gateway design | Avnet Silica

Display portlet menu

Engineering considerations for LoRaWAN gateway design

Harvey Wilson, Technology Specialist Connectivity EMEA
Image of a globe by night

Network equipment provider Ericsson forecasts that by 2026, there will be 26.4bn IoT devices, 5.4bn of them connected to the internet over cellular networks. That leaves a lot of devices – 21bn, in fact – looking for another way to connect. Many of these connections will be made through wired networks, for example in smart-city, smart-building, and smart-lighting deployments, where the provision of fixed connectivity can be part of the design process. But the ad hoc and distributed nature of many IoT deployments (environmental sensors are placed where they are needed, not where there is a network jack) means that many IoT devices need other forms of wireless connectivity.

There are multiple approaches to wireless connectivity for the IoT, each representing a different trade-off between their reach, their topology, the data rates they support, the radio spectrum and modulation schemes they use, the energy efficiency with which they send data, the complexity of implementation in the device and the network basestation, and so on. Many are adaptations of consumer technologies, such as mesh networking over Bluetooth, or are designed for a very narrow set of applications.

LoRa, for Long-range Radio, is a technical specification published by the LoRa Alliance. It is used to implement low-power, wide-area networks (LoRaWANs) over distances of up to 5km in urban areas and 15km in suburban areas. It supports data rates of up to 27Kbit/s, and so is a good match for IoT devices, such as sensors, that only need to report small amounts of data irregularly. LoRa uses unlicensed ISM radio spectrum, available in the EU, US, and China, making it easy to deploy worldwide. It uses a simple and robust modulation scheme, so the necessary RF power amplifiers are inexpensive and efficient. It adapts its RF output power to the amount of data being sent, saving battery power, and preserving the aggregate capacity of the network. And because of this relative simplicity, a single LoRaWAN gateway device can service thousands of LoRa nodes. The flipside of this simplicity is that LoRa is not ideal for real-time applications or for serving nodes that need to transfer large amounts of data on a regular basis.

 

LoRa applications

The ability to create wide area networks at a lower implementation cost than cellular connectivity would require is making LoRa attractive in a host of applications. In smart buildings, it can be used to connect environmental monitors and equipment trackers, to detect room occupancy, and to manage issues such as lighting and metering. In an Industry 4.0 context, applications include monitoring machinery, asset tracking, and equipment management. Smart-city applications could include all those previously given for smart buildings, as well as enhancing the management of civic infrastructure such as waste collection, traffic control, and city-wide environmental monitoring and alerts. It’s a similar story in logistics and the supply chain: LoRa networks could provide the communications backbone for managing fleets of material-handling equipment in warehouses and shipping yards. Image below breaks out some more potential applications for LoRa by market sector.

Potential applications for LoRa by market sector

 

The LoRaWAN gateway

The LoRa specification defines how low-power nodes can communicate over relatively long distances at low data rates. To turn this capability into a network, LoRaWAN implementations need something to communicate with – a LoRaWAN gateway. This provides the interface between multiple LoRa nodes distributed in the field and a network server, which in turn consolidates data from multiple gateways before passing it along to an application server. Simple LoRaWAN gateways have minimal firmware and act as packet forwarders to the network server. More complex gateways can have an operating system that enables them to run packet-forwarding software as a background task and provide other support to gateway administrators as a foreground task.

Because of the relative simplicity of the radio implementation, the low data rates that the protocol supports, and the relatively low duty cycles expected of each LoRa node, many LoRaWAN gateways can support hundreds or even a few thousand LoRa nodes at once. This capability opens opportunities to install and run a group of LoRaWAN gateways as a platform through which multiple users can provide their LoRa nodes with connectivity without having to install their own gateways. Some organisations are creating global collaborative networks of LoRaWAN gateways that operate on a fair-use basis – “I’ll carry your data if you’ll carry mine” – to enable low-cost experimentation with IoT ecosystems. Commercial vendors are also offering LoRa connectivity and services as a cloud platform.

Of course, LoRaWAN gateways need a network connection to provide the backhaul for the messages from each node. In a smart-building, smart-city, or warehouse context, this could be provided by a wired Ethernet interface or a WiFi connection. LoRaWAN gateway designers should consider adding cellular connectivity as well, so that their designs can serve LoRa nodes that have been distributed throughout a remote location, such as a civil engineering project. Cellular backhaul can also make it easier to support applications in which LoRa nodes move en masse, such as cattle tracking. Even in static implementations with good wired and WiFi connectivity, cellular connectivity may be necessary to overcome potential objections about running LoRa data packets over the incumbent network. For example, a building contractor renovating a school might want to track all its tools and equipment using LoRa but find the school unwilling to share its WiFi network for fear of security breaches. Cellular capabilities in the LoRaWAN gateway would make it easy to set the whole issue aside by easily establishing a separate backhaul connection.

 

Managing LoRaWAN gateways

Well-designed LoRaWAN gateways can provide connectivity to large estates of IoT nodes at relatively low cost. But there are challenges in running an estate of LoRaWAN gateways. One of the most obvious is that the devices are physically distributed, and so support and maintenance must be done remotely. Many devices are remotely monitored and updated, but the challenge for LoRaWAN gateways, and especially for the simplest packet-forwarding types, is that updating their firmware or reconfiguring its operation could go wrong. This would leave the device inoperable, cut off an estate of IoT nodes, and could only be rectified by a costly visit to the gateway in situ. 

The second key concern for LoRaWAN gateway operators is ensuring and sustaining their security. A compromised gateway could be used to steal or corrupt vital data or suborned into taking part in a denial-of-service attack, leading to reputational damage.

Sustaining the security of IoT devices is not a challenge unique to LoRaWAN gateways and nodes – it applies to almost every connected device. Indeed, it is such a widespread and challenging issue that Microsoft’s Azure Sphere team, which develops its IoT platform offering, has identified seven properties that it believes are necessary to build and sustain the security of network-connected devices. These include:

  • A hardware root of trust, usually implemented as a unique, immutable, and uncopiable feature of an IC, which allows software developers to be user they are communicating with a particular chip, and which also acts as the basis for the cryptographic functions needed to communicate securely with the device.
  • Defense in depth, a way of ensuring that if one security mechanism is breached, another is available.  
  • A small, trusted computing base, which holds encryption keys in a protected area of an IC that is inaccessible to software, and divides software into self-protecting layers.
  • Dynamic compartments, which are hardware-enforced barriers between software components to stop breaches propagating. 
  • Password-less authentication, using certificates derived from the hardware root of trust, so that the device can prove its identity and authenticity.
  • Error reporting, so that the device can be analyzed to ensure it is operating correctly, and to identify new threats.
  • Renewable security, so the device can be updated in the field to protect it from new threats.

It’s a daunting list, and implementing it is even more challenging. The team eventually recruited chip designer MediaTek to help it produce the necessary secure microcontroller, by adapting an existing MediaTek design and then adding Microsoft’s own Pluton security processor, which was developed to protect the Xbox from hacking. It also had to develop a ‘secured’ operating system that takes advantage of the security features in the custom microcontroller, and then put the resultant device and software up to a hacker challenge to see if it was, in fact, secure.

 

The platform alternative

For those who want to take advantage of the potential of LoRa connectivity to implement distributed IoT ecosystems without having to worry about managing the LoRaWAN gateways, there are cloud-based alternatives.

For example, Microsoft’s Azure Sphere IoT platform, working with LoRaWAN gateways from Miromico, can securely monitor, track, and manage data in almost any indoor location. The Miromico LoRa gateways, which have been designed to work with Azure Sphere, have cellular, Wi-Fi and Ethernet connectivity.

Azure Sphere provides guaranteed maintenance for the gateways through their operating lifetime, handling security maintenance tasks such as daily authentication of hardware and software automatically. Close integration between the Azure Sphere platform and the Miromico gateway has enabled a failsafe mechanism for over-the-air updates, allowing customers to remotely upgrade their gateways without fear of them becoming unreachable due to a glitch during the update.

Find out more about the Miromico gateways and the Microsoft Azure sphere service here.

Follow Avnet Silica on LinkedIn

About Author

Harvey Wilson, Technology Specialist Connectivity EMEA
Harvey Wilson

Harvey Wilson is a Systems Engineer Professional (Smart Industry) for Avnet Silica in the EMEA regio...

Engineering considerations for LoRaWAN gateway design | Avnet Silica

Display portlet menu

Microsoft Azure Sphere enabled LoRa gateway from Miromico

One of the most secure and easy to manage gateways, featuring Azure Sphere.

EV Charging Discovery Days

online, on-demand

Join Avnet Silica and our partners at this webinar series where you will learn about solutions that will support you in designing modern connected systems.

Engineering considerations for LoRaWAN gateway design | Avnet Silica

Display portlet menu
Related Articles
Patients using continuous passive motion machines in a medical setting
Learn how AI and the latest CPM technologies optimize patient rehabilitation
By Avnet Staff   -   February 21, 2024
Continuous passive motion (CPM) is now a critical part of patient rehabilitation. New technologies, including artificial intelligence, are helping medical OEMs take the next step to optimize patient therapy.
A stethoscope and medical images with data
Using sound to capture medical data boosts device innovation
By Avnet Staff   -   February 21, 2024
Wearable medical devices provide continuous body monitoring. Acoustic sensing is non-intrusive and the data supports early diagnosis and remote analysis. Are the stethoscope’s days numbered? That’s not likely, but new device opportunities abound.

Engineering considerations for LoRaWAN gateway design | Avnet Silica

Display portlet menu
Related Events
City at night
How to Quickly Connect STM32U5 Discovery Kit to the Cloud
Date: January 25, 2024
Location: online, on-demand
City at night
Connecting the Future: Matter and Wirepas Unleashed
Date: November 7, 2023
Location: online, on-demand