LPWAN and LoRa

Wireless Technologies · · lpwan, lora, lorawan

Contents

This typeset version was assembled by AI from my notes. The scanned PDF is the original source. These topics in my notes are lecture slides with my highlights and comments, summarized here; the figures are redrawn.

20. LPWAN protocols

Topic 20 · Wireless Technologies exam topics

LPWAN protocols – basic features, comparison of technologies, use-cases and applications

Overview of IoT protocols

Protocols designed for the specific needs of IoT devices:

  • Low cost and complexity: many (dozens per household) simple devices.
  • Low bit rates: from bps to hundreds of kbps (a few Mbps?).
  • Delay tolerant: no continuous transmission, only occasional.
  • Low energy consumption: often powered from batteries, so a long battery lifetime (years).

Classification of protocols:

  • Long-range: coverage radius of a few to dozens of kilometres. Wide area networks with low power consumption → Low-Power Wide Area Networks (LPWAN). Technologies and protocols: cellular IoT, LoRa, Sigfox, Weightless, …
  • Short-range: coverage radius of a few, dozens or hundreds of metres. Technologies and protocols: Bluetooth, 6LoWPAN, ZigBee, …

Communication range

The communication range is defined by the maximum coupling loss (MCL).

  • Maximum coupling loss: the maximum loss in conducted power level that the system can tolerate and still operate.
  • Coupling loss:
    • the difference between the conducted power levels measured at the transmitting and receiving antenna ports
    • defined by a minimum acceptable received power level
    • the antenna ports (connectors) are the reference points for MCL, so antenna gains are not included
Level diagram. From the top: radiated power (EIRP), then down by the Tx antenna gain to the conducted Tx power at the Tx antenna port. The coupling loss runs from the Tx antenna port down to the Rx antenna port at the receiver sensitivity level. The path loss runs from the EIRP to the level just before the Rx antenna gain. Below the receiver sensitivity: required SINR, receiver noise figure, thermal noise floor

Redrawn from the lecture slide, with my note: coupling loss is between the antenna ports. Source: mcl.tex

Applications and use cases for LPWAN

Cheap devices, rare low bit-rate communication, long battery lifetime.

  • Long operation on a single battery charge.
  • Often for devices with limited mobility that lack a power source for recharging. Mobile devices are still possible (cellular IoT, topic 24).
ApplicationExamples
Transport and logisticsfleet management, goods tracking
Utilitiessmart metering, smart grid management
Smart citiesparking sensors, waste management
Smart buildingsmoke detectors, home automation
Consumerswearables, kids/senior trackers
Industrialprocess monitoring and control, maintenance monitoring
Environmentfood monitoring/alerts, environmental monitoring
Agricultureclimate/agriculture monitoring, livestock tracking

Comparison of LPWAN technologies

SigfoxLoRaEC-GSMCat-1Cat-0eMTCNB-IoT
StandardizationPrivateOpen3GPP3GPP3GPP3GPP3GPP
SpectrumUnlicensedUnlicensedLicensedLicensedLicensedLicensedLicensed
Channel BW100 Hz7.8–500 kHz200 kHz1.4–20 MHz1.4–20 MHz1.4 MHz180 kHz
System BW100 kHz125 kHz1.4 MHz1.4–20 MHz1.4–20 MHz1.4 MHz180 kHz
Peak data rateUL 100 bps, DL 600 bps180 bps–37.5 kbpsDL/UL 74 kbpsDL 10 Mbps, UL 5 MbpsDL 2 Mbps, UL 1 MbpsDL 800 kbps, UL 1 MbpsDL 234.7 kbps, UL 204.8 kbps
Max. messages per day140 (device), 50 000 (BTS)50 000 (BTS)unlimitedunlimitedunlimitedunlimitedunlimited
Device peak Tx power14 dBm14 dBm26 dBm23 dBm23 dBm23 dBm23 dBm
MCLUL 156 dB, DL 147 dBUL 156 dB, DL 168 dB (SF 12, BW 7.8 kHz), 132 dB (SF 6, BW 125 kHz)164 dB144 dB144 dB156 dB164 dB
Device power consumptionLowLow–mediumLowMediumMediumLow–mediumLow

In the MCL row, SF 12 means spreading factor 12; this comes up in the LoRa topics below.

I guess remembering just some of the LoRa and Sigfox differences is fine. Also worth mentioning: all the other technologies in the table are cellular IoT. All of them operate in licensed spectrum and have an unlimited maximum number of messages per day.

21. LoRa and LoRaWAN

Topic 21 · Wireless Technologies exam topics

LoRa/LoRaWAN – basic features, architecture, join procedure, transmission in UL/DL

