Protocols

LoRaWAN
Open long-range, low-power LPWAN
Official spec ↗LoRaWAN
Executive summary
- LoRaWAN (Long-Range Wide-Area Network) is an open LPWAN (Low-Power Wide-Area Network) protocol, standardized by the LoRa Alliance and built on the LoRa physical layer (CSS modulation patented by Semtech).
- It lets you connect IoTITermIoT (Internet of Things)The IoT (Internet of Things) is the network of physical objects with sensors, software and connectivity that collect and exchange data and act autonomously.View profile devices over distances of 2-15 km in urban areas and 10-40 km in rural areas, with batteries that last 5-10 years.
- It operates in license-free frequency bands: 868 MHz in Europe, 915 MHz in the US, and 433 MHz / 470 MHz / 923 MHz in other regions.
- A 4-component architecture: end devices (sensors) → gateways → network server → application server.
- Three device classes: A (uplink-first, maximum power efficiency), B (scheduled receive slots), C (always listening).
- Don't use it when: you need high throughput (max ~50 kbps), latency under a second, or coverage deep inside very dense urban interiors (NB-IoT
ProtocolNB-IoT3GPP-standardized cellular LPWAN — carrier coverageView profile is better).
What LoRaWAN is and how it differs from LoRa
A common confusion: LoRa ≠ LoRaWAN. If you're new to the ecosystem, start by understanding what IoT is before diving into protocols. At Plataforma IoT we keep individual profiles of every protocol so the comparison stays precise — you can see the full index in IoT protocols.
- LoRa: a physical radio modulation technique (CSS, Chirp Spread Spectrum) patented by Semtech. It's "layer 1" — how the bits travel through the air.
- LoRaWAN: the MAC and network layer protocol that runs on top of LoRa. It defines how devices talk to gateways, how keys are managed, and how messages are routed. It's what the LoRa Alliance standardizes.
An analogy: LoRa is to physical Wi-Fi (the 2.4/5 GHz radio) what LoRaWAN is to the TCP/IP stack running on top of it.
LoRaWAN architecture
[Sensor] →(LoRa radio)→ [Gateway] →(IP)→ [Network Server] →(API)→ [Application Server]1. End devices (nodes)
Sensors/actuators with a LoRa radio. Typical characteristics:
- Low-power microcontrollers (Nordic nRF52, STM32WLSTermSTM32WLThe STM32WL is an STMicroelectronics microcontroller with a sub-GHz LoRa radio integrated on the same chip, designed for LoRaWAN nodes.View profile, ESP32 + LoRa module)
- 10-50 mA draw in TX, μA in sleep
- An AA or CR2477 coin-cell battery lasts 5-10 years transmitting once an hour
Nodes connect to the network through LoRaWAN gateways (radio concentrators). To choose and deploy gateway hardware correctly, see the LoRaWAN gateways guide, where we compare the most common models on the market.
2. Gateways (concentrators)
Antennas that pick up signals from many sensors and forward them over IP (Ethernet, 4G, Wi-Fi) to the network server. They don't process data, they just forward it.
- Semtech SX1301/SX1302 concentrators pick up 8 channels in parallel.
- Cost: USD 100-500 for an indoor gateway, USD 500-2,000 for an outdoor IP67 unit.
- Coverage: 1-3 km in dense urban areas, 5-15 km in open urban areas, 10-40 km in rural areas with line of sight.
3. Network Server (LNS)
The network's "brain." It manages:
- Device authentication (Join via OTAA or ABP).
- Deduplication (the same message reaches several gateways).
- ADR (Adaptive Data Rate): tunes the data rate and TX power per device.
- Routing to the corresponding application server.
Implementations: ChirpStack (open source, dominant), The Things Network/Stack (free public community + commercial), Loriot, Helium Console, AWS IoT Core for LoRaWAN.
4. Application Server
Where your business logic consumes the data. It receives payloads from the LNS over MQTTProtocolMQTTThe standard pub/sub protocol of IoTView profile, an HTTP webhook, or gRPC. Here you decode the binary payload and do whatever you need: dashboards, alerts, storage.
Device classes
| Class | Behavior | Downlink latency | Power draw | Typical use case |
|---|---|---|---|---|
| **A** | TX → 2 short RX windows → sleep | Up to minutes/hours | Minimal (μA average) | Environmental sensors (temperature, humidity) |
| **B** | A + additional synchronized RX slots | Seconds | Medium | Sensors with occasional commands |
| **C** | Always listening, continuous RX except when transmitting | Almost immediate | High (mA average) | Mains-powered actuators |
Important: in Europe there's a maximum 1% duty cycle per band — a device can't transmit for more than 1% of the time. That typically limits each node to 1-10 messages per hour.
Real-world use cases
| Sector | Concrete example |
|---|---|
| **Smart cities** | Parking sensors (Cellnex, Vodafone Business), waste management (bins with fill-level sensors), [smart street lighting](/en/use-cases/smart-cities), air quality. |
| **Agriculture** | Soil-moisture sensors, weather stations, automated irrigation, livestock monitoring (GPS collars). See [precision agriculture with IoT](/en/use-cases/agricultura-precision) cases. |
| **Industry / logistics** | Asset tracking (pallets, containers), cold-chain monitoring, remote tank-level measurement (oil & gas, water utilities). |
| **Buildings** | Electricity/water/gas submetering, HVAC monitoring, leak detection. |
| **Utilities** | Remote meter reading (large-scale smart metering on regional networks). |
Frequencies and regulation
| Region | Main band | Width |
|---|---|---|
| Europe (including Spain) | **868 MHz** (EU868) | 863-870 MHz |
| US | **915 MHz** (US915) | 902-928 MHz |
| China | **470 MHz** | 470-510 MHz |
| Asia | **923 MHz** (AS923) | 920-925 MHz |
| Korea | **920 MHz** | — |
In Europe (ETSI EN 300 220) the regulation imposes:
- A duty cycle ≤1% in sub-bands G1, G2, G3
- A maximum power of 14 dBm (25 mW) in most sub-bands
- 16 dBm in a specific sub-band with a 10% duty cycle
Public operators in Spain
| Operator | Type | Coverage |
|---|---|---|
| **The Things Network** | Open community | Community gateways, city-by-city coverage — Barcelona, Madrid, Valencia partially |
| **Helium** | Decentralized | Crypto tokens, rapid expansion in large cities |
| **Cellnex** | Commercial | Growing national coverage, focus on utilities and smart cities |
| **Vodafone Business** | Commercial hybrid NB-IoT/LTE-M/LoRaWAN | National coverage |
| **Sigfox equivalent?** | — | Sigfox went bankrupt in 2022 — LoRaWAN won the open-LPWAN battle |
Pros and cons
Pros
- Long range without a license or mobile operator (vs NB-IoT/LTE-MLProtocolLTE-MCellular IoT with mobility and voiceView profile, which require a SIM and a telco contract).
- Ultra-low power: 5-10 years of battery life in Class A.
- Open standard: a public LoRa Alliance spec, with multiple compatible hardware vendors.
- Low cost: USD 3-8 for a radio module, IoT gateways from USD 100.
- End-to-end encryption: AES-128 NwkSKey + AppSKey.
Cons
- Very low throughput: 0.3-50 kbps, payloads of 11-242 bytes per message.
- High downlink latency (Class A): minutes to hours.
- Strict duty cycle in Europe: few messages per hour.
- Limited indoor coverage: concrete penetration is poorer than NB-IoT.
- Asymmetric traffic: very good uplink, downlink limited by the RX1/RX2 slots.
- Unlicensed-spectrum security: jamming/interference is legal in the ISM band — mitigable, but it exists.
- Key-management risk: if you lose the AppKey under OTAA, the device is locked out.
LoRaWAN vs NB-IoT vs Sigfox vs LTE-M
| Aspect | LoRaWAN | NB-IoT | Sigfox | LTE-M |
|---|---|---|---|---|
| Spectrum | Unlicensed ISM | Licensed cellular | Unlicensed ISM | Licensed cellular |
| Operator | Private or public | Telco | Sigfox (went bankrupt 2022) | Telco |
| Range | 2-15 km urban | 1-10 km urban | 3-50 km | similar to NB-IoT |
| Throughput | 0.3-50 kbps | 20-250 kbps | 100 bps | 1 Mbps |
| Power draw | Minimal | Low | Minimal | Medium |
| Latency | High (A) | Medium | High | Low |
| Module cost | USD 3-8 | USD 5-15 | USD 2-5 | USD 10-20 |
| Best for | Private sensors, smart cities | National asset tracking | (legacy) | Wearables, vehicles |
Technical verdict: LoRaWAN wins when you control the private network or use a LoRaWAN operator (Cellnex). NB-IoT wins for national asset trackingATermAsset trackingIoT asset tracking locates and monitors physical assets (vehicles, containers, equipment) using GPS, BLE, UWB or LoRaWAN.View profile without deploying your own infrastructure. For a side-by-side analysis of both technologies, see the LoRaWAN vs NB-IoT comparison.
Getting started: minimal setup with The Things Stack
1. Create a free account
The Things Network Console (accessed: 2026-05) — a free public Network Server.
2. Get an end device
Options to start with:
- Heltec ESP32 LoRa V3 (~EUR 25): ESP32
HardwareESP32Dual-core WiFi + BT/BLE SoC at €-tier priceView profile + SX1262 radio
- LilyGO T-Beam (~EUR 30): ESP32 + GPS + LoRa
- The Things Indoor Gateway (~EUR 50) if you need your own gateway
3. Provision an OTAA device
You need three keys generated by TTNTTermThe Things Network (TTN)The Things Network is a community-driven, free LoRaWAN network with collaborative global coverage maintained by an open-source community.View profile for your device:
DevEUI(global identifier)JoinEUI/AppEUIAppKey(128 bits)
4. Minimal firmware (Arduino)
#include <lmic.h>
#include <hal/hal.h>
// PROGMEM static const u1_t DEVEUI[8] = { 0x... };
// PROGMEM static const u1_t APPEUI[8] = { 0x... };
// PROGMEM static const u1_t APPKEY[16] = { 0x... };
void setup() {
os_init();
LMIC_reset();
// join via OTAA
do_send(&sendjob);
}
void do_send(osjob_t* j) {
uint8_t payload[2] = { 0x12, 0x34 }; // 2 bytes of sensor data
LMIC_setTxData2(1, payload, sizeof(payload), 0);
}5. Decode the payload in the TTN Console
A JavaScript decoder in TTN:
function decodeUplink(input) {
return {
data: {
temperature: input.bytes[0],
humidity: input.bytes[1]
}
};
}6. Webhook to the application server
TTN can push to MQTT, an HTTP webhook, or AWS IoT Core. Configure one and start receiving the data in your backend.
Primary sources
- LoRa Alliance specifications — the official LoRaWAN spec (accessed: 2026-05)
- The Things Network documentation (accessed: 2026-05)
- ChirpStack docs — open source network server
- Semtech LoRa — physical-layer vendor
- Wikipedia LoRaWAN (general reference)
Frequently asked questions
What is LoRaWAN and how does it work?+
LoRaWAN is an open LPWAN protocol that connects IoT devices over kilometers with batteries that last years. It works with 4 elements: sensors → gateways → network server → application server. Gateways pick up LoRa signals and send them over IP to the central server.
What's the difference between LoRa and LoRaWAN?+
LoRa is the physical radio modulation technique (layer 1, owned by Semtech). LoRaWAN is the network protocol that runs on top (the MAC and network layers, an open LoRa Alliance standard).
What are the downsides of LoRaWAN?+
Very low throughput (max 50 kbps), high downlink latency, a 1% duty cycle in Europe that limits messages per hour, indoor coverage poorer than NB-IoT, and key management that demands care.
Does LoRaWAN still exist in 2026?+
Yes, strongly. 125M+ LoRaWAN devices globally according to the LoRa Alliance, growing at a 25% CAGR. Sigfox went bankrupt in 2022, and LoRaWAN remained the dominant open-LPWAN standard.
What's LoRaWAN coverage like in Spain?+
The Things Network has community gateways in Barcelona, Madrid, and Valencia (partial). Cellnex is rolling out a commercial national network. Helium is expanding fast with crypto incentives. For serious enterprise use, the most reliable option is deploying your own gateways or contracting Cellnex.
LoRaWAN or NB-IoT for my project?+
LoRaWAN if you control the infrastructure (your own gateways) or use a regional LoRaWAN operator — better long-term cost. NB-IoT if you need national coverage without deploying gateways and a mobile operator already provides service.
Compatible devices
- Semtech SX12xx, RAK Wireless, Murata, Heltec
Related hardware
- Gateways LoRaWAN: concentradores, arquitectura y montaje propioGateways LoRaWAN: chipset SX1302/1303, diferencias indoor/outdoor, Network Server (ChirpStack, TTN), packet forwarder y
STM32WL: el SoC de ST con radio LoRa integrada en el mismo chipGuía técnica del STM32WL de ST: SoC con radio sub-GHz LoRa en el mismo chip, Cortex-M4/M0+, consumo ultralow y cuándo us
Companies
Solutions using this
Related articles

