Search GimmeJob

Type at least 2 characters. Enter also searches by meaning.
GimmeJob
Sign in
Embedded & IoT · Chapter 04 / 08

Embedded & IoT

Wireless IoT is not one technology. Range, throughput, topology, power budget, infrastructure and application model determine the right choice.

This chapter compares the major connectivity families without pretending they sit at the same layer.

1. Start with requirements, not protocol names

Ask first:

  • required range;
  • data volume and frequency;
  • battery life;
  • mobility;
  • latency;
  • topology;
  • infrastructure availability;
  • indoor/outdoor use;
  • regulatory region;
  • device cost;
  • security and provisioning model.

A coin-cell sensor and a video camera have completely different communication constraints.

2. Radio fundamentals

Wireless links are affected by:

  • transmit power;
  • receiver sensitivity;
  • antenna design;
  • frequency band;
  • path loss;
  • obstacles/materials;
  • interference;
  • channel utilization;
  • multipath/fading;
  • regulatory transmit limits.

RSSI is useful but is not a complete measure of connection quality.

3. Bluetooth Classic vs Bluetooth Low Energy

Bluetooth includes several technologies.

Bluetooth Classic / BR-EDR

Historically common for continuous point-to-point use cases such as audio and peripherals.

Bluetooth Low Energy (LE)

Bluetooth LE was designed for low-power communication and supports connection-oriented and broadcast-oriented models.

Important BLE concepts:

  • advertising;
  • scanning;
  • connection;
  • connection interval;
  • PHY;
  • channels;
  • pairing/bonding;
  • GATT;
  • ATT;
  • services and characteristics;
  • notifications/indications.

BLE is not simply “serial over radio.” Applications usually expose structured GATT services and characteristics.

4. BLE advertising and connections

Before connection, a peripheral can advertise information.

A central device scans and may initiate a connection.

Once connected, behavior is influenced by:

  • connection interval;
  • peripheral latency;
  • supervision timeout;
  • MTU/data length;
  • PHY choice;
  • notification rate.

Lower latency can cost more power because radios wake more often.

5. GATT model

GATT organizes data as:

service
  ├─ characteristic
  │    ├─ value
  │    └─ descriptors
  └─ characteristic

Characteristics can support operations such as read, write, notify or indicate.

Notifications do not require an application-level acknowledgement from the client; indications do.

A custom GATT protocol should define units, byte order, versioning and error behavior explicitly.

6. Wi-Fi

Wi-Fi provides high-throughput local IP connectivity and integrates naturally with existing LAN/Internet infrastructure.

Typical strengths:

  • high throughput;
  • native IP connectivity;
  • common infrastructure;
  • direct cloud/backend access.

Typical costs:

  • higher power than ultra-low-power radios;
  • association/authentication complexity;
  • dependency on access-point configuration;
  • RF congestion in common bands.

IoT Wi-Fi devices still need robust handling for wrong password, AP disappearance, DHCP failure, roaming/reconnect and captive/enterprise network assumptions.

7. Ethernet

Ethernet is wired rather than wireless, but belongs in connectivity decisions because many embedded gateways and industrial devices use it for stable IP connectivity.

Compared with radio links it can provide:

  • predictable physical connection;
  • high throughput;
  • no RF interference;
  • Power over Ethernet in supported designs.

The trade-off is cabling and reduced mobility.

8. IEEE 802.15.4 ecosystem

IEEE 802.15.4 defines low-rate wireless PHY/MAC technologies used by higher-layer systems including Zigbee and Thread.

It is important not to use 802.15.4, Zigbee, Thread and Matter as synonyms.

They represent different layers/ecosystems.

9. Zigbee

Zigbee is a low-power mesh networking/application ecosystem built on IEEE 802.15.4.

Typical concepts include:

  • coordinator/router/end-device roles in common Zigbee networks;
  • mesh routing;
  • clusters/application profiles;
  • sleepy end devices;
  • joining and trust/security mechanisms.

Zigbee devices generally need a Zigbee-aware coordinator/gateway to integrate with IP/cloud systems.

10. Thread

Thread is a secure, low-power IPv6-based mesh networking protocol built on IEEE 802.15.4.

Important ideas:

  • IPv6 is native;
  • mesh topology;
  • low-power end devices;
  • router-capable nodes;
  • Thread Border Router connects the Thread mesh to adjacent IP networks;
  • Thread itself does not define the complete smart-home application data model.

This is one of the key differences from Zigbee's historically more vertically integrated application ecosystem.

11. Matter

