Skip to content

Commit

Permalink
Merge pull request Lora-net#750 from thingsconnected/pullreq14
Browse files Browse the repository at this point in the history
RegionEU868: added band 5 to split 0.1% duty cycle bands
  • Loading branch information
mluis1 authored Jun 13, 2019
2 parents bf9ab7e + a549d10 commit f6393c5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/mac/region/RegionEU868.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ static bool VerifyRfFreq( uint32_t freq, uint8_t *band )
}
else if( ( freq >= 868700000 ) && ( freq <= 869200000 ) )
{
*band = 2;
*band = 5;
}
else if( ( freq >= 869400000 ) && ( freq <= 869650000 ) )
{
Expand Down Expand Up @@ -377,6 +377,7 @@ void RegionEU868InitDefaults( InitDefaultsParams_t* params )
EU868_BAND2,
EU868_BAND3,
EU868_BAND4,
EU868_BAND5,
};

switch( params->Type )
Expand Down
8 changes: 7 additions & 1 deletion src/mac/region/RegionEU868.h
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@
/*!
* Maximum number of bands
*/
#define EU868_MAX_NB_BANDS 5
#define EU868_MAX_NB_BANDS 6

/*!
* Band 0 definition
Expand Down Expand Up @@ -261,6 +261,12 @@
*/
#define EU868_BAND4 { 100 , EU868_MAX_TX_POWER, 0, 0, 0 } // 1.0 %

/*!
* Band 5 definition
* Band = { DutyCycle, TxMaxPower, LastJoinTxDoneTime, LastTxDoneTime, TimeOff }
*/
#define EU868_BAND5 { 1000, EU868_MAX_TX_POWER, 0, 0, 0 } // 0.1 %

/*!
* LoRaMac default channel 1
* Channel = { Frequency [Hz], RX1 Frequency [Hz], { ( ( DrMax << 4 ) | DrMin ) }, Band }
Expand Down

0 comments on commit f6393c5

Please sign in to comment.