Skip to content

Commit

Permalink
[nrfconnect] add support for SSED in window-app. (#18198)
Browse files Browse the repository at this point in the history
Signed-off-by: Marcin Kajor <[email protected]>
  • Loading branch information
markaj-nordic authored May 10, 2022
1 parent c766af7 commit 7111fd5
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/window-app/nrfconnect/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,8 @@ Semiconductor's kit you own.
### Building with low-power configuration

You can build the example using the low-power configuration, which enables
Thread's Sleepy End Device mode and disables debug features, such as the UART
console or the **LED 1** usage.
Thread's Synchronized Sleepy End Device mode and disables debug features, such
as the UART console or the **LED 1** usage.

To build for the low-power configuration, run the following command with
_build-target_ replaced with the build target name of the Nordic Semiconductor's
Expand Down
3 changes: 3 additions & 0 deletions examples/window-app/nrfconnect/main/AppTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,12 @@ CHIP_ERROR AppTask::Init()

#ifdef CONFIG_OPENTHREAD_MTD_SED
err = ConnectivityMgr().SetThreadDeviceType(ConnectivityManager::kThreadDeviceType_SleepyEndDevice);
#elif CONFIG_CHIP_THREAD_SSED
err = ConnectivityMgr().SetThreadDeviceType(ConnectivityManager::kThreadDeviceType_SynchronizedSleepyEndDevice);
#else
err = ConnectivityMgr().SetThreadDeviceType(ConnectivityManager::kThreadDeviceType_MinimalEndDevice);
#endif

if (err != CHIP_NO_ERROR)
{
LOG_ERR("ConnectivityMgr().SetThreadDeviceType() failed");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,9 @@
#define CHIP_DEVICE_CONFIG_USE_TEST_SETUP_PIN_CODE 20202021
#define CHIP_DEVICE_CONFIG_USE_TEST_SETUP_DISCRIMINATOR 0xF00

#define CHIP_DEVICE_CONFIG_SED_SLOW_POLLING_INTERVAL 2000_ms32
#ifdef CONFIG_CHIP_THREAD_SSED
#define CHIP_DEVICE_CONFIG_SED_ACTIVE_INTERVAL 1000_ms32
#define CHIP_DEVICE_CONFIG_SED_IDLE_INTERVAL 1000_ms32
#else
#define CHIP_DEVICE_CONFIG_SED_IDLE_INTERVAL 2000_ms32
#endif
3 changes: 3 additions & 0 deletions examples/window-app/nrfconnect/overlay-low_power.conf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
# Enable MTD Sleepy End Device
CONFIG_CHIP_ENABLE_SLEEPY_END_DEVICE_SUPPORT=y

# Enable Thread CSL to support Synchronized SED
CONFIG_CHIP_THREAD_SSED=y

# Disable UART console
CONFIG_SHELL=n
CONFIG_LOG=n
Expand Down

0 comments on commit 7111fd5

Please sign in to comment.