Industrial IoT Solutions: Use Cases by Sector in 2026
Industrial IoT solutions turn legacy plants into data-driven operations. A regional food processor runs three shifts on a packaging line that was commissioned i
May 28, 2026

What Is Industrial AI? A Practical Guide for 2026 Plants
What is industrial AI, and why is it suddenly everywhere? The short answer: it is artificial intelligence applied to physical operations. But the real answer li
May 28, 2026

Cloud Studio IoT v1.7.1: Native 2FA, LoRa Downlinks, and Smarter Alarm Controls
Cloud Studio IoT v1.7.1 ships native 2FA, two-way LoRa downlinks via ThingPark and Loriot, first-class alarm suspension with an audit trail, and a sharper widget toolkit for the people who run IoT deployments every day.
May 21, 2026

World Internet Day 2026: From ARPANET to the Future of the Internet of Things
It was 10:30 PM on October 29, 1969, at Leonard Kleinrock's laboratory at UCLA. Graduate student Charley Kline began typing "login" from a computer connected for the first time to another machine more than 500 kilometers away, at the Stanford Research Institute. After the letter
Apr 17, 2026

SCADA IoT Platform in 2026: A Buyer's Evaluation Guide
A SCADA IoT platform replaced standalone HMIs in 2026. Here is what integrators and manufacturers should evaluate before choosing one.
Apr 15, 2026

From Iceland to Buenos Aires: How Smart Lighting and IoT Are Reshaping Cities Worldwide
Smart street lighting is an advanced system that uses sensors, connectivity, and intelligent controls to adapt lighting based on real-time conditions like traffic flow, weather, or human presence. These systems integrate LED technology for energy efficiency, durability, and longe
Apr 15, 2026