things4u / ESP-1ch-Gateway-v5.0--OLD

Version 5 of Single Channel LoRa Gateway
MIT License
311 stars 162 forks source link

Fix Downlink Bandwidth Plan Frequency 915 #48

Open ricaun opened 5 years ago

ricaun commented 5 years ago

Hello,

Based on https://www.thethingsnetwork.org/docs/lorawan/frequency-plans.html

The Bandwidth from most Frequency 915 is BW500, so I make some shenanigans to fix. I just force downlink to change to BW500 when the frequency is 915, but I guess the right way is to create a LoraDown.bwTx and check the package datr.

👍

ricaun commented 5 years ago

The 915 plan has an uplink with BW125 and downlink with BW500, that's why I created the variable bw500_4_5 to use only on the txLoraModem function. Probably was not the best solution but fixed the downlink problem.