[Feature Request]: Granular Hop Limit control for Telemetry and Service packets
Platform
Cross-Platform
Description
Is your feature request related to a problem? Please describe.
Currently, Meshtastic uses a global hop_limit for almost all types of outgoing packets. This leads to unnecessary airtime congestion. For example, high-frequency environmental telemetry or non-critical status messages are broadcasted to the entire mesh (e.g., 3+ hops) even if they are only relevant to local nodes or the immediate neighborhood. This "one size fits all" approach wastes battery and bandwidth.
Describe the solution you'd like
I propose implementing a Granular Hop Limit Control system. This could be a new module (e.g., HopControlModule) or an extension of the Telemetry and Position modules that allows users to override the global hop_limit for specific packet types, up to the global maximum.
Suggested configurable parameters:
Telemetry Hop Limit: (e.g., set to 1 for local sensors).
NodeInfo Hop Limit: (e.g., set to 2 to limit discovery noise).
NeighborInfo Hop Limit: (Ideally set to 1, as it’s mostly useful for direct mapping).
Position Hop Limit: Ability to set different limits for "Smart Position" updates vs manual updates.
Describe alternatives you've considered
Lowering global hop limit: This isn't ideal because critical text messages (DM/SOS) still need maximum reach.
Using separate channels: Possible, but complicates network configuration and management for average users.
Technical Implementation Idea (Optional)
In MeshRouter.cpp, during the packet preparation phase, the router could check the portnum of the outgoing packet and apply an override from the module configuration:
if (p->decoded.portnum == PortNum_TELEMETRY_APP && config.hop_control.telemetry_override > 0) { p->hop_limit = std::min(config.hop_control.telemetry_override, global_hop_limit); }
Additional context This feature would be especially beneficial for large, dense networks where 10+ nodes sending telemetry every 15 minutes can quickly saturate the channel. By limiting "service" noise to 1-2 hops, we keep the "long-range" lanes open for actual communication.
P.S. This issue was created with the help of AI. My English is very bad.
Many people would love to see this feature, especially ones in large crowded meshes. However, every time this feature has been suggested in the past it has been rejected. There is a deeply rooted opposition to this with the current devs for some reason and it hasn't been made perfectly clear why.
Hello @Sashoid-x --
Your use of AI to clarify your request is a good use. Hurrah! I like the idea of a Granular Hop Limit Control system. Before we set the developers on a mission that will require changes to many portions of the Meshtastic system including not only the firmware, but the Android, IOS, Web and Python interfaces, let's look at the user requirements first. It may be that the problem can be solved using an essay in the documentation before coding is needed. This request should probably be reclassified as Meshtastic/Meshtastic.
Imagine a user or gourp of users whose primary interest is telemetry. You descirbe a situation "where 10+ nodes [are] sending telemetry every 15 minutes." Mesh saturation is a constraint.
Let's look at this group of users and their needs. How many human users are likely to be in a group? My guess is that the most likely population will be one, with several devices and perhaps four friends. This list is manageable. We'll start with your example of ten plus devices transmiting every fifteen minutes. Then we look to the future. Some telemetry group wants to support twenty devices, with a reporting period of six minutes. That's two hundred reports per hour. Now we're pushing network saturation.
How important is it that this sensor traffic be able to use the resources of the mesh generally? Are the telemetry users a long distance from the sensors? What is the geographic dispersion of the sensors? You propose a means to limit the hops of sensor traffic. You propose a default hop limit of one and a hard limit of two. For cases in which a sensor can transmit directly to its destination, the mesh is irrelevant. Do you envision a topology in which the destination is separated from the sensors and thre is no way to install a node under the user's control between the sensors and the destination? In this case, the sensor traffic is reliant on the mesh. Then Granular Hop Limit Control is a good idea.
How important is it that the user of sensor data be plugged into the general mesh? If you are interested in temperatures and pressures, how much are you interested in text messages from users outside the community reading the sensors? Sensor monitoring is a completely different use case than emergency communications. Sensor monitoring comprises a relatively fixed number of stationary sensors and a known group of human users. Emergency communications requires an ad hoc mesh of users whose positions are not fixed.
I suggest that a sensor network can be set up using facilities that Meshtastic already offers with no or little modification.
If you are willing to accept a subnet with no bridge to general meshtastic traffic and you are willing to install one or mode nodes between sensors and users, the solution is straightforward. It can described in an essay to go in the Meshtastic documentation. In the U.S. we share the ISM band with the electric companies who use LoRa for meter readings. They use both ZigBee (IEEE 802.15.4) and LoRa (a Semtech proprietary standard described in IEEE P1451.5.5), the same LoRa we do, but there is no intersection between Meshtastic and the electric company. Your sensor network can be segregated from general Meshtastic traffic in the same way.
Private sensor subnet
Use case
A sensor network that generates a high volume of traffic with a group of users who have agreed to share a common configuration differing from the Meshtastic defaults. The group has agreed to place nodes as required between the sensors and the most distant user.
Sensor configuration
Sensors are configured with a frequency slot other than 20. Sensors are configured with a private channel to allow narrowcasting of sensor date to interested users. Sensors don't send general traffic, so no public channel is required. There is no need to limit the number of hops to two.
User configuration
A user device is configured with the same frequency slot chosen for the sensors. A public channel (CH0) is configured, allowing normal text messages between uses in the group. A private channel (typically CH1) is set up to receive sensor data.
Users who desire to use the sensor data, not just read it, are recommended to Install Meshtasic within a Python envoronment. This wil allow reception of messages and subsesequent disassembly of those messages for use in other applications.
Advantages of this approach
This private subnet does not suffer from contention with other Meshatastic users.
Limitations of this approach
The subnet of interested users, relay nodes, and sensors is a closed community. It does not use the public Meshtastic mesh to relay sensor data.
If this approach works for you, I can write the essay including specific code examples to be added to the Meshtastic documentation.
Thank you for the thoughtful perspective! However, I believe that moving to a private subnet (different frequency slot) creates more problems than it solves for the general user. Here is why: Fragmentation vs. Unified Infrastructure: Moving sensors to another frequency effectively splits the network. A single-radio node cannot act as a repeater for both the "General Mesh" and a "Private Subnet" simultaneously. My goal is to use existing nodes to relay both text and telemetry, keeping the mesh strong and unified. Hardware Efficiency: Many of us use sensors on nodes that also serve as vital repeaters. My approach allows these nodes to remain "useful citizens" of the main mesh while keeping their specific telemetry data local. The "Airtime Budget" Argument: In developing networks where users often set hop_limit to 5-7 to reach distant areas, telemetry "noise" becomes a major issue. Adding just one byte to the telemetry configuration (an override value of 0-7) is a tiny cost for NVS compared to the massive airtime savings in the LoRa spectrum. Proposed Implementation: I suggest adding an "Override Hop Limit" field next to each telemetry item. Default value: 7 (or "Global"). Logic: The packet will use the lower of the two values: min(Global_Hop_Limit, Telemetry_Override). This way, it never exceeds the user's global safety settings but allows for intentional noise reduction. By implementing this, we avoid the need for additional hardware and complex frequency management, while giving power users the tools for "digital hygiene" in a shared mesh.
Hello @Sashoid-x --
Moving sensors to another frequency effectively splits the network. Exactly. It''s why network engineers create subnets. You said the problem was network contention. Sensors already enjoy priority.
"[Sensors] participate in routing messages for other devices, but they prioritize sending their own telemetry data to the network, even in the face of high channel utilization." When telemetry traffic increases, they are no longer useful citizens. You point out judiciously that sensor nodes may well serve as vital repeaters. In this case they are undoubtedly "useful citizens."
While we're on the topic of "useful citizens," we observe the many who read the documentation and still override the default number of hops. The plannning team developed the recommendation of three and limitation of seven after thoughtful analysis (we hope).
I don't know how deeply the hop limit is built into the system. If relatively shallow, then let us request a hop limit by role, e.g. sensor, by channel, and by message type. Why by message type? If you are sending a direct message, then let the nessage take seven hops. If it's a "Hello World" message sent by a user who hasn't bothered to generate a public key (UNK), then throttle that traffic. Three hops max. Why by channel? If you're sending a private channel message to members of your own group, seven hops is fine.
Meshtastic--in contrast to MeshCore--is designed as an ad-hoc mesh. That it should be a self-organizing network seems to be a design goal. It should be tolerant of new nodes, properly configured or not. In local situations. routers can be designated to solve local problems. As a general matter, the Meshtasic mesh network does not require high-level adminsitration.
I'm not taking this position (advocatus diaboli), but the argument against monkeying with the hop limit is this: Sensors already enjoy priority. The owner of a sensor is free to restrict the device's ability to relay messages of others. Then the sensor community is getting the benefit of everyone else's deployment and traffic priority without giving up anything--like battery life. Just because a user deploying sensors is likely a "power user" doesn't confer extra privileges. As you craft your argument, consider how other users will perceive it.
As I understand the typical use of a sensor, the only traffic originating on that node is data. When you deploy the node, you know approximately how many hops it needs to get to the device that is collecting the data. Then one would set the sensor hop limit to the right number, as little as one or two hops. That does not change how a sensor relays messages originating elsewhere. What benefit does a Granular Hop Limit for sensors deliver to the Meshtastic community as a whole?
That is a brilliant "advocatus diaboli" perspective! You asked the most important question: "What benefit does a Granular Hop Limit for sensors deliver to the community as a whole?" My answer is: It prevents local noise from becoming a global problem, acting as a crucial tool for "Spectrum Hygiene." Here is why this benefits the entire Meshtastic ecosystem, rather than just being a privilege for sensor owners: Altruism and Community Airtime: Lowering the hop limit on a sensor packet doesn't save the sender's battery (since transmitting the packet takes the same energy regardless of the integer in the header). However, it saves the community's airtime and the repeaters' batteries. Currently, a single "chatty" sensor node at a high elevation with 7 hops forces dozens of distant nodes to wake up, receive, and rebroadcast telemetry they don't need, degrading the noise floor for an entire city. Granular control turns "power users" into "responsible neighbors." The "High-Site" Dilemma: Many vital community repeaters are placed on mountains or tall buildings. We want these nodes to have a high global hop_limit to relay emergency texts across long distances. However, we don't need their battery voltage or barometric pressure to travel 100km. Granular control allows a node to be a Wide-Area Router for text, but a Local-Only Node for its own telemetry. Why Subnets/Different Frequencies Aren't Ideal: Moving sensors to a different frequency slot fragments the community. A single-radio node cannot act as a repeater for both the "General Mesh" and a "Private Subnet" simultaneously. Granular Hop Control allows us to stay on the same frequency (Unified Mesh), utilizing existing hardware fully while providing a "surgical tool" to reduce congestion. Why Limiting by "Role" Isn't Enough: You mentioned the idea of restricting hops by node Role (e.g., Sensor). While logical, in real-world scenarios, users rarely isolate devices strictly by role. Often, a node equipped with sensors also serves as a user's primary communication terminal when they are at home or near the installation. If we limit hops by Role, we force users to choose between being a "Sensor" or a "Communicator." Per-message-type hop limits solve this elegantly. It allows the same device to send a local-only telemetry update (1 hop) while still being able to send a long-range text message (3-7 hops). This isn't about giving sensors "extra privileges"; it's about giving the community the flexibility it needs to scale an ad-hoc mesh without suffocating it with service data.
The "High-Site" Dilemma: Many vital community repeaters are placed on mountains or tall buildings. We want these nodes to have a high global hop_limit to relay emergency texts across long distances.
That's not the way it works. Hop limit is set at the time the message is created, according to the limit on the originating device. At each relay, the message hops remaining is decremented by one. When a message arrives at a device with one remaining hop, the value is decrented to zero and forwarded. At the next device, the message is decoded if it's public, decoded if it's the intended recipient (unlikely), or discarded otherwise.
A "High Site" (solar node as most are described) receives messages, decrements the remaining hop count and retransmits it. The hop limit on that device means nothing, except in one edge case. In rare instaces, testing mostly, a solar node may generate a message when commanded by WiFi or Bluetooth. Otherwise the hop limit on a solar node is irrelevant.
Please note again that my English is very poor and I use AI for responses, which is why there was a misunderstanding in the previous message. I didn't mean a node on a mountain (a solar node), but a home node, located either on a roof or a high floor/balcony. In our networks, many people use these nodes for communication while at home. For example, I personally have four node locations, and when I'm there, I prefer to communicate from them. I need to monitor battery status on three of them, and two have environmental sensors installed. I don't think the entire network needs this data, but I don't want to abandon communication from them either. What I'm proposing isn't a panacea, but it is a very useful "fine-tuning" tool that will definitely come in handy. Moreover, it can be configured so that if it's not used, memory usage won't change, and when enabled, you can warn the user about an increase in memory usage, leaving the choice up to the user.
P.S. No AI was used in writing this message, only Google Translate.
No worries. I use Google Translate as well. Guess what? It includes AI as well. I'm not sure you can escape it these days.
Part of the essay on role choice should explicitly describe the social contract for Meshtastic users: You contribute a node and retransmission bandwidth in exchange for an an expectation that others will contribute the same. We expect of ourselves that no one will configure a 60 message per hour stream.
Fair point about social responsibility with respect to configuration for use in areas where there are other users. Please remember, however, that there are many very isolated places on the planet where there are few humans nevermind meshtastic or lora users where some of us leverage the tech for our own purposes in isolation, and this has historically (as intended) had the flexibility and versatility to be used for a variety of custom data collection and automation in these very rural (often isolated) areas, such as soil and weather monitoring and alerting. It seems increasingly that the evolution of both firmware and the android app is tending towards keeping overloaded urban meshes functioning within the context of many untrained users with poor configurations and unrealistic expectations. This focus, at the expense of freedom of configuration to meet custom use cases (in which many cases users have spent considerable effort and expense to deploy.) A balance needs to be struck. It seems that companies like RAK that produce the hardware meshtastic relies on are vested heavily in providing components as part of solutions to these needs, their commercial viability depends on the wide functionality needed to make the tech a key part of such solutions, and when we curtail that functionality (just as an example, by removing the ability to specify a coordinate system other than lat/long in both the firmware and the apps), we are shooting ourselves in the foot. I recognize this is just discussion and not part of this issue, but this perspective is disappearing from all thought and discourse so I just wanted to throw this out there IMHO. Thanks for all your efforts on this everyone
On May 3, 2026, at 13:28, Robert Hadow @.***> wrote:
[https://avatars.githubusercontent.com/u/13628518?s=20&v=4]roberthadow left a comment (meshtastic/firmware#10353)https://github.com/meshtastic/firmware/issues/10353#issuecomment-4367101102
No worries. I use Google Translate as well. Guess what? It includes AI as well. I'm not sure you can escape it these days.
Part of the essay on role choice should explicitly describe the social contract for Meshtastic users: You contribute a node and retransmission bandwidth in exchange for an an exectation that others will contribute the same. We expect of ourselves that no one will configure a 60 message per hour stream.
— Reply to this email directly, view it on GitHubhttps://github.com/meshtastic/firmware/issues/10353#issuecomment-4367101102, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BW3AWNU462I2E5PZKRUVWN34Y6TXJAVCNFSM6AAAAACYLXNJFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DGNRXGEYDCMJQGI. You are receiving this because you are subscribed to this thread.Message ID: @.***>
This issue has not had any comment or update in the last month. If it is still relevant, please post update comments. If no comments are made, this issue will be closed automagically in 7 days.
This issue has not had any comment since the last notice. It has been closed automatically. If this is incorrect, or the issue becomes relevant again, please request that it is reopened.