Skip to content

feat(phone): real topology query — replace mock with TOPO_REQ/RESP #85

Description

@gHashTag

Part of #82

What

Replace mock topology data in MeshMapView.swift with real mesh query.

Protocol (mesh_topology.t27)

  • Phone sends: Data([16]) (TOPO_REQ=16) to mesh node UDP:7000
  • Node responds: [17][node_count][entry×N] where each entry = 8 bytes:
    [node_id:u32][etx_x10:u8][status:u8][hop_count:u8][neighbor_id:u8]
  • Phone parses response → MeshNodeInfo array → display

Files

  • MeshMapView.swift — replace generateMockTopology() with parseTopologyResponse()
  • trios_meshd_video.rs — add TOPO_REQ handler

Spec

Already defined: specs/mesh_topology.t27 (20 tests, 4 invariants)

Gate

MeshMap shows real nodes from mesh, updates when node goes offline.

phi^2 + phi^-2 = 3

Metadata

Metadata

Assignees

No one assigned

    Labels

    drone-meshTRI-NET drone-mesh trackenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions