Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of LoRaWAN-lib by
Revision 11:0cbf861e53f8, committed 2017-11-16
- Comitter:
- cdebank
- Date:
- Thu Nov 16 14:26:17 2017 +0000
- Parent:
- 8:26002607de9c
- Commit message:
- initial commit single frequency
Changed in this revision
LoRaMac-definitions.h | Show annotated file Show diff for this revision Revisions of this file |
LoRaMac.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/LoRaMac-definitions.h Mon Apr 24 09:42:37 2017 +0000 +++ b/LoRaMac-definitions.h Thu Nov 16 14:26:17 2017 +0000 @@ -328,6 +328,7 @@ #define LORA_MAX_NB_BANDS 1 // Band = { DutyCycle, TxMaxPower, LastTxDoneTime, TimeOff } +//#define BAND0 { 100, TX_POWER_10_DBM, 0, 0 } // 1.0 % #define BAND0 { 100, TX_POWER_10_DBM, 0, 0 } // 1.0 % /*! @@ -463,14 +464,19 @@ * LoRaMac default channels */ // Channel = { Frequency [Hz], { ( ( DrMax << 4 ) | DrMin ) }, Band } -#define LC1 { 868100000, { ( ( DR_5 << 4 ) | DR_0 ) }, 1 } -#define LC2 { 868300000, { ( ( DR_5 << 4 ) | DR_0 ) }, 1 } -#define LC3 { 868500000, { ( ( DR_5 << 4 ) | DR_0 ) }, 1 } +//Commented out by Chris +//#define LC1 { 868100000, { ( ( DR_5 << 4 ) | DR_0 ) }, 1 } +//#define LC2 { 868300000, { ( ( DR_5 << 4 ) | DR_0 ) }, 1 } +//#define LC3 { 868500000, { ( ( DR_5 << 4 ) | DR_0 ) }, 1 } + +#define LC1 { 869400000, { ( ( DR_5 << 4 ) | DR_5 ) }, 3 } /*! * LoRaMac channels which are allowed for the join procedure */ -#define JOIN_CHANNELS ( uint16_t )( LC( 1 ) | LC( 2 ) | LC( 3 ) ) +//Commented out by Chris +//#define JOIN_CHANNELS ( uint16_t )( LC( 1 ) | LC( 2 ) | LC( 3 ) ) +#define JOIN_CHANNELS ( uint16_t )( LC( 1 )) #elif defined( USE_BAND_915 ) || defined( USE_BAND_915_HYBRID )
--- a/LoRaMac.cpp Mon Apr 24 09:42:37 2017 +0000 +++ b/LoRaMac.cpp Thu Nov 16 14:26:17 2017 +0000 @@ -405,8 +405,9 @@ static ChannelParams_t Channels[LORA_MAX_NB_CHANNELS] = { LC1, - LC2, - LC3, + //Commented out by Chris + //LC2, + //LC3, }; #elif defined( USE_BAND_915 ) || defined( USE_BAND_915_HYBRID ) /*! @@ -3391,7 +3392,9 @@ #elif defined( USE_BAND_780 ) DutyCycleOn = true; #elif defined( USE_BAND_868 ) - DutyCycleOn = true; + //Edited by Chris + //DutyCycleOn = true; + DutyCycleOn = false; #elif defined( USE_BAND_915 ) || defined( USE_BAND_915_HYBRID ) DutyCycleOn = false; #else