Computer Engineering is coming soon

We're still writing and reviewing the notes for every subject, and we'll open it when every subject is ready. Meanwhile you can practise aptitude, ask Aria about any subject, or see the branches that are ready.

IoT access technologies: 802.15.4, 802.11ah and LoRaWAN

Concise study notes comparing three low-power IoT radio technologies (IEEE 802.15.4, IEEE 802.11ah and LoRaWAN) with PHY/MAC highlights, link-budget formulas, worked examples and exam guidance.

Drafted with Aria, reviewed by the AiCanCode.org team · Updated . How we write and check our notes. Spotted an error? Use Give Feedback at the bottom of the page.

Why it matters

Two or three sentences: where an engineer uses this.

IoT systems require low-power wide-area and local wireless links between sensors/actuators and gateways. Engineers choose between IEEE 802.15.4 (short-range, low-power sensor networks), IEEE 802.11ah (HaLow) (sub-GHz Wi‑Fi for extended range and higher throughput) and LoRaWAN (long-range, low-data-rate LPWAN) depending on range, data-rate, power and network topology requirements.

Key ideas

Explain concepts from first principles and give exact definitions.

  • Wireless channel: the physical medium (air) used to transfer electromagnetic waves between transmitter and receiver. Assume linear time-invariant propagation only for simple free-space models; real environments add multipath, shadowing and building losses.

  • Link budget: accounting of all gains and losses from transmitter to receiver to predict received power. Exact statement: Received power (linear) equals transmitted power multiplied by all dimensionless gains and divided by all dimensionless losses. In dB arithmetic this becomes sums and subtractions. Assumptions: single-path free-space or specified propagation model.

  • Free-space path loss: for distance R and wavelength λ, the power attenuation factor is (λ/(4πR))^2. This is derived from spherical spreading of power from a point source. Draw: a transmitter at left, a circle of radius R, annotate power flux density = Pt·Gt/(4πR^2), show receiving aperture Ae = Gr·λ^2/(4π) for an isotropic antenna equivalence; combine to get Friis equation.

  • IEEE 802.15.4: define exactly — "IEEE 802.15.4 is a standard that defines the physical (PHY) and medium access control (MAC) layers for low-rate wireless personal area networks (LR-WPANs)." Key points: PHY bands include 2.4 GHz (global, 16 channels) at 250 kb/s, 915 MHz (Americas) at 40 kb/s, 868 MHz (Europe) at 20 kb/s. The MAC uses CSMA-CA (carrier-sense multiple access with collision avoidance); optional beacon-enabled mode supports slotted operation and GTS (guaranteed time slots). Typical topologies: star and peer-to-peer (mesh). Assumptions: low duty-cycle sensors, small payloads.

  • IEEE 802.11ah (HaLow): define exactly — "IEEE 802.11ah is an amendment to Wi‑Fi that operates in sub‑GHz bands to provide longer‑range, lower‑power Wi‑Fi for IoT devices." Key features: channels of 1, 2, 4, 8, and 16 MHz; better propagation at sub‑GHz (lower path loss) compared to 2.4/5 GHz; and PHY/MAC features for many stations such as MCS10 (repetition for range), Restricted Access Window (RAW), and Target Wake Time (TWT) for power saving. Peak PHY rates are up to about 7.8 Mb/s with 16‑MHz channels. Use cases: many low‑data‑rate devices with occasional bursts (e.g., smart meters, sensors). Assumptions: local/regional regulatory sub‑GHz allocations and coexistence rules.

  • LoRa and LoRaWAN: define both — "LoRa is a physical-layer chirp spread spectrum modulation developed for long-range low-power links. LoRaWAN is a MAC/network specification that defines device classes, join/authentication, adaptive data rate and network server architecture." LoRa modulation uses a Spreading Factor (SF) (typical SF7–SF12), Bandwidth (BW) (typical 125 kHz), and Coding Rate (CR) (e.g., 4/5 to 4/8) to trade data rate for sensitivity and range. LoRaWAN defines device Classes A, B, C (A: uplink-initiated downlink windows; B: scheduled receive slots; C: continuous receive except when transmitting). Use cases: battery sensors sending small packets infrequently across km-scale distances. LoRaWAN Class A uplinks use a pure ALOHA MAC (no carrier sensing), which affects network capacity and collision probability.

  • Receiver sensitivity and link margin: define receiver sensitivity as the minimum received power for a given data rate and modulation to achieve a target bit-error-rate (BER). Link margin = received power minus receiver sensitivity. Positive margin indicates reliable link (subject to fading margins).

  • Network architecture difference (draw mentally): For 802.15.4 and 802.11ah, gateways bridge devices to local/gateway/Internet; for LoRaWAN, end-devices -> single-hop to gateway -> network server (star-of-stars).

Diagrams to draw in an answer: (1) For link-budget: draw transmitter, distance R, receiver, show Pt, Gt, Gr, λ and annotate Lfs. (2) For topologies: three simple drawings labeled "802.15.4 mesh", "802.11ah star with AP", "LoRaWAN star-of-stars with gateway and network server".

Formulas

Each formula on its own line; explain symbols, units and when it applies.

Pr = Pt · Gt · Gr · (λ / (4·π·R))^2

  • Pr: received power (W). Pt: transmitted power (W). Gt, Gr: linear antenna gains (dimensionless). λ: wavelength (m). R: distance (m). Applies under free-space, single-path, line-of-sight conditions (Friis equation).

