|Frequency resolution in nano Hz. More...|
|Preamble length, same for Tx and Rx. More...|
|Symbol timeout period in symbols. More...|
|Set channel bandwidth. More...|
|Set Spreading Factor (SF) More...|
|Set Coding Rate (CR) More...|
|Set this to 1 to enable inverted I/Q mode. More...|
|Set this to 1 to enable frequency hopping. More...|
|Frequency hopping period in symbols. More...|
|Set this to 1 to enable fixed header length mode (implicit header) More...|
|Enable/disable payload CRC, optional. More...|
|Configure payload length. More...|
|#define CONFIG_LORA_BW_DEFAULT (LORA_BW_125_KHZ)|
|#define CONFIG_LORA_CR_DEFAULT (LORA_CR_4_5)|
Set Coding Rate (CR)
Configure Coding Rate (CR). CR denotes the implementation of forward error correction (FEC). This may be done by encoding 4-bit data with redundancies into 5-bit, 6-bit, 7-bit, or 8-bit. Coding Rate (CR) value need to be adjusted according to conditions of the channel used for data transmission. If there are too many interferences in the channel, then it’s recommended to increase the value of CR. However, the rise in CR value will also increase the duration for the transmission. Refer to country specific air time usage regulations before varying the CR. To calculate air time refer https://www.loratools.nl/#/airtime .
Set this to 1 to enable fixed header length mode (implicit header)
If fixed header length mode ( implicit header mode) is enabled, PHY header (
PHDR) in LoRa frame is discarded. For more information, refer to the section "LoRa frame structure" in this publication
|#define CONFIG_LORA_FREQUENCY_HOPPING_PERIOD_DEFAULT (0U)|
|#define CONFIG_LORA_PAYLOAD_LENGTH_DEFAULT (0U)|
|#define CONFIG_LORA_PREAMBLE_LENGTH_DEFAULT (8U)|
Preamble length, same for Tx and Rx.
Configure preamble used in LoRa frame. Each LoRa frame begins with a preamble. It starts with a series of upchirps to cover the whole frequency band of the particular channel assigned. The last two upchirps encode the sync word. Sync word is used to differentiate between LoRa transmissions that use the same frequency bands. The sync word is followed by two and a quarter downchirps, for a duration of 2.25 symbols. The total duration of this preamble can be configured between 10.25 and 65,539.25 symbol hence the value can range from 8 to 65537.
|#define CONFIG_LORA_SF_DEFAULT (LORA_SF7)|
Set Spreading Factor (SF)
Configure Spreading Factor (SF). SF denotes the amount of spreading code applied to the original data signal. A larger SF increases the time on air, which increases energy consumption, reduces the data rate, and improves communication range. Each step up in spreading factor effectively doubles the time on air to transmit the same amount of data. Refer to country specific air time usage regulations before varying the SF. To calculate air time refer https://www.loratools.nl/#/airtime .
|#define CONFIG_LORA_SYMBOL_TIMEOUT_DEFAULT (10U)|