Edge & Fog Computing · Study deck

Edge, Fog, and Cloud: Device Integration

A freezer probe is replaced with a newer board that reports temperature in hundredths of a degree.

Edge Eddie is your guide for this deck.

clouddevicesintegration
Edge Eddie, the module guide, in a scene from this chapter.
iotclass.org

After studying this chapter

Learning objectives

You will be able to:

  • Select device classes based on task ownership, power source, runtime needs, interfaces, and lifecycle support.
  • Draw an integration path from sensor or actuator interface through fog adapter to cloud service.
  • Define gateway contracts for protocol translation, record normalization, command validation, buffering, and replay.
  • Explain how identity, provisioning, certificates, updates, and health reporting cross edge, fog, and cloud tiers.
iotclass.org

Major section

In 60 Seconds

The cloud can hold the fleet history later.

  • The local path must keep the food safe now.
  • A gateway is a device or service that joins field devices to a wider network.
  • The word protocol means an agreed set of rules for how devices exchange data.
  • Those details can change the tier boundary.

Key terms

gateway
gateway is a device or service that joins field devices to a wider network.
protocol
protocol means an agreed set of rules for how devices exchange data.
Device integration
Device integration is the work that turns edge hardware, fog gateways, and cloud services into one manageable system.
iotclass.org

Major section

In 60 Seconds (continued)

A queue keeps it during a gap.

  • The cloud should not parse a private device frame when a stable local adapter can own that work.
  • They do not remove the need for a safe local action.
  • A sensor sees a change.
  • A local rule may act.
iotclass.org

Major section

In 60 Seconds (continued)

An adapter keeps its meaning.

  • Each boundary keeps an owner.
  • Device integration is the work that turns edge hardware, fog gateways, and cloud services into one manageable system.
  • The key decision is not "which board is best." The key decision is which tier owns sensing, actuation, protocol adaptation, identity, buffering, command validation, software updates, and evidence.
iotclass.org

Major section

Start Simple · Minimum Viable Understanding

The core idea is to hide device-specific details behind stable contracts while keeping identity, buffering, updates, and evidence explicit.

  • Everyday IoT integration starts with one device type and one message path, then proves that enrollment, translation, command validation, and retry behavior survive a realistic failure.
iotclass.org

Major section

Most Valuable Understanding · Device Integration Map

A device is not integrated when it can send one test message.

  • A device integration plan should show what happens before the cloud sees a record and what happens before a device obeys a command.
  • Owns fleet identity, long-term records, dashboards, analytics, rollout policy, audit trails, and cross-site coordination.

Key terms

Device integration
Device integration is easiest to review when the traffic directions and time scales are visible together.
Edge-fog-cloud integration across three tiers: edge devices, neighborhood fog hubs for low-latency coordination, and cloud data centers for fleet-wide training and analytics.
Edge-fog-cloud integration across three tiers: edge devices, neighborhood fog hubs for low-latency coordination, and cloud data centers for fleet-wide training and analytics.
iotclass.org

Major section

Device Class Selection · Interfaces and Drivers

Typical constraints are small memory, limited storage, tight power budget, and simple network stacks.

  • It usually has persistent storage and a managed runtime.
  • It should not own time-critical physical safety decisions.
  • An impossible reading should be rejected or flagged before it becomes operational evidence.
  • The link choice defines pairing, addressing, retries, security, and diagnostics.
iotclass.org

Major section

Gateway Contract

The gateway contract is the most important maintainability boundary in many edge-fog-cloud systems.

  • It lets device protocols change without forcing cloud applications to change.
  • The gateway is maintainable only if both sides of its translation boundary have an explicit contract.
  • Those labelled hand-offs define exactly what a gateway implementation and its tests must own.
Gateway integration contract diagram showing device signal, adapter, normalized record, local queue, cloud API, and command validation
Gateway contract from device signal to normalized cloud record
iotclass.org

Major section

Gateway Contract (continued)

The Local queue then preserves event time and message ID before the Cloud API applies its schema and acknowledgement.

  • That record lets a reviewer distinguish a sensor fault from an adapter, queue, API, or command-validation failure.
  • Parse: Decode device-specific frames, validate checksums or signatures, and reject malformed records.
  • A useful gateway contract is bidirectional.
iotclass.org

Major section

Identity and Provisioning · Store-and-Forward

Every integrated device needs a trustworthy lifecycle record.

  • The record should connect a physical asset to credentials, firmware, calibration, adapter compatibility, ownership, and retirement status.
  • A field device should not hold cloud-wide privileges.
  • A gateway should not accept commands for devices outside its assigned scope.
  • Outages are normal in edge deployments.
iotclass.org

Major section

Integration Patterns · Update and Management Paths

Many simple devices send regular readings to a local gateway.

  • The gateway validates, normalizes, summarizes, and forwards records.
  • The device performs local detection, filtering, or control and sends events or compact evidence.
  • A local gateway or site server runs models, rules, or correlation across several devices.
iotclass.org

Major section

Replace the Freezer Probe without Rewriting the Fleet Service

Its normalized reading is 42 × 0.1 °C = 4.2 °C.

  • The replacement reports 420 with scale 0.01 °C per count, which also gives 4.2 °C.
  • The driver identifies the hardware and payload version; the gateway adapter applies the matching scale.
  • A local alarm still acts on current readings.

Why it matters

This module treats integration as a lifecycle task because boards, schemas and credentials change independently.

