ESP Matter Controller
Overview
This section demonstrates how to build and run the ESP Matter Controller Example from the ESP-Matter SDK on ESP Thread Border Router board. See also Matter Controller implementation on ESP32-C6.
This Matter Controllers implementation supports the following features:
BLE-WiFi pairing
BLE-Thread pairing
On-network pairing
Invoke cluster commands
Read attributes commands
Read events commands
Write attributes commands
Subscribe attributes commands
Subscribe events commands
Group settings command.
Build and Run
Prerequisites:
ESP-IDF development environment is set up.
ESP-Matter development environment is set up.
ESP Thread Border Router board is available.
Step 1: Set Up Environment
Set up the environment and navigate to the ESP Matter Thread Border Router example directory:
Step 2: Open Matter Controller Example
Navigate to the Matter Controller examples directory:
Step 3: Set the target device
Set the target device to esp32s3 for Thread Border Router since it uses the ESP32-S3 chip:
Step 4: Edit Project's CMakeLists.txt
The following changes have to be made to the CMakeLists.txt file:
Step 5: Connect to Computer
Connect the board to the computer using a USB cable.
The ESP Thread Border Router board should be connected using USB-2.
Step 6: Build and Flash
Testing
Wi-Fi Management
Connect to Wi-Fi
Thread CLI
See also ESP OpenThread CLI Usage for more Thread commands.
Initialize and Commit Thread Dataset
Start Thread Network
Commissioning Matter Devices
BLE-Wi-Fi Commissioning
Commission a Matter device using BLE and Wi-Fi:
BLE-Thread Commissioning
Pair a Matter device using BLE and Thread:
Reading Attributes
Read a specific attribute from a cluster on a Matter device:
Root Node Clusters
The root node (Endpoint 0) has the following clusters:
Basic Information (0x0028)
General Commissioning (0x0030)
Network Commissioning (0x0031)
General Diagnostics (0x0033)
Administrator Commissioning (0x003C)
Operational Credentials (0x003E)
Group Key Management (0x003F)
On/Off Cluster
On/Off cluster (0x6).
Temperature Measurement Cluster
Temperature Measurement cluster (0x0402).
Pressure Measurement Cluster
Pressure Measurement cluster (0x0403).
Thread Border Router Management Cluster
Thread Border Router Management cluster (0x0452).
Access Control Cluster
Access Control cluster (0x001F).
Invoking Cluster Commands
Invoke a command on a Matter device: