Skip to content

Commit 955f73d

Browse files
kacperradoszewskinordic-hani
authored andcommitted
Update to the latest library
Signed-off-by: Kacper Radoszewski <kacper.radoszewski@nordicsemi.no>
1 parent 896f67d commit 955f73d

14 files changed

+408
-200
lines changed

lib/Kconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2018 Nordic Semiconductor ASA
2+
# Copyright (c) 2025 Nordic Semiconductor ASA
33
#
44
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
#

lib/bin/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2025 Nordic Semiconductor
2+
# Copyright (c) 2025 Nordic Semiconductor ASA
33
#
44
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
#

lib/bin/Kconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2019 Nordic Semiconductor
2+
# Copyright (c) 2025 Nordic Semiconductor ASA
33
#
44
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
#

lib/bin/sb_fota/CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#
2-
# Copyright (c) 2025 Nordic Semiconductor
2+
# Copyright (c) 2025 Nordic Semiconductor ASA
33
#
44
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
#
6+
67
if(CONFIG_FPU)
78
if(CONFIG_FP_HARDABI)
89
set(float_dir hard-float)

lib/bin/sb_fota/Kconfig

+25-27
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,32 @@
11
#
22
# Copyright (c) 2025 Nordic Semiconductor ASA
33
#
4-
# SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
#
66

77
menuconfig SB_FOTA
8-
bool "nRF91 modem FOTA library for Sofbank"
9-
select NRF_MODEM_LIB
10-
select AT_MONITOR
11-
select AT_PARSER
12-
select LTE_LINK_CONTROL
13-
select LTE_LC_PSM_MODULE
14-
select LTE_LC_EDRX_MODULE
15-
select MODEM_JWT
16-
select MODEM_INFO
17-
select REBOOT
18-
select SETTINGS
19-
select NVS
20-
select HTTP_CLIENT
21-
select DOWNLOAD_CLIENT
22-
select FOTA_DOWNLOAD
23-
select DFU_TARGET
24-
select PDN
8+
bool "nRF91 modem FOTA library for SoftBank"
9+
depends on AT_MONITOR
10+
depends on AT_PARSER
11+
depends on FOTA_DOWNLOAD
12+
depends on HTTP_CLIENT
13+
depends on JSON_LIBRARY
14+
depends on MODEM_JWT
15+
depends on MODEM_INFO
16+
depends on NETWORKING
17+
depends on NET_SOCKETS
18+
depends on NET_SOCKETS_OFFLOAD
19+
depends on NRF_MODEM_LIB
20+
depends on PDN
21+
depends on PICOLIBC || NEWLIB_LIBC || EXTERNAL_LIBC
2522

2623
if SB_FOTA
2724

2825
config SB_FOTA_TLS_SECURITY_TAG
2926
int "Security tag for TLS"
3027
default 50
3128
help
32-
Security tag to be used for the server TLS connections.
29+
Security tag to be used for TLS connections with the servers.
3330

3431
config SB_FOTA_JWT_SECURITY_TAG
3532
int "Security tag for JWT"
@@ -38,15 +35,15 @@ config SB_FOTA_JWT_SECURITY_TAG
3835
Security tag to be used for signing JWT tokens.
3936

4037
config SB_FOTA_AUTOINIT
41-
bool "Initialize carrier FOTA automatically"
38+
bool "Initialize the SoftBank FOTA library automatically"
4239
help
43-
Initialize carrier FOTA library automatically after the modem library is initialized.
40+
Initialize the SoftBank FOTA library automatically after the modem library is initialized.
4441

4542
choice SB_FOTA_CLIENT_ID
46-
bool "Client ID to be used"
43+
prompt "Client ID format"
4744
default SB_FOTA_ID_UUID
4845
help
49-
Which Client identifier is going to be used for nRF Cloud.
46+
Select the Client identifier format to be used to communicate with nRF Cloud.
5047

5148
config SB_FOTA_ID_UUID
5249
bool "Device UUID"
@@ -57,12 +54,13 @@ config SB_FOTA_ID_IMEI
5754
endchoice
5855

5956
config SB_FOTA_ID_PREFIX
60-
string "Prefix to append on client ID"
57+
string "Prefix to be added to the Client ID"
6158
default ""
6259
help
63-
This prefix+client_id is used for nrfCloud to identify the device. Same identity should
64-
be used on provisioning. Prefix is only appended on IMEI or UUID. Not appended on
65-
client ID changed on runtime API.
60+
Prefix to be added to the Client ID in communications with nRF Cloud. This combination is
61+
used to identify the device, therefore the same identity must be used during provisioning.
62+
This prefix is only added if either the IMEI or the UUID format is used. This
63+
configuration will be ignored if the Client ID is changed at runtime.
6664

6765
config SB_FOTA_LOG
6866
bool "Link binary with logs"

lib/bin/sb_fota/include/sb_fota.h

+27-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Copyright (c) 2025 Nordic Semiconductor ASA
33
*
4-
* SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

77
/**
@@ -21,7 +21,6 @@ extern "C" {
2121

2222
/**
2323
* @brief SoftBank FOTA application events.
24-
*
2524
*/
2625
enum sb_fota_event {
2726
/** FOTA client starts networking.
@@ -65,6 +64,32 @@ typedef void (*sb_fota_callback_t)(enum sb_fota_event event);
6564
*/
6665
int sb_fota_init(sb_fota_callback_t callback);
6766

67+
/**
68+
* @brief SoftBank FOTA modem functional modes.
69+
*
70+
* Used to pass on the modem functional mode in @ref sb_fota_on_modem_cfun().
71+
* @{
72+
*/
73+
/** Minimum functionality mode. */
74+
#define SB_FOTA_MODEM_MODE_POWER_OFF 0
75+
/** Any valid functionality mode other than @c SB_FOTA_MODEM_MODE_POWER_OFF. */
76+
#define SB_FOTA_MODEM_MODE_POWER_ON 1
77+
/** @} */
78+
79+
/**
80+
* SoftBank FOTA library modem functional mode handler.
81+
*
82+
* @param[in] mode Modem functional mode.
83+
*
84+
* This function must be called whenever modem functional mode is changed.
85+
*
86+
* @note This is already implemented in `sb_fota_os.c`.
87+
*
88+
* @retval 0 If the operation was successful.
89+
* Otherwise, a (negative) error code is returned.
90+
*/
91+
int sb_fota_on_modem_cfun(int mode);
92+
6893
/**
6994
* @brief Sets current time for the SoftBank FOTA client and modem clock.
7095
*

0 commit comments

Comments
 (0)