LoRa (Long Range) is a radio-frequency modulation technology for LPWAN: the physical layer (LoRa is just the physical layer).

The LoRaWAN protocol is the medium access control (MAC) layer (LoRaWAN is what sits on top of the LoRa PHY. Look at the diagram and remember it).

Stack: application; LoRaWAN MAC with MAC options and classes A, B and C form the MAC layer; LoRa modulation over a regional ISM band (EU 868, EU 433, US 915, AS 430, …) forms the physical layer

Redrawn from the lecture slide. Source: lorawan-stack.tex

LoRaWAN overview

Objectives:

  • years of operation (consumption in micro/milliwatts)
  • low device cost (even gateways are rather cheap)
  • extended coverage (157/165 dB maximum coupling loss)
  • low bit rates, from hundreds to several thousand bps, depending on the physical layer, spreading factor and bandwidth (but still way more than Sigfox, remember?)

Main features:

  • public and private networks (public: everybody can use it for their own IoT devices; private: only you can use it for your own IoT devices)
  • narrowband channels (typically 125 kHz)
  • chirp spread spectrum (CSS): an adaptive spreading factor trades data rate against coverage
  • open standard (except the physical layer). Important: the LoRa PHY is not publicly available, but some people have reverse-engineered it, so it’s more or less known now.

Network architecture

End devices (smoke alarm, trash container, gas monitoring, vending machine, pet tracking, water meter) reach several LoRa gateways over LoRa RF; the gateways connect over secure IP to the LoRa network server (LNS), which connects to the application servers and on to dashboards or data portals; the join server is linked to the LNS and the application servers

Redrawn from the lecture slide. This MUST be remembered. Source: architecture.tex

Know the purpose of each of these in the network.

  • LoRaWAN gateway
    • receives messages from the devices and forwards them to the LNS, and vice versa, over IP (any technology: Wi-Fi, Ethernet, mobile networks, …)
    • operates at the physical layer: only the message plus metadata (received RSSI and an optional timestamp) is forwarded
  • End devices
    • sensors or actuators wirelessly connected to the LoRaWAN network
    • connected only through LoRaWAN gateways; autonomous; typically battery-operated
  • LoRa network server (LNS)
    • network management and control of network parameters: acknowledging messages, frame counting, adapting the data rate, handling MAC requests from the devices
    • establishes secure 128-bit AES connections
    • ensures the authenticity of end devices and the integrity of messages; it does not see or access the application data
  • Application servers
    • securely handle, manage and interpret the sensor application data
    • generate application-layer downlink payloads for the devices
  • Join server
    • manages the activation of end devices: adding devices to the network (the join procedure)
    • security handling: contains and manages the security-related information (keys, service profiles of end devices, …)
    • matches application servers to end devices (via the LNS)

Join procedure

The end device, holding securely stored root keys, sends a join request (JoinEUI 8 bytes, DevEUI 8 bytes, DevNonce 2 bytes) through the gateway and the network server to the join server, which also holds the root keys. The join server answers with a join accept (JoinNonce 3, Home_NetID 3, DevAddr 4, DLSettings 1, RxDelay 1, optional CFList 16 bytes) and hands the network session key to the network server and the application session key to the application servers

Over-the-air activation. Redrawn from the lecture slide. Source: join.tex

The three items in the join request, initiated by the end device:

  • join server ID (JoinEUI, EUI-64)
  • end device ID (DevEUI, EUI-64)
  • DevNonce: a counter of requests, incremented with every new request (important!)

The slide also lists what the join accept carries; I crossed that list out in my notes.

The whole slide is about over-the-air activation (OTAA):

  • Over-the-air activation: the join procedure above.
  • Activation by personalization (ABP): the end device is directly coupled to a specific network. The device address and the security keys are stored in the device, so the same keys are used all the time, which is less secure.

Message transmission

Uplink (from the end device to the network):

  • the message is broadcast to, and received by, all gateways within reach; this reduces the packet error rate and the battery consumption and enables localization
  • the gateway forwards the message to the LNS
  • the LNS performs data de-duplication and deletes all the copies: it selects the message with the highest RSSI (very important!)
  • the LNS forwards the message to the targeted application server (there can be more than one application server)

Downlink (from the network to the end device):

  • the application server sends the message to the LNS
  • the LNS selects the gateway that should send the message to the end device: the gateway with the maximum RSSI of the messages received in the uplink

22. Physical layer of LoRa

Topic 22 · Wireless Technologies exam topics

Physical layer of LoRa – principle of CCS, spreading, data rate derivation

