Analysis

You can learn much about Matter from the Project CHIP GitHub repo

It hasn’t been 24 hours since Project CHIP became Matter, and the Zigbee Alliance became the Connectivity Standards Alliance, and the full spec won’t be available until fall, but there’s already plenty of information about the new protocol if you know where to look.

By looking at the project’s GitHub code repository, I learned quite a bit, such as the different ways Matter devices can be provisioned, how to create a Thread Border router with a PC, and even how to get a basic Android app that can send test Thread commands. Oh, and there’s some interesting information on the use of Zephyr, an open-source RTOS, or real-time operating system for Matter devices.

Initial and future device provisioning

One interesting tidbit that the CSA didn’t detail (unless I missed it!) is the device provisioning approach in the future. Matter devices will of course support Bluetooth for their initial setup connection to WiFi if supported but also allow for near-field communications, QR codes, and Thread.

That’s ironic since earlier this week, we just wrote about how Thread won’t immediately give Bluetooth the smart home boot. Bluetooth is great for provisioning connected devices. But we also noted that NFC and other methods are also useful.

It turns out in the code repository there’s already quite of bit of progress with this alternative provisioning approach, complete with a basic flow diagram:

Image from Project Chip GitHub

You can build and test your own Thread Border Router today

In fact, this entire page in the code repository shows not just how provisioning will work, but also how to test provisioning with certain, readily available chips and boards. There’s even a link to create your own Thread Border Router on a desktop computer, although you do need to add a radio chip for Thread support for around $50.

Oh, there’s a nice Android-based app called the CHIPTool to provision devices and even send basic commands such as on or off too.

Image from Project Chip GitHub

And if you’re a real DIY kind of person, you can even set up a Thread Border Router on a Raspberry Pi 3 or 4, again with the addition of a supported radio chip.

Zephyr makes an appearance

Another aspect I stumbled upon in the code repository has to do with the Zephyr RTOS. This stood out to me because I came across Zephyr recently in my other online activities. I run the AboutChromebooks site covering Chromebooks and Chrome OS and often look at Google’s Chromium code repository to see what features the company is working on. And that’s where I saw Zephyr last week.

Now it’s possible that Google is looking to standardize something on the boards that run inside Chromebooks using Zephyr. But it also makes sense that Google’s Zephyr effort is to power future smart devices. And if it does, Matter would essentially be supported via Bluetooth and Thread as shown by this overview image from the Matter repository.

Image from Project Chip GitHub

Warning: JSON 101 ahead!

Keep in mind that CSA has said always said that Matter is IP-based and a standard way for devices to communicate with each other. That sounds good, but how does that happen?

Mostly through small bits of data in a special format that’s already used widely on the web with something called JSON or JavaScript Object Notation. As an end-user, you may not care but it’s important to illustrate how the approach will be easy and effective for any Matter device to advertise its capabilities to other Matter devices and have specifically defined actions taken. 

Think of JSON as a language that allows computing devices to speak to each other about data in a standard way. That data consists of key-value pairs. A key represents some attribute and the value represents some relevant value.

Image from Project Chip GitHub

In the example code for a Matter device, for example, you can view the JSON to see what commands and data a client, or user, of the device, can send. These are keys to Matter devices. And the values are different device commands.

Just for scenes, there are seven commands ranging from setting a scene, recalling a scene, and viewing which devices are members of the scene.

That same example code shows the JSON for requesting or getting door lock data. Attributes include the door lock type, the door’s current state (locked or unlocked), automatic relock time, enable one-touch locking, and a wrong code entry limit to name a few.

Those could be from a smart display, a voice assistant, or a client app. It doesn’t matter because the underlying “language” used by Matter devices doesn’t vary by a user interface. That’s huge for both device makers and developers in this space. And it’s how connected devices won’t be tied to a specific ecosystem.

You should care about that because it means Matter devices will work with Amazon Alexa, Apple HomeKit, Google Assistant, and the Samsung SmartThings platforms thanks to this standard device-to-device “language.”

I’ve only been scanning the Matter code for a few hours, but there’s plenty more in there to scour through to glean a better understanding of exactly how the CSA will deliver on its initial promise. We’ll know more over time as devices start to appear, of course. But I just can’t wait.

 

Kevin C. Tofel

Share
Published by
Kevin C. Tofel

Recent Posts

Episode 437: Goodbye and good luck

This is the final episode of The Internet of Things Podcast, and to send us…

9 months ago

So long, and thanks for all the insights

This article was originally published in my weekly IoT newsletter on Friday August 18, 2023.…

9 months ago

We are entering our maintenance era

This article was originally published in my weekly IoT newsletter on Friday August 18, 2023.…

9 months ago

IoT news of the week for August 18, 2023

Verdigris has raised $10M for smarter buildings: I am so excited by this news, because roughly eight…

9 months ago

Podcast: Can Alexa (and the smart home) stand on its own?

Amazon's head of devices, David Limp, plans to retire as part of a wave of executives that…

9 months ago

Z-Wave gets a boost with new chip provider

If you need any more indication that Matter is not going to kill all of…

9 months ago