Skip to content
Tutorials Center
My learning

Topics

Lesson 17 of 36 ยท Connectivity Protocols

LPWAN and Cellular IoT: LoRaWAN, NB-IoT, LTE-M and Satellite

Understand low-power wide-area networks and cellular IoT: LoRa spreading factors, airtime, duty cycle, NB-IoT, LTE-M and satellite, with a LoRa airtime calculator.

Some things sit far from any router: a water meter in a basement, a soil probe in a field, a shipping container in the middle of the ocean. They send a few bytes a few times a day, and must run for years on a battery. Wi-Fi and Bluetooth are wrong for them. The solution is low-power wide-area networks (LPWAN) and cellular IoT, which sacrifice data rate to gain range and battery life.

The LPWAN trade-off

What LPWAN gives and takes

Long range 2 to 15 km in the open
Low power 5 to 15 years on a battery
Low cost Cheap radios and plans
Tiny data Bytes, not megabytes

Great for meters and trackers, useless for video.

1 / 2

LoRa and LoRaWAN

LoRa is a radio modulation (chirp spread spectrum) from Semtech that works in the unlicensed sub-GHz bands (868 MHz in Europe, 915 MHz in the Americas). LoRaWAN is the network protocol on top: devices talk to nearby gateways, which forward messages over IP to a network server, which hands them to application servers. Anyone can run a gateway; community networks such as The Things Network exist.

flowchart LR
    D1["Sensor"] -. LoRa radio .-> G1["Gateway"]
    D2["Sensor"] -. LoRa radio .-> G1
    D2 -. LoRa radio .-> G2["Gateway 2"]
    G1 --> NS["Network server<br/>dedupe, security, ADR"]
    G2 --> NS
    NS --> AS["Application server<br/>decode, store, alert"]

Devices broadcast; any gateway that hears the packet forwards it, and the network server removes duplicates.

Key LoRa concepts:

  • Spreading factor (SF7 to SF12): higher SF means longer range and a slower data rate, but much longer time on air (and more energy).
  • Bandwidth (125 kHz typical) and coding rate (error correction).
  • Adaptive data rate (ADR): the network picks the lowest SF that still works, saving battery.
  • Device classes: Class A (sends, then listens briefly: lowest power), Class B (scheduled receive windows), Class C (always listening, mains power).
  • Duty cycle: in the EU 868 MHz band a device may transmit only 1% of the time (about 36 seconds per hour). Fair-use policies of public networks are stricter.
  • Security: AES-128 with a network session key and an application session key; devices join by OTAA (over-the-air activation).
  • Payload: up to about 51 bytes at SF12 and 222 bytes at SF7 (EU), so pack data into binary.

Time on air

Time on air determines energy use and the duty-cycle budget. It follows from a formula in the LoRa documentation. The calculator below uses it.

Python LoRa time on air calculator

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

At SF12 a 12-byte message occupies the air for over a second and you can send only about 30 per hour in the EU. That is why binary payloads and adaptive data rate matter. Compare with a text-based JSON payload:

Python Packing sensor data into a 6-byte LoRa payload

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The server-side "payload decoder" does exactly this unpack step.

Sigfox and other LPWANs

Sigfox used ultra-narrowband radio for tiny 12-byte uplinks (the network has seen business turmoil; check availability in your region). Others: Wi-SUN for smart cities and utilities, Weightless, Wireless M-Bus for meters, and MIOTY.

Cellular IoT: NB-IoT and LTE-M

Mobile operators added low-power modes to LTE, run on licensed spectrum and existing towers, so there is no gateway for you to install.

NB-IoT LTE-M (Cat-M1)
Peak data rate tens of kbit/s up to about 1 Mbit/s
Mobility Limited (stationary meters) Good (trackers, handover)
Voice No Yes (VoLTE)
Latency Seconds Tens to hundreds of ms
Coverage depth Excellent (basements) Good
Power saving PSM and eDRX PSM and eDRX
Typical use Smart meters, parking, bins Asset trackers, wearables, alarms

PSM (Power Saving Mode) lets a modem sleep for hours or days while the network remembers it; eDRX extends the interval between paging windows. Both are tuned with timers requested from the network. Cellular needs a SIM or eSIM and a data plan, and modules cost more than LoRa radios. 2G/3G networks have been shut down in many countries, so new designs choose LTE-M or NB-IoT. 5G RedCap targets mid-range IoT.

Satellite IoT

Remote assets outside coverage, such as ocean buoys, mining equipment and pipelines, can use satellite IoT (Iridium, Swarm, Myriota, direct-to-cell services). Latency is higher and per-message cost is higher, but coverage is global.

Choosing: a decision helper

Python Choose LoRaWAN, NB-IoT, LTE-M or satellite

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Practical advice

  • Prototype with a LoRaWAN dev board and a community gateway, or a cellular module on a development carrier plan.
  • Check carrier roaming support for NB-IoT and LTE-M before volume deployment.
  • Antenna quality and placement dominate range more than spec sheets.
  • Keep payloads small and design for uplink-mostly traffic: downlinks are scarce.
  • Plan firmware updates carefully: LPWAN bandwidth makes them slow (see challenges).

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. What does a higher LoRa spreading factor do?

    SF12 reaches farthest but is slowest, using more airtime and energy per message.
  2. 2. Why do LoRa payloads use compact binary formats instead of JSON?

    Each byte adds airtime and energy and counts against the duty-cycle budget.
  3. 3. Which is true of NB-IoT compared with LTE-M?

    NB-IoT has narrow bandwidth and excellent penetration but limited mobility; LTE-M supports handover and voice.
  4. 4. What is PSM in cellular IoT?

    Power Saving Mode keeps the network registration while the modem sleeps, saving energy.

Summary

  • LPWAN trades data rate for range, battery life and cost; typical payloads are a few bytes.
  • LoRaWAN uses unlicensed spectrum with gateways and network servers; spreading factor, airtime and duty cycle control capacity.
  • NB-IoT and LTE-M use operator networks and SIMs; PSM and eDRX save power.
  • Satellite covers places with no terrestrial network. Choose by mobility, coverage, data volume and who runs the network.

Next: HTTP, CoAP and Choosing a Protocol