Back to Blog TARA Devices 0x02

Introduction to LoRaWAN Technology

Introduction to LoRaWAN Technology

The Internet of Things is transforming industries from agriculture to smart cities, but many solutions face a critical hurdle: how to connect thousands of devices over long distances without draining batteries or breaking the budget. Most wireless protocols force a painful trade-off: Wi-Fi gives you speed but eats power; 4G gives you range but costs money per device per month; Bluetooth is cheap and efficient but barely reaches across a room.

LoRaWAN was designed to sidestep that trade-off entirely.

"LoRaWAN (Long Range Wide Area Network) is a Low-Power Wide-Area Network (LPWAN) protocol designed for long-range, low-bandwidth, and battery-efficient IoT communication."

Unlike traditional wireless technologies, LoRaWAN enables kilometre-scale connectivity with minimal power consumption, devices can run on a small battery for 5 to 10 years. Key applications include smart agriculture, smart cities, industrial IoT, and environmental monitoring.

LoRaWAN Network Architecture

A LoRaWAN network has four distinct layers, each with a specific responsibility. Understanding how they fit together is the key to understanding why the technology works so well at scale.

1. End Devices (Nodes / Sensors)

End devices collect sensor data and transmit it using LoRa radio modulation. They are the "things" in the Internet of Things, soil moisture sensors, GPS trackers, temperature loggers, water meters.

Key characteristics:

  • Ultra-low power, batteries lasting 5–10 years are realistic
  • Three operating classes: Class A (battery-optimised, opens receive windows only after transmitting), Class B (scheduled downlink, periodically checks for messages), Class C (always listening, lowest latency, highest power)
  • Supports bi-directional communication (uplink + downlink)

2. Gateways (Concentrators)

Gateways receive LoRa signals from end devices and forward them to the Network Server over IP (via Ethernet, Wi-Fi, or cellular). They are the radio-to-internet bridge.

  • A single gateway can serve thousands of nodes simultaneously
  • Multi-channel demodulation allows receiving multiple transmissions at once
  • Acts as a transparent relay, it does not process or interpret data, only forwards it
  • Covers 2–15 km in urban environments, up to 50 km in open rural terrain

3. Network Server

The Network Server is the brain of the LoRaWAN network. It handles everything related to network management and security at the communication layer.

  • Device authentication and security using AES-128 encryption
  • Duplicate packet filtering, multiple gateways may hear the same transmission; the Network Server deduplicates
  • Adaptive Data Rate (ADR) optimisation, adjusts spreading factor and power per device
  • Monitors gateway health and handles network-level roaming

4. Application Server

The Application Server processes the decrypted sensor data and makes it useful: dashboards, alerts, API integrations, long-term storage.

  • Decrypts application-layer payloads (end-to-end encrypted separately from the network layer)
  • Stores, analyses, and visualises data
  • Integrates with cloud platforms such as AWS IoT, Azure IoT Hub, or The Things Network

LoRaWAN Data Flow: Step by Step

1
End Device Sends Data, uses LoRa radio modulation to transmit a small packet over the air.
2
Gateway Receives Signal, one or more gateways within range pick up the packet and forward the raw data to the Network Server over IP.
3
Network Server Processes Data, authenticates the device, removes duplicate packets (from multiple gateways), and applies ADR optimisation.
4
Application Server Decrypts & Uses Data, delivers the payload to a dashboard, API endpoint, or cloud service where it becomes actionable information.

Adaptive Data Rate (ADR)

ADR is one of LoRaWAN's most important features for real-world deployments. It lets the Network Server dynamically optimise each device's radio settings by adjusting three parameters:

  • Spreading Factor (SF7–SF12): Higher SF = greater range and resilience, but slower transmission. Lower SF = faster, but shorter range. ADR picks the best SF per device.
  • Bandwidth: 125 kHz, 250 kHz, or 500 kHz. Wider bandwidth = faster data rate.
  • Transmission Power: Reduced when the device is close to a gateway, saving battery.

The result is a network that scales efficiently, devices near a gateway use minimal airtime, leaving capacity for devices at the edge of coverage.

LoRaWAN Security Model

LoRaWAN uses three independent layers of security:

  1. Device Authentication: Devices join the network via OTAA (Over-The-Air Activation) or ABP (Activation By Personalisation). OTAA is the recommended method, session keys are derived dynamically, so compromising one device doesn't expose others.
  2. Network Layer Encryption (AES-128): Ensures message integrity and prevents replay attacks between device and Network Server.
  3. Application Layer Encryption: End-to-end payload encryption between device and Application Server. The Network Server never sees plaintext application data.

Real-World LoRaWAN Deployments

  • Disaster prevention: Flood sensors mounted in remote rivers transmit water level data on battery power for years, alerting authorities before levels become critical.
  • Logistics: Shipping companies track containers globally by combining LoRaWAN with satellite positioning.
  • Energy: Smart electricity meters using LoRaWAN are cutting meter reading operational costs by 30% in multiple European markets.

Conclusion

"LoRaWAN isn't just another wireless protocol, it's the backbone of scalable, low-power IoT."

In the next article we'll clarify something that confuses almost everyone encountering this technology for the first time: the difference between LoRa and LoRaWAN, they are related but distinct, and mixing them up leads to real engineering mistakes.


Back to Blog