Skip to content

Commit dda18fe

Browse files
wiba-nordicArekBalysNordic
authored andcommitted
doc: Matter: Add shared configurations page
The Matter samples share some configurations. In the case of the Kconfig options, these are not picked up by the docs build system. This adds a separate page where these options are documented. Signed-off-by: Wille Backman <[email protected]>
1 parent 5536f10 commit dda18fe

File tree

14 files changed

+339
-84
lines changed

14 files changed

+339
-84
lines changed

applications/matter_bridge/doc/matter_bridge_description.rst

Lines changed: 28 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -388,123 +388,121 @@ Check and configure the following configuration options:
388388
.. _CONFIG_BRIDGED_DEVICE_IMPLEMENTATION:
389389

390390
CONFIG_BRIDGED_DEVICE_IMPLEMENTATION
391-
Select bridged device implementation.
391+
``bool`` - Select bridged device implementation.
392392
See the :ref:`matter_bridge_app_bridged_support_configs` section for more information.
393393
Accepts the following values:
394394

395395
.. _CONFIG_BRIDGED_DEVICE_SIMULATED:
396396

397397
CONFIG_BRIDGED_DEVICE_SIMULATED
398-
Implement a simulated bridged device.
398+
``bool`` - Implement a simulated bridged device.
399399
You must also configure :ref:`CONFIG_BRIDGED_DEVICE_SIMULATED_ONOFF_IMPLEMENTATION <CONFIG_BRIDGED_DEVICE_SIMULATED_ONOFF_IMPLEMENTATION>`
400400

401401
.. _CONFIG_BRIDGED_DEVICE_BT:
402402

403403
CONFIG_BRIDGED_DEVICE_BT
404-
Implement a Bluetooth LE bridged device.
404+
``bool`` - Implement a Bluetooth LE bridged device.
405405

406406
.. _CONFIG_BRIDGE_HUMIDITY_SENSOR_BRIDGED_DEVICE:
407407

408408
CONFIG_BRIDGE_HUMIDITY_SENSOR_BRIDGED_DEVICE
409-
Enable support for Humidity Sensor bridged device.
409+
``bool`` - Enable support for Humidity Sensor bridged device.
410410

411411
.. _CONFIG_BRIDGE_ONOFF_LIGHT_BRIDGED_DEVICE:
412412

413413
CONFIG_BRIDGE_ONOFF_LIGHT_BRIDGED_DEVICE
414-
Enable support for OnOff Light bridged device.
414+
``bool`` - Enable support for OnOff Light bridged device.
415415

416416
.. _CONFIG_BRIDGE_SWITCH_BRIDGED_DEVICE:
417417

418418
CONFIG_BRIDGE_SWITCH_BRIDGED_DEVICE
419-
Enable support for a switch bridged device.
419+
``bool`` - Enable support for a switch bridged device.
420420
Accepts the following values:
421421

422422
.. _CONFIG_BRIDGE_GENERIC_SWITCH_BRIDGED_DEVICE:
423423

424424
CONFIG_BRIDGE_GENERIC_SWITCH_BRIDGED_DEVICE
425-
Enable support for Generic Switch bridged device.
425+
``bool`` - Enable support for Generic Switch bridged device.
426426

427427
.. _CONFIG_BRIDGE_ONOFF_LIGHT_SWITCH_BRIDGED_DEVICE:
428428

429429
CONFIG_BRIDGE_ONOFF_LIGHT_SWITCH_BRIDGED_DEVICE
430-
Enable support for OnOff Light Switch bridged device.
430+
``bool`` - Enable support for OnOff Light Switch bridged device.
431431

432432
.. _CONFIG_BRIDGE_TEMPERATURE_SENSOR_BRIDGED_DEVICE:
433433

434434
CONFIG_BRIDGE_TEMPERATURE_SENSOR_BRIDGED_DEVICE
435-
Enable support for Temperature Sensor bridged device.
435+
``bool`` - Enable support for Temperature Sensor bridged device.
436436

