1
Dependencies: X_NUCLEO_IKS01A1 LoRaWAN-lib SX1276Lib mbed
Diff: app/Config.h
- Revision:
- 6:711a4e008afa
- Parent:
- 4:aad57e03bf82
- Child:
- 7:730764a067dc
--- a/app/Config.h Sun Nov 26 03:26:34 2017 +0000 +++ b/app/Config.h Tue Nov 28 08:20:09 2017 +0000 @@ -28,6 +28,11 @@ */ #define USE_BAND_915 +#else + +// define channel block: e.g. USE_BAND_915_HYBRID_BLOCK_A, USE_BAND_915_HYBRID_BLOCK_B ... USE_BAND_915_HYBRID_BLOCK_H etc. +#define USE_BAND_915_HYBRID_BLOCK_D + #endif /*! @@ -36,23 +41,54 @@ #define OVER_THE_AIR_ACTIVATION_DUTYCYCLE 5000000 // value in us /*! + * Defines the time in Hours after which dutycycle should change + */ +#define APP_TX_DUTYCYCLE_HOUR 12 + +/*! * Defines the application data transmission periodicity. It is the time between RX1/RX2 and next TX */ -#define APP_TX_DUTYCYCLE 5000000 // value in us +#define APP_TX_DUTYCYCLE 36000000 // value in us + +/*! + * Defines the randomness in the dutycycle. + */ +#define APP_TX_DUTYCYCLE_RND 30000000 + +/*! + * Defines the application data transmission periodicity after APP_TX_DUTYCYCLE_HOUR hours. It is the time between RX1/RX2 and next TX + */ +#define APP_TX_DUTYCYCLE_1 18000000 // value in us + +/*! + * Defines the randomness in the dutycycle. + */ +#define APP_TX_DUTYCYCLE_RND_1 12000000 + +/*! + * Defines the application data transmission periodicity after ( 2 x APP_TX_DUTYCYCLE_HOUR ) hours. It is the time between RX1/RX2 and next TX + */ +#define APP_TX_DUTYCYCLE_2 12000000 // value in us + +/*! + * Defines the randomness in the dutycycle. + */ +#define APP_TX_DUTYCYCLE_RND_2 6000000 + /*! * LoRaWAN confirmed messages * \remark 1 : Confirmed messages enabled. Must receive ACK from network server 0 : Confirmed messages disabled. */ -#define LORAWAN_CONFIRMED_MSG_ON 1 +#define LORAWAN_CONFIRMED_MSG_ON 0 /*! * LoRaWAN Adaptive Data Rate * * \remark Please note that when ADR is enabled the end-device uses default datarate of DR_0 */ -#define LORAWAN_ADR_ON 0 +#define LORAWAN_ADR_ON 1 /*! * Default mote datarate