Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added doc/nrf/images/matter_qr_code_contact_sensor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ The following Matter samples and applications use the low power configuration by
* :ref:`Matter smoke CO alarm <matter_smoke_co_alarm_sample>`
* :ref:`Matter window covering sample <matter_window_covering_sample>`
* :ref:`Matter weather station application <matter_weather_station_app>`
* :ref:`Matter temperature sensor sample <matter_temperature_sensor_sample>`
* :ref:`Matter contact sensor sample <matter_contact_sensor_sample>`

The following additional materials and tools might help you to optimize, estimate, and measure the power consumption of your device are:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ The following table lists the default TX power values.
| +--------------------------+------------------------------------------------------+-----------------------------------------------------------------+
| | nrf54lm20dk | 8 | 0 |
+-------------------------------------------------------------------------+--------------------------+------------------------------------------------------+-----------------------------------------------------------------+
| :ref:`Smoke CO Alarm (MTD) <matter_smoke_co_alarm_sample>` | nrf52840dk | 0 | 0 |
| :ref:`Smoke CO Alarm (SED) <matter_smoke_co_alarm_sample>` | nrf52840dk | 0 | 0 |
| +--------------------------+------------------------------------------------------+-----------------------------------------------------------------+
| | nrf5340dk | 0 | 0 |
| +--------------------------+------------------------------------------------------+-----------------------------------------------------------------+
Expand All @@ -106,6 +106,22 @@ The following table lists the default TX power values.
| +--------------------------+------------------------------------------------------+-----------------------------------------------------------------+
| | nrf54lm20dk | 0 | 0 |
+-------------------------------------------------------------------------+--------------------------+------------------------------------------------------+-----------------------------------------------------------------+
| :ref:`Temperature Sensor (SED) <matter_temperature_sensor_sample>` | nrf52840dk | 0 | 0 |
| +--------------------------+------------------------------------------------------+-----------------------------------------------------------------+
| | nrf5340dk | 0 | 0 |
| +--------------------------+------------------------------------------------------+-----------------------------------------------------------------+
| | nrf54l15dk | 0 | 0 |
| +--------------------------+------------------------------------------------------+-----------------------------------------------------------------+
| | nrf54lm20dk | 0 | 0 |
+-------------------------------------------------------------------------+--------------------------+------------------------------------------------------+-----------------------------------------------------------------+
| :ref:`Contact Sensor (SED) <matter_contact_sensor_sample>` | nrf52840dk | 0 | 0 |
| +--------------------------+------------------------------------------------------+-----------------------------------------------------------------+
| | nrf5340dk | 0 | 0 |
| +--------------------------+------------------------------------------------------+-----------------------------------------------------------------+
| | nrf54l15dk | 0 | 0 |
| +--------------------------+------------------------------------------------------+-----------------------------------------------------------------+
| | nrf54lm20dk | 0 | 0 |
+-------------------------------------------------------------------------+--------------------------+------------------------------------------------------+-----------------------------------------------------------------+

.. _ug_matter_gs_transmission_power_thread:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,11 @@ Keys samples
Matter samples
--------------

* Added the :ref:`matter_temperature_sensor_sample` sample that demonstrates how to implement and test a Matter temperature sensor device.
* Added:

* The :ref:`matter_temperature_sensor_sample` sample that demonstrates how to implement and test a Matter temperature sensor device.
* The :ref:`matter_contact_sensor_sample` sample that demonstrates how to implement and test a Matter contact sensor device.

* Updated all Matter over Wi-Fi samples and applications to store a portion of the application code related to the nRF70 Series Wi-Fi firmware in the external flash memory by default.
This change breaks the DFU between the previous |NCS| versions and the |NCS| v3.2.0.
To fix this, you need to disable storing the Wi-Fi firmware patch in external memory.
Expand Down
9 changes: 9 additions & 0 deletions doc/nrf/samples/matter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ The following table lists variants and extensions available out of the box for e
- Thermostat
- Smoke CO alarm
- Temperature sensor
- Contact sensor
* - FEM support
- ✔
- ✔
Expand All @@ -30,6 +31,7 @@ The following table lists variants and extensions available out of the box for e
-
-
-
-
* - DFU support
- ✔
- ✔
Expand All @@ -39,6 +41,7 @@ The following table lists variants and extensions available out of the box for e
- ✔
- ✔
- ✔
- ✔
* - Thread support
- ✔
- ✔
Expand All @@ -48,6 +51,7 @@ The following table lists variants and extensions available out of the box for e
- ✔
- ✔
- ✔
- ✔
* - :ref:`Thread role <thread_ot_device_types>`
- Router
- SED
Expand All @@ -57,6 +61,7 @@ The following table lists variants and extensions available out of the box for e
- MED
- SED
- SED
- SED
* - :ref:`ICD mode <ug_matter_device_low_power_icd>`
- Not supported
- SIT
Expand All @@ -66,6 +71,7 @@ The following table lists variants and extensions available out of the box for e
- Not supported
- LIT
- LIT
- LIT
* - Wi-Fi® support
- ✔
- ✔
Expand All @@ -75,6 +81,7 @@ The following table lists variants and extensions available out of the box for e
- ✔
-
-
-
* - Thread and Wi-Fi switching
-
-
Expand All @@ -84,6 +91,7 @@ The following table lists variants and extensions available out of the box for e
-
-
-
-
* - Low power configuration by default
-
- ✔
Expand All @@ -93,6 +101,7 @@ The following table lists variants and extensions available out of the box for e
-
- ✔
- ✔
- ✔