437-
If you selected the simulated device implementation using the :ref:`CONFIG_BRIDGED_DEVICE_SIMULATED <CONFIG_BRIDGED_DEVICE_SIMULATED>` Kconfig option, also check and configure the following option:
437+
.. _CONFIG_BRIDGE_MIGRATE_PRE_2_7_0:
438+
439+
CONFIG_BRIDGE_MIGRATE_PRE_2_7_0
440+
``bool`` - Enable migration of bridged device data stored in old scheme from pre nRF SDK 2.7.0 releases.
441+
442+
.. _CONFIG_BRIDGE_MIGRATE_VERSION_1:
443+
444+
CONFIG_BRIDGE_MIGRATE_VERSION_1
445+
``bool`` - Enable migration of bridged device data stored in version 1 of new scheme.If you selected the simulated device implementation using the :ref:`CONFIG_BRIDGED_DEVICE_SIMULATED <CONFIG_BRIDGED_DEVICE_SIMULATED>` Kconfig option, also check and configure the following option:
438446

439447
.. _CONFIG_BRIDGED_DEVICE_SIMULATED_ONOFF_IMPLEMENTATION:
440448

441449
CONFIG_BRIDGED_DEVICE_SIMULATED_ONOFF_IMPLEMENTATION
442-
Select the simulated OnOff device implementation.
450+
``bool`` - Select the simulated OnOff device implementation.
443451
Accepts the following values:
444452

445453
.. _CONFIG_BRIDGED_DEVICE_SIMULATED_ONOFF_AUTOMATIC:
446454

447455
CONFIG_BRIDGED_DEVICE_SIMULATED_ONOFF_AUTOMATIC
448-
Automatically simulated OnOff device.
456+
``bool`` - Automatically simulated OnOff device.
449457
The simulated device automatically changes its state periodically.
450458

451459
.. _CONFIG_BRIDGED_DEVICE_SIMULATED_ONOFF_SHELL:
452460

453461
CONFIG_BRIDGED_DEVICE_SIMULATED_ONOFF_SHELL
454-
Shell-controlled simulated OnOff device.
462+
``bool`` - Shell-controlled simulated OnOff device.
455463
The state of the simulated device is changed using shell commands.
456464

457465
If you selected the Bluetooth LE device implementation using the :ref:`CONFIG_BRIDGED_DEVICE_BT <CONFIG_BRIDGED_DEVICE_BT>` Kconfig option, also check and configure the following options:
458466

459467
.. _CONFIG_BRIDGE_BT_MAX_SCANNED_DEVICES:
460468

461469
CONFIG_BRIDGE_BT_MAX_SCANNED_DEVICES
462-
Set the maximum number of scanned devices.
470+
``int`` - Set the maximum number of scanned devices.
463471

464472
.. _CONFIG_BRIDGE_BT_MINIMUM_SECURITY_LEVEL:
465473

466474
CONFIG_BRIDGE_BT_MINIMUM_SECURITY_LEVEL
467-
Set the minimum Bluetooth security level of bridged devices that the bridge device will accept.
475+
``int`` - Set the minimum Bluetooth security level of bridged devices that the bridge device will accept.
468476
Bridged devices using this or a higher level will be allowed to connect to the bridge.
469477
See the :ref:`matter_bridge_app_bt_security` section for more information.
470478

471479
.. _CONFIG_BRIDGE_BT_RECOVERY_MAX_INTERVAL:
472480

473481
CONFIG_BRIDGE_BT_RECOVERY_MAX_INTERVAL
474-
Set the maximum time (in seconds) between recovery attempts when the Bluetooth LE connection to the bridged device is lost.
482+
``int`` - Set the maximum time (in seconds) between recovery attempts when the Bluetooth LE connection to the bridged device is lost.
475483

476484
.. _CONFIG_BRIDGE_BT_RECOVERY_SCAN_TIMEOUT_MS:
477485

478486
CONFIG_BRIDGE_BT_RECOVERY_SCAN_TIMEOUT_MS
479-
Set the time (in milliseconds) within which the Bridge will try to re-establish a connection to the lost Bluetooth LE device.
487+
``int`` - Set the time (in milliseconds) within which the Bridge will try to re-establish a connection to the lost Bluetooth LE device.
480488

481489
.. _CONFIG_BRIDGE_BT_SCAN_TIMEOUT_MS:
482490

483491
CONFIG_BRIDGE_BT_SCAN_TIMEOUT_MS
484-
Set the Bluetooth LE scan timeout in milliseconds.
492+
``int`` - Set the Bluetooth LE scan timeout in milliseconds.
485493

