net/loramac: add redundancy configuration parameter
This commit is contained in:
parent
0e41f9e557
commit
02151deae4
@ -284,6 +284,21 @@ extern "C" {
|
||||
#define CONFIG_LORAMAC_DEFAULT_TX_MODE (LORAMAC_TX_CNF)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Default redundancy for unconfirmed uplink
|
||||
*
|
||||
* This corresponds to the number of unconfirmed uplink retransmissions when
|
||||
* using ADR. This configuration does not affect confirmed uplinks. By
|
||||
* default, uplinks are sent without retransmissions (this means, the device
|
||||
* sends only one uplink packet)
|
||||
*
|
||||
* @note This value MUST NOT be greater than 14, since the LinkADRCommand it's
|
||||
* already limited by a 4 bit value (therefore, 15 uplink transmissions)
|
||||
*/
|
||||
#ifndef CONFIG_LORAMAC_DEFAULT_REDUNDANCY
|
||||
#define CONFIG_LORAMAC_DEFAULT_REDUNDANCY (0U)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Enable/disable adaptive datarate state
|
||||
*
|
||||
|
||||
@ -524,4 +524,16 @@ config LORAMAC_DEFAULT_MIN_RX_SYMBOLS
|
||||
system timer. Refer SX1276_settings_for_LoRaWAN_v2p2.pdf
|
||||
(AN1200.24) from Semtech for more information.
|
||||
|
||||
config LORAMAC_DEFAULT_REDUNDANCY
|
||||
int "Default redundancy for unconfirmed uplinks"
|
||||
depends on USEMODULE_GNRC_LORAWAN
|
||||
default 0
|
||||
range 0 14
|
||||
help
|
||||
This corresponds to the number of unconfirmed
|
||||
uplink retransmissions when using ADR. This
|
||||
configuration does not affect confirmed uplinks.
|
||||
By default, uplinks are sent without retransmissions
|
||||
(this means, the device sends only one uplink packet)
|
||||
|
||||
endif # KCONFIG_USEMODULE_LORAWAN
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user