Skip to content

[Bug]: Nodes sometimes shows node as 'Direct' incorrectly #351

Closed
@cpatulea

Description

@cpatulea

Hardware

Heltec V3

Connection Type

HTTP

Local or Hosted

https://client.meshtastic.org

Firmware Version

2.5.11.8e2a3e5

Description

Web client shows certain nodes as 'Direct':

image

but this is not accurate. See the corresponding meshtastic CLI --info output:

$ meshtastic --host 192.168.0.190 --info | grep -A20 da5cc010
  "!da5cc010": {
    "num": 3663511568,
    "user": {
      "id": "!da5cc010",
      "longName": "Meshtastic c010",
      "shortName": "c010",
      "hwModel": "UNSET"
    },
    "snr": -17.75,
    "lastHeard": 1733112925
  },

note hopsAway is missing entirely (maybe due to this logic: https://github.com/meshtastic/firmware/blob/9f4c8a28043633fbeffc00da8c0ede02cebfdf9a/src/mesh/NodeDB.cpp#L1312)

In comparison, here is an example of a truly Direct node:

$ meshtastic --host 192.168.0.190 --info | grep -A20 3b9c03cd
  "!3b9c03cd": {
    "num": 1000080333,
    "user": {
      "id": "!3b9c03cd",
      "longName": "mars_tow",
      "shortName": "mars",
      "macaddr": "c2:b0:3b:9c:03:cd",
      "hwModel": "RAK4631",
      "role": "ROUTER",
      "publicKey": "M/5mJYjrSdNdtNPhC7tXNk3VLhX2pkhfaNf4IudFC08="
    },
    "snr": -14.0,
    "lastHeard": 1733112308,
    "deviceMetrics": {
      "batteryLevel": 61,
      "voltage": 3.812,
      "channelUtilization": 17.941668,
      "airUtilTx": 1.8800278,
      "uptimeSeconds": 86460
    },
    "hopsAway": 0
  },

Relevant console output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions