Skip to content

[ALIGNMENT]: Show the relaying node in message details #33

Open
2 of 3 issues completed
Open

Description

@RCGV1

Decision

Message details show which node most likely relayed a message to us, worked out from the packet's relay_node byte, and for a sent message how many nodes we heard rebroadcast it.

Context

Since firmware 2.6, every relayed packet carries relay_node in its header: the last byte of the relaying node's ID. One byte can match several nodes, so the client can only name the most likely one. A value of 0 means no relay was recorded, which also means a node whose ID ends in 00 can never be named this way.

Apple shows the relay in message details (meshtastic/Meshtastic-Apple#1486, MessageEntity.relayDisplay): "Relay:" for a received message and "Ack Relay:" for the ack of a sent direct message, plus "Relayed by N nodes" for a sent message. Android shows the count in its delivery dialog (DeliveryInfoDialog) but not the relaying node. It has the matching logic in Node.kt and uses it only on the debug screen.

Reports in this thread came from nodes whose ID ends in 00 being shown as the relay of failed messages. Apple no longer names a relay for 0.

Required Client Behavior

  1. Store the relay_node byte with each received message, and with the ack of each sent direct message.
  2. In message details, name the node whose ID ends in that byte. When several known nodes match, pick the one with the fewest hops among those whose hop count is known; when none has a known hop count, pick any match. When no known node matches, show the byte in hex, for example "Node 0x5A".
  3. When relay_node is 0, show no relay.
  4. Label it as the relay of the message, or of the ack for a sent direct message.
  5. For a sent message, show how many nodes we heard rebroadcast it.
  6. Name the node with its local display name when one is set (design#170).

Acceptance Criteria

Opening the details of a relayed message shows the node that most likely relayed it, or its hex byte when the node isn't known; a message with no recorded relay shows none; and a sent message shows how many nodes rebroadcast it.

Open questions

  • Should a node that hasn't been heard for a long time lose to a recently heard one with more hops? A node last seen 77 days ago was named as the relay in a report above.
  • Should a sent message list every node heard rebroadcasting it, not just the count? Neither client does this yet.
  • A node whose ID ends in 00 is indistinguishable from "no relay". That needs a firmware change, and no firmware issue is filed yet.

Platform Tracking

Activity

  1. NomDeTom commented on Nov 11, 2025

    @NomDeTom
    Contributor

    Adding to my comment on meshtastic/Meshtastic-Android#3656 the relaying node suggestion needs to be more than just the lowest hop count. In the screenshot I provided, that node hadn't been seen in 77 days, and was shown as the relaying node for a DM sent directly to it (even though it was out of range).

  2. ldti commented on Nov 21, 2025

    @ldti

    Something similar here.
    The TAMI node is a MQTT node with no LORA nodes near it, so it will of course say "max retransmit reached."
    HOWEVER, it is not the only node that retransmitted the message, as confirmed by others in the screenshot.

    Image Image
  3. 1nv commented on Nov 24, 2025

    @1nv

    Please remove this:

    1. This doesn't work correctly, as nodes are guessed by their lowest byte, and this guess might be incorrect on larger networks.
    2. This message is shown for failed transmissions, which confuses users that the node (which is a random node with id ending with 00) is a culprit.
  4. teran1983 commented on Nov 24, 2025

    @teran1983

    I confirm. We have node 0500 in our network.
    And the entire network receives this message.
    The message disappears if you remove the 0500 entry from the node list.
    But this only helps until node 0500 sends its contact information again.

  5. DirectX commented on Nov 26, 2025

    @DirectX

    I confirm. We have node 0500 in our network. And the entire network receives this message. The message disappears if you remove the 0500 entry from the node list. But this only helps until node 0500 sends its contact information again.

    Exactly the same. Node 0500 crashed all environment by confirming the relay of messages. This was nightmare before customized firmware for this node was applied which scrambles the initialization to not get 00 at the end.

  6. timurey commented on Dec 22, 2025

    @timurey

    We have nodes with IDs xxxx7e00 and xxxx5200. It looks like they broke the DM. Perhaps the firmware should change the ID if it ends in 00?

  7. garthvh commented on Aug 11, 2026

    @garthvh
    Member

    Status update (August 2026): the display mechanics this issue specifies are implemented — iOS resolves and shows the likely relaying node using the last-byte match with least-hops tiebreak (and guards the no-rankable-hops case), and Android has its equivalent.

    The live problem in this thread is no longer display, it's the protocol edge case: nodes whose ID ends in 0x00 are indistinguishable from "no relay" (and per the reports above can break DMs / cause network-wide confirmation issues). That needs a firmware-side issue if one doesn't exist yet — clients can't fix an ambiguous relay_node byte after the fact. Suggest filing it against meshtastic/firmware and linking it here, then this issue can be closed as implemented once that's tracked where it belongs.

  8. changed the title [-]Implementation Details for Relay Node Message display[/-] [+][ALIGNMENT]: Show the relaying node in message details[/+] on Nov 8, 2026
  9. Pedrom-pt commented on Nov 16, 2026

    @Pedrom-pt

    Made my contribution in Android section, meshtastic/Meshtastic-Android#8065
    Since at least one of the contributions needs to be aligned, I'm posting it here

    "4. Since the 2.8.x firmware the node Id is generated not from hardware/macaddress, BLOCK the generation of node ID 0x00"

  10. garthvh commented on Nov 20, 2026

    @garthvh
    Member

    @Pedrom-pt Thanks. Node ID generation is firmware's job, not a client display rule, so I've moved this to meshtastic/firmware#12439 for review. From reading the code, the 0x00 case may not be reachable as described, and that issue explains why. It doesn't change anything about showing the relaying node, so let's keep #33 to that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions