LWM2M OMA Standard Opportunities and Challenges IoT: Platform Development Guide

Saravana Pandian Annamalai
21. July 2014
Categories:Technology,  IoT,  Connectivity & Interfaces,  Protocols

This post examines the LWM2M OMA standard opportunities and challenges IoT practitioners face today. LWM2M — Light Weight Machine-to-Machine — is one of the most promising standards proposed by the Open Mobile Alliance (OMA) for managing IoT devices at scale. Understanding the LWM2M OMA standard opportunities and challenges IoT deployments present is essential for any IoT Platform Development initiative targeting billions of connected devices. Embien's Product Engineering Services team has hands-on experience with LWM2M-based IoT Platform Development for industrial and consumer segments.

This post provides a quick overview of the standard, followed by a discussion on the LWM2M OMA standard opportunities and challenges IoT present — primarily in the object model rather than the underlying communication protocols. For teams evaluating LWM2M as an iot platform as a service foundation, this analysis covers the critical design decisions in device management and data modeling.

LWM2M for IoT: IoT Platform Development Foundation

Internet of Things presents challenges not seen in traditional environments — requiring support for thousands of device types, billions of actual devices, and even computationally constrained nodes with limited network connectivity. Effective IoT Platform Development must address all these dimensions. For these challenges, OMA proposed LWM2M — a Client-Server model. In the words of the technical specification:

The LWM2M protocol, to be used for remote management of M2M devices and related service enablement, has at least four outstanding characteristics:

1) it features a modern architectural design based on REST appealing to software developers,

2) it defines a resource and data model that is extensible,

3) it has been designed with performance and the constraints of M2M devices in mind, and

4) it reuses and builds on an efficient secure data transfer standard called the Constrained Application Protocol (CoAP) that has been standardised by the Internet Engineering Taskforce (IETF) as a variation of the Internet's HTTP protocol (appropriate for data transfer to and from low-cost connected IoT devices).

These words truly describe everything about LWM2M. As an iot platform as a service foundation, LWM2M offers simple REST services for data logging and retrieval. It defines an Object/Instance/Resource model for data management and uses CoAP — a low-bandwidth protocol — for communication. Currently data transfer over UDP and SMS are defined with security using DTLS.

LWM2M Object Model

LWM2M considers every connected device as having a set of parameters, each mapped to an aspect of its functionality. Some may be Read-Write (needing configuration and control) and some Read-Only (for status observation). An example might be a simple dimmer that controls light brightness — with a variable to switch on/off and another to set the brightness level.

LWM2M assigns a unique resource ID for each parameter and groups them into an Object identified by a unique Object ID. For each actual device present, an instance ID is allocated — managed by the LWM2M Client, typically starting from 0. There may be any number of instances based on the actual number of devices.

The example object description of a Light Control Object (object ID = 3311) will look like as follows:

S.No

Resource ID

Description

Type

Access

 1 5851 Dimmer Integer 0 -100 R,W
 2 5850 On/Off Boolean R,W

Considering a LWM2M Client connected to 3 Light Control objects, the client presents itself as shown below:

LWM2M Device Instances

LWM2M Object Instances for Dimmers

The object model and resource ID definitions may be complex depending on the device represented. In terms of object/instance/resource philosophy, it resembles the CIP standard from ODVA employed in DeviceNet and Ethernet/IP and other industrial automation protocols.

IoT Platform as a Service: LWM2M Opportunities

The LWM2M OMA standard opportunities and challenges IoT analysis begins with its strengths. As an iot platform as a service enabler, LWM2M presents several compelling opportunities:

New Standard

Being drafted in very recent time, LWM2M is designed with IoT and M2M requirements in consideration. Backed by the expertise of OMA, it should be easy for LWM2M to accommodate the changing needs of industry. New object models can be created for devices being added under IoT — making it a future-proof iot platform as a service foundation.

Simplicity

The underlying communication technology and data model is very simple and robust unlike OMA-DM. Devices implementing this technology could even be 8-bit systems with very few kilobytes of ROM and few bytes of RAM. Legacy systems can also be accommodated using simple LWM2M gateways — lowering the barrier for IoT Platform Development on resource-constrained hardware.

IoT Scalability and Industry Acceptability

IoT Scalability is a key advantage of LWM2M. With IoT Scalability requirements growing rapidly — IoT industry leaders like ARM and Vodafone backing the standard — adoption should accelerate. With reference implementations available in C and Java, developer communities need not build from scratch to deploy new LWM2M devices at scale.

LWM2M Model – Challenges

Some challenges the LWM2M OMA standard opportunities and challenges IoT landscape presents are primarily in the object model:

Limited Defined Objects

The virtue of being a new standard is also a vice. Very few objects are currently defined — at the time of this writing, only around 18 Object IDs and 42 resource IDs excluding the basic ones. More definitions will accelerate adoption. On the positive side, OMA provides an interface for users to request new object definitions, which should quickly expand the standard's coverage.

Heterogeneous Devices and Dynamic Instance Management

Perhaps the most complex challenge: heterogeneous devices in consumer IoT ecosystems behave very differently from stable industrial M2M deployments. In an industrial setup, instance IDs remain stable over time — a device assigned an instance ID stays there. In a consumer environment with heterogeneous devices joining and leaving dynamically, instance ID mapping becomes chaotic. An example: Bluetooth devices spread across a large area with a mobile phone acting as LWM2M Client — the instance order changes constantly based on Bluetooth coverage range.

Instance ID mapping for M2M vs IoT

To overcome this, a UUID — Universally Unique ID — resource ID could be assigned for each device. A simple version 4 UUID based on random numbers (without dependency on any governing bodies) would provide a totally unique reference at the server and reduce dependency on gateways.

LWM2M Gateways

LWM2M Objects connected with gateways

With a UUID, the LWM2M server can correctly select a pre-registered device for control and use it as an endpoint — bypassing instance ID dependencies entirely.

Conclusion

The LWM2M OMA standard opportunities and challenges IoT present a balanced picture: strong REST-based simplicity and growing industry backing on one side; object model gaps and dynamic instance management on the other. When UUID support matures and more physical communication layers are defined, LWM2M is well-positioned to be the dominant IoT Platform Development standard for managing the Internet of Things at scale.

Embien, with its rich expertise in IoT and allied segments, has launched its SkyCase — an iot platform as a service solution enabling IoT for devices across industry. Combining REST, LWM2M and Java, it offers a cloud system for connecting and controlling LWM2M devices. Please visit our IoT Cloud Integration Services page or the SkyCase product page for more details.

Related Pages

EDGE COMPUTING SERVICES

Embien's edge computing services complement LWM2M OMA standard IoT Platform Development — enabling device management and iot platform as a service capabilities at the network edge.

Read More

IOT DEVELOPMENT SERVICES

Embien's IoT Development Services cover end-to-end IoT Platform Development — from LWM2M OMA standard device management to iot platform as a service cloud integration.

Read More

MODBUS RTU TO CLOUD GATEWAY DEVELOPMENT WITH IP40 ENCLOSURE

See how Embien applied IoT Platform Development expertise to deliver a Modbus RTU to cloud gateway — addressing heterogeneous devices and IoT Scalability for industrial deployments.

Read More

Subscribe to our Blog