Skip to content

Commit 7bfc495

Browse files
author
Unify Automated
committed
Release ver_1.1.1
1 parent 6ef95ba commit 7bfc495

File tree

4,743 files changed

+63993
-37834
lines changed

Some content is hidden

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

4,743 files changed

+63993
-37834
lines changed

.gitattributes

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
"zap_apack_mac.zip" filter=lfs diff=lfs merge=lfs -text
2-
"slc_cli_mac.zip" filter=lfs diff=lfs merge=lfs -text
3-
"zap-2022.1.10.dmg" filter=lfs diff=lfs merge=lfs -text
4-
"zap_apack_linux.zip" filter=lfs diff=lfs merge=lfs -text
51
"slc_cli_linux.zip" filter=lfs diff=lfs merge=lfs -text
2+
"zap_apack_linux.zip" filter=lfs diff=lfs merge=lfs -text
63
"zap_2022.1.10_amd64.deb" filter=lfs diff=lfs merge=lfs -text
4+
"zap_apack_mac.zip" filter=lfs diff=lfs merge=lfs -text
5+
"zap-2022.1.10.dmg" filter=lfs diff=lfs merge=lfs -text
6+
"slc_cli_mac.zip" filter=lfs diff=lfs merge=lfs -text

CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@ include(cmake/include/package.cmake)
2929
include(cmake/include/uic_helper.cmake)
3030

3131
enable_language(Rust)
32+
set(RUST_MIN_VERSION 1.58.1)
33+
if(CMAKE_Rust_COMPILER_VERSION VERSION_LESS RUST_MIN_VERSION)
34+
message(
35+
FATAL_ERROR
36+
"Rust version is ${CMAKE_Rust_COMPILER_VERSION}, expect at least ${RUST_MIN_VERSION},
37+
please update using 'rustup update' or similar,
38+
see https://www.rust-lang.org/tools/install documentation for further details."
39+
)
40+
endif()
3241
include(CMakeCargo)
3342
# ##############################################################################
3443
# Global includes

Cargo.lock

Lines changed: 41 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ members = [
66
"applications/image_provider",
77
"applications/nal",
88
"applications/upti_cap",
9+
"applications/upti_writer",
910
"applications/zpc/components/zwave_rust/rust_command_classes",
1011
"applications/zpc/components/zwave_rust/zwave_rust_proc_macros",
1112
"applications/zpc/components/zwave_rust/zwave_controller_sys",
@@ -30,7 +31,11 @@ members = [
3031
# release bins are required to package .deb files.
3132
[profile.release]
3233
debug-assertions = true
33-
overflow-checks = true
34-
debug = true
35-
incremental = true
36-
codegen-units = 256
34+
lto = true
35+
36+
[profile.RelWithDebInfo]
37+
inherits = "dev"
38+
opt-level = 3
39+
40+
[profile.dev]
41+
rpath = true

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ below shows the resource usage of the individual components measured on armhf re
279279
The SDK depends on the following debian packages:
280280

281281
- libedit2
282+
- libssl1.1
282283
- libsqlite3-0
283284
- libmosquitto1
284285
- libyaml-cpp0.6

applications/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,7 @@ endif()
5050
if (BUILD_UPTI_CAP MATCHES ON)
5151
add_subdirectory(upti_cap)
5252
endif()
53+
54+
if (BUILD_UPTI_WRITER MATCHES ON)
55+
add_subdirectory(upti_writer)
56+
endif()

applications/aox/applications/aoxpc/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ target_link_libraries(aoxpc
88
uic_log
99
uic_main
1010
ncp
11+
antenna_array
1112
aoa_angle
1213
aoa_utils
1314
aoa_parse

applications/aox/applications/aoxpc/aoxpc.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ sl_status_t aoxpc_fixt_setup(void)
6565
{
6666
process_start(&aoxpc_process, NULL);
6767
ncp_set_cb(sl_bt_on_event);
68-
aoa_cte_init();
6968
aox_locator_register_on_configuration_updated_callback(
7069
&aoxpc_configuration_handler_on_aox_locator_configuration_updated);
7170
return SL_STATUS_OK;
@@ -193,6 +192,8 @@ static void sl_bt_on_event(sl_bt_msg_t *evt)
193192
#ifdef AOA_ANGLE
194193
aoa_angle_config_t *config;
195194
aoa_angle_add_config(locator_unid, &config);
195+
// Share antenna array configuration with the CTE component.
196+
aoa_cte_config.antenna_array = &config->antenna_array;
196197
#endif // AOA_ANGLE
197198

198199
// Load the previous AoXLocator configuration from the attribute store
@@ -222,6 +223,10 @@ static void sl_bt_on_event(sl_bt_msg_t *evt)
222223
aoxpc_configuration_handler_on_aox_locator_configuration_updated();
223224
}
224225

226+
// Make sure that the attributes are published at startup even if
227+
// the database file is empty and no config file is provided.
228+
publish_aox_locator_attributes_to_mqtt();
229+
225230
// Assuming all dotdot MQTT callbacks are set, ask to publish our
226231
// supported commands for all clusters.
227232
sl_log_debug(LOG_TAG, "Publishing SupportedCommands for all clusters");

applications/aox/applications/aoxpc/aoxpc_configuration_handler.c

Lines changed: 31 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ static void aoxpc_configuration_handler_parse_config(const char *config)
100100
aoa_cte_type_t cte_mode;
101101
struct sl_rtl_loc_locator_item item;
102102
CoordinateAndOrientation position = {};
103+
uint8_t *antenna_switch_pattern = NULL;
104+
uint8_t antenna_switch_pattern_size = 0;
105+
enum sl_rtl_aox_array_type antenna_array_type;
103106

104107
#ifdef AOA_ANGLE
105108
float mask_min = 0;
@@ -154,33 +157,45 @@ static void aoxpc_configuration_handler_parse_config(const char *config)
154157
aox_mode_string[angle_config->aox_mode]);
155158
// TBD: AoX Mode is not supported in MQTT; do nothing?
156159
}
160+
#endif
157161

158-
sc = aoa_parse_antenna_mode(&angle_config->array_type, locator_unid);
162+
sc = aoa_parse_antenna_mode(&antenna_array_type, locator_unid);
159163
if (sc == SL_STATUS_OK) {
160164
sl_log_info(LOG_TAG,
161165
"Antenna mode set to: %s",
162-
antenna_type_string[angle_config->array_type]);
166+
antenna_type_string[antenna_array_type]);
163167
// TBD: Antenna Mode is not supported in MQTT; do nothing?
164-
}
168+
#ifdef AOA_ANGLE
169+
sc = antenna_array_init(&angle_config->antenna_array, antenna_array_type);
170+
if (sc != SL_STATUS_OK) {
171+
sl_log_error(LOG_TAG,
172+
"antenna_array_init failed for %s",
173+
antenna_type_string[antenna_array_type]);
174+
}
165175
#endif
176+
}
166177

