Skip to content

Add MeshTrax allocation for GroupData - #3925

Open
venamartin wants to merge 1 commit into
meshcore-dev:devfrom
venamartin:meshtrax-allocation
Open

venamartin wants to merge 1 commit into
meshcore-dev:devfrom
venamartin:meshtrax-allocation

Conversation

@venamartin

Copy link
Copy Markdown

MeshTrax (https://github.com/venamartin/meshtrax) is a MeshCore companion app. It uses group data for photos sent to a channel and for trip members' positions, with more planned. Both run today on the FF00–FFFF testing range. This requests the block 0170–017F (0160 is requested in #3918).

venamartin added a commit to venamartin/meshtrax that referenced this pull request Nov 23, 2026
The first of the block 0170–017F that MeshTrax asked for in MeshCore's
number allocations (meshcore-dev/MeshCore#3925), in place of the
development value 0xFF1C.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
venamartin added a commit to venamartin/meshtrax that referenced this pull request Nov 23, 2026
MeshTrax's block 0x0170-0x017F is requested in meshcore-dev/MeshCore#3925.
TRAX positions take 0x0171 (71 01 on air) in place of 0xFF54 from the
range for types in development. Nothing shipped on 0xFF54, so receivers
take only the new type. The tests that spell out the type's bytes follow.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
venamartin added a commit to venamartin/meshtrax that referenced this pull request Nov 24, 2026
…il behind it (#366)

In TRAX mode each member's MeshTrax sends its radio's location to the
private trip channel as a channel datagram of type 0x0171 (71 01 on air,
in MeshTrax's block 0x0170-0x017F, requested in meshcore-dev/MeshCore#3925):
every 30 s per person in the group (1 min for two), stretched for a slower
preset's airtime, +/-20 %. The regular mesh stays request-only.

- traxshare package: the location-sharing plan's version 1 REPORT
  (29 bytes), with the trail of the way behind (Douglas-Peucker from 15 m,
  widened until it fits, on a grid of 8 m or more, exp-Golomb steps) and
  the sender's name, 157 bytes at most.
- The trail goes in the first report, then every 5th and no sooner than
  10 minutes after the last: up to 10 miles back to the newest break.
- The track: a point every 25 m while TRAX mode is on; a break after
  2 minutes without a live reading, or at a jump.
- Heading and speed while moving, worked out over the last 50 m or more
  of the track, as the radio reports positions in 11 m steps. From
  2 minutes after the last move the report says "not moving" and for how
  many minutes (bit 12; the speed byte holds the minutes).
- Heard: the latest from each member, kept 30 days per radio. A member
  who sends is on TRAX; one silent for 3 intervals gets their radio
  asked, again at most every 10 minutes.
- Channel datagrams need companion firmware 1.15 (version code 11); the
  sheet says so on older firmware.

Map: members as orange walkers, grey when the reading may be old. A tap
shows their trail, over your own track (which follows your dot in blue),
and a compact card over the clear map, about 160 dp for a contact and 120
for anyone else:
- a header: the name, then when last heard, how long ago and how far
  ("10:40 PM · 1m ago · 0.4 mi NW", "may be old" in red), and the copy
  button;
- one row of chips, each named on a long-press: the heading with an arrow
  that points that way, speed or "Stopped N min", elevation, and the
  radio's battery with its bars (red below 20 %);
- Chat and Ask their radio, for a contact.
It keeps up to date as reports come in, its "ago" counts on every 30 s,
and it works for members who aren't contacts on this radio. Closing the
card hides the trail.

A person's info: last heard, location, how far from you, heading, speed
or "not moving since", elevation, radio battery and path, each from the
newest of the TRAX report, the radio's answer and the advert. No line of
sight or radio reach for people; repeaters, rooms and sensors keep them.

The TRAX sheet, in the card's style:
- the boot print on a disc, orange while on; TRAX settings behind a gear;
- off: what one tap changes, on chips: now, in TRAX mode, Off-Grid
  Repeat, until when, the trip channel; a missing end or channel in red;
- on: the radio's settings on a chip, where this phone's location goes,
  then one list of the trip: each member with when heard, how long ago
  and how far, a tap to their trail on the map; or why there is no
  location yet (asking, no answer, not heard yet);
- full-width Switch and Leave; "3m ago" keeps counting while it is open.

tool/trax_sim: pretend trip members walking a winding trail, driving a
road or following a GPX track, sending reports by the app's rules through
a companion radio, on a serial port (--port) or over Bluetooth (--ble
NAME, through BlueZ, a frame per write and per notification, as the app
does on Linux). There is no default port: on a shared machine "the only
/dev/ttyACM*" can be a radio another program is using. When it stops
(Ctrl-C or SIGTERM), it takes the trip channel off the radio if it added
it and puts back the settings --radio changed, Off-Grid Repeat included,
and it says how many waiting messages it read off the radio. It has its
own CI step; the root analyze skips it. Checked on a Heltec companion over
Bluetooth: it set 918 MHz, added the channel, the radio took both reports,
and on stopping it took the channel off and put the radio back on its own
frequency.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

This branch has not been deployed

No deployments
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