486494
The following options affect how many bridged devices the application supports.
487495
See the :ref:`matter_bridge_app_bridged_support_configs` section for more information.
488496

489497
.. _CONFIG_BRIDGE_MAX_BRIDGED_DEVICES_NUMBER:
490498

491499
CONFIG_BRIDGE_MAX_BRIDGED_DEVICES_NUMBER
492-
Set the maximum number of physical non-Matter devices supported by the Bridge.
500+
``int`` - Set the maximum number of physical non-Matter devices supported by the Bridge.
493501

494502
.. _CONFIG_BRIDGE_MAX_DYNAMIC_ENDPOINTS_NUMBER:
495503

496504
CONFIG_BRIDGE_MAX_DYNAMIC_ENDPOINTS_NUMBER
497-
Set the maximum number of dynamic endpoints supported by the Bridge.
498-
499-
.. _CONFIG_BRIDGE_MIGRATE_PRE_2_7_0:
500-
501-
CONFIG_BRIDGE_MIGRATE_PRE_2_7_0
502-
Enable migration of bridged device data stored in old scheme from pre nRF SDK 2.7.0 releases.
503-
504-
.. _CONFIG_BRIDGE_MIGRATE_VERSION_1:
505-
506-
CONFIG_BRIDGE_MIGRATE_VERSION_1
507-
Enable migration of bridged device data stored in version 1 of new scheme.
505+
``int`` - Set the maximum number of dynamic endpoints supported by the Bridge.
508506

509507
.. _matter_bridge_app_bridged_support_configs:
510508

doc/nrf/protocols/matter/end_product/test_event_triggers.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Default test event triggers
3737
***************************
3838

3939
You can use the pre-defined common test event triggers in your application.
40-
To disable them, set the :kconfig:option:`CONFIG_NCS_SAMPLE_MATTER_TEST_EVENT_TRIGGERS_REGISTER_DEFAULTS` Kconfig option to ``n``.
40+
To disable them, set the :ref:`CONFIG_NCS_SAMPLE_MATTER_TEST_EVENT_TRIGGERS_REGISTER_DEFAULTS<CONFIG_NCS_SAMPLE_MATTER_TEST_EVENT_TRIGGERS_REGISTER_DEFAULTS>` Kconfig option to ``n``.
4141

4242
The following table lists the available triggers and their activation codes:
4343

