Matter Window Covering Example Application#
This reference application demonstrates how to remotely control a window shutter device. You can use this example as a reference for creating your own application.
The example is based on:
Supported devices#
[RTL8777G]
Introduction#
The application showcases a window covering device. It uses buttons to test changing cover position and device states and LEDs to show the state of these changes.
It can be commissioned into an existing Matter network using a controller such
as chip-tool
.
This example implements a Standard commissioning flow
, meaning devices not
connected to the network automatically broadcast advertising when powered on.
The initial commissioning is done through ble-thread
pairing method.
The Thread network dataset will be transferred on the device using a secure session over Bluetooth LE.To pair successfully, the commissioner must know the commissioning information corresponding to the device: setup passcode and discriminator. This data is usually encoded within a QR code or printed to the UART console.
Prerequisites for building#
In order to build the example, it is recommended to use a Linux distribution. Please visit the supported Operating Systems list in BUILDING.md.
Make sure that below prerequisites are correctly installed (as described in BUILDING.md)
sudo apt-get install git gcc g++ pkg-config libssl-dev libdbus-1-dev libglib2.0-dev libavahi-client-dev ninja-build python3-venv python3-dev python3-pip unzip libgirepository1.0-dev libcairo2-dev libreadline-dev
Step 1: checkout Realtek specific submodules only
$ scripts/checkout_submodules.py --shallow --platform realtek --recursive
Step 1: Init REALTEK SDK
$ git submodule update --init --recursive third_party/openthread/ot-realtek
Step 3: activate local environment
$ source ./scripts/activate.sh
If the script says the environment is out of date, you can update it by running the following command:
$ source ./scripts/bootstrap.sh
Building#
To build the demo application:
$ ./scripts/build/build_examples.py --target realtek-rtl8777g-window build
You can find the target built file called matter-cli-mtd under the
out/realtek-rtl8777g-window/bin
directory.
More information#
For more information on our product line and support options, please visit www.realmcu.com