167-
sc = aoa_parse_antenna_array(&aoa_cte_config.switching_pattern,
168-
&aoa_cte_config.switching_pattern_length,
178+
sc = aoa_parse_antenna_array(&antenna_switch_pattern,
179+
&antenna_switch_pattern_size,
169180
locator_unid);
170181

171182
if (sc == SL_STATUS_OK) {
172-
#ifdef AOA_ANGLE
173-
sc = aoa_parse_antenna_array(&angle_config->switching_pattern,
174-
&angle_config->switching_pattern_length,
175-
locator_unid);
176-
#endif
177-
if (sc == SL_STATUS_OK) {
178-
sl_log_info(LOG_TAG, "Antenna array set to: ");
179-
for (uint8_t i = 0; i < aoa_cte_config.switching_pattern_length; i++) {
180-
sl_log_info(LOG_TAG, "%d,", aoa_cte_config.switching_pattern[i]);
181-
}
182-
// TBD: Antenna array is not supported in MQTT; do nothing?
183+
sl_log_info(LOG_TAG, "Antenna array set to: ");
184+
for (uint8_t i = 0; i < antenna_switch_pattern_size; i++) {
185+
sl_log_info(LOG_TAG, "%d,", antenna_switch_pattern[i]);
183186
}
187+
// TBD: Antenna array is not supported in MQTT; do nothing?
188+
#ifdef ANGLE
189+
sc = antenna_array_set_pattern(&angle_config->antenna_array,
190+
antenna_switch_pattern,
191+
antenna_switch_pattern_size);
192+
if (sc != SL_STATUS_OK) {
193+
sl_log_error(LOG_TAG,
194+
"antenna_array_set_pattern failed with size %d",
195+
antenna_switch_pattern_size);
196+
}
197+
#endif
198+
free(antenna_switch_pattern);
184199
}
185200

186201
#ifdef AOA_ANGLE
@@ -201,16 +216,6 @@ static void aoxpc_configuration_handler_parse_config(const char *config)
201216
// TBD: Angle filtering weight is not supported in MQTT; do nothing?
202217
}
203218

204-
sc = aoa_parse_simple_config(&angle_config->period_samples,
205-
"periodSamples",
206-
locator_unid);
207-
if (sc == SL_STATUS_OK) {
208-
sl_log_info(LOG_TAG,
209-
"Sample period set to: %d",
210-
angle_config->period_samples);
211-
// TBD: Sample period is not supported in MQTT; do nothing?
212-
}
213-
214219
sc = aoa_parse_simple_config(&angle_config->angle_correction_timeout,
215220
"angleCorrectionTimeout",
216221
locator_unid);

applications/aox/applications/aoxpc/components/aox_locator_configuration/src/aox_locator_configuration.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
#define LOG_TAG "aox_locator_configuration"
2323

24-
// callback for the configuration udpates
24+
// callback for the configuration updates
2525
static aox_locator_on_configuration_updated_t configuration_update_callback
2626
= NULL;
2727

@@ -50,8 +50,6 @@ sl_status_t aox_locator_configuration_init()
5050
uic_mqtt_dotdot_set_aox_locator_write_attributes_callback(
5151
&aox_locator_write_attributes_callback);
5252

53-
publish_aox_locator_attributes_to_mqtt();
54-
5553
return SL_STATUS_OK;
5654
}
5755

0 commit comments

Comments
 (0)