PHY overview

  • ISM bands (this ISM band stuff is everywhere): EU: 433 and 868 MHz; US: 902–928 MHz. Unlicensed.
  • Channel bandwidth of 125 kHz (250, 500, … kHz). Regional parameters are in the LoRa Alliance’s LoRaWAN Regional Parameters. EU: three channels at 868 MHz with 125 kHz.
  • Proprietary spread-spectrum modulation, based on chirp spread spectrum (CSS)
    • resilience to interference, multipath (and Doppler effect)
    • low power
    • signal spread in the frequency domain
    • orthogonal spreading factors
    • chirp: a sweep tone/signal; the frequency increases or decreases in time (up-chirp/down-chirp)
  • Frequency hopping (uplink, a different PHY: 3.9 kHz hopping channels in a bandwidth of 137 kHz, very low bit rates of 162–325 bps): robustness to interference.
Top: instantaneous frequency F(t) rising linearly from f0 to f1 (up-chirp), then falling back (down-chirp). Bottom: the signal S(t), a constant-amplitude sinusoid whose oscillation speeds up during the up-chirp and slows down during the down-chirp

Up-chirp and down-chirp. Redrawn from the lecture slide. MUST know! Source: chirp.tex

Spreading factor and data rate

Chips and chirps are not the same, just keep that in mind.

Modulation: data is encoded by frequency changes at the beginning of the symbol, i.e. by the starting frequency of the chirp. Bandwidth BW=fhigh−flowBW = f_\mathrm{high} - f_\mathrm{low}.

Top left: unmodulated signal, a train of identical chirps each sweeping from f low to f high. Top right: modulated signal, each chirp starts at a different frequency, sweeps to f high, wraps to f low and continues; one chirp is one symbol. Bottom: SF 7 example with symbols starting at chip values 0, 64, 32 and 95; the symbol 1011111 is the chirp that starts at chip 95

Redrawn from the lecture slide (after R. Lie’s LoRa/LoRaWAN tutorial). Source: symbols.tex

Spreading factor (SF) = number of bits per symbol: 2SF2^{SF} values (steps, chips) per symbol. SF can only be between 7 and 12!

Ts=2SFBW,Rs=1Ts=BW2SF,Rd=SF×BW2SF×CR T_\mathrm{s} = \frac{2^{SF}}{BW}, \qquad R_\mathrm{s} = \frac{1}{T_\mathrm{s}} = \frac{BW}{2^{SF}}, \qquad R_\mathrm{d} = SF \times \frac{BW}{2^{SF}} \times CR
  • symbol duration TsT_\mathrm{s}: SF increases → symbol duration increases; bandwidth increases → symbol duration decreases
  • symbol rate RsR_\mathrm{s}
  • data rate RdR_\mathrm{d}: number of bits per symbol × symbol rate × code rate (CR); CR = 4/5, 4/6, 4/7, 4/8 (code rate index 1, 2, 3, 4)

Examples:

  • BW=125BW = 125 kHz, SF=7SF = 7, CR=4/5CR = 4/5: Rd=5460R_\mathrm{d} = 5460 bps, Ts=1.02T_\mathrm{s} = 1.02 ms
  • BW=125BW = 125 kHz, SF=12SF = 12, CR=4/5CR = 4/5: Rd=290R_\mathrm{d} = 290 bps, Ts=32.77T_\mathrm{s} = 32.77 ms

Impact of the spreading factor

Increasing SF:

  • symbol duration increases
    • time on air increases (longer transmission) → energy consumption increases
    • the symbol duration doubles when SF increases by 1 (airtime calculator: loratools.nl)
  • coverage is extended
    • end device further from the gateway → longer transmission time
    • the SNR required for decoding is lowered: −2.5 dB for every SF increase by 1
  • bit rate is decreased
    • the bit rate is reduced by half when SF increases by 1

Refer to the equations above to convince yourself that all of this takes place.

Spreading factor789101112
SNR limit (dB)−7.5−10−12.5−15−17.5−20
Step plots against SF from 12 down to 7, plus SF 7 at 250 kHz. Time on air falls from about 990 ms at SF 12 to about 41 ms at SF 7 (21 ms at 250 kHz); data rate rises from about 0.3 kbit/s at SF 12 to 5.5 kbit/s at SF 7 and 10.9 kbit/s at SF 7 with 250 kHz. Distance grows towards SF 12

Time on air and data rate against SF, for BW = 125 kHz, CR = 4/5 and a 10-byte payload. Redrawn from the lecture slide; the values are computed with the LoRa time-on-air formula. Source: sf-impact.tex

23. LoRaWAN device classes

Topic 23 · Wireless Technologies exam topics

