• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Microcontroller Tips

Microcontroller engineering resources, new microcontroller products and electronics engineering news

  • Products
    • 8-bit
    • 16-bit
    • 32-bit
    • 64-bit
  • Applications
    • 5G
    • Automotive
    • Connectivity
    • Consumer Electronics
    • EV Engineering
    • Industrial
    • IoT
    • Medical
    • Security
    • Telecommunications
    • Wearables
    • Wireless
  • Learn
    • eBooks / Tech Tips
    • EE Training Days
    • FAQs
    • Learning Center
    • Tech Toolboxes
    • Webinars/Digital Events
  • Resources
    • Design Guide Library
    • DesignFast
    • LEAP Awards
    • Podcasts
    • White Papers
  • Videos
    • EE Videos & Interviews
    • Teardown Videos
  • EE Forums
    • EDABoard.com
    • Electro-Tech-Online.com
  • Engineering Training Days
  • Advertise
  • Subscribe

How does Matter work as middleware for IoT devices?

November 3, 2022 By Jeff Shepard

Matter has been called an interoperable application layer solution, and the same source, the Connectivity Standards Alliance that oversees the development of Matter, refers to it as a protocol.

This FAQ explores the definitions of communications interfaces and protocols. Compares those definitions with Matter and presents the possibility that Matter is not a protocol but a new type of middleware for wireless Internet of Things (IoT) devices.

Interfaces like RS232, RS422, and RS485 provide physical links between systems, while human machine interfaces (HMIs), like touch screens, link systems, including industrial systems, computers, and communications devices, with operators and users (Figure 1). HMI specifications are generally related to ergonomics and psychology to support the needs of human users. HMIs are also called user interfaces (UIs) and can be made up of multiple physical devices like touch screens, keyboards, monitors, speakers, printers, etc. These various devices are called human interface devices (HIDs).

Figure 1: HIDs range from touch screens (above) to printers, speakers, and other devices. (Image: Microchip)

Machine-to-Machine interfaces
Just as there’s a wide variety of HIDs designed for specific purposes, there’s a wide range of machine-to-machine interfaces such as serial buses, Fieldbuses, Ethernet, etc. Some serial buses use protocols like IO-Link to connect individual devices to a controller. The controller area network (CAN) serial bus can be implemented in a multi-master configuration with numerous devices sharing the bus.

Fieldbus profiles are standardized by the International Electrotechnical Commission (IEC) as IEC 61784 and 61158 and can support various topologies like ring, branch, star, and daisy chains. In many industrial settings, Fieldbuses have replaced RS-232 and RS-422 serial communications. An important advantage of Fieldbuses over other solutions is determinism. Communications can be received and acknowledged in real time, an important feature in industrial process control systems.

Many Fieldbus standards include RS-485 transceivers as an option for the physical layer. RS-485 transceivers are inexpensive and have multiple speed ranges and other important features. Fieldbuses use a single bus to connect all devices on a network with a single controller. That arrangement reduces the amount of wiring needed and increases system modularity, both important considerations in industrial installations. A Fieldbus provides the physical layer and can be used with many communication protocols such as Foundation Fieldbus, EtherCAT, Profinet, Modbus, HART, etc.

Protocol suites and stacks
Communication protocols are composed of suites and stacks. A protocol suite is a general specification of how the protocol is structured and what elements are included. The protocol stack, known as the network stack, is a specific protocol suite implementation. Specialized protocol stacks can be developed from protocol suites to address specific communication and application needs. Each module in a protocol stack typically communicates with two other modules, hence the concept of being stacked on top of each other. The lowest layer in the stack links to the hardware interface, such as an HMI or a communications device like a radio. Moving up the stack adds functionality; at the top, the stack links with the application software. Examples of protocol suites include the open systems interconnection (OSI) model and the Internet protocol (IP) model.

The International Standards Organization (ISO) designed the OSI suite to provide an everyday basis for developing communications standards. The OSI suite and related standards partition the communications stack into seven abstraction layers beginning with the physical system interconnection (interface) at the lowest level. The layers in the stack include; Physical, Data Link, Network, Transport, Session, Presentation, and Application (Figure 2). Each intermediate layer in the OSI suite provides specific functionality to the layer above it and is supported with specific functionality from the layer below it.

Figure 2: The OSI suite includes a seven-layer stack with the bottom three referred to as the media layers, and the upper four called the host layers. (Image: Wikipedia)

An important aspect of a protocol stack is that each layer must have unique and well-defined functions, and the suite must define the interactions between adjacent layers. The OSI and IP communication protocol suites meet these requirements and can be used as the basis for multiple communication protocol implementations.

The IP suite is built using a very different model than the OSI. Instead of being built on ISO standards, the IP suite is built using a series of documents individually called a ‘Request for Comments’ (RFC). Each RFC is a formal document from the Internet Engineering Task Force (IETF) that includes specifications and organizational notes about specific topics (layers) like routing, addressing, and transport technologies related to the Internet. According to the IETF, there are over 9,000 individual RFCs.

