From a9f7b8862450f17f99a7c14b256f6d1af9cb083b Mon Sep 17 00:00:00 2001 From: Akshai M Date: Fri, 11 Sep 2020 10:48:54 +0530 Subject: [PATCH] net/lora : Change defaults Change 'CONFIG_LORA_SF_DEFAULT' to 'SF7' and 'CONFIG_LORA_CR_DEFAULT' to 'LORA_CR_4_5' to allow shorter air times and make it easier to meet country specific regulations. --- sys/include/net/lora.h | 4 ++-- sys/net/lora/Kconfig | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/include/net/lora.h b/sys/include/net/lora.h index b0394abd9b..b4b142dc63 100644 --- a/sys/include/net/lora.h +++ b/sys/include/net/lora.h @@ -108,7 +108,7 @@ extern "C" { #endif #ifndef CONFIG_LORA_SF_DEFAULT -#define CONFIG_LORA_SF_DEFAULT (LORA_SF12) +#define CONFIG_LORA_SF_DEFAULT (LORA_SF7) #endif /** @brief Set Coding Rate (CR) @@ -134,7 +134,7 @@ extern "C" { #endif #ifndef CONFIG_LORA_CR_DEFAULT -#define CONFIG_LORA_CR_DEFAULT (LORA_CR_4_8) +#define CONFIG_LORA_CR_DEFAULT (LORA_CR_4_5) #endif /** @brief Set this to 1 to enable inverted I/Q mode diff --git a/sys/net/lora/Kconfig b/sys/net/lora/Kconfig index 506ebeec5c..3e873ca56c 100644 --- a/sys/net/lora/Kconfig +++ b/sys/net/lora/Kconfig @@ -53,7 +53,7 @@ endchoice choice bool "Spreading factor" - default LORA_SF_DEFAULT_SF12 + default LORA_SF_DEFAULT_SF7 help Configure Spreading Factor (SF). SF denotes the amount of spreading code applied to the original data signal. A larger SF increases the time on @@ -88,7 +88,7 @@ endchoice choice bool "Coding rate" - default LORA_CR_DEFAULT_CR_4_8 + default LORA_CR_DEFAULT_CR_4_5 help Configure Coding rate (CR). CR denotes the implementation of forward error correction (FEC). This may be done by encoding 4-bit data with