Skip to content

Commit c3f4462

Browse files
committed
Merge tag 'template_v2.7.0' into merge/template_v2.7.0
Release template_v2.7.0
2 parents f95eeab + 77feae5 commit c3f4462

File tree

17 files changed

+48
-651
lines changed

17 files changed

+48
-651
lines changed

.github/workflows/build_zephyr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
BOARD:
1414
required: true
1515
type: string
16-
default: aludel_mini_v1_sparkfun9160_ns
16+
default: nrf9160dk/nrf9160/ns
1717
ARTIFACT:
1818
required: true
1919
type: boolean

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
matrix:
1919
ZEPHYR_SDK: [0.16.3]
20-
BOARD: ["nrf9160dk/nrf9160/ns","aludel_mini/nrf9160/ns","aludel_elixir/nrf9160/ns"]
20+
BOARD: ["nrf9160dk/nrf9160/ns","aludel_elixir/nrf9160/ns"]
2121

2222
uses: ./.github/workflows/build_zephyr.yml
2323
with:

CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,3 @@ target_sources(app PRIVATE src/app_settings.c)
1717
target_sources(app PRIVATE src/app_state.c)
1818
target_sources(app PRIVATE src/app_sensors.c)
1919
target_sources(app PRIVATE src/qm30vt2.c)
20-
21-
add_subdirectory_ifdef(CONFIG_ALUDEL_BATTERY_MONITOR src/battery_monitor)

Kconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,4 @@ config DNS_SERVER1
1313

1414
endif # DNS_RESOLVER
1515