The lowest layer in computer communications, including the IP suite, is called the link layer. It’s like the combination of the data link layer (layer 2) and the physical layer (layer 1) in the OSI stack, described in RFC 1122 and RFC 1123. The combination of RFC 1122 and RFC1123 is similar to, but not identical to, the combination of layers 1 and 2 in the OSI stack. RFC 1122 includes local area network protocols such as Ethernet and other IEEE 802 networks like Wi-Fi and framing protocols such as Point-to-Point Protocol (PPP) that belong to the link, IP, and transport layers. RFC 1123 covers the application and support protocols.

Matter provides an abstracted application layer on top of IP protocol stacks like Wi-Fi, Ethernet, and Thread (Figure 3). Matter was developed to improve the interoperability and security of devices and simplify solution development across various IP connectivity protocols and technologies.

Figure 3: Matter sits on top of the IP layers in a wireless IoT device. (Image: Texas Instruments)

Trying to classify Matter as a type of software can be challenging. A significant difference between Matter and the protocol stacks and suites described above is that the lowest level of the Matter stack does not connect to a physical interface. The Matter specification “defines fundamental requirements to enable an interoperable application layer solution for smart home devices over the Internet Protocol.”

Confusion is easy: Under the topic Connected Buildings, the Connectivity Standards Alliance site states, “Standard protocols like Zigbee and Matter enable buildings to be connected by design in a way that doesn’t require disparate or complex systems and allows fluid integration of devices and information over IP.” So, is Matter really a protocol? The truth may lie in the middle.

Matter is middleware for IoT devices.
Matter in IoT devices can be likened to the middleware in an embedded MCU application. Middleware is the software in an embedded MCU that connects the OS with application software. Middleware (and Matter) simplify the development of embedded (and IoT) applications by:

  • Handling the interactions of distributed applications
  • Supporting seamless interactions between heterogeneous hardware, operating systems, and software protocols
  • Making applications interoperable, portable, and reusable through common and high-level interfaces.
  • Eliminating duplication of effort and enhancing collaboration between applications by delivering a common group of services

In an embedded MCU, the application software uses services from the middleware. In a Matter-enabled IoT device, the application software uses services from Matter (Figure 4):

  • Data Model – Data primitives and structures that describe device functions.
  • Interaction Model – The set of actions that can be used to interact with the device, such as reading and writing, that operate on the structures described in the data model.
  • Action Framing – Actions constructed using the Interaction Model are framed or packaged into a binary format that can be communicated to other devices.
  • Security – The Security Layer encrypts the encoded or ‘framed’ action to ensure that the data can be authenticated.
  • Message Framing & Routing – The secure and framed action is formatted as needed with header fields, and other structures that describe the properties of the message and routing information are added.
  • IP Framing & Transport Management – Connects Matter with the underlying TCP/UDP transport protocol layer for IP management of the message and connection to the communications protocol and interface layers.
Figure 4: Matter provides services to the application software to facilitate connections with the communications protocol and interface layers. (Image: Momoiot)

Summary

The matter was developed to provide an intermediate application layer to support improved interoperability, security, and reliability on wireless IoT networks. Matter is not a communication protocol in the conventional sense. It sits between the IP protocol layers and the application in the device software stack and provides functionality and services analogous to the middleware in embedded MCU solutions.

References

A FAQ about the Matter connectivity standard, Texas Instruments
Connectivity Standards Alliance
HMI (Human Machine Interface), Microchip
Matter Architecture, Momoiot
Protocol stack, Wikipedia

You may also like:


  • When to use standalone or MCU-hosted Matter platforms

  • How does Matter support multiple fabrics?

  • What’s a distributed compliance ledger and how is one integrated…

  • What can designers make with Matter?

  • What are the constituents of Matter?

Filed Under: Applications, Embedded, FAQ, Featured, IoT, Wireless Tagged With: FAQ

Primary Sidebar

Featured Contributions

Five challenges for developing next-generation ADAS and autonomous vehicles

Securing IoT devices against quantum computing risks

RISC-V implementation strategies for certification of safety-critical systems

What’s new with Matter: how Matter 1.4 is reshaping interoperability and energy management

Edge AI: Revolutionizing real-time data processing and automation

More Featured Contributions

EE TECH TOOLBOX

“ee
Tech Toolbox: 5G Technology
This Tech Toolbox covers the basics of 5G technology plus a story about how engineers designed and built a prototype DSL router mostly from old cellphone parts. Download this first 5G/wired/wireless communications Tech Toolbox to learn more!

EE Learning Center

EE Learning Center

EE ENGINEERING TRAINING DAYS

engineering
“bills
“microcontroller
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for EE professionals.

DesignFast

Design Fast Logo
Component Selection Made Simple.

Try it Today
design fast globle

Footer

Microcontroller Tips

EE World Online Network

  • 5G Technology World
  • EE World Online
  • Engineers Garage
  • Analog IC Tips
  • Battery Power Tips
  • Connector Tips
  • DesignFast
  • EDA Board Forums
  • Electro Tech Online Forums
  • EV Engineering
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips

Microcontroller Tips

  • Subscribe to our newsletter
  • Advertise with us
  • Contact us
  • About us

Copyright © 2025 · WTWH Media LLC and its licensors. All rights reserved.
The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media.

Privacy Policy