meshtastic / firmware

Meshtastic device firmware
https://meshtastic.org
GNU General Public License v3.0
3.3k stars 799 forks source link

[Feature Request]: Add the absolute amount of received Meshtastic packets to telemetry #4563

Open dm5tt opened 2 weeks ago

dm5tt commented 2 weeks ago

Platform

NRF52, ESP32, RP2040, Linux Native, other

Description

Problem: It's at the moment it's impossible to determine the utilization of a Router remotely. Without these data we cannot determine the health of the HF chain nor if the setup/position of the entire device can be improved.

Right now following data can be gathered using the Python script:

~$ /home/had/.local/bin/meshtastic --host 192.x.x.x --request-telemetry --dest \!279xxxx
Connected to radio
Sending telemetry request to !279xxxx on channelIndex:0 (this could take a while)
Telemetry received:
Battery level: 81.00%
Voltage: 4.00 V
Total channel utilization: 42.40%
Transmit air utilization: 13.42%
Uptime: 109625 s

It would be great to have an additional absolute counter of received, valid Meshtastic packets.

Example:

Received Packets: 20000

On the other side "Battery level" and "Voltage" is IMHO redundant.

garthvh commented 2 weeks ago

This is now in place available over the phone api for the node you are connected to.

https://github.com/meshtastic/firmware/pull/4475

dm5tt commented 2 weeks ago

Ah.. wasn't aware of that.

My use-case is a bit different as my station is a remote solar station and not directly accessible with BT/Wifi.

thebentern commented 2 weeks ago

We could possibly make this one available over the wire as well. We need to break it out into its own module instead of leaning on Device Telemetry module as it exists now.