See the sample documentation pages for instructions about how to enable these variants and extensions.

Expand Down
4 changes: 4 additions & 0 deletions samples/matter/common/src/zap_samples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,7 @@
# temperature sensor
- name: temperature_sensor
zap_file: samples/matter/temperature_sensor/src/default_zap/temperature_sensor.zap

# contact sensor
- name: contact_sensor
zap_file: samples/matter/contact_sensor/src/default_zap/contact_sensor.zap
38 changes: 38 additions & 0 deletions samples/matter/contact_sensor/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#
# Copyright (c) 2025 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

cmake_minimum_required(VERSION 3.20.0)

find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})

project(matter-contact-sensor)

# Enable GNU STD support.
include(${ZEPHYR_CONNECTEDHOMEIP_MODULE_DIR}/config/nrfconnect/app/enable-gnu-std.cmake)

# NORDIC SDK APP START

# Include all source files that are located in the Matter common directory.
include(${ZEPHYR_NRF_MODULE_DIR}/samples/matter/common/cmake/source_common.cmake)

# Include Data Model utils
include(${ZEPHYR_NRF_MODULE_DIR}/samples/matter/common/cmake/data_model.cmake)

include(${ZEPHYR_NRF_MODULE_DIR}/samples/matter/common/cmake/zap_helpers.cmake)
ncs_get_zap_parent_dir(ZAP_PARENT_DIR)

target_include_directories(app PRIVATE
src
${ZAP_PARENT_DIR}
)

target_sources(app PRIVATE
src/app_task.cpp
src/main.cpp
)

ncs_configure_data_model()
# NORDIC SDK APP END
35 changes: 35 additions & 0 deletions samples/matter/contact_sensor/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#
# Copyright (c) 2025 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#
mainmenu "Matter nRF Connect Contact Sensor Example Application"

choice OPENTHREAD_NORDIC_LIBRARY_CONFIGURATION
default OPENTHREAD_NORDIC_LIBRARY_MTD
endchoice

choice OPENTHREAD_DEVICE_TYPE
default OPENTHREAD_MTD
endchoice

config CHIP_ENABLE_ICD_SUPPORT
default y

config CHIP_ICD_LIT_SUPPORT
default y

config CHIP_ICD_SIT_SLOW_POLL_LIMIT
default 5000

config CHIP_ICD_REPORT_ON_ACTIVE_MODE
default y

# Reduce Thread TX output power to 0 dBm for SED device
config OPENTHREAD_DEFAULT_TX_POWER
default 0

source "$(ZEPHYR_CONNECTEDHOMEIP_MODULE_DIR)/config/nrfconnect/chip-module/Kconfig.features"
source "$(ZEPHYR_CONNECTEDHOMEIP_MODULE_DIR)/config/nrfconnect/chip-module/Kconfig.defaults"
source "$(ZEPHYR_NRF_MODULE_DIR)/samples/matter/common/src/Kconfig"
source "Kconfig.zephyr"
77 changes: 77 additions & 0 deletions samples/matter/contact_sensor/Kconfig.sysbuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
#
# Copyright (c) 2025 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

#### Radio core selection
config NRF_DEFAULT_IPC_RADIO
default y

# Enable IEEE802.15.4 serialization to network core
# This config automatically pulls in the `overlay-802154.conf` in the ipc_radio image
config NETCORE_IPC_RADIO_IEEE802154
default y if SOC_SERIES_NRF53X

# Enable Bluetooth serialization to network core
# This config automatically pulls in the `overlay-bt_hci_ipc.conf` in the ipc_radio image
config NETCORE_IPC_RADIO_BT_HCI_IPC
default y if SOC_SERIES_NRF53X

#### Bootloader
choice BOOTLOADER
default BOOTLOADER_MCUBOOT
endchoice

if BOOTLOADER_MCUBOOT

#### DFU multi-image support
config DFU_MULTI_IMAGE_PACKAGE_BUILD
default y

config DFU_MULTI_IMAGE_PACKAGE_APP
default y

config PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY
default y

#### DFU network core configuration
if SOC_SERIES_NRF53X

config MCUBOOT_UPDATEABLE_IMAGES
default 2

choice MCUBOOT_MODE
default MCUBOOT_MODE_OVERWRITE_ONLY
endchoice

choice BOOT_SIGNATURE_TYPE
default BOOT_SIGNATURE_TYPE_RSA
endchoice

config SECURE_BOOT_NETCORE
default y

config NETCORE_APP_UPDATE
default y

config DFU_MULTI_IMAGE_PACKAGE_NET
default y

endif # SOC_SERIES_NRF53X

if BOARD_NRF54L15DK || BOARD_NRF54LM20DK

# Disable checking the external drivers for nRF54L15 and nRF54LM20 DKs.
config PM_OVERRIDE_EXTERNAL_DRIVER_CHECK
default y

endif # BOARD_NRF54L15DK || BOARD_NRF54LM20DK

endif # BOOTLOADER_MCUBOOT

#### Enable generating factory data
config MATTER_FACTORY_DATA_GENERATE
default y

source "share/sysbuild/Kconfig"
Loading