@@ -65,37 +65,37 @@ The following table lists the available triggers and their activation codes:
6565
The maximum time delay is UINT16_MAX ms.
6666
The value is provided in HEX format.
6767
* - Block the Matter thread
68-
- :kconfig:option:`CONFIG_NCS_SAMPLE_MATTER_WATCHDOG` = ``y``, and :kconfig:option:`CONFIG_NCS_SAMPLE_MATTER_WATCHDOG_DEFAULT` = ``y``
68+
- :ref:`CONFIG_NCS_SAMPLE_MATTER_WATCHDOG<CONFIG_NCS_SAMPLE_MATTER_WATCHDOG>` = ``y``, and :ref:`CONFIG_NCS_SAMPLE_MATTER_WATCHDOG_DEFAULT<CONFIG_NCS_SAMPLE_MATTER_WATCHDOG_DEFAULT>` = ``y``
6969
- Block the Matter thread for specific amount of time.
7070
You can use this event trigger to check the :ref:`Matter Watchdog <ug_matter_device_watchdog>` functionality.
7171
- ``0xFFFFFFFF20000000`` - ``0xFFFFFFFF2000FFFF``
7272
- The range of ``0x0000`` - ``0xFFFF`` represents the time in s to block the Matter thread.
7373
The maximum time is UINT16_MAX s.
7474
The value is provided in HEX format.
7575
* - Block the Main thread
76-
- :kconfig:option:`CONFIG_NCS_SAMPLE_MATTER_WATCHDOG` = ``y``, and :kconfig:option:`CONFIG_NCS_SAMPLE_MATTER_WATCHDOG_DEFAULT` = ``y``
76+
- :ref:`CONFIG_NCS_SAMPLE_MATTER_WATCHDOG<CONFIG_NCS_SAMPLE_MATTER_WATCHDOG>` = ``y``, and :ref:`CONFIG_NCS_SAMPLE_MATTER_WATCHDOG_DEFAULT<CONFIG_NCS_SAMPLE_MATTER_WATCHDOG_DEFAULT>` = ``y``
7777
- Block the Main thread for specific amount of time.
7878
You can use this event trigger to check the :ref:`Matter Watchdog <ug_matter_device_watchdog>` functionality.
7979
- ``0xFFFFFFFF30000000`` - ``0xFFFFFFFF3000FFFF``
8080
- The range of ``0x0000`` - ``0xFFFF`` represents the time in s to block the Main thread.
8181
The maximum time is UINT16_MAX s.
8282
The value is provided in HEX format.
8383
* - Diagnostic Logs User Data
84-
- Enabled ``Diagnostic Logs`` cluster, and either the snippet `diagnostic-logs` attached (``-D<application_name>_SNIPPET=diagnostic-logs``) or both :kconfig:option:`CONFIG_NCS_SAMPLE_MATTER_DIAGNOSTIC_LOGS` = ``y`` and :kconfig:option:`CONFIG_NCS_SAMPLE_MATTER_DIAGNOSTIC_LOGS_END_USER_LOGS` = ``y``.
84+
- Enabled ``Diagnostic Logs`` cluster, and either the snippet ``matter-diagnostic-logs`` attached (``-D<application_name>_SNIPPET=matter-diagnostic-logs``) or both :ref:`CONFIG_NCS_SAMPLE_MATTER_DIAGNOSTIC_LOGS<CONFIG_NCS_SAMPLE_MATTER_DIAGNOSTIC_LOGS>` = ``y`` and :ref:`CONFIG_NCS_SAMPLE_MATTER_DIAGNOSTIC_LOGS_END_USER_LOGS<CONFIG_NCS_SAMPLE_MATTER_DIAGNOSTIC_LOGS_END_USER_LOGS>` = ``y``.
8585
- Trigger writing a specific number of ``u`` characters to the user diagnostics logs.
8686
The number of characters is determined by the value at the end of the event trigger value.
8787
The current supported maximum is 1023 bytes for single trigger call, and 4096 bytes of total data written.
8888
- ``0xFFFFFFFF40000000`` - ``0xFFFFFFFF40000400``
8989
- The range of ``0x0000`` - ``0x0400`` (from 1 Bytes to 1024 Bytes), ``0x0000`` to clear logs.
9090
* - Diagnostic Logs Network Data
91-
- Enabled ``Diagnostic Logs`` cluster, and either the snippet `diagnostic-logs` attached (``-D<application_name>_SNIPPET=diagnostic-logs``) or both :kconfig:option:`CONFIG_NCS_SAMPLE_MATTER_DIAGNOSTIC_LOGS` = ``y`` and :kconfig:option:`CONFIG_NCS_SAMPLE_MATTER_DIAGNOSTIC_LOGS_NETWORK_LOGS` = ``y``.
91+
- Enabled ``Diagnostic Logs`` cluster, and either the snippet ``matter-diagnostic-logs`` attached (``-D<application_name>_SNIPPET=matter-diagnostic-logs``) or both :ref:`CONFIG_NCS_SAMPLE_MATTER_DIAGNOSTIC_LOGS<CONFIG_NCS_SAMPLE_MATTER_DIAGNOSTIC_LOGS>` = ``y`` and :ref:`CONFIG_NCS_SAMPLE_MATTER_DIAGNOSTIC_LOGS_NETWORK_LOGS<CONFIG_NCS_SAMPLE_MATTER_DIAGNOSTIC_LOGS_NETWORK_LOGS>` = ``y``.
9292
- Trigger writing a specific number of ``n`` characters to the network diagnostics logs.
9393
The number of characters is determined by the value at the end of the event trigger value.
9494
The current supported maximum is 1023 bytes for single trigger call, and 4096 bytes of total data written.
9595
- ``0xFFFFFFFF50000000`` - ``0xFFFFFFFF50000400``
9696
- The range of ``0x0000`` - ``0x0400`` (from 1 Bytes to 1024 Bytes), ``0x0000`` to clear logs.
9797
* - Diagnostic Crash Logs
98-
- Either the snippet `diagnostic-logs` attached (``-D<application_name>_SNIPPET=diagnostic-logs``) or both :kconfig:option:`CONFIG_NCS_SAMPLE_MATTER_DIAGNOSTIC_LOGS` = ``y`` and :kconfig:option:`CONFIG_NCS_SAMPLE_MATTER_DIAGNOSTIC_LOGS_CRASH_LOGS` = ``y``, and enabled ``Diagnostic Logs`` cluster.
98+
- Either the snippet ``matter-diagnostic-logs`` attached (``-D<application_name>_SNIPPET=matter-diagnostic-logs``) or both :ref:`CONFIG_NCS_SAMPLE_MATTER_DIAGNOSTIC_LOGS<CONFIG_NCS_SAMPLE_MATTER_DIAGNOSTIC_LOGS>` = ``y`` and :ref:`CONFIG_NCS_SAMPLE_MATTER_DIAGNOSTIC_LOGS_CRASH_LOGS<CONFIG_NCS_SAMPLE_MATTER_DIAGNOSTIC_LOGS_CRASH_LOGS>` = ``y``, and enabled ``Diagnostic Logs`` cluster.
9999
- Trigger a simple crash that relies on execution of the undefined instruction attempt.
100100
- ``0xFFFFFFFF60000000``
101101
- No additional value supported.
@@ -273,7 +273,7 @@ A new event trigger consists of two fields: ``Mask``, and ``Callback``.
273273
* The ``Callback`` field is a callback function that will be invoked when the device receives a corresponding activation code.
274274