Matter is an application-layer interoperability standard/ecosystem for smart-home devices.

Matter runs over IP networks such as:

  • Thread;
  • Wi-Fi;
  • Ethernet.

BLE is used in important commissioning flows but is not the normal operational transport for a commissioned Matter-over-Thread device.

Therefore:

Matter application model
        ↓
IPv6 / IP networking
        ↓
Thread OR Wi-Fi OR Ethernet

Matter and Thread are complementary, not competing synonyms.

12. Cellular IoT

Cellular connectivity is useful when devices need wide-area communication without local Wi-Fi infrastructure.

Possible technologies include LTE/4G/5G and IoT-focused options such as LTE-M and NB-IoT.

LTE-M

Generally supports higher mobility/data rate and lower latency than NB-IoT, with power-saving mechanisms for IoT devices.

NB-IoT

Targets low-power wide-area device connectivity with small/intermittent data and deep coverage use cases.

Actual operator support, roaming and feature availability vary by country/network.

Cellular IoT also introduces SIM/eSIM, APN, registration, coverage and operator dependencies.

13. LoRaWAN

LoRaWAN targets low-power wide-area networks with long range and small payloads.

Architecture commonly includes:

end device
   ↓ LoRa radio
one or more gateways
   ↓ IP backhaul
network server
   ↓
application server

A gateway is largely a packet forwarder; network-level coordination lives in the LoRaWAN backend architecture.

LoRaWAN is not designed for high-throughput continuous streaming.

14. Topology comparison

TechnologyTypical topologyNative IP?Relative power/use
BLEPoint-to-point + broadcast; mesh also existsNo, not ordinary GATT useVery low-power short range
Wi-FiStation ↔ APYesHigher throughput/power
ZigbeeMesh/star/tree depending stackNot native general IPLow-power mesh
ThreadIPv6 meshYesLow-power IP mesh
CellularDevice ↔ operator networkYesWide-area, operator dependent
LoRaWANDevice ↔ gateways ↔ network serverBackend uses IPVery low data, long range

This table is a simplification; product details and radio modes matter.

15. Commissioning and provisioning

Connectivity is not complete until a new device can securely join its network.

Provisioning may include:

  • Wi-Fi SSID/password;
  • BLE pairing/bonding;
  • Thread network credentials;
  • Matter fabric commissioning;
  • cellular SIM/eSIM profile;
  • LoRaWAN device/network keys;
  • cloud device identity.

Factory provisioning and user commissioning are different lifecycle stages.

16. Reconnect and offline behavior

Connected devices must define what happens when communication disappears.

Questions include:

  • Does the device keep local control working?
  • Does it queue telemetry?
  • How much data can it buffer?
  • Is retry exponential/backed off?
  • What state wins after reconnect?
  • Can commands be replayed?
  • How is clock/time recovered?

The best radio does not fix an undefined offline state model.

17. Wireless security basics

Security exists at several layers:

  • radio/link encryption/authentication;
  • network credentials;
  • device identity;
  • TLS/application security;
  • cloud authorization.

“BLE encrypted” or “Wi-Fi protected” does not automatically mean the cloud identity or application commands are authorized correctly.

18. Tools

Useful tools include:

  • smartphone BLE scanners;
  • BlueZ tools on Linux;
  • dedicated BLE sniffers;
  • Wireshark;
  • Wi-Fi packet capture where hardware/permissions allow;
  • Thread diagnostic tools/border-router logs;
  • cellular modem AT command/logging tools;
  • LoRaWAN network-server logs;
  • RF spectrum analyzer for advanced interference investigation.

19. Practice

Exercise 1 — choose connectivity

Choose a primary technology for: battery door sensor, smartwatch-phone link, industrial gateway, remote agriculture sensor and security camera. Explain trade-offs.

Exercise 2 — Thread vs Matter

Explain why “the device uses Matter, therefore it uses Thread” is incorrect.

Exercise 3 — BLE power

A BLE device needs lower latency. Which connection parameters may change, and what battery trade-off follows?

Exercise 4 — offline model

Design behavior for a smart lock that loses cloud access but still has local BLE connectivity.

Quick testing lens

Wireless/IoT tests should cover:

  • minimum/maximum useful range;
  • interference and congestion;
  • weak-signal transitions;
  • disconnect/reconnect loops;
  • changing Wi-Fi networks or cellular cells;
  • pairing/commissioning failures;
  • credential rotation/removal;
  • duplicate device identity;
  • offline buffering limits;
  • power impact of connection parameters;
  • recovery after gateway/AP/border-router restart.

Sources