Lfs_dB = 20 · log10(4·π·R / λ)

  • Lfs_dB: free-space path loss in decibels (dB). R: distance (m). λ: wavelength (m). Use when converting Friis to dB form.

Pr_dBm = Pt_dBm + Gt_dBi + Gr_dBi − Lfs_dB − L_other_dB

  • Pr_dBm: received power in dBm. Pt_dBm: transmit power in dBm. Gt_dBi, Gr_dBi: antenna gains in dBi. L_other_dB: other losses (cable, connector, fading margins) in dB.

Link_margin_dB = Pr_dBm − Sensitivity_dBm

  • Link_margin_dB: margin for reliable reception (dB). Sensitivity_dBm: receiver sensitivity at required data rate and BER.

λ = c / f

  • λ: wavelength (m). c: speed of light ≈ 3·10^8 m/s. f: frequency (Hz).

(Useful numbers to remember) Typical IEEE 802.15.4 PHY data rates: 250 kb/s at 2.4 GHz, 40 kb/s at 915 MHz, 20 kb/s at 868 MHz. LoRa receiver sensitivity typically ranges from about −123 dBm (SF7, 125 kHz) to about −137 dBm (SF12, 125 kHz), depending on SF/BW/CR.

Worked examples

Two examples at university-exam standard.

Example 1 — Link budget for a LoRa link (free-space estimate) Given: Pt = 14 dBm (transmit power), Gt = 0 dBi, Gr = 0 dBi, f = 868 MHz, distance R = 5000 m. Assume receiver sensitivity for chosen SF = −130 dBm. Steps:

  1. Compute wavelength: λ = c / f = 3·10^8 / 868·10^6 = 0.3458 m.
  2. Compute free-space loss: Lfs_dB = 20·log10(4·π·R / λ)
    • 4·π·R / λ = 4·π·5000 / 0.3458 ≈ 1.81636·10^5
    • Lfs_dB ≈ 20·log10(1.81636·10^5) ≈ 105.2 dB.
  3. Received power: Pr_dBm = 14 + 0 + 0 − 105.2 ≈ −91.2 dBm.
  4. Link margin: Link_margin = Pr − Sensitivity = −91.2 − (−130) = 38.8 dB.
  5. Interpretation: 38.8 dB margin — large positive margin implies reliable reception under free-space; add fading margin and building losses in practice.

Final answer: Received power ≈ −91.2 dBm, link margin ≈ 38.8 dB.

Note: sensitivity value (−130 dBm) depends on SF/BW/CR and must be verified for chosen LoRa settings.

Example 2 — Short-range IEEE 802.15.4 feasibility Given: Pt = 0 dBm, Gt = Gr = 0 dBi, f = 2.4 GHz, R = 30 m. Receiver sensitivity (250 kb/s) ≈ −95 dBm (typical).

  1. λ = 3·10^8 / 2.4·10^9 = 0.125 m.
  2. 4·π·R / λ = 4·π·30 / 0.125 ≈ 3015.9 → Lfs_dB ≈ 20·log10(3015.9) ≈ 69.6 dB.
  3. Pr_dBm = 0 + 0 + 0 − 69.6 ≈ −69.6 dBm.
  4. Link margin = −69.6 − (−95) = 25.4 dB. Final answer: Received power ≈ −69.6 dBm, margin ≈ 25.4 dB — good for indoor but allow extra margin for walls and multipath.

Common mistakes

  • Forgetting duty-cycle or regulatory transmit-power limits for a given ISM band (countries differ; always check local regulation).
  • Giving LoRaWAN gateway range as a fixed number — range varies widely with environment, SF and antenna gains.
  • Mixing linear gains and dB values without conversion; forget to convert Pt in dBm to watts when using linear formulas.

For your exam

Kinds of questions and what full-marks answers include.

  • Definitions: define 802.15.4, 802.11ah, LoRa and LoRaWAN; list bands, typical data-rates and topologies. Full answer gives numeric examples and mention assumptions.
  • Short notes: compare use-cases (local mesh vs sub‑GHz Wi‑Fi vs LPWAN) and power trade-offs. Full marks: mention MAC differences (CSMA-CA, beaconing, RAW/TWT concepts, LoRaWAN classes).
  • Derivations: derive Friis equation and convert to dB form; show steps using antenna effective area Ae and power density. Full marks: show spherical spreading step and substitute Ae = Gr·λ^2/(4π).
  • Numericals: link-budget and range estimate problems. Full marks: show steps for λ, Lfs_dB, Pr_dBm, link margin and comment on fading and regulatory limits.
  • Diagrams: draw network topologies and annotate gateways, APs, and network servers. Full marks: label roles of devices and packet flow.

Quick check

Three short questions; answers on final line.

  1. What is the typical PHY data rate of IEEE 802.15.4 at 2.4 GHz?
  2. Name the three LoRaWAN device classes and one distinguishing feature of each.
  3. Write the free-space path-loss formula in dB form.

Answers: 1) 250 kb/s. 2) Class A (uplink-triggered downlink windows), Class B (scheduled receive beacons), Class C (almost continuous receive, high downlink availability). 3) Lfs_dB = 20·log10(4·π·R / λ).

Finished this topic? Mark it so your progress, study plan and readiness keep up.

Stuck on something here?