this is avaiable project
Fork of LoRaMacLib by
Diff: LoRaMac-board.h
- Revision:
- 10:66e623be7f8a
- Parent:
- 9:b3ddbad8c5e3
- Child:
- 11:29686c1ac910
--- a/LoRaMac-board.h Mon Nov 30 10:00:41 2015 +0000 +++ b/LoRaMac-board.h Thu Dec 03 09:03:28 2015 +0000 @@ -135,7 +135,7 @@ * Second reception window channel definition. */ // Channel = { Frequency [Hz], Datarate } -#define RX_WND_2_CHANNEL { 923300000, DR_2 } +#define RX_WND_2_CHANNEL { 923100000, DR_3 } /*! * LoRaMac maximum number of bands @@ -149,9 +149,16 @@ * LoRaMac default channels */ // Channel = { Frequency [Hz], { ( ( DrMax << 4 ) | DrMin ) }, Band } -#define LC1 { 902300000, { ( ( DR_5 << 4 ) | DR_0 ) }, 0 } -#define LC2 { 902500000, { ( ( DR_5 << 4 ) | DR_0 ) }, 0 } -#define LC3 { 902700000, { ( ( DR_5 << 4 ) | DR_0 ) }, 0 } +#define LC1 { 921500000, { ( ( DR_5 << 4 ) | DR_0 ) }, 0 } +#define LC2 { 921700000, { ( ( DR_5 << 4 ) | DR_0 ) }, 0 } +#define LC3 { 921900000, { ( ( DR_5 << 4 ) | DR_0 ) }, 0 } +//Added by pzheng 20151203 +#define LC4 { 922100000, { ( ( DR_5 << 4 ) | DR_0 ) }, 0 } +#define LC5 { 922300000, { ( ( DR_5 << 4 ) | DR_0 ) }, 0 } +#define LC6 { 922500000, { ( ( DR_5 << 4 ) | DR_0 ) }, 0 } +#define LC7 { 922700000, { ( ( DR_5 << 4 ) | DR_0 ) }, 0 } +#define LC8 { 922900000, { ( ( DR_5 << 4 ) | DR_0 ) }, 0 } +#define LC9 { 000000000, { ( ( DR_5 << 4 ) | DR_0 ) }, 0 } #elif defined( USE_BAND_433 ) @@ -183,6 +190,37 @@ #define LC8 { 434700000, { ( ( DR_5 << 4 ) | DR_0 ) }, 0 } #define LC9 { 000000000, { ( ( DR_5 << 4 ) | DR_0 ) }, 0 } +//Added by pzheng20151203 +#elif defined( USE_BAND_470 ) + +/*! + * Second reception window channel definition. + */ +// Channel = { Frequency [Hz], Datarate } +#define RX_WND_2_CHANNEL { 471300000, DR_3 } + +/*! + * LoRaMac maximum number of bands + */ +#define LORA_MAX_NB_BANDS 1 + +// Band = { DutyCycle, TxMaxPower, LastTxDoneTime, TimeOff } +#define BAND0 { 1, TX_POWER_14_DBM, 0, 0 } // 100.0 % + +/*! + * LoRaMac default channels + */ +// Channel = { Frequency [Hz], { ( ( DrMax << 4 ) | DrMin ) }, Band } +#define LC1 { 471500000, { ( ( DR_5 << 4 ) | DR_0 ) }, 0 } +#define LC2 { 471700000, { ( ( DR_5 << 4 ) | DR_0 ) }, 0 } +#define LC3 { 471900000, { ( ( DR_5 << 4 ) | DR_0 ) }, 0 } +#define LC4 { 472100000, { ( ( DR_5 << 4 ) | DR_0 ) }, 0 } +#define LC5 { 472300000, { ( ( DR_5 << 4 ) | DR_0 ) }, 0 } +#define LC6 { 472500000, { ( ( DR_5 << 4 ) | DR_0 ) }, 0 } +#define LC7 { 472700000, { ( ( DR_5 << 4 ) | DR_0 ) }, 0 } +#define LC8 { 472900000, { ( ( DR_5 << 4 ) | DR_0 ) }, 0 } +#define LC9 { 000000000, { ( ( DR_5 << 4 ) | DR_0 ) }, 0 } + #else #error "Please define a frequency band in the compiler options." #endif