Add OTA firmware updates of meshcore-tth nodes, with a side channel

A "Firmware update (OTA)" tile in the repeater hub (admins, tth fork
switch kOtaUpdate) pushes a delta of a meshcore-tth -ota image over the
mesh: the package that starts from the node's image is picked from the
chosen .mcfw files, binary chunks with text as the fallback, an airtime
budget, verify and apply. Optionally on a side channel: the node goes to
another preset by tempradio, the companion follows (checked), the chunks
go zero-hop and both come back at the end.

A port of the reference engine of the tth.meshcore Ansible collection
(module_utils/meshcore_ota_engine.py); test/services/ota/ota_vectors.json
is its test-vector file. Bench 16. 11. 2026: the connector over TCP to a
USB companion, side channel 866.0/SF7, applied a 2.7 kB delta, 20 s
airtime, companion back on its preset.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
tthandClaude Opus 5.5 committed 2026-11-16 23:32:04 +01:00
1 parent 5a53e45e9a
commit 1b2e0ccdfc
7 files changed
+1711

No files matched your search

+19
View File
@@ -15,6 +15,8 @@ import 'repeater_cli_screen.dart';
import 'repeater_settings_screen.dart';
import 'telemetry_screen.dart';
import 'neighbors_screen.dart';
import 'repeater_ota_screen.dart';
import '../tth_fork.dart';
class RepeaterHubScreen extends StatelessWidget {
final Contact repeater;
@@ -280,6 +282,23 @@ class RepeaterHubScreen extends StatelessWidget {
);
},
),
if (kOtaUpdate)
_HubActionTile(
index: 5,
icon: Icons.system_update_alt,
title: 'Firmware update (OTA)',
subtitle: 'meshcore-tth -ota images, over the mesh',
accentColor: MeshPalette.blue,
onTap: () => Navigator.push(
context,
MaterialPageRoute(
builder: (context) => RepeaterOtaScreen(
repeater: repeater,
password: password,
),
),
),
),
],
],
),