From 703a85f4d8b3897b74aba1e982ee026b40f85773 Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Wed, 7 Feb 2024 16:42:54 -0600 Subject: [PATCH] Geochat --- meshtastic/atak.options | 4 ++-- meshtastic/atak.proto | 28 +++++++++++++++++++++------- 2 files changed, 23 insertions(+), 9 deletions(-) diff --git a/meshtastic/atak.options b/meshtastic/atak.options index 1f0f7e6..b567331 100644 --- a/meshtastic/atak.options +++ b/meshtastic/atak.options @@ -1,4 +1,4 @@ *Contact.callsign max_size:120 - *Status.battery int_size:8 -*PLI.course int_size:16 \ No newline at end of file +*PLI.course int_size:16 +*GeoChat.message max_size:200 \ No newline at end of file diff --git a/meshtastic/atak.proto b/meshtastic/atak.proto index 5569091..7c525f4 100644 --- a/meshtastic/atak.proto +++ b/meshtastic/atak.proto @@ -12,18 +12,22 @@ option swift_prefix = ""; */ message TAKPacket { + /* + * Are the payloads strings compressed for LoRA transport? + */ + boolean is_compressed = 1; /* * The contact / callsign for ATAK user */ - Contact contact = 1; + Contact contact = 2; /* * The group for ATAK user */ - Group group = 2; + Group group = 3; /* * The status of the ATAK EUD */ - Status status = 5; + Status status = 4; /* * The payload of the packet */ @@ -31,14 +35,24 @@ message TAKPacket /* * TAK position report */ - PLI pli = 3; + PLI pli = 5; /* - * Other binary data + * ATAK GeoChat message */ - bytes data = 4; + GeoChat chat = 6; } } +/* + * ATAK GeoChat message + */ +message GeoChat { + /* + * The text message + */ + string message = 1; +} + /* * ATAK Group * <__group role='Team Member' name='Cyan'/> @@ -224,4 +238,4 @@ message PLI { * Course in degrees */ uint32 course = 5; -} +} \ No newline at end of file