16-
rsource "src/battery_monitor/Kconfig"
17-
1816
source "Kconfig.zephyr"

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ images](https://github.com/golioth/reference-design-modbus-vibration-monitor/rel
2222

2323
- Nordic nRF9160-DK
2424
- Golioth Aludel Elixir
25-
- Golioth Aludel Mini
2625

2726
### Additional Sensors/Components
2827

@@ -48,8 +47,8 @@ This app implements:
4847

4948
### Settings Service
5049

51-
The following settings should be set in the Device Settings menu of the
52-
[Golioth Console](https://console.golioth.io).
50+
The following settings should be set in [the Device Settings menu of the
51+
Golioth Console](https://console.golioth.io/device-settings).
5352

5453
- `LOOP_DELAY_S`
5554
Adjusts the delay between sensor readings. Set to an integer value
@@ -59,8 +58,8 @@ The following settings should be set in the Device Settings menu of the
5958

6059
### Remote Procedure Call (RPC) Service
6160

62-
The following RPCs can be initiated in the Remote Procedure Call menu of
63-
the [Golioth Console](https://console.golioth.io).
61+
The following RPCs can be initiated in the Remote Procedure Call tab of
62+
each device in the [Golioth Console](https://console.golioth.io).
6463

6564
- `get_network_info`
6665
Query and return network information.
@@ -327,7 +326,7 @@ these repositories from `west.yml` and remove the includes/function
327326
calls from the C code.
328327

329328
- [golioth-zephyr-boards](https://github.com/golioth/golioth-zephyr-boards)
330-
includes the board definitions for the Golioth Aludel-Mini
329+
includes the board definitions for the Golioth Aludel-Elixir
331330
- [libostentus](https://github.com/golioth/libostentus) is a helper
332331
library for controlling the Ostentus ePaper faceplate
333332
- [zephyr-network-info](https://github.com/golioth/zephyr-network-info)

boards/aludel_elixir_ns.conf

Lines changed: 2 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -2,50 +2,7 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
# General config
5-
CONFIG_HEAP_MEM_POOL_SIZE=4096
6-
CONFIG_NEWLIB_LIBC=y
7-
CONFIG_CBPRINTF_FP_SUPPORT=y
8-
9-
# Networking
10-
CONFIG_NET_SOCKETS_OFFLOAD=y
11-
CONFIG_NET_IPV6=y
12-
CONFIG_NET_IPV6_NBR_CACHE=n
13-
CONFIG_NET_IPV6_MLD=n
14-
15-
# Increase native TLS socket implementation, so that it is chosen instead of
16-
# offloaded nRF91 sockets
17-
CONFIG_NET_SOCKETS_TLS_PRIORITY=35
18-
19-
# Modem library
20-
CONFIG_NRF_MODEM_LIB=y
21-
22-
# LTE connectivity with network connection manager
23-
CONFIG_NRF_MODEM_LIB_NET_IF=y
24-
CONFIG_NRF_MODEM_LIB_NET_IF_AUTO_START=y
25-
CONFIG_NRF_MODEM_LIB_NET_IF_AUTO_CONNECT=n
26-
CONFIG_NET_CONNECTION_MANAGER=y
27-
CONFIG_NET_CONNECTION_MANAGER_MONITOR_STACK_SIZE=1024
28-
29-
# Add Logs for LTE Link Handler
30-
CONFIG_GOLIOTH_SAMPLE_NRF91_LTE_MONITOR=y
31-
32-
# Disable options y-selected by NCS for no good reason
33-
CONFIG_MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED=n
34-
CONFIG_MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED=n
35-
36-
# MbedTLS configuration to support p-384 curve. These options
37-
# enable using the MbedTLS built-in support for operations not
38-
# supported by the default nRF Oberon crypto backend
39-
CONFIG_NORDIC_SECURITY_BACKEND=n
40-
CONFIG_MBEDTLS_LEGACY_CRYPTO_C=y
41-
42-
# Add Network Info Support
43-
CONFIG_MODEM_INFO=y
44-
45-
# Generate MCUboot compatible images
46-
CONFIG_BOOTLOADER_MCUBOOT=y
47-
48-
# Use Golioth Ostentus Faceplate
49-
CONFIG_LIB_OSTENTUS=y
5+
CONFIG_ALUDEL_BATTERY_MONITOR=y
506

7+
# Turn on regulator to power click headers
518
CONFIG_REGULATOR=y

boards/nrf9160dk_nrf9160_ns.conf

Lines changed: 0 additions & 46 deletions
This file was deleted.

prj.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ CONFIG_ZVFS_OPEN_MAX=23
2525
CONFIG_LOG_PROCESS_THREAD_STACK_SIZE=1536
2626
CONFIG_MBEDTLS_ENABLE_HEAP=y
2727
CONFIG_MBEDTLS_HEAP_SIZE=10240
28-
CONFIG_MBEDTLS_SSL_IN_CONTENT_LEN=2048
29-
CONFIG_MBEDTLS_SSL_OUT_CONTENT_LEN=2048
3028
CONFIG_NETWORKING=y
3129
CONFIG_NET_IPV4=y
30+
CONFIG_COAP_EXTENDED_OPTIONS_LEN=y
31+
CONFIG_COAP_EXTENDED_OPTIONS_LEN_VALUE=39
3232

3333
# Application
3434
CONFIG_MAIN_STACK_SIZE=4096
@@ -55,7 +55,7 @@ CONFIG_GOLIOTH_SAMPLE_SETTINGS_SHELL=y
5555

5656
# Misc.
5757
CONFIG_JSON_LIBRARY=y
58-
CONFIG_NETWORK_INFO=y
58+
5959
# Longer response length needed for network info
6060
CONFIG_GOLIOTH_RPC_MAX_RESPONSE_LEN=512
6161
CONFIG_I2C=y
Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# Copyright (c) 2023-2024 Golioth, Inc.
2-
# SPDX-License-Identifier: Apache-2.0
3-
41
# General config
52
CONFIG_HEAP_MEM_POOL_SIZE=4096
63
CONFIG_NEWLIB_LIBC=y
@@ -26,8 +23,8 @@ CONFIG_NRF_MODEM_LIB_NET_IF_AUTO_CONNECT=n
2623
CONFIG_NET_CONNECTION_MANAGER=y
2724
CONFIG_NET_CONNECTION_MANAGER_MONITOR_STACK_SIZE=1024
2825

29-
# Add Logs for LTE Link Handler
30-
CONFIG_GOLIOTH_SAMPLE_NRF91_LTE_MONITOR=y
26+
# Increased sysworkq size, due to LTE connectivity
27+
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
3128

3229
# Disable options y-selected by NCS for no good reason
3330
CONFIG_MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED=n
@@ -39,11 +36,13 @@ CONFIG_MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED=n
3936
CONFIG_NORDIC_SECURITY_BACKEND=n
4037
CONFIG_MBEDTLS_LEGACY_CRYPTO_C=y
4138

42-
# Battery Support
43-
CONFIG_ALUDEL_BATTERY_MONITOR=y
44-
45-
# Add Network Info Support
46-
CONFIG_MODEM_INFO=y
39+
# Configure Golioth SDK dependencies (for NCS)
40+
CONFIG_MBEDTLS_SSL_IN_CONTENT_LEN=2048
41+
CONFIG_MBEDTLS_SSL_OUT_CONTENT_LEN=2048
4742

4843
# Generate MCUboot compatible images
4944
CONFIG_BOOTLOADER_MCUBOOT=y
45+
46+
# Add Network Info Support
47+
CONFIG_NETWORK_INFO=y
48+
CONFIG_MODEM_INFO=y

src/app_rpc.c

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ LOG_MODULE_REGISTER(app_rpc, LOG_LEVEL_DBG);
1212
#include <zephyr/logging/log_ctrl.h>
1313
#include <zephyr/sys/reboot.h>
1414

15+
#ifdef CONFIG_NETWORK_INFO
1516
#include <network_info.h>
17+
#endif
18+
1619
#include "app_rpc.h"
1720

1821
static void reboot_work_handler(struct k_work *work)
@@ -35,9 +38,9 @@ static enum golioth_rpc_status on_get_network_info(zcbor_state_t *request_params
3538
zcbor_state_t *response_detail_map,
3639
void *callback_arg)
3740
{
38-
network_info_add_to_map(response_detail_map);
39-
40-
return GOLIOTH_RPC_OK;
41+
COND_CODE_1(CONFIG_NETWORK_INFO,
42+
(network_info_add_to_map(response_detail_map); return GOLIOTH_RPC_OK;),
43+
(return GOLIOTH_RPC_UNIMPLEMENTED););
4144
}
4245

4346
static enum golioth_rpc_status on_set_log_level(zcbor_state_t *request_params_array,
@@ -86,8 +89,7 @@ static enum golioth_rpc_status on_set_log_level(zcbor_state_t *request_params_ar
8689
}
8790

8891
static enum golioth_rpc_status on_reboot(zcbor_state_t *request_params_array,
89-
zcbor_state_t *response_detail_map,
90-
void *callback_arg)
92+
zcbor_state_t *response_detail_map, void *callback_arg)
9193
{
9294
/* Use work queue so this RPC can return confirmation to Golioth */
9395
k_work_submit(&reboot_work);

0 commit comments

Comments
 (0)