summaryrefslogtreecommitdiff
path: root/recipes-connectivity/lora/lora-gateway
diff options
context:
space:
mode:
authorJason Reiss <jreiss@multitech.com>2017-02-21 15:24:33 -0600
committerJason Reiss <jreiss@multitech.com>2017-02-21 15:24:33 -0600
commita7cc6fd99a95df79caa76be20fef7a0b50edaae6 (patch)
treef16dac038845668958538abd3ce19148a5c14f55 /recipes-connectivity/lora/lora-gateway
parent8b227193f247dc0c7c310fd32099b3864d2806b0 (diff)
downloadmeta-mlinux-a7cc6fd99a95df79caa76be20fef7a0b50edaae6.tar.gz
meta-mlinux-a7cc6fd99a95df79caa76be20fef7a0b50edaae6.tar.bz2
meta-mlinux-a7cc6fd99a95df79caa76be20fef7a0b50edaae6.zip
lora: add semtech patch for gateway tx on SF12, remove old LNS recipes
Diffstat (limited to 'recipes-connectivity/lora/lora-gateway')
-rw-r--r--recipes-connectivity/lora/lora-gateway/lora-gateway-semtech-sf12.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/recipes-connectivity/lora/lora-gateway/lora-gateway-semtech-sf12.patch b/recipes-connectivity/lora/lora-gateway/lora-gateway-semtech-sf12.patch
new file mode 100644
index 0000000..7ea09d2
--- /dev/null
+++ b/recipes-connectivity/lora/lora-gateway/lora-gateway-semtech-sf12.patch
@@ -0,0 +1,16 @@
+t a/libloragw/src/loragw_hal.c b/libloragw/src/loragw_hal.c
+index 7271eac..e5770df 100644
+--- a/libloragw/src/loragw_hal.c
++++ b/libloragw/src/loragw_hal.c
+@@ -305,6 +305,11 @@ void lgw_constant_adjust(void) {
+ // lgw_reg_w(LGW_MBWSSF_TRACKING_INTEGRAL,0); /* default 0 */
+ // lgw_reg_w(LGW_MBWSSF_AGC_FREEZE_ON_DETECT,1); /* default 1 */
+
++ /* Improvement of reference clock frequency error tolerance */
++ lgw_reg_w(LGW_ADJUST_MODEM_START_OFFSET_RDX4, 1); /* default 0 */
++ lgw_reg_w(LGW_ADJUST_MODEM_START_OFFSET_SF12_RDX4, 4094); /* default 4092 */
++ lgw_reg_w(LGW_CORR_MAC_GAIN, 7); /* default 5 */
++
+ /* FSK datapath setup */
+ lgw_reg_w(LGW_FSK_RX_INVERT,1); /* default 0 */
+ lgw_reg_w(LGW_FSK_MODEM_INVERT_IQ,1); /* default 0 */