An example showing the use of Matter on the Infineon CYW30739 platform.
The CYW30739 lighting example provides a baseline demonstration of a Light control device, built using Matter and the Infineon Modustoolbox SDK. It can be controlled by a Matter controller over Thread network.
The CYW30739 device can be commissioned over Bluetooth Low Energy where the device and the Matter controller will exchange security information with the Rendez-vous procedure. Target Thread Network information including the active dataset and CASE credentials are then provided.
Follow the Installation Guide to download and install the ModusToolbox™ Software.
ModusToolbox™ tools package should be automatically installed in the default location if you followed the Installation Guide. Please refer to the Installation Guide for the default location for different operating systems.
If you need to install the ModusToolbox™ tools package in a custom location, you must set the environment variable CY_TOOLS_PATHS
to the /path/to/ModusToolbox/tools_x.x
to specify the location of tools.
export CY_TOOLS_PATHS="/path/to/ModusToolbox/tools_x.x"
If you are using WSL, please ensure you have installed the ModusToolbox™ Software for Linux. Running Windows tools directly from the WSL command line would cause path resolution failure in the build process.
Before building the example, check out the Matter repository and sync submodules using the following command:
$ cd ~/connectedhomeip $ scripts/checkout_submodules.py --platform infineon $ bash scripts/bootstrap.sh -p all,infineon
Build the example application:
$ cd ~/connectedhomeip $ scripts/examples/gn_build_example.sh examples/lighting-app/infineon/cyw30739 out/cyw30739-light
OR use GN/Ninja directly
$ cd ~/connectedhomeip $ source scripts/activate.sh $ gn gen --root=examples/lighting-app/infineon/cyw30739 out/cyw30739-light $ ninja -C out/cyw30739-light [lighting_app-BOARD_NAME]
To delete generated executable, libraries and object files use:
$ cd ~/connectedhomeip $ rm -rf out/cyw30739-light
Infineon CYW30739 examples use test passcode, discriminator and PAKE parameters by default. For a production build, manufacturers should override commissionable data by the following arguments:
matter_passcode
, matter_discriminator
, matter_pake_iteration_count
, matter_pake_salt
$ cd ~/connectedhomeip $ scripts/examples/gn_build_example.sh examples/lighting-app/infineon/cyw30739 out/cyw30739-light \ 'matter_passcode=20202021' \ 'matter_discriminator=3840' \ 'matter_pake_iteration_count=1000' \ 'matter_pake_salt="U1BBS0UyUCBLZXkgU2FsdA=="'
Infineon CYW30739 examples support overriding the default device information by the following arguments:
To override the default device information, pass the desired values to the gn_build_example.sh
script as arguments.
```bash $ cd ~/connectedhomeip $ scripts/examples/gn_build_example.sh examples/lighting-app/infineon/cyw30739 out/cyw30739-light \ 'matter_vendor_name="Infineon"' \ 'matter_vendor_id="0x1388"' \ 'matter_product_name="TEST_PRODUCT"' \ 'matter_product_id="0x0001"' \ 'matter_serial_number="TEST_SN"' \ 'matter_hardware_version=30739' \ 'matter_hardware_version_string="30739"' ```
Infineon CYW30739 examples use development certifications, keys, and CD by default. For a production build, manufacturers can provision certifications, keys, and CD by the following arguments:
matter_att_cert
, matter_att_cert_password
, matter_cd
$ cd ~/connectedhomeip $ scripts/examples/gn_build_example.sh examples/lighting-app/infineon/cyw30739 out/cyw30739-light \ 'matter_att_cert="/path/to/att_cert.p12"' \ 'matter_att_cert_password="password"' \ 'matter_cd="/path/to/cd.der"'
For boards supported by Optiga Trust M, CYW30739 will provision factory data to the Optiga Trust M by default for easy development.
The Optiga Trust M on a production board should come with provisioned factory data. To ensure its optimal use, please configure the Optiga using the following arguments:
use_provisioned_optiga
, optiga_dac_object_id
, optiga_dac_key_object_id
, optiga_pai_cert_object_id
$ cd ~/connectedhomeip $ scripts/examples/gn_build_example.sh examples/lighting-app/infineon/cyw30739 out/cyw30739-light \ 'optiga_dac_object_id="0xe0e0"' \ 'optiga_dac_key_object_id="0xe0f0"' \ 'optiga_pai_cert_object_id="0xe0e8"'
The developer must set the object IDs to corresponding values matching the configurations used in the Optiga provisioning procedure.
Put the CYW30739 in to the recovery mode before running the flash script.
RECOVERY
button on the board.RESET
button on the board.RESET
button.RECOVERY
button.On the command line:
$ cd ~/connectedhomeip $ out/cyw30739-light/lighting_app-BOARD_NAME.flash.py --port <port>
It is assumed here that you already have an OpenThread border router configured and running. If not see the following guide Openthread_border_router for more information on how to setup a border router on a raspberryPi.
You can provision and control the device using the Python controller REPL, chip-tool standalone, Android or iOS app