Skip to content

Commit aa6cdaa

Browse files
author
Rafal Miecznik
committed
CI/CD: Synchronize ncs-aliro@9ef50ce78f21 and ncs-door-lock-app
Source commit ID: @9ef50ce78f21 sync-ncs-aliro-9ef50ce78f21 Signed-off-by: Rafal Miecznik <rafal.miecznik@nordicsemi.com>
1 parent 3895f19 commit aa6cdaa

103 files changed

Lines changed: 35432 additions & 22554 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

app/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ project(door-lock-app)
1212
file(GLOB app_sources CONFIGURE_DEPENDS src/*.cpp)
1313

1414
add_subdirectory(src/platform)
15+
add_subdirectory(src/storage)
1516

1617
if (CONFIG_ACCESS_MANAGER_IMPLEMENTATION_DEFAULT)
1718
add_subdirectory(src/access_manager_impl_default)
@@ -21,4 +22,8 @@ else()
2122
message(FATAL_ERROR "No access manager implementation selected")
2223
endif()
2324

25+
if(CONFIG_DOOR_LOCK_CLI)
26+
add_subdirectory(src/cli)
27+
endif(CONFIG_DOOR_LOCK_CLI)
28+
2429
target_sources(app PRIVATE ${app_sources})

app/Kconfig

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,23 @@ endchoice
3737
if ACCESS_MANAGER_IMPLEMENTATION_DEFAULT
3838
rsource "src/access_manager_impl_default/Kconfig"
3939
endif
40+
41+
config DOOR_LOCK_CLI
42+
bool "Door Lock CLI support"
43+
default y
44+
select SHELL
45+
select REBOOT
46+
help
47+
Enable support for Door Lock CLI.
48+
49+
config DOOR_LOCK_PRINT_READER_GROUP_IDENTIFIER
50+
bool "Print reader group identifier that should be provisioned into the User Device"
51+
default y
52+
help
53+
Enable printing of the reader group identifier that should be provisioned into the User Device.
54+
55+
config DOOR_LOCK_USE_TEST_READER_IDENTIFIER
56+
bool "Use test reader identifier"
57+
default y
58+
help
59+
Initialize the reader Group Identifier and Group Sub Identifier to test values.

app/boards/nrf54l15dk_nrf54l15_cpuapp.overlay

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,19 @@
66

77
/{
88
/* Disable buttons to avoid collision with interrupt and SCK pins for NFC tag reader. */
9-
/delete-node/ buttons;
9+
buttons {
10+
/delete-node/ button_0;
11+
/delete-node/ button_1;
12+
/delete-node/ button_2;
13+
/delete-node/ button_3;
14+
};
1015

1116
aliases {
1217
/delete-property/ sw0;
1318
/delete-property/ sw1;
1419
/delete-property/ sw2;
1520
/delete-property/ sw3;
21+
/delete-property/ mcuboot-button0;
1622
};
1723
};
1824

app/src/access_manager_impl_default/access_manager_impl.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,13 @@ AliroError AccessManagerImpl::_AddPublicKey(const CryptoTypes::PublicKey &public
8282

8383
// Check if storage is full
8484
VerifyOrReturnStatus(mStoredKeyCount < kMaxStoredKeys, ALIRO_NO_MEMORY,
85-
LOG_WRN("Cannot add public key - storage is full (%zu/%zu)", mStoredKeyCount,
85+
LOG_WRN("Cannot add public key - storage is full (%u/%u)", mStoredKeyCount,
8686
kMaxStoredKeys));
8787
// Add the key to storage
8888
mStoredKeys[mStoredKeyCount] = publicKey;
8989
mStoredKeyCount++;
9090

91-
LOG_INF("Added public key to storage. Total keys: %zu", mStoredKeyCount);
91+
LOG_INF("Added public key to storage. Total keys: %u", mStoredKeyCount);
9292

9393
return ALIRO_NO_ERROR;
9494
}
@@ -105,7 +105,7 @@ AliroError AccessManagerImpl::_RemovePublicKey(const CryptoTypes::PublicKey &pub
105105
mStoredKeys[i] = mStoredKeys[mStoredKeyCount - 1];
106106
}
107107
mStoredKeyCount--;
108-
LOG_INF("Removed public key from storage. Total keys: %zu", mStoredKeyCount);
108+
LOG_INF("Removed public key from storage. Total keys: %u", mStoredKeyCount);
109109
return ALIRO_NO_ERROR;
110110
}
111111
}
@@ -146,7 +146,7 @@ uint32_t AccessManagerImpl::_GetMaxAllowedDistance()
146146

147147
void AccessManagerImpl::_HandleRangingSessionData(SessionContext sessionContext, const UwbRangingData &uwbData)
148148
{
149-
LOG_DBG("Handling ranging session data - length: %zu for session: %p", uwbData.mLength, sessionContext);
149+
LOG_DBG("Handling ranging session data - length: %u for session: %p", uwbData.mLength, sessionContext);
150150

151151
#ifdef CONFIG_ALIRO_BLE_TP
152152
const auto currentSessionInRange = AnalyzeUwbRangingData(uwbData);
@@ -204,7 +204,7 @@ void AccessManagerImpl::_HandleSessionTermination(SessionContext sessionContext)
204204

205205
bool AccessManagerImpl::VerifyPublicKey(const CryptoTypes::PublicKey &userPublicKey)
206206
{
207-
LOG_DBG("Verifying public key against %zu stored keys", mStoredKeyCount);
207+
LOG_DBG("Verifying public key against %u stored keys", mStoredKeyCount);
208208

209209
// Check if the user's public key matches any stored key
210210
VerifyOrReturnFalse(IsPublicKeyStored(userPublicKey), LOG_DBG("No matching public key found"));
@@ -236,7 +236,7 @@ void AccessManagerImpl::AccessDeniedAction() const
236236
#ifdef CONFIG_ALIRO_BLE_TP
237237
bool AccessManagerImpl::AnalyzeUwbRangingData(const UwbRangingData &uwbData)
238238
{
239-
LOG_DBG("Analyzing UWB ranging data - length: %zu", uwbData.mLength);
239+
LOG_DBG("Analyzing UWB ranging data - length: %u", uwbData.mLength);
240240

241241
// Check if UWB data is valid
242242
VerifyOrReturnFalse(uwbData.mData && uwbData.mLength, LOG_WRN("Invalid UWB ranging data"));

app/src/cli/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#
2+
# Copyright (c) 2025 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
file(GLOB src CONFIGURE_DEPENDS ./*.cpp)
8+
9+
zephyr_library_sources(${src})
10+
zephyr_include_directories(.)

0 commit comments

Comments
 (0)