[Feature Request]: Please Enable More Frequent Device Metrics/Telemetry for Router Role Devices ONLY in Crowded Mesh
Platform
NRF52
Description
The improvements to Metrics/Telemetry broadcasting for busy meshes are great at reducing congestion.
However, it's also created a bit of an issue for busy mountain top Routers. Routers are by definition meant to be located high and clear of obstructions. This means they are very likely to see more than 40 nodes and also see the highest channel utilization in any given mesh.
This has created somewhat of an issue after upgrading my main router to 2.4.x. I am now seeing metrics updated maybe once every few days due to the exceptional viewshed it possesses which overlooks the entirety of the south Salish Sea from Vancouver down to Puget Sound. The channel util at the site was perpetually hovering around 50% based on my last on site visit. This has grown substantially since the unit was installed in March when it was reliably around 20%. Since then I have had a steady decline in frequency of updates corresponding with increase in channel utilization but the metrics were received more than often enough to be useful data. Upon upgrading to 2.4.0 a few weeks ago the updates have almost ceased entirely.
Routers mode devices are also remote and the metrics/telemetry are instrumental in preemptively spotting issues such as under charging and moisture ingress. Having multiple days pass between received telemetry information significantly hampers this ability.
My ask is that the frequency scaling for Metrics/Telemetry on Router mode ONLY nodes be altered in a future release. Perhaps an interval of every X hours regardless of number of online nodes and channel utilization? Perhaps 3 hours? In a low traffic mesh the current scaling could still be observed. Or simply allow the user specified interval to be observed if it is set to a value greater than 60 minutes?
Once again, this request is for Router mode nodes ONLY.
I've attached screenshots from my device and another user to illustrate the infrequency of useful telemetry reception.
Thank you!
My recommendation a few months ago on Discord was to have ROUTERS send telemetry (including an environmental packet) every 6 hours even when channel utilization is high.
Even at high channel utilization, you can still request the telemetry with the Python CLI command --request-telemetry. This is not (yet) in the phone apps, but technically it can.
Currently ROUTERs only send their telemetry every 12 hours because they are assumed to be a permanent install, either powered or with a good solar set-up. I'm not sure if making an exception for ROUTER would be a good idea, because it would be another incentive for people to use this role while they maybe shouldn't, especially if your mesh is already crowded.
Actually Routers should already be exempt from this scaling logic, so this might indeed be a bug rather than feature request. I'll have to do some digging, as the code in Default.cpp straightforward, but perhaps it's not picking up the value somehow.
@Deuteranomalous1 could you post a config dump of one of these routers (without sensitive information)?
Probably it's then just the high channel utilization that's causing it to not send it out: https://github.com/meshtastic/firmware/blob/efc27f205106f7caf7b1541b64770e98e8b40872/src/modules/Telemetry/DeviceTelemetry.cpp#L23
Probably it's then just the high channel utilization that's causing it to not send it out:
https://github.com/meshtastic/firmware/blob/efc27f205106f7caf7b1541b64770e98e8b40872/src/modules/Telemetry/DeviceTelemetry.cpp#L23
Good point. We might consider adding ROUTER role to that exclusion since it is more important to know if routers are healthy than client nodes on the mesh.
Yeah, I think that's fair. Then it will send it still up to 40% instead of 25% channel utilization.
Just don't document it as a feature for the ROUTER role ;)
@Deuteranomalous1 could you post a config dump of one of these routers (without sensitive information)?
Sorry its a 5-6 hour round trip hike this time of year but I can get it for you next trip if you still need it but it seems like its well in hand :)
Thanks guys!
Actually Routers should already be exempt from this scaling logic, so this might indeed be a bug rather than feature request. I'll have to do some digging, as the code in Default.cpp straightforward, but perhaps it's not picking up the value somehow.
What ever came of this? In our area we are seeing issues with Routers not reporting their Device Metrics / battery levels for numerous days (if your lucky).
Through some prior discussions on Discord I think I determined that the Router role should be broadcasting out this information once every 12 hours, however what I've read here makes me think this will only occur if its under a certain Channel Util % threshold. I've tried to find where that threshold is set in the code base but I'm not confident with reading this language.
Could someone confirm if the above assumption is correct and if so what the current % threshold is set to?
Also, if the Router role is set to broadcast so infrequently (12hrs) would it not make more sense to bypass Channel Util checks? One packet every 12 hours isn't going to exacerbate or cause congestion issues.
Routers are now considered "impolite", meaning they will send their DeviceTelemetry up until 40% channel utilization instead of 25%: https://github.com/meshtastic/firmware/blob/9afadde2f4ef8c59c80c7926d1c77153f6f9ca33/src/modules/Telemetry/DeviceTelemetry.cpp#L22
You can also request DeviceTelemetry using the Python CLI --request-telemetry command, which would still work even at high channel utilization.
Yes I am aware that there is a manual work-around method using the CLI as you covered that in this convo back August, thank you for mentioning that back then as it was useful to me in a pinch. 👍
However, the vast majority of users will interact with their nodes and do quick health-checks via mobile Apps and that alternative method does not help those majority of users there.
... they will send their DeviceTelemetry up until 40% channel utilization instead of 25%:
Two points from this I guess:
- Are you able to point me to the file / line number where that % is specified? I'm convinced we're seeing it blocked at values <40% (perhaps in the 25-40% bracket).
- What is the rationale behind preventing the broadcast of one very useful packet which is dispatched very infrequently (12hrs)?
- It's here: https://github.com/meshtastic/firmware/blob/2c654454cffabdd165311ac7bac3770ba975b53b/src/airtime.h#L70
- If your mesh is really above 40% channel utilization, then it will already be very unreliable. The reason you might miss the packets now might be simply because of collisions due to the congestion. Also, the 12 hour interval is just the default, you can set another interval as long as it's not less than the minimum (30 min.).
- Thank you!
- As I've tried to emphasise I don't think our channel util is above 40%, I think its below that. Our small mesh in my vicinity is very reliable, we don't have congestion, we live a very rural area with no major cities nearby. We have a small budding mesh building in our area but 8-14hrs can easily go by with not a single user generated message on the primary/public channel, just to give you a sense for how quiet / busy it is. Device Metrics are reliably gathered from other Client nodes in the local mesh.
the 12 hour interval is just the default, you can set another interval as long as it's not less than the minimum (30 min.).
This is one of the first things we tried and had no joy with, it seemingly made no difference. Is that setting adhered to the same when a device is using the Router role?
If the remedy was that easy to change that setting then why was that not proposed to the original author on this issue? My prior testing suggested it was having no effect when changed, which is what led me to going down this path of finding other hidden attributes discussed in here (channel util %) which can get in the way and block this.
If the device metric broadcast for Routers was permitted once every 12 hours irrespective of channel util % then this would all be a mute point and people would be able to easily get the data they need. I'm struggling to see the rationale behind that limitation.
Is that setting adhered to the same when a device is using the Router role?
I believe so, I can't find in the code where it wouldn't respect this for routers.
If the remedy was that easy to change that setting then why was that not proposed to the original author on this issue?
The original issue was specifically about the high channel utilization. Back then it was still 25% and the interval is scaled with the number of online nodes. Now, for routers it's 40% and not scaled with the number of online nodes.
If the device metric broadcast for Routers was permitted once every 12 hours irrespective of channel util % then this would all be a mute point
So why would relaxing this constraint help for you if your channel utilization is very low?
So why would relaxing this constraint help for you if your channel utilization is very low?
Because the broadcast for the Router role has been demoted to be very infrequent (12hrs) and I think sometimes our channel utilization may range around 20-35%. And as I've been trying to state from testing I think lower than 40% thresholds have still been imposing a block potentially.
I have LoS to a Router 1 mile away which I can communicate with flawlessly, remote admin etc. but I can go many days with no Device Metrics being retrieved. I can on-demand, manually use the CLI on my PC just to retrieve them reliably, so the link is good.
My understanding of channel utilisation from a official Meshtastic video led me to believe that non-Meshtastic traffic on the band (other LoRaWAN / Helium traffic) can also contribute to the channel utilisation figure, so I believe that some of what we're seeing locally is not Meshtastic traffic but other stuff on the air and due to Meshtastic's code logic choices its blocking informational broadcasts in a very quiet Meshtastic zone.
I can go many days with no Device Metrics being retrieved.
Are you always connected with an app to a Meshtastic device? A node can only store around 30 packets of all types, and text messages get priority when the buffer is full.
My understanding of channel utilisation from a official Meshtastic video led me to believe that non-Meshtastic traffic on the band (other LoRaWAN / Helium traffic) can also contribute to the channel utilisation figure
This is highly unlikely if not impossible. They have to be using the exact same frequency and LoRa settings, as well as our custom sync word.
Are you always connected with an app to a Meshtastic device?
Yes I have tried leaving it connected for days.
This is highly unlikely if not impossible.
Does that mean there is a mistake in the first 35 seconds of this official Meshtastic video: https://www.youtube.com/watch?v=aDud_5Bxtvc or perhaps I have misinterpreted the opening statements?
Just to reiterate - I can at any point change this node from Router to Client and start getting Device Metrics reliably every hour, as soon as its switched back to Router it stops, no updates every 12hrs, even if you're patient and wait 48-72hrs.
Does that mean there is a mistake in the first 35 seconds of this official Meshtastic video
Yes, while it's theoretically possible, I don't think there is currently any other system that uses the exact same LoRa settings and sync word as we do.
I can at any point change this node from Router to Client and start getting Device Metrics reliably every hour, as soon as its switched back to Router it stops, no updates every 12hrs, even if you're patient and wait 48-72hrs.
Strange, I don't see how this can occur. Can you try setting it to 30 min.?
i have a router running firmware from the last month (cant remember which one exactly) and have it set to telemetry every 30min. In my busy mesh i normally end up getting telemetry every 1hr approx. Just set to to 30min (1800) and it will work as expected. The defaults have changed, but the minimum for us (you) that know what we're doing it still very good.
