1
Dependencies: X_NUCLEO_IKS01A1 LoRaWAN-lib SX1276Lib mbed
Diff: app/Config.h
- Revision:
- 7:730764a067dc
- Parent:
- 6:711a4e008afa
- Child:
- 8:88e8a1c7b88a
--- a/app/Config.h Tue Nov 28 08:20:09 2017 +0000 +++ b/app/Config.h Wed Dec 06 07:35:47 2017 +0000 @@ -35,45 +35,62 @@ #endif +#define USEC 1000000 // 1sec = 10^6 usec + /*! * Join requests trials periodicity. It is the time between RX1/RX2 and next TX */ -#define OVER_THE_AIR_ACTIVATION_DUTYCYCLE 5000000 // value in us +#define OVER_THE_AIR_ACTIVATION_DUTYCYCLE (5 * USEC) // value in us /*! * Defines the time in Hours after which dutycycle should change */ -#define APP_TX_DUTYCYCLE_HOUR 12 +#define APP_DELAY_HOUR 3 // value in hour /*! * Defines the application data transmission periodicity. It is the time between RX1/RX2 and next TX */ -#define APP_TX_DUTYCYCLE 36000000 // value in us +#define APP_TX_DUTYCYCLE (75 * USEC) // value in us /*! * Defines the randomness in the dutycycle. */ -#define APP_TX_DUTYCYCLE_RND 30000000 +#define APP_TX_DUTYCYCLE_RND (15 * USEC) // value in us /*! - * Defines the application data transmission periodicity after APP_TX_DUTYCYCLE_HOUR hours. It is the time between RX1/RX2 and next TX + * Defines the time in Hours after which dutycycle should change */ -#define APP_TX_DUTYCYCLE_1 18000000 // value in us +#define APP_TX_DUTYCYCLE_HOUR 12 // value in hour + +/*! + * Defines the application data transmission periodicity. It is the time between RX1/RX2 and next TX + */ +#define APP_TX_DUTYCYCLE_1 36 * USEC // value in us /*! * Defines the randomness in the dutycycle. */ -#define APP_TX_DUTYCYCLE_RND_1 12000000 +#define APP_TX_DUTYCYCLE_RND_1 30 * USEC // value in us + +/*! + * 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_2 18 * USEC // value in us + +/*! + * Defines the randomness in the dutycycle. + */ +#define APP_TX_DUTYCYCLE_RND_2 12 * USEC // value in us /*! * 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 +#define APP_TX_DUTYCYCLE_3 12 * USEC // value in us /*! * Defines the randomness in the dutycycle. */ -#define APP_TX_DUTYCYCLE_RND_2 6000000 +#define APP_TX_DUTYCYCLE_RND_3 6 * USEC // value in us /*!