Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cpatulea opened this issue Dec 2, 2024 · 0 comments
Open

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

cpatulea opened this issue Dec 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@cpatulea
Copy link

cpatulea commented Dec 2, 2024

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

@cpatulea cpatulea added the bug Something isn't working label Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant