zephyr/subsys/lorawan/services/Kconfig
Martin Jäger 3b9ba15096 lorawan: services: add Application Layer Clock Synchronization
This service allows to synchronize the clock with the application
server.

Synchronization requests are initiated by the device in a regular
interval, configurable via Kconfig.

The implementation only supports TS003-2.0.0, as the previous revision
TS003-1.0.0 requested to temporarily disable ADR and and set nb_trans
to 1. This causes issues on the server side and is not recommended
anymore.

Signed-off-by: Martin Jäger <martin@libre.solar>
2023-01-23 10:05:49 +00:00

57 lines
1.5 KiB
Text

# LoRaWAN Services configuration
#
# Copyright (c) 2022 Martin Jäger <martin@libre.solar>
# Copyright (c) 2022 tado GmbH
#
# SPDX-License-Identifier: Apache-2.0
menuconfig LORAWAN_SERVICES
bool "LoRaWAN Services backend"
depends on LORAWAN
select ENTROPY_GENERATOR
help
Enables the LoRaWAN background services, e.g. used for
firmware-upgrade over the air (FUOTA).
The services use a dedicated thread and a work queue.
if LORAWAN_SERVICES
module = LORAWAN_SERVICES
module-str = lorawan_services
source "subsys/logging/Kconfig.template.log_config"
config LORAWAN_SERVICES_THREAD_STACK_SIZE
int "Services thread stack size"
default 2048
help
Stack size of thread running LoRaWAN background services.
config LORAWAN_SERVICES_THREAD_PRIORITY
int "Services thread priority"
default 2
help
Priority of the thread running LoRaWAN background services.
config LORAWAN_APP_CLOCK_SYNC
bool "Application Layer Clock Synchronization"
help
Enables the LoRaWAN Application Layer Clock Synchronization service
according to LoRa Alliance TS003-2.0.0.
The service uses the default port 202.
config LORAWAN_APP_CLOCK_SYNC_PERIODICITY
int "Application Layer Clock Synchronization periodicity"
depends on LORAWAN_APP_CLOCK_SYNC
range 128 4194304
default 86400
help
Initial setting for clock synchronization periodicity in seconds.
The value can be updated remotely by the application server within a
range from 128 (0x80) to 4194304 (0x400000).
Default setting: 24h.
endif # LORAWAN_SERVICES