What are LoRa and LoRaWAN?
LoRa (Long Range) is a radio physical layer (modulation) technology that sends small data packets over kilometres with very low power. LoRaWAN is the network protocol on top of LoRa, maintained by the LoRa Alliance, which defines how devices join the network, how they are addressed and how data is encrypted.
How does LoRa work?
LoRa uses a spread-spectrum modulation called chirp spread spectrum (CSS): each symbol is encoded as a "chirp" whose frequency rises linearly over time. This lets the receiver decode signals even below the noise floor. The trade-off between range and speed is set by the spreading factor (SF7–SF12): a higher SF gives more range, lower speed and a longer time on air.
Europe (and Turkey) uses the 863–870 MHz (EU868) band; the US uses 902–928 MHz (US915). On EU868 with 125 kHz bandwidth, data rates range from about 250 bit/s (SF12) to 5.5 kbit/s (SF7). Range depends heavily on the environment: a few kilometres in cities, and more than 10 km in open terrain with line of sight.
LoRaWAN architecture
| Component | Role |
|---|---|
| End device | The sensor; transmits data over LoRa |
| Gateway | Receives every packet in range and forwards it over IP |
| Network Server | Removes duplicates, manages session keys and data rate (ADR) |
| Application Server | Decrypts data and delivers it to the application (e.g. via MQTT) |
Device classes: Class A (a short receive window only after each uplink; lowest consumption), Class B (additional scheduled windows), Class C (always listening; for mains-powered devices). Devices preferably join with OTAA, and data is encrypted with AES-128 using two separate keys (network and application).
Example: duty cycle calculation
In the main EU868 sub-bands a transmitter may be on air at most 1% of the time. At SF12 a 10-byte packet takes about 1 s on air:
Wait time = Time on air × (1 / 0.01 − 1) = 1 s × 99 ≈ 99 s
So a device at SF12 cannot send more often than roughly once every 100 seconds. The same packet at SF7 takes around 50 ms and the wait drops to about 5 s. That is why LoRaWAN suits small readings sent minutes or hours apart, not waveforms, images or audio.
Common mistakes
- Sending readings too often: it breaks the duty cycle limit and drains the battery.
- Large payloads: the maximum payload at SF12 is 51 bytes; use binary encoding instead of JSON.
- Mounting the gateway low or inside a metal cabinet: range is very sensitive to antenna height.
- Using ABP with fixed keys: packets get rejected after a counter reset; OTAA is more robust.
Where is it used in industry?
It is used for irrigation points spread over large farms, water and energy meters, tank levels, cold-chain temperature and battery-powered sensors at remote sites. Data leaving the gateway is usually carried to the cloud over MQTT. For a short-range, high-speed alternative see Wi-Fi, and for the overall architecture see IoT.
Related Terms
- What is IoT (Industrial Internet of Things)?What IoT and IIoT are: device, gateway, connectivity and cloud layers, a Modbus-to-MQTT data path, a data volume calculation and common mistakes.
- What is MQTT Protocol?How MQTT works: broker, publish/subscribe, topic structure and wildcards, QoS 0/1/2, retained messages, Last Will and common industrial IoT mistakes.
- Wi-Fi Usage in Industry: Pros and ConsIndustrial Wi-Fi: IEEE 802.11 generations, 2.4/5 GHz channel planning, roaming (802.11r/k/v), WPA3 security, common field mistakes and the right use cases.
- What is UWB (Ultra-Wideband) Technology?What is UWB? Time-of-flight ranging, TWR and TDoA methods, a worked distance calculation, and indoor positioning (RTLS) in factories.