Chapter 10
Standards, Interoperability and Device Management
Bachelors Program in Computer Science Engineering
Internet of Things
•
Bachelor
Standards, Interoperability and Device Management
Introduction
The Internet of Things (IoT) is not a single technology. It is an ecosystem of sensors, actuators, gateways, networks, platforms, applications, identities and operational processes supplied by many vendors. A temperature sensor may communicate through Bluetooth Low Energy, a gateway through Wi-Fi, and a cloud service through HTTPS or MQTT. Without agreed standards and disciplined management, these components become isolated silos.
Interoperability is therefore more than the ability to exchange packets. It includes:
Technical interoperability: systems can connect and exchange data.
Syntactic interoperability: exchanged data follow a common structure.
Semantic interoperability: systems interpret the data consistently.
Organisational interoperability: policies, responsibilities and workflows align.
This chapter examines standards, semantic models, APIs and ecosystems, then applies them to provisioning, configuration, monitoring, diagnostics, firmware management and secure decommissioning.
Learning Objectives
By the end of this chapter, a student should be able to:
Distinguish protocol, data-model and ecosystem standards.
Compare MQTT, CoAP, LwM2M, SensorThings API and NGSI-LD.
Explain the role of semantic models, metadata and digital identities.
Design a device-management lifecycle for a heterogeneous fleet.
Apply secure provisioning, configuration, monitoring, diagnostics and firmware practices.
Evaluate interoperability, governance, lifecycle and vendor-lock-in risks.
1. Standards as Layers of an IoT System
A standard is an agreed specification for technology, data, procedures or interfaces. Standards may be developed by formal organisations such as ISO, IEC, IETF and OASIS, by industry alliances, or by open-source communities.
A useful layered view is:
Layer
Main concern
Examples
Connectivity
Moving bits
Ethernet, Wi-Fi, BLE, 5G, LPWAN
Transport and messaging
Reliable or efficient exchange
TCP, UDP, MQTT, CoAP
Device management
Provisioning and operations
LwM2M, vendor management APIs
Data and information model
Meaning and relationships
SensorThings entities, NGSI-LD entities
Application API
Access by software
REST, OData, WebSockets
Governance and security
Trust and accountability
PKI, access control, audit, privacy policies
Interoperability does not require every device to use the same protocol. A gateway can translate between protocols, provided that translation preserves meaning, identity, units, timestamps and security policy. Translation that merely changes syntax but loses semantics is not full interoperability.
Open, Proprietary and De Facto Standards
An open standard is publicly specified and generally available for implementation. A proprietary interface is controlled by one supplier. A de facto standard becomes widely used through adoption rather than formal approval. Open standards can reduce dependence on one vendor, but implementation quality, optional features and licensing still affect portability.
A standards decision should consider device constraints, communication direction, security mechanisms, data semantics, long-term maintenance, conformance testing and ecosystem maturity—not popularity alone.
2. Core Protocols and Ecosystems
MQTT
MQTT is a lightweight publish/subscribe messaging protocol. Devices publish messages to topics, and a broker routes them to subscribers. Publishers and subscribers are decoupled in time and location. MQTT supports retained messages, last-will messages, persistent sessions and three Quality of Service levels:
QoS 0: at most once; no protocol-level retransmission.
QoS 1: at least once; duplicates are possible.
QoS 2: exactly once within the MQTT delivery flow, using a multi-step handshake.
QoS 2 does not automatically guarantee exactly-once business effects. If a subscriber writes an order to a database and crashes before recording that the message was processed, an application-level retry may produce a duplicate effect. Exactly-once effects require an idempotency key, deduplication store, transaction design or another application mechanism. MQTT also does not define the meaning of payload fields; JSON, CBOR or another format must be governed separately.
CoAP
The Constrained Application Protocol is a REST-like protocol designed for constrained devices. It commonly uses UDP and provides methods such as GET, POST, PUT and DELETE, resource discovery, confirmable messages and observe relationships. CoAP is appropriate where devices expose resources and overhead must be low. DTLS or OSCORE can provide security, depending on architecture. CoAP alone is not a complete device-management model.
Lightweight M2M (LwM2M)
LwM2M, specified by the Open Mobile Alliance, is a device-management and service-enablement framework for constrained IoT devices. Its important contribution is a standard object and resource model, rather than merely a transport protocol.
An LwM2M client runs on a device; a server performs management and application operations. Objects represent functions such as device information, connectivity monitoring, firmware update and location. Each object contains resources, such as manufacturer, battery level, firmware version or update state. Object instances allow multiple similar functions.
Typical operations include:
Read: retrieve a resource.
Write: change configuration.
Execute: invoke an operation, such as reboot or update.
Observe/Notify: receive changes without polling continuously.
Create/Delete: manage instances where supported.
LwM2M can use CoAP, secure transport and bootstrap procedures. Its bootstrap process helps a device obtain server information and credentials. LwM2M is especially useful for fleet operations because a management platform can address a standard resource such as a firmware version rather than implementing a different vendor-specific command for every device. However, object coverage, optional features, server implementations and manufacturer extensions still require conformance and profile testing.
SensorThings API
The OGC SensorThings API is a web-based, geospatially aware standard for observations and sensor-related entities. Its model commonly includes:
Thing: the physical or logical asset.
Location: where the Thing is located.
HistoricalLocation: previous locations.
Datastream: a stream of observations from a sensor and observed property.
Sensor: the procedure or instrument producing observations.
ObservedProperty: what is measured, such as temperature.
Observation: a result at a phenomenon time and, optionally, result time.
SensorThings uses REST principles and OData-style query options. A request can retrieve observations, filter by time, expand related entities or select only required fields. It is well suited to environmental monitoring, smart cities, agriculture and scientific data infrastructures. Its strength is consistent observation data and spatial context; it is not primarily a firmware-management protocol. A deployment may therefore use LwM2M for device operations and SensorThings API for publishing observations.
NGSI-LD
NGSI-LD is a context-information API and information model based on entities, properties, relationships and linked-data concepts. An entity has a globally unique identifier and a type. A property describes a value, while a relationship points to another entity. Context information can also include metadata such as observation time, unit, accuracy, creator or dataset identifier.
For example, a Room entity may have a temperature property and a relationship to a Building entity. A Sensor entity can be related to the room and can provide the observation. This enables applications to query context across domains rather than treating every message as an isolated measurement.
NGSI-LD supports operations such as entity creation, retrieval, update, subscription and temporal querying. It is useful in smart-city platforms, digital twins and federated context brokers. Its strength is semantic relationships and context management; it does not itself specify the electrical sensor protocol or complete device firmware process. JSON-LD context definitions and controlled vocabularies are important because identical words can otherwise have different meanings.
Environmental and spatial observation repositories
Digital twins and cross-domain context
Main limitation
Management model requires profiles and implementation support
Not a complete device-management system
Semantics and governance need careful modelling
These standards are complementary, not mutually exclusive. A sensor can be managed through LwM2M, expose measurements through a gateway to SensorThings, and contribute context to an NGSI-LD broker.
3. Semantic Interoperability and APIs
A payload such as 23.4 is incomplete without a definition. An interoperable observation should identify the measured property, unit, timestamp, location, sensor and quality status. For example, Celsius and Fahrenheit are not interchangeable merely because both are temperature units.
An API contract should specify endpoint paths, authentication, request and response schemas, error codes, pagination, rate limits, idempotency and versioning. REST APIs are common for configuration and historical queries; MQTT or WebSockets are useful for event delivery; CoAP is useful at constrained edges. API gateways can enforce authentication, quotas, schema validation and audit logging, but they do not repair an inconsistent semantic model.
Digital Twins and Context Brokers
A digital twin is a maintained digital representation of an asset, process or environment. It may contain current state, historical observations, relationships, commands and provenance. A twin is not simply a dashboard: it must define how state is updated, how stale data are detected and which system is authoritative. Context brokers distribute updates and subscriptions, allowing applications to consume current context without directly connecting to every device.
4. Device Identity, Provisioning and Onboarding
Provisioning establishes a device as a trusted member of a system. It should be separated from application registration: a device may be cryptographically authenticated before it is authorised to publish a particular type of data.
A robust process is:
Manufacture or enrol a unique identity, preferably protected by a secure element or trusted execution environment.
Establish a root of trust using certificates, pre-shared keys or a controlled bootstrap credential.
Authenticate the device and verify ownership or installation location.
Authorise it using least privilege and a device class or policy.
Assign management endpoints, communication parameters and data schemas.
Record inventory, owner, location, software version and consent requirements.
Test telemetry, command paths, time synchronisation and failure recovery.
A device certificate should not be reused across a fleet. Credentials require rotation, revocation and protection against extraction. Factory defaults must be changed or disabled. Secure boot verifies that only authorised firmware runs, while measured boot can provide evidence of the software state.
5. Configuration and Operational Lifecycle
Configuration includes network settings, sampling interval, thresholds, reporting destinations, time settings, power modes and security policy. Configuration changes should be authenticated, authorised, versioned and reversible. A desired-state model is preferable to a sequence of untracked commands: the platform stores the intended configuration, and the device reports its observed configuration.
The difference between desired and observed state can be represented as:
Drift = DesiredState − ObservedState
Here “−” denotes a set or field difference, not arithmetic subtraction. Drift exists when one or more managed fields differ. Reconciliation should be idempotent: applying the same desired state repeatedly should not create additional unintended effects.
The normal operational loop is monitoring → alerting → diagnosis → remediation → verification. Monitoring must precede alert generation because alerts are decisions based on observed data. Diagnosis investigates likely causes, remediation changes the system, and verification checks whether the desired condition has returned.
Correct device operations lifecycle from monitoring to alerting, diagnosis, remediation and verification
Figure: Correct device operations lifecycle from monitoring to alerting, diagnosis, remediation and verification
Figure: Correct monitoring-to-alert-to-diagnosis operational sequence, followed by remediation and verification.
Useful monitoring dimensions include availability, latency, battery level, signal quality, message loss, sensor plausibility, configuration drift and security events. Alerts should have severity, ownership, suppression rules and escalation paths. Excessive alerts create fatigue; thresholds should account for baseline behaviour and maintenance windows.
6. Diagnostics and Firmware Management
Diagnostics combine logs, metrics, traces, device self-tests and remote commands. Remote access must be controlled because diagnostic commands can expose credentials or disrupt safety-critical systems. A diagnostic record should include device identity, timestamp, software version, command origin, result and correlation identifier.
Firmware updates should provide:
Authenticity and integrity verification through signed images.
Compatibility checks for hardware, bootloader and dependencies.
Encrypted transport where confidentiality is required.
Staged rollout by cohort, geography or risk class.
Health monitoring and automatic rollback where feasible.
Power-loss tolerance and sufficient storage for recovery.
Audit records and a supported version policy.
A safe update sequence is inventory → select eligible devices → test in a laboratory → deploy to a canary group → observe → expand gradually → verify version and function. An update that installs successfully but disables sensing is not operationally successful.
7. Decommissioning and Data Governance
Decommissioning is a security operation, not merely deletion from a dashboard. The process should revoke credentials, remove authorisations, erase sensitive local data, reset or destroy keys, update inventory, transfer or delete ownership records, and document the disposition of the hardware. Cloud-retained data must follow retention, contractual and privacy requirements.
Data minimisation limits collection to a legitimate purpose. Location, occupancy and behavioural data may identify individuals even when names are absent. Governance should define purpose limitation, access roles, retention periods, cross-border transfer controls, breach response and audit responsibilities. Safety regulations may require records to be retained longer than ordinary operational logs.
8. Case Study: Interoperable Cold-Chain Monitoring
This is an illustrative case. A pharmaceutical distributor operates 4,000 refrigerated containers purchased from three vendors. Vendor A supports LwM2M, Vendor B publishes MQTT messages with a proprietary JSON schema, and Vendor C provides only a REST gateway.
Problem
The operations team cannot compare temperature histories reliably. One vendor reports Fahrenheit, another Celsius; device identifiers are not globally unique; firmware updates require separate tools; and repeated MQTT deliveries occasionally create duplicate incident records.
Analysis
The technical protocols are not the only problem. The organisation lacks a common semantic model, identity policy, event deduplication rule and lifecycle ownership model. Temperature observations need a canonical property, unit, timestamp, container relationship and quality status.
Approach
The distributor assigns globally unique device identities and certificates. LwM2M devices use standard management resources. MQTT and REST gateways transform vendor payloads into a canonical observation model and publish it to a SensorThings-compatible repository. An NGSI-LD context layer represents containers, sensors, routes and facilities as related entities. MQTT messages include an event identifier; the incident service stores processed identifiers so retries do not create duplicate business effects.
Firmware images are signed, tested on a canary group and rolled out by vendor cohort. Monitoring checks temperature plausibility, device connectivity, battery and configuration drift. Alerts move through the sequence shown in the figure: monitor, alert, diagnose, remediate and verify.
Outcome
The company can change sensor suppliers without rewriting every application. Historical observations are comparable, device operations are centrally audited, and incident processing is idempotent at the application layer. Remaining risks include gateway failure, semantic mapping errors and dependence on the selected platform’s implementation of open standards.
Learning Points
Interoperability requires shared identity, semantics, lifecycle policy and operational controls. Protocol conversion is useful, but it must preserve units, timestamps, provenance and security context. Standards reduce integration work; they do not eliminate governance or testing.
9. Evaluation Framework and Best Practices
When selecting a standard or ecosystem, evaluate:
Criterion
Questions
Fitness
Does it suit device resources, latency and power limits?
Semantics
Are units, identity, time and relationships defined?
Security
Are authentication, authorisation, key rotation and updates supported?
Conformance
Are test suites, profiles and interoperable implementations available?
Lifecycle
Can devices be monitored, repaired, updated and retired?
Portability
Can data and devices move between suppliers?
Governance
Who controls extensions, vocabulary and version changes?
Economics
What are deployment, operations and migration costs?
Best practice is to define a minimum interoperability profile: mandatory protocol features, payload schema, units, identity rules, security algorithms, API versions, error behaviour and test cases. Maintain a device registry, use infrastructure-as-code for platform configuration, conduct failure and recovery tests, and document exceptions. Conformance testing should include malformed messages, replay attempts, clock errors, duplicate delivery, intermittent connectivity and revoked credentials.
10. Contemporary Developments and Limitations
Edge computing reduces latency and bandwidth by processing data near devices. Matter demonstrates the value of ecosystem-level interoperability in consumer environments, although it does not solve every industrial or sensor-management problem. Digital twins increasingly combine live state with simulation and asset relationships. AI can assist anomaly detection and predictive maintenance, but its decisions depend on data quality and may generate false alarms. AI-based diagnosis should retain human oversight for safety-critical actions and provide evidence for operational decisions.
No standard guarantees interoperability in practice. Optional features, ambiguous profiles, incompatible interpretations, poor time synchronisation, proprietary extensions and weak testing can re-create silos. Conversely, excessive standardisation can slow innovation. Engineers should standardise stable interfaces and preserve controlled extension points for domain-specific requirements.
Chapter Summary
IoT interoperability has technical, syntactic, semantic and organisational dimensions. MQTT provides decoupled messaging, while CoAP supports constrained REST-like interaction. LwM2M adds a structured object/resource model for provisioning and device management. SensorThings API organises sensor observations with spatial and temporal context, whereas NGSI-LD represents linked entities, properties, relationships and context. These technologies can be combined rather than treated as alternatives.
Reliable fleets require unique identities, secure onboarding, least-privilege authorisation, desired-state configuration, monitoring, alerting, diagnosis, remediation, verification, signed firmware, staged rollout, rollback and secure decommissioning. MQTT QoS 2 concerns protocol delivery and does not by itself ensure exactly-once application effects. Semantic models, API contracts, conformance testing and governance are essential to prevent vendor-specific silos.
Key Terms
Protocol: Rules for communication between systems.
Interoperability: Ability of systems to work together and exchange usable information.
Semantic interoperability: Consistent interpretation of exchanged information.
CoAP: Constrained Application Protocol for resource-oriented communication.
LwM2M: Open Mobile Alliance framework for IoT device management.
Object: A managed functional grouping in LwM2M.
Resource: An addressable value or operation within an LwM2M object.
SensorThings API: OGC API and model for sensor observations and spatial context.
NGSI-LD: Context-information API based on linked entities, properties and relationships.
Digital twin: Digital representation of an asset or process.
Provisioning: Establishing identity, trust, authorisation and initial configuration.
Configuration drift: Difference between intended and observed device state.
Desired state: The configuration a management system requires.
Secure boot: Boot process that verifies authorised firmware.
Firmware: Software embedded in a device.
Canary deployment: Limited initial rollout used to detect faults.
Idempotency: Property that repeating an operation does not create additional unintended effects.
Decommissioning: Secure retirement and removal of a device from service.
Context broker: Service that distributes and manages current contextual information.
Review Questions
Short Answer Questions
Distinguish technical, syntactic and semantic interoperability.
What are the three MQTT QoS levels?
Why is LwM2M more than a transport protocol?
Name four entities commonly used by SensorThings API.
Why must firmware updates support authenticity verification?
Long Answer Questions
Compare LwM2M, SensorThings API and NGSI-LD in purpose, abstraction and limitations.
Explain how a desired-state model manages configuration drift.
Describe a secure IoT provisioning process from manufacture to operation.
Explain why MQTT QoS 2 does not guarantee exactly-once business effects.
Discuss ethical and governance issues in location- and occupancy-aware IoT systems.
Analytical / Application Questions
Design an interoperability architecture for a smart campus using constrained sensors, a gateway, a context broker and a historical observation store. Justify the standards selected.
A fleet reports frequent alerts after a firmware rollout. Develop a diagnostic and rollback plan using monitoring, alerting, diagnosis, remediation and verification.
A company is replacing half its devices with another vendor. Identify the identity, semantic, API, firmware and decommissioning controls needed to prevent operational and security failure.
Multiple Choice Questions with Answers
Question 1
Which MQTT QoS level permits duplicate delivery but provides protocol-level at-least-once delivery?
A. QoS 0
B. QoS 1
C. QoS 2
D. Retained-message mode
Correct Answer: B. QoS 1
Question 2
What is the primary purpose of LwM2M?
A. Rendering dashboards
B. Managing constrained devices through standard objects and resources
C. Storing only historical geospatial observations
D. Replacing all wireless networks
Correct Answer: B. Managing constrained devices through standard objects and resources
Question 3
Which SensorThings entity represents a stream of observations from a sensor for an observed property?
A. Datastream
B. Location
C. Thing
D. HistoricalLocation
Correct Answer: A. Datastream
Question 4
What is a central strength of NGSI-LD?
A. Physical-layer modulation
B. Linked entities, properties and relationships for context information
C. Battery charging control
D. Bootloader compilation
Correct Answer: B. Linked entities, properties and relationships for context information
Question 5
Which sequence correctly represents the operational lifecycle described in the chapter?
A. Alert → Monitor → Remediate → Diagnose → Verify
B. Diagnose → Alert → Monitor → Verify → Remediate
C. Monitor → Alert → Diagnose → Remediate → Verify
D. Remediate → Verify → Alert → Diagnose → Monitor