meshtastic-map icon indicating copy to clipboard operation
meshtastic-map copied to clipboard

Feature request: implicit neighbors for mqtt nodes

Open prokrypt opened this issue 1 year ago • 2 comments

for nodes with fw 2.3+ which don't have neighborinfo enabled, implicit neighbors will be the ones with hop_limit==hop_start

prokrypt avatar Apr 02 '24 02:04 prokrypt

If you could give some extra details on this, I could potentially add another layer to the map.

I probably wouldn't want to pollute the neighbours layer directly, since these aren't from the neighbour packets.

But, if you could give a few packet examples on how I can determine this, I'll have somewhere to start.

Saving these might get annoying, and how to expire them. Currently, when I receive a neighbour info packet, the database just completely overwrites the old neighbour info on the node entry.

However, if we are determining neighbours based on various different packets over time, I wouldn't be able to just overwrite that entry in the db, and we would probably have to track these implicit neighbours in their own database table.

liamcottle avatar Apr 10 '24 08:04 liamcottle

I don't think this is anything to do with the neighbourinfo. I think this is a separate hop count feature. I think it will only work to "gateway" nodes. However you can deduce hop count from other nodes to the gateway by subtracting hop limit from hop count. As far as GUI is concerned I think you would add a hop count to all nodes markers that you have the information for. It is only up to 7. I think zero is direct. Perhaps add a D. May be add lines to direct nodes. Maybe add a "hull" line that would be a guide to the range of a gateway node.

BillyBag2 avatar Apr 10 '24 10:04 BillyBag2