feat: auto retry text message send on max retransmit#4124
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4124 +/- ##
=====================================
Coverage 0.00% 0.00%
=====================================
Files 2 2
Lines 19 19
Branches 7 7
=====================================
Misses 19 19 ☔ View full report in Codecov by Sentry. |
|
Hi @mdecourcy could it be that this feature, when used in busy meshes where messages actually go out, but the 0-hop ACK is not received, causes harm? Just because no ACK comes in from the first node receiving a new packet does not mean that it is not in fact sent onto the mesh. See main body of #4354 Maybe adding a switch or settings toggle for this kind of behavior would be good, with default "no not auto retry". As the other poster suggests: Add the switch for user to have a choice autoretry or not. I do not agree with your comment "no switch for this .." something like automatically re-sending messages, even if shown a popup / overlay in the App, is so impactful and potentially harmful that it needs to be optional and toggle-able. A popup message, as it currently is, is good to have for informational purposes, but it does not take away the need to change the behavior. Side note: I really like your work on the MapLibre feature, keep up the good work I really want you and the Meshtastic core maintainers here to see my comment as something we are seeing in the wild ... auto auto-retry is not a good thing, the idea behind the feature is understandable, just add a toogle switch and default "false" for it, please, in the next app version. Alternatively, in the upper right of the message itself, or in the options panel, as a "send message again" button when message status has no ACK. @fifieldt @GUVWAF FYI this happens now in Android App 2.7.11, auto-retry sending a message, without user intenvention, when no ACK from the mesh is received. |
|
We are seeing a lot of duplicate messages after this was introduced. Giving the user the option to retransmit is okay, but automatically sending the same message up to 5 times with unique packet IDs was a really bad decision, in my opinion. Please reconsider. |
|
Yes, I do agree with @shalberd and @Jckf. If this is deemed necessary and useful, IMO it would be much better to increase the number of retransmissions in the firmware, where we already have 3 retransmissions to begin with. It then also calculates the appropriate delays based on packet length and LoRa settings rather than just 5 seconds, and it uses the same packet ID. |
Capped at 5 max retries, 5 seconds between each.
No settings for these as I don't want to add settings bloat or over complicate the settings menu