MeshCore icon

MeshCore

Interact with a MeshCore device over TCP/WiFi

Utility → Encode Trace

AI-generated

Summary

Encode a MeshCore trace packet from a route and trace settings, returning the frame as encoded data for use in a workflow.

Inputs

  • Trace Route (required) — Hex path-hash bytes for a non-empty route. The route's hop size must be 1, 2, 4, or 8 bytes.
  • Trace Hop Size — Bytes per hop in the trace route: 1, 2, 4, or 8; defaults to 1.
  • Trace Tag — Correlation tag echoed in the trace reply; 0 (the default) selects a random tag.
  • Auth Code — Authentication code carried by the trace; 0 (the default) sends it unauthenticated.
  • Path Hash Size — Mesh path-hash size in bytes per hop (1, 2, or 3); defaults to 1. Set this to match the mesh's pathHashSize from Device → Get Device Info.

Output shape

A single item containing the encoded trace frame.

The trace hop size and mesh path-hash size are separate settings. Trace routes must be non-empty, and trace hop sizes support 1, 2, 4, or 8 bytes per hop; mesh path-hash sizes support 1, 2, or 3.

Links

Discussion