Edge-fog-cloud integration across three tiers: edge devices, neighborhood fog hubs for low-latency coordination, and cloud data centers for fleet-wide training and analytics.
Edge-fog-cloud integration across three tiers: edge devices, neighborhood fog hubs for low-latency coordination, and cloud data centers for fleet-wide training and analytics.
iotclass.org

Major section

Replace the Freezer Probe without Rewriting the Fleet Service (continued)

The cloud consumes the stable value and unit while retaining enough version evidence to explain the conversion.

  • With one record at each minute's end, the queue receives 15 records.
  • At an illustrative 96 bytes per normalized record, this is 1,440 bytes before filesystem overhead.
  • Commands need the reverse discipline.
iotclass.org

Major section

Replace the Freezer Probe without Rewriting the Fleet Service (continued)

Queueing preserves history for later replay; it must not become a dependency of the immediate alarm path.

  • The freezer uses the same responsibility split, with a different time requirement.
  • The adapter should flag or quarantine it instead of applying the old scale by default.
  • Stable message identities should let the receiving service avoid duplicate history while preserving the original event times.
iotclass.org

Major section

Summary · Key Takeaway

Device integration connects physical interfaces, gateway adapters, and cloud services through explicit contracts.

  • Identity, provisioning, version evidence, updates, rollback, quarantine, and retirement are part of the integration design.
  • Device integration succeeds when identity, protocol translation, schemas, command paths, updates, and telemetry are designed together.
  • A working data path is not enough without secure management and observable failure handling.
iotclass.org

Deck summary

Key takeaways

The cloud can hold the fleet history later.

  • A queue keeps it during a gap.
  • An adapter keeps its meaning.
  • The core idea is to hide device-specific details behind stable contracts while keeping identity, buffering, updates, and evidence explicit.
  • A device is not integrated when it can send one test message.
iotclass.org

Retrieval practice

Recall check 1 of 5

Edge Eddie says: answer from memory, then check your reasoning.

Q1A sensor can upload readings through a gateway. What other path must be designed before calling it integrated?

AIdentity, provisioning, updates, health and rollback paths across tiers
BA telemetry codec carrying device IDs and compressed sensor records
CA gateway dashboard showing connected-device health and status
DA cloud archive retaining telemetry and device activity records
Show answer

Answer: A Management and trust flows are part of the device integration contract.

iotclass.org

Retrieval practice

Recall check 2 of 5

Edge Eddie says: answer from memory, then check your reasoning.

Q2A battery-powered field node wakes, samples one physical measurement, checks a local threshold, stores a recent reading, and reports through a nearby gateway. Which class is the best starting point?

AUse a gateway-class node for one sensor reading because its runtime overhead is justified by the reading's workload.
BConstrained edge device for simple local sensing and low-power reporting
CCloud service as the owner of the physical measurement and local threshold
DAccelerated gateway for possible future analytics not yet needed at the site
Show answer

Answer: B The node owns sensing and simple local validation.

iotclass.org

Retrieval practice

Recall check 3 of 5

Edge Eddie says: answer from memory, then check your reasoning.

Q3A gateway maps a Modbus register with raw value 214 and documented scale 0.1 C to JSON as {"value": 214}. What is wrong?

AIt forwarded the raw register and lost scale, units, identity, and event time; the gateway should publish 21.4 C with metadata.
BThe raw value is acceptable because the dashboard can apply the device's register map when plotting the temperature.
CThe JSON syntax is invalid, so the platform cannot parse the record, store it in a database, or display it in a dashboard.
DUse an XML schema for the register value so type validation can establish the physical meaning before storage.
Show answer

Answer: A Translation must preserve physical meaning, not only produce valid-looking JSON.

iotclass.org

Retrieval practice

Recall check 4 of 5

Edge Eddie says: answer from memory, then check your reasoning.

Q4A site gateway loses WAN connectivity. Devices continue operating and the gateway stores normalized records locally. What must each queued record include so replay is safe when connectivity returns?

AThe newest reading and device identity, replacing older queued values to reduce recovery traffic
BOnly the cloud receive time, because replayed records arrive together
COnly the gateway name, because the gateway can infer everything else later
DA stable message identifier, event timestamp, device identity, schema version, and quality state
Show answer

Answer: D Those fields allow ordering, deduplication, late-arrival handling, and interpretation after replay.

iotclass.org

Retrieval practice

Recall check 5 of 5

Edge Eddie says: answer from memory, then check your reasoning.

Q5What defines source evidence through its device driver, signal, actuator and local identity?

AFog adapter
BCloud registry
CEdge device
DStore-and-forward queue
Show answer

Answer: C Its driver, signal, actuator, and local identity define the source evidence.

Q6A cloud service requests a valve action through a site gateway. What belongs in the integration path?

ASkip local command safety because the dashboard owns control.
BSend a cloud request straight to the valve coil without a protected local driver.
CTreat gateway message receipt as proof of physical valve actuation and safety.
DTrace request, adapter, driver, local safety rule and action evidence to the service.
Show answer

Answer: D The command and return evidence cross named interfaces and the local safety boundary.

iotclass.org

Print reference

Answers

Answer key.

  1. A · Management and trust flows are part of the device integration contract.
  2. B · The node owns sensing and simple local validation.
  3. A · Translation must preserve physical meaning, not only produce valid-looking JSON.
  4. D · Those fields allow ordering, deduplication, late-arrival handling, and interpretation after replay.
  5. C · Its driver, signal, actuator, and local identity define the source evidence.
  6. D · The command and return evidence cross named interfaces and the local safety boundary.
iotclass.org