LoRaWAN device classes – differences, principle of communication

Everything on this topic!

Classes define the devices’ communication and management. The class can be switched.

  • Class A (All end devices)
    • mandatory for all devices, all the time
    • energy-efficient bi-directional communication
    • access to the medium based on ALOHA
    • the device is reachable only after its own transmission
  • Class B (Beacon)
    • optional
    • periodic, scheduled opportunities to reach the device, based on beacons from the gateways
  • Class C (Continuously listening)
    • (almost) continuously reachable end device; not reachable during its own transmission
    • high energy consumption compared to classes A and B
    • low latency

Classes B and C are not used at the same time, but class A is always available.

Battery lifetime against downlink latency. Class A, battery-powered sensors, has the longest battery life and the highest downlink latency; class B, battery-powered actuators, is in the middle; class C, mains-powered actuators, has the shortest battery life and no downlink latency

Redrawn from the lecture slide. Source: classes.tex

Class A

Bi-directional transmission.

  • Uplink
    • the end device transmits at an arbitrary time (ALOHA); retransmission after a random backoff
    • the next uplink is not sent before the downlink windows (slots) expire
  • Downlink
    • the end device is reachable only after its own transmission (you can’t talk to a class A device unless spoken to)
    • it opens one or two receive windows (RX1 and RX2) after each of its own transmissions
    • if the end device receives no packet in RX1, it opens RX2; otherwise RX2 is not opened
    • the receive window timing is referenced to the end of the transmission: RX1 starts 1–15 s after the end of the transmission (1 s steps, set with RXTimingSetupReq/Ans messages); RX2 always 1 s after RX1; the default delays are 1 s and 2 s

Class B

Includes class A communication, but the gateway regularly (but optionally) transmits beacons.

  • Beacon: 10 unmodulated symbols plus the beacon payload (dozens of bytes: gateway ID, GPS, …). A period of 128 s between beacons, counted from January 6, 1980, 00:00:00 UTC (the start of the GPS epoch).
  • Ping slots for data reception: the beacon period is divided into 212=40962^{12} = 4096 ping slots (30 ms each). Regular duration, but starting randomly after the beacon to avoid collisions. The end device periodically opens ping slots while it is reachable.
  • If the beacon is not received at the expected time, the reception window is enlarged: beaconless operation for at most 120 minutes, with a progressively expanding beacon reception window.
  • The network should be informed about the device’s position: the end device sends regular uplinks to tell it the best way to reach it.

Class C

Includes class A communication, but the end device listens on a continuous receive window (RXC), except during its own transmission or while receiving data in RX1 or RX2.

The end device opens RXC:

  • between the end of the uplink transmission and the beginning of the RX1 window,
  • between the end of RX1 and the beginning of RX2,
  • as soon as the RX2 window is closed, and keeps it open until the device sends another packet.

The network should be informed about the device’s position: the end device sends regular uplinks.

Summary (from a YouTube tutorial; I think this one is better)

ClassDescription
A (all)Battery-powered devices. Each uplink to the gateway is followed by two short downlink receive windows.
B (beacon)Same as class A, but these devices also open extra receive windows at scheduled times.
C (continuous)Same as A, but these devices listen continuously. Hence they use more power and are often mains powered.
  • Class A: at any time, an end node can broadcast a signal; after this uplink transmission (tx), it listens for a response from the gateway. It opens two receive slots, t1t_1 and t2t_2 seconds after the uplink. The gateway can respond in the first receive slot or in the second, but not both.
  • Class B: in addition to the class A receive slots, the device opens extra receive slots at scheduled times. It receives a time-synchronized beacon from the gateway, which lets the gateway know when the node is listening. A class B device does not support class C functionality.
  • Class C: in addition to the class A receive slots, the device listens continuously for responses from the gateway. A class C device does not support class B functionality.
Three timelines. Class A: node uplink transmission, then rx slot 1 after t1 and rx slot 2 after t2. Class B: beacon, class A exchange (node tx, rx slot 1, rx slot 2), then periodic rx ping slots one ping period apart, then the next beacon one beacon period later. Class C: node tx, rxc, rx slot 1, rxc, rx slot 2, then rxc that stays open until the next node tx

Class A, B and C timing. Redrawn from the lecture slides and the tutorial (R. Lie, LoRa/LoRaWAN tutorial 4: LoRaWAN Device Classes). Source: class-timing.tex

© 2026 Giorgi Aptsiauri. All rights reserved. Do not copy or republish this text or its figures without permission. Online version: https://giorgiaptsiauri.com/notes/wireless-technologies/07-lpwan-and-lora/