mirror of
https://github.com/mikecarper/MeshCore.git
synced 2026-09-25 12:43:37 +00:00
Skip redundant modulation writes during owned fast RX retunes when the last acknowledged SF/BW/CR/LDRO tuple matches. Invalidate that cache after ordinary setters, failed writes, and lifecycle changes. Include the remaining scan, preamble, settling, and memory-soak experiments, their collectors, validation notes, and original capture records. Preserve capture bytes across checkouts and keep private soak credentials local. Run lab collector and compiled contract tests in CI. Update the expectation, profile mapping, and result-buffer tests for the extended lab tools, and make the private WiFi override header optional for ordinary soak diagnostics. Validation: 145 host tests passed from the staged source snapshot. Clean heltec_v4_repeater and Xiao_S3_WIO_companion_radio_usb builds passed their RAM/flash gates. All 229 staged capture files retain their original bytes; all 75 local documentation links resolve in the clean snapshot.
21 lines
1.0 KiB
Python
21 lines
1.0 KiB
Python
"""Export only this finished synthetic-packet test; no radio access or writes."""
|
|
import base64
|
|
import hashlib
|
|
import json
|
|
from pathlib import Path
|
|
import subprocess
|
|
import zlib
|
|
|
|
root=Path.home()/'hwtest/runs/pair-sf8-32-20260914'
|
|
names=('results.json','deployment.json','deployment-prewrite-usb.json',
|
|
'deployment-revision.json','manifest.json','launch.json','run-control.json','run-exit.json')
|
|
if not (root/'run-exit.json').exists():raise RuntimeError('Collector still running')
|
|
files={}
|
|
for name in names:
|
|
raw=(root/name).read_bytes()
|
|
files[name]={'sha256':hashlib.sha256(raw).hexdigest(),'bytes':base64.b64encode(raw).decode()}
|
|
services={name:subprocess.run(['systemctl','is-active',name],capture_output=True,text=True,timeout=5).stdout.strip()
|
|
for name in ('ModemManager.service','mctomqtt.service','meshcore-host-cli.service','meshcore-memory-soak.service')}
|
|
data={'files':files,'services_after':services}
|
|
print('PAIR_CAPTURE '+base64.b64encode(zlib.compress(json.dumps(data).encode(),9)).decode(),flush=True)
|