From b52e08eb97f0dfe4540a7b3716b535606c74d6fd Mon Sep 17 00:00:00 2001 From: GUVWAF Date: Wed, 2 Oct 2024 20:29:12 +0200 Subject: [PATCH] Add duplicate received, relayed and canceled relayed packets to LocalStats --- meshtastic/telemetry.proto | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/meshtastic/telemetry.proto b/meshtastic/telemetry.proto index 799708e3..c4d7ea50 100644 --- a/meshtastic/telemetry.proto +++ b/meshtastic/telemetry.proto @@ -253,7 +253,7 @@ message LocalStats { uint32 num_packets_tx = 4; /* - * Number of packets received good + * Number of packets received (both good and bad) */ uint32 num_packets_rx = 5; @@ -271,6 +271,23 @@ message LocalStats { * Number of nodes total */ uint32 num_total_nodes = 8; + + /* + * Number of received packets that were duplicates (due to multiple nodes relaying). + * If this number is high, there are nodes in the mesh relaying packets when it's unnecessary, for example due to the ROUTER/REPEATER role. + */ + uint32 num_rx_dupe = 9; + + /* + * Number of packets we transmitted that were a relay for others (not originating from ourselves). + */ + uint32 num_tx_relay = 10; + + /* + * Number of times we canceled a packet to be relayed, because someone else did it before us. + * This will always be zero for ROUTERs/REPEATERs. If this number is high, some other node(s) is/are relaying faster than you. + */ + uint32 num_tx_relay_canceled = 11; } /*