LPWAN and LoRa
Wireless Technologies · · lpwan, lora, lorawan
Giorgi Aptsiauri · https://giorgiaptsiauri.com/notes/wireless-technologies/07-lpwan-and-lora/
Contents
Notes, topics 20–23 (PDF)
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
Handwritten work (PDF)
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
Redrawn from the lecture slide, with my note: coupling loss is between the antenna ports. Source: mcl.tex
Applications and use cases for LPWAN
Page 2 (PDF)
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).
| Application | Examples |
|---|---|
| Transport and logistics | fleet management, goods tracking |
| Utilities | smart metering, smart grid management |
| Smart cities | parking sensors, waste management |
| Smart building | smoke detectors, home automation |
| Consumers | wearables, kids/senior trackers |
| Industrial | process monitoring and control, maintenance monitoring |
| Environment | food monitoring/alerts, environmental monitoring |
| Agriculture | climate/agriculture monitoring, livestock tracking |
Comparison of LPWAN technologies
| Sigfox | LoRa | EC-GSM | Cat-1 | Cat-0 | eMTC | NB-IoT | |
|---|---|---|---|---|---|---|---|
| Standardization | Private | Open | 3GPP | 3GPP | 3GPP | 3GPP | 3GPP |
| Spectrum | Unlicensed | Unlicensed | Licensed | Licensed | Licensed | Licensed | Licensed |
| Channel BW | 100 Hz | 7.8–500 kHz | 200 kHz | 1.4–20 MHz | 1.4–20 MHz | 1.4 MHz | 180 kHz |
| System BW | 100 kHz | 125 kHz | 1.4 MHz | 1.4–20 MHz | 1.4–20 MHz | 1.4 MHz | 180 kHz |
| Peak data rate | UL 100 bps, DL 600 bps | 180 bps–37.5 kbps | DL/UL 74 kbps | DL 10 Mbps, UL 5 Mbps | DL 2 Mbps, UL 1 Mbps | DL 800 kbps, UL 1 Mbps | DL 234.7 kbps, UL 204.8 kbps |
| Max. messages per day | 140 (device), 50 000 (BTS) | 50 000 (BTS) | unlimited | unlimited | unlimited | unlimited | unlimited |
| Device peak Tx power | 14 dBm | 14 dBm | 26 dBm | 23 dBm | 23 dBm | 23 dBm | 23 dBm |
| MCL | UL 156 dB, DL 147 dB | UL 156 dB, DL 168 dB (SF 12, BW 7.8 kHz), 132 dB (SF 6, BW 125 kHz) | 164 dB | 144 dB | 144 dB | 156 dB | 164 dB |
| Device power consumption | Low | Low–medium | Low | Medium | Medium | Low–medium | Low |
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
Handwritten work (PDF)
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).
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
Page 4 (PDF)
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)
Page 5 (PDF)
- 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
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
Page 6 (PDF)
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
Handwritten work (PDF)
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.
Up-chirp and down-chirp. Redrawn from the lecture slide. MUST know! Source: chirp.tex
Spreading factor and data rate
Page 8 (PDF)
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 = f_high - f_low.
Redrawn from the lecture slide (after R. Lie’s LoRa/LoRaWAN tutorial). Source: symbols.tex
Spreading factor (SF) = number of bits per symbol: 2^ SF values (steps, chips) per symbol. SF can only be between 7 and 12!
- symbol duration T_s: SF increases → symbol duration increases; bandwidth increases → symbol duration decreases
- symbol rate R_s
- data rate R_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 = 125 kHz, SF = 7, CR = 4/5: R_d = 5460 bps, T_s = 1.02 ms
- BW = 125 kHz, SF = 12, CR = 4/5: R_d = 290 bps, T_s = 32.77 ms
Impact of the spreading factor
Page 9 (PDF)
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 factor | 7 | 8 | 9 | 10 | 11 | 12 |
|---|---|---|---|---|---|---|
| SNR limit (dB) | −7.5 | −10 | −12.5 | −15 | −17.5 | −20 |
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
Handwritten work (PDF)
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.
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
Page 11 (PDF)
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 2^ 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)
Page 12 (PDF)
| Class | Description |
|---|---|
| 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, t_1 and t_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.
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/