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

Neighborinfo module #2

Merged
merged 8 commits into from
Apr 11, 2023
Merged

Neighborinfo module #2

merged 8 commits into from
Apr 11, 2023

Conversation

uhuruhashimoto
Copy link
Owner

@uhuruhashimoto uhuruhashimoto commented Apr 8, 2023

Goal

This is a companion PR to this firmware PR. It adds a Mesh module to the protobufs corresponding to the firmware NeighborInfo module.

Implementation

This PR adds a NeighborInfo to the mesh module and modifies the NodeDB to hold info on a node's neighbors. It changes the max size of the NodeDB slightly.

Sizes

NodeInfo - 130 bytes
Neighbor - 12 bytes
NeighborInfo - 132 bytes (10 Neighbors)

The NodeDB previously stored up to 80 nodes, each of size 130 bytes. To store Neighbors in the NodeDB, we simply assume that we can fit 20 of them in the space taken up by 2 NodeInfo packets.

Testing

Tested on simulator and in hardware with a graph with multiple nodes.

@uhuruhashimoto uhuruhashimoto merged commit 09f301c into master Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant