Skip to content

Commit

Permalink
[FANET] update of LoRa plans for IN, IL, KR and NZ world regions
Browse files Browse the repository at this point in the history
  • Loading branch information
lyusupov committed Sep 23, 2024
1 parent 68478c0 commit a5f3705
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 6 deletions.
4 changes: 2 additions & 2 deletions software/firmware/source/SoftRF/src/driver/GNSS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const char *GNSS_name[] = {
* Goke: GGA - 185+, RMC - 265+
* Neo6: GGA - 138 , RMC - 67
* MT33: GGA - 48 , RMC - 175
* UC65: GGA - 43 , RMC - 37
* UC65: GGA - 35 , RMC - 29
* AG33: GGA - TBD , RMC - TBD
*/

Expand Down Expand Up @@ -1146,7 +1146,7 @@ const gnss_chip_ops_t uc65_ops = {
uc65_setup,
uc65_loop,
uc65_fini,
43 /* GGA */, 37 /* RMC */
35 /* GGA */, 29 /* RMC */
};
#endif /* EXCLUDE_GNSS_UC65 */

Expand Down
3 changes: 3 additions & 0 deletions software/firmware/source/SoftRF/src/driver/radio/almic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,10 @@ static void sx12xx_setvars()

if (RF_FreqPlan.Bandwidth == RF_RX_BANDWIDTH_SS_250KHZ) {
LMIC.rps = setBw(LMIC.rps, BW500);
} else if (RF_FreqPlan.Bandwidth == RF_RX_BANDWIDTH_SS_75KHZ) {
LMIC.rps = setBw(LMIC.rps, BW125);
}

#if defined(ENABLE_PROL)
} else if (LMIC.protocol && LMIC.protocol->type == RF_PROTOCOL_APRS) {
LMIC.rps = setCr(LMIC.rps, CR_4_5);
Expand Down
4 changes: 4 additions & 0 deletions software/firmware/source/SoftRF/src/driver/radio/radiolib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,9 @@ static void lr11xx_setup()
case RF_RX_BANDWIDTH_SS_250KHZ:
bw = 500.0; /* BW_500 */
break;
case RF_RX_BANDWIDTH_SS_75KHZ:
bw = 125.0; /* BW_125 */
break;
case RF_RX_BANDWIDTH_SS_125KHZ:
default:
bw = 250.0; /* BW_250 */
Expand Down Expand Up @@ -490,6 +493,7 @@ static void lr11xx_setup()
case RF_RX_BANDWIDTH_SS_50KHZ:
bw = 117.3;
break;
case RF_RX_BANDWIDTH_SS_75KHZ:
case RF_RX_BANDWIDTH_SS_100KHZ:
bw = 234.3;
break;
Expand Down
14 changes: 10 additions & 4 deletions software/firmware/source/libraries/OGN/freqplan.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,21 @@ class FreqPlan
{
case RF_BAND_US:
case RF_BAND_AU:
case RF_BAND_NZ: /* ? */
case RF_BAND_CN: /* ? */
case RF_BAND_IL: /* TBD */
case RF_BAND_KR: /* TBD */
{ BaseFreq=920800000; Bandwidth = RF_RX_BANDWIDTH_SS_250KHZ; } // BW500
break;
case RF_BAND_IN:
{ BaseFreq=866200000; Bandwidth = RF_RX_BANDWIDTH_SS_125KHZ; } // BW250
break;
case RF_BAND_IL:
{ BaseFreq=918500000; Bandwidth = RF_RX_BANDWIDTH_SS_75KHZ; } // BW125
break;
case RF_BAND_KR:
{ BaseFreq=923200000; Bandwidth = RF_RX_BANDWIDTH_SS_75KHZ; } // BW125
break;
case RF_BAND_EU:
case RF_BAND_RU:
case RF_BAND_IN:
case RF_BAND_NZ: /* ? */
default:
{ BaseFreq=868200000; Bandwidth = RF_RX_BANDWIDTH_SS_125KHZ; } // BW250
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ enum
enum
{
RF_RX_BANDWIDTH_SS_50KHZ,
RF_RX_BANDWIDTH_SS_75KHZ,
RF_RX_BANDWIDTH_SS_100KHZ,
RF_RX_BANDWIDTH_SS_125KHZ,
RF_RX_BANDWIDTH_SS_166KHZ,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ enum
enum
{
RF_RX_BANDWIDTH_SS_50KHZ,
RF_RX_BANDWIDTH_SS_75KHZ,
RF_RX_BANDWIDTH_SS_100KHZ,
RF_RX_BANDWIDTH_SS_125KHZ,
RF_RX_BANDWIDTH_SS_166KHZ,
Expand Down

0 comments on commit a5f3705

Please sign in to comment.