From e552943d2e0bc763e1e22b509a5bb318e84932c7 Mon Sep 17 00:00:00 2001 From: Farid Farhan <37871833+faridfarhan28@users.noreply.github.com> Date: Wed, 17 Feb 2021 22:56:08 +0700 Subject: [PATCH 1/3] Update settings.h --- src/settings.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/settings.h b/src/settings.h index c7ecccf..ddf5df7 100644 --- a/src/settings.h +++ b/src/settings.h @@ -8,6 +8,12 @@ #define SYMBOL_CODE ">" #define SYMBOL_OVERLAY "/" +// Freq and Mode Setup de YC1HVZ +#define FREQ_SET 433775E3 //set freq in KHz XxxXxxE3 6 digit. E3 is KHz +#define SF_SET 12 //Spreading Factor +#define CR_SET 5 //Coding Rate +#define BW_SET 125E3 //Bandwith -> E3 is khz + // SMART BEACONING PARAMETERS - 2020-11-22 DJ1AN #define SB_ACTIVE // uncomment to enable Smart Beaconing #define SB_TURN_MIN 25 // enter turn angle for smart direction depending beaconing (default=20) From 7bd004313a0aef43bcf4ae7e8090208e6d901bfb Mon Sep 17 00:00:00 2001 From: Farid Farhan <37871833+faridfarhan28@users.noreply.github.com> Date: Wed, 17 Feb 2021 22:58:42 +0700 Subject: [PATCH 2/3] Update LoRa_APRS_Tracker.cpp Update custom FREQ,SF,CR,BW intergrated in Setting.h --- src/LoRa_APRS_Tracker.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/LoRa_APRS_Tracker.cpp b/src/LoRa_APRS_Tracker.cpp index dbd7b7c..8b7d56d 100644 --- a/src/LoRa_APRS_Tracker.cpp +++ b/src/LoRa_APRS_Tracker.cpp @@ -245,7 +245,7 @@ void setup_lora() LoRa.setPins(LORA_CS, LORA_RST, LORA_IRQ); Serial.println("[INFO] Set LoRa pins!"); - long freq = 433775000; + long freq = FREQ_SET; Serial.print("[INFO] frequency: "); Serial.println(freq); if (!LoRa.begin(freq)) { @@ -253,9 +253,9 @@ void setup_lora() show_display("ERROR", "Starting LoRa failed!"); while (1); } - LoRa.setSpreadingFactor(12); - LoRa.setSignalBandwidth(125E3); - LoRa.setCodingRate4(5); + LoRa.setSpreadingFactor(SF_SET); + LoRa.setSignalBandwidth(BW_SET); + LoRa.setCodingRate4(CR_SET); LoRa.enableCrc(); LoRa.setTxPower(20); From 5c6c29ddb44733b6702f1ae3cef620b58ff0e2aa Mon Sep 17 00:00:00 2001 From: Farid Farhan <37871833+faridfarhan28@users.noreply.github.com> Date: Wed, 17 Feb 2021 23:01:24 +0700 Subject: [PATCH 3/3] Update settings.h Update custom manual setting FREQ, SF, CR, BW. --- src/settings.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/settings.h b/src/settings.h index ddf5df7..41a46f3 100644 --- a/src/settings.h +++ b/src/settings.h @@ -8,7 +8,7 @@ #define SYMBOL_CODE ">" #define SYMBOL_OVERLAY "/" -// Freq and Mode Setup de YC1HVZ +// Freq and Mode Setup - 2021-02-17 YC1HVZ #define FREQ_SET 433775E3 //set freq in KHz XxxXxxE3 6 digit. E3 is KHz #define SF_SET 12 //Spreading Factor #define CR_SET 5 //Coding Rate