23 Commits
Author SHA1 Message Date
renovate-bot 3107e71457 Merge pull request 'Update dependency ruff to v0.17.6' (#11) from renovate/all-minor-patch into main
ci / test (push) Successful in 2m58s
2026-11-19 18:03:37 +01:00
renovate-bot 4b87692dbe Update dependency ruff to v0.17.6
ci / test (pull_request) Successful in 2m32s
ci / test (push) Successful in 3m26s
2026-11-19 17:00:50 +00:00
tthandClaude Opus 5.5 09c933d9fa ci: pin the runner image by digest (Renovate keeps it current)
ci / test (push) Successful in 2m39s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 02:36:21 +01:00
tthandClaude Opus 5.5 b9606c467c ci: run in the Ubuntu 24.04 runner image -- swarm-runner's CPU cannot run setup-python's 26.04 build
ci / test (push) Successful in 3m56s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 02:26:10 +01:00
tthandClaude Opus 5.5 06ade0399c README: the -ota images of meshcore-tth are experimental, not for regular users
ci / test (push) Failing after 21s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 01:56:56 +01:00
tthandClaude Opus 5.5 8884742ae2 examples/firmware-ota.yml: the side channel (ota_side)
ci / test (push) Failing after 24s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 00:18:34 +01:00
tthandClaude Opus 5.5 9f8f47699a tests/vectors/ota_vectors.py: no shebang (ansible-test sanity refuses one outside modules)
ci / test (push) Failing after 20s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 23:32:30 +01:00
tthandClaude Opus 5.5 10f9dbe9f7 tests/vectors: OTA test vectors for other implementations (meshcore-open)
ota_vectors.py writes ota_vectors.json from the Python code: package
manifests and picks, crc16, the binary write payload, the replies,
presets, airtime and frame lengths. meshcore-open's Dart port tests
against a copy; test_ota_vectors.py fails when the JSON drifts from the
code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 23:32:05 +01:00
tthandClaude Opus 5.5 185470de08 meshcore_fw_ota: the transfer as an Ansible-free engine shared with meshcore-tth's tools, plus a side channel via tempradio
ci / test (push) Failing after 15s
module_utils/meshcore_ota_engine.py now holds the whole transfer (Console,
Radio, binary and text rounds, update()); the module only maps its
parameters. tools/ota_mesh_push.py and tools/ota_push.py of meshcore-tth
import the same code, so the protocol lives in one place.

New:
- side/window: the node goes to another preset by `tempradio`, the
  companion is retuned (checked -- an openHop virtual companion acks
  set_radio as a no-op and is refused), a fresh login goes zero-hop and
  the delta follows; the window is renewed, and the node and companion
  come back at the end (or the node by its own timer).
- SerialConsole: the node's USB console, the same calls as BleConsole.
- `fw base` when `fw status` shows no base (failed/ready/rx): a node left
  after a refused package was taken for "not an -ota build", i.e. a full
  DFU, and `resume` could never pick its package.
- asyncio.TimeoutError caught too: on Python 3.10 (dopey) a lost bitmap
  reply ended the whole transfer.
- text: text chunks only; update(force=...) for `fw apply force`.

Bench 16. 11. 2026 (x3 companion -> x1 -ota repeater, 866.5 -> side 866.0/SF7):
the module from dopey (py3.10), the firmware role's ota.yml with
mc_fw_ota_side, ota_mesh_push.py and ota_push.py over USB -- each applied
a 2.7 kB delta, ~20 s airtime.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 23:17:41 +01:00
tth 8306d91b48 meshcore_prefs: a spec per known key -- range and step checked before sending, the value read out of replies that are not bare; gps and powersaving
ci / test (push) Failing after 1m29s
The prefs were a free dict compared as text with the `get` reply, so lint and
sanity could not see that several keys never converge:
- `get radio.silence` -> '30 min (now x1), quiet ...', `get batt.icon` ->
  'on (level 3/5, ...)', `get dutycycle` -> '50.0%': a change on every run,
  then a failure after the `set`;
- `advert.interval` is stored halved (25 reads back as 24, and the node takes
  only 0 or 60-240), `agc.reset.interval` in steps of 4;
- `set repeat <anything but off>` means ON, so `repeat: 0` turned it on;
- lat/lon compared to 1e-3 (~100 m), so a smaller move never went out;
- errors like 'ERR - ...', 'unknown config: ...', 'Invalid ...' did not match
  the expected reply and ended as a timeout after five resends.

module_utils/meshcore_prefspec.py now holds kind, range, step, tolerance and a
reply parser for every pref of the meshcore-tth CLI (CommonCLI.cpp,
CommonRadioPrefs.cpp, NodeMaintenance.cpp, CommonGpsPrefs.cpp); the module
refuses a value the node would refuse or alter before it sends anything, in
check mode too. Unknown keys still go, compared as before, with a warning.
radio.txstall (RAM only) and radio.rxps (compound) are refused with a reason.

New keys that are plain commands in the firmware: gps (off/on/duty),
gps.period, gps.firstfix and powersaving; gps.period goes first and conflicts
with gps off/duty.

Tests: replies as the firmware prints them and as a bench board and three
repeaters answered; with MESHCORE_TTH_SRC set, a drift check that every key is
still in the CLI sources.
2026-11-15 14:03:11 +01:00
tthandClaude Opus 5.5 4dfe998409 README, examples/firmware-ota.yml: OTA updates -- how a package is picked, RF vs BLE console, what to watch
ci / test (push) Failing after 30s
The intro said the collection does not touch firmware; it now updates an
-ota node. The example downloads a release's packages, refuses them without
the release signature (ssh-keygen -Y verify) and runs meshcore_fw_ota.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 21:08:25 +01:00
tthandClaude Opus 5.5 891be3afbe meshcore_fw_ota: OTA firmware update of a meshcore-tth repeater, over RF or its BLE console
ci / test (push) Successful in 2m21s
Picks the package of a release that fits the image `fw status` reports
(changed=false when the node runs it already, no_package when none fits or
the node has no `fw`), transfers it -- over RF as binary chunks with a
bitmap of the missing ones and text chunks as the fallback, inside an
airtime budget; over the BLE console as text, a full image too -- then
verifies and applies. Port of tools/ota_mesh_push.py / ota_push.py of
meshcore-tth; radio-free parts in module_utils/meshcore_ota.py with unit
tests (the airtime formula they caught is fixed in the tool as well).
Link.cli takes retries, timeout, quiet and a before_send hook.

Tested on two live repeaters forced onto their current image (BLE console;
RF through a companion: 'current', 0.6 s airtime) and with a package of
another base (no_package).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 20:54:29 +01:00
renovate-bot d6f2d5cf28 Merge pull request 'Update dependency ruff to v0.17.5' (#10) from renovate/all-minor-patch into main
ci / test (push) Successful in 2m24s
2026-11-12 19:56:40 +01:00
renovate-bot 7a7994dadf Update dependency ruff to v0.17.5
ci / test (push) Successful in 2m20s
ci / test (pull_request) Successful in 2m22s
2026-11-12 18:54:05 +00:00
renovate-bot 7026086107 Merge pull request 'Update https://git.rfa.cz/tth-pub/ci-actions action to v15' (#9) from renovate/major-ci-actions into main
ci / test (push) Successful in 3m49s
2026-11-12 00:05:03 +01:00
renovate-bot a7d60a65f6 Update https://git.rfa.cz/tth-pub/ci-actions action to v15
ci / test (push) Successful in 3m29s
ci / test (pull_request) Successful in 3m35s
2026-11-11 22:58:46 +00:00
renovate-bot 54e6693fac Merge pull request 'Update dependency meshcore to v2.3.19' (#8) from renovate/all-minor-patch into main
ci / test (push) Successful in 2m27s
2026-11-11 20:01:17 +01:00
renovate-bot c0538e1ae4 Update dependency meshcore to v2.3.19
ci / test (push) Successful in 2m38s
ci / test (pull_request) Successful in 2m44s
2026-11-11 18:58:28 +00:00
renovate-bot 1a0352a910 Merge pull request 'Update dependency ruff to v0.17.4' (#7) from renovate/all-minor-patch into main
ci / test (push) Successful in 1m57s
2026-11-05 20:00:28 +01:00
renovate-bot c7c2c3fa2c Update dependency ruff to v0.17.4
ci / test (push) Successful in 2m18s
ci / test (pull_request) Successful in 2m16s
2026-11-05 18:57:58 +00:00
renovate-bot 7886cd718f Merge pull request 'Update https://git.rfa.cz/tth-pub/ci-actions action to v14' (#6) from renovate/major-ci-actions into main
ci / test (push) Successful in 2m47s
2026-11-05 16:07:41 +01:00
renovate-bot a5d95fc90f Update https://git.rfa.cz/tth-pub/ci-actions action to v14
ci / test (push) Successful in 3m19s
ci / test (pull_request) Successful in 3m10s
2026-11-05 15:00:53 +00:00
tthandClaude Opus 5.5 0a4cfafc78 tth.meshcore: MeshCore repeaters as code, over RF
ci / test (push) Successful in 2m39s
Ansible collection that converges MeshCore repeaters through a companion
radio (TCP, USB serial or BLE): admin ACL, CLI prefs, region tree,
firmware facts, companion remote-CLI ACL, and the meshcore-tth extras
(BLE on/off and own BLE PIN, channel-hash filter, message age, advert
fairness). Every change is read, diffed, sent and read back; --check
only reads. ansible-test sanity, unit tests and a galaxy build in CI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 02:23:24 +01:00