Meshtastic-Android icon indicating copy to clipboard operation
Meshtastic-Android copied to clipboard

[Feature Request]: Rearrange traceroute result and add some differentiating colour

Open b8b8 opened this issue 1 year ago • 8 comments

Contact Details

No response

Tell us your idea.

My suggestion is to have the traceroutes present vertically and with different colours for hops, transmit, and receive. Also including the hopping SNR would be beneficial. signal-2024-08-24-144701

Relevant log output

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

b8b8 avatar Aug 24 '24 22:08 b8b8

Hey @b8b8, maybe it would be good to consider here how traceroute in 2.5 is going to look like in general. Apart from the SNR per hop, we can also get a two-way traceroute result. There is some validation needed, because it depends on the firmware of the nodes in the route whether the info is accurate or not. I opened a PR for the Python CLI (https://github.com/meshtastic/python/pull/654) to accommodate for this; basically the length of the list of SNRs should be 1 longer than the route list and nodes and SNR can be unknown (represented by 0xFFFFFFFF and -128 respectively).

Maybe it can look something like this then (excuse me for my Paint skills): traceroute_android

Not sure how feasible all of this is, but it would be cool to show it like this :)

GUVWAF avatar Aug 25 '24 09:08 GUVWAF

Dude this looks even better.

b8b8 avatar Aug 25 '24 15:08 b8b8

Is there any possibility to add timestamps to each hop? And/or how many attempts it took to make each hop? Could be useful for assessing where you need better coverage.

cbvicious avatar Aug 25 '24 15:08 cbvicious

I've already mentioned it in the discord, but apparently not asked for it as a feature request. Putting the results in the chat history for a node would solve some of the things people have asked for above

NomDeTom avatar Aug 25 '24 17:08 NomDeTom

I've already mentioned it in the discord, but apparently not asked for it as a feature request. Putting the results in the chat history for a node would solve some of the things people have asked for above

yea, how about the pop-up, but then also the pop-up results end up saved in the appropriate DM with text of all the info people are asking for. Pop just shows info GUVWAF posted. DM has all this plus any other info like timing as text.

b8b8 avatar Aug 25 '24 17:08 b8b8

I've already mentioned it in the discord, but apparently not asked for it as a feature request. Putting the results in the chat history for a node would solve some of the things people have asked for above

yea, how about the pop-up, but then also the pop-up results end up saved in the appropriate DM with text of all the info people are asking for. Pop just shows info GUVWAF posted. DM has all this plus any other info like timing as text.

Yep. They're a bit ephemeral at the minute, even if they succeed after you switch tabs they're lost.

NomDeTom avatar Aug 25 '24 17:08 NomDeTom

@cbvicious

Is there any possibility to add timestamps to each hop?

No, those are not sent over LoRa. It would also be hard to get valuable info from them, because each node uses random delays before transmitting and they might have other packets in their queue. Also nodes are not time-synchronized, at least not with second-level accuracy.

And/or how many attempts it took to make each hop?

Intermediate hops only ever try once. If the signal quality is strong and the traceroute fails, it's likely a packet collision.

GUVWAF avatar Aug 25 '24 20:08 GUVWAF

the traceroute dialog message takes a String type, so more complex layouts are not possible. someone could add colors using SpannableString but that's a lot of work. priority for now is to add the new 2.5 round-trip/SNR information in.

andrekir avatar Sep 01 '24 12:09 andrekir