275275
The maximum number of event triggers that can be registered is configurable.
276-
To adjust this limit, set the :kconfig:option:`CONFIG_NCS_SAMPLE_MATTER_TEST_EVENT_TRIGGERS_MAX` Kconfig option to the desired value.
276+
To adjust this limit, set the :ref:`CONFIG_NCS_SAMPLE_MATTER_TEST_EVENT_TRIGGERS_MAX<CONFIG_NCS_SAMPLE_MATTER_TEST_EVENT_TRIGGERS_MAX>` Kconfig option to the desired value.
277277

278278
To register a new test event trigger, follow these steps:
279279

@@ -353,7 +353,7 @@ Use the following example as a guide to register an existing event trigger handl
353353
354354
/* Remember to check the CHIP_ERROR return code */
355355
356-
If the returning ``CHIP_ERROR`` code is equal to ``CHIP_ERROR_NO_MEMORY``, you need to increase the :kconfig:option:`CONFIG_NCS_SAMPLE_MATTER_TEST_EVENT_TRIGGERS_MAX_TRIGGERS_DELEGATES` Kconfig option to the higher value.
356+
If the returning ``CHIP_ERROR`` code is equal to ``CHIP_ERROR_NO_MEMORY``, you need to increase the :ref:`CONFIG_NCS_SAMPLE_MATTER_TEST_EVENT_TRIGGERS_MAX_TRIGGERS_DELEGATES<CONFIG_NCS_SAMPLE_MATTER_TEST_EVENT_TRIGGERS_MAX_TRIGGERS_DELEGATES>` Kconfig option to the higher value.
357357

358358
For example, you can register and use the ``OTATestEventTriggerHandler`` handler and trigger pre-defined Matter OTA DFU behaviors using the following code:
359359

@@ -367,7 +367,7 @@ Usage
367367
*****
368368

369369
The Matter test event triggers feature is enabled by default for all Matter samples.
370-
To disable it, set the :kconfig:option:`CONFIG_NCS_SAMPLE_MATTER_TEST_EVENT_TRIGGERS` Kconfig option to ``n``.
370+
To disable it, set the :ref:`CONFIG_NCS_SAMPLE_MATTER_TEST_EVENT_TRIGGERS<CONFIG_NCS_SAMPLE_MATTER_TEST_EVENT_TRIGGERS>` Kconfig option to ``n``.
371371

372372
To trigger a specific event on the device, run the following command:
373373

doc/nrf/protocols/matter/end_product/watchdog.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ This approach eliminates the need to directly call the ``Feed()`` method in your
2727
A time window specifies the period within which the feeding signal must be sent to each watchdog channel to reset the timer and prevent the device from rebooting.
2828
If the feeding signal is sent after the time window has elapsed, it does not prevent the device from rebooting.
2929

