From ef20e6f9883cb518742788d1e18ad77d3ae77724 Mon Sep 17 00:00:00 2001 From: Darafei Praliaskouski Date: Tue, 28 Apr 2026 23:34:12 +0400 Subject: [PATCH] feat(config): add dynamic coding rate mode --- meshtastic/config.proto | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/meshtastic/config.proto b/meshtastic/config.proto index 1e7fa997..2257b9f0 100644 --- a/meshtastic/config.proto +++ b/meshtastic/config.proto @@ -1069,6 +1069,18 @@ message Config { NOT_PRESENT = 2; } + enum DynamicCodingRateMode { + /* + * Keep using the configured static coding rate. + */ + DCR_OFF = 0; + + /* + * Select LoRa coding rate per packet using local airtime policy. + */ + DCR_ON = 1; + } + /* * When enabled, the `modem_preset` fields will be adhered to, else the `bandwidth`/`spread_factor`/`coding_rate` * will be taked from their respective manually defined fields @@ -1199,6 +1211,12 @@ message Config { * Don't use radiolib to initialize the radio, instead listen for a serialHal connection */ bool serial_hal_only = 107; + + /* + * Dynamic Coding Rate policy mode. DCR_OFF keeps the configured static coding rate; DCR_ON applies + * per-packet CR selection. + */ + DynamicCodingRateMode dcr_mode = 108; } message BluetoothConfig {