mirror of
https://github.com/mikecarper/MeshCore.git
synced 2026-09-25 10:23:36 +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.
25 lines
1.4 KiB
Python
25 lines
1.4 KiB
Python
"""Retrieve 7.7-symbol experiment records without changing earlier captures."""
|
|
import base64
|
|
import hashlib
|
|
import json
|
|
from pathlib import Path
|
|
import subprocess
|
|
import zlib
|
|
root=Path(__file__).resolve().parents[2]
|
|
p=subprocess.run(['pwsh','-NoProfile','-File',r'C:\git\Adafruit_nRF52_Bootloader_OTAFIX\.tmp_mercermesh_bridge.ps1',
|
|
'-ScriptPath',str(Path(__file__).with_name('profile_four_tx_repeat_export.py')),'-DeadlineSeconds','60'],
|
|
capture_output=True,text=True,cwd=root,timeout=65,check=True)
|
|
prefix='FOUR_TX_7P7_CAPTURE '
|
|
lines=[line.removeprefix(prefix) for line in p.stdout.splitlines() if line.startswith(prefix)]
|
|
if len(lines)!=1 or 'MERCERMESH_OPERATION_EXIT 0' not in p.stdout:raise RuntimeError('Incomplete capture export')
|
|
records=json.loads(zlib.decompress(base64.b64decode(lines[0],validate=True)))
|
|
names={'results.json','deployment.json','manifest.json','launch.json','cleanup.json'}
|
|
if set(records)!=names:raise RuntimeError('Unexpected record names')
|
|
targets={name:root/'tools/hil'/('profile_four_tx_sf10_7p7_'+name) for name in names}
|
|
if any(path.exists() for path in targets.values()):raise RuntimeError('Preserve existing local captures')
|
|
for name,record in records.items():
|
|
json.loads(record)
|
|
data=record.encode('utf8')
|
|
with targets[name].open('xb') as f:f.write(data)
|
|
print(json.dumps({'file':str(targets[name]),'sha256':hashlib.sha256(data).hexdigest()}))
|