30-
To enable the Matter watchdog feature in a matter sample, set the :kconfig:option:`CONFIG_NCS_SAMPLE_MATTER_WATCHDOG` Kconfig option to ``y``.
30+
To enable the Matter watchdog feature in a Matter sample, set the :ref:`CONFIG_NCS_SAMPLE_MATTER_WATCHDOG<CONFIG_NCS_SAMPLE_MATTER_WATCHDOG>` Kconfig option to ``y``.
3131
The feature is enabled by default for the release build type in all Matter samples and applications.
3232

33-
To set the timeout for the watchdog timer, configure the :kconfig:option:`CONFIG_NCS_SAMPLE_MATTER_WATCHDOG_TIMEOUT` with a value in milliseconds.
33+
To set the timeout for the watchdog timer, configure the :ref:`CONFIG_NCS_SAMPLE_MATTER_WATCHDOG_TIMEOUT<CONFIG_NCS_SAMPLE_MATTER_WATCHDOG_TIMEOUT>` with a value in milliseconds.
3434
By default, the timeout is set to 10 seconds.
3535

3636
.. note::
@@ -51,8 +51,8 @@ If pause mode is enabled, the device will only reboot if the task feeding the wa
5151
Pause mode is less accurate and may cause the device to reboot later than expected, but it allows feeding the watchdog only when the CPU is active.
5252
Non-pause mode requires periodic feeding to avoid a timeout, impacting power consumption as the CPU must wake up periodically.
5353

54-
To enable pause mode while CPU is in the idle state, set the :kconfig:option:`CONFIG_NCS_SAMPLE_MATTER_WATCHDOG_PAUSE_IN_SLEEP` Kconfig option to ``y``.
55-
To enable pause mode during debugging, set the :kconfig:option:`CONFIG_NCS_SAMPLE_MATTER_WATCHDOG_PAUSE_ON_DEBUG` Kconfig option to ``y``.
54+
To enable pause mode while CPU is in the idle state, set the :ref:`CONFIG_NCS_SAMPLE_MATTER_WATCHDOG_PAUSE_IN_SLEEP<CONFIG_NCS_SAMPLE_MATTER_WATCHDOG_PAUSE_IN_SLEEP>` Kconfig option to ``y``.
55+
To enable pause mode during debugging, set the :ref:`CONFIG_NCS_SAMPLE_MATTER_WATCHDOG_PAUSE_ON_DEBUG<CONFIG_NCS_SAMPLE_MATTER_WATCHDOG_PAUSE_ON_DEBUG>` Kconfig option to ``y``.
5656

5757
By default, Matter samples enable the pause mode only during debugging.
5858

@@ -273,7 +273,7 @@ Default Matter watchdog implementation
273273

274274
In the Matter common module, there is a default implementation of two watchdog sources that are automatically created for the release build version of a Matter sample.
275275
One source is dedicated to monitoring the Main thread, and the other is dedicated to monitoring the Matter thread.
276-
If at least one of the threads is blocked for a longer time than the value specified in the :kconfig:option:`CONFIG_NCS_SAMPLE_MATTER_WATCHDOG_TIMEOUT` Kconfig option, a reboot will occur.
276+
If at least one of the threads is blocked for a longer time than the value specified in the :ref:`CONFIG_NCS_SAMPLE_MATTER_WATCHDOG_TIMEOUT<CONFIG_NCS_SAMPLE_MATTER_WATCHDOG_TIMEOUT>` Kconfig option, a reboot will occur.
277277
The ``Nrf::Watchdog::Enable()``, and ``InstallSource(WatchdogSource &source)`` functions are called automatically.
278278

279-
To disable the default Matter watchdog implementation, set the :kconfig:option:`CONFIG_NCS_SAMPLE_MATTER_WATCHDOG_DEFAULT` Kconfig option to ``n``.
279+
To disable the default Matter watchdog implementation, set the :ref:`CONFIG_NCS_SAMPLE_MATTER_WATCHDOG_DEFAULT<CONFIG_NCS_SAMPLE_MATTER_WATCHDOG_DEFAULT>` Kconfig option to ``n``.

0 commit comments

Comments
 (0)