What are LoRa and LoRaWAN?

LoRaLoRaWANWirelessLong RangeLPWAN

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

ComponentRole
End deviceThe sensor; transmits data over LoRa
GatewayReceives every packet in range and forwards it over IP
Network ServerRemoves duplicates, manages session keys and data rate (ADR)
Application ServerDecrypts 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