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.
28 lines
1.2 KiB
Python
28 lines
1.2 KiB
Python
"""Read-only exact-fixture check before the two-profile preamble experiment."""
|
|
import json
|
|
from pathlib import Path
|
|
import subprocess
|
|
import sys
|
|
|
|
root=Path.home()/'hwtest/runs/four-tx-sf10-20260914'
|
|
sys.path.insert(0,str(root))
|
|
from profile_four_tx_fixture import TXS,RX
|
|
from profile_four_tx import open_radio
|
|
from profile_switch import exchange
|
|
|
|
if subprocess.run(['systemctl','is-active','--quiet','meshcore-memory-soak.service']).returncode==0:
|
|
raise RuntimeError('Receiver is in use by the soak test')
|
|
for target in (TXS[0],TXS[3],RX):
|
|
port,info=open_radio(target)
|
|
try:
|
|
if info.get('board')!=target['board']:raise RuntimeError('Board identity mismatch')
|
|
row={'board':target['board'],'serial':target['serial'],'port':port.port,'info':info}
|
|
if target is RX:
|
|
row['status']=exchange(port,'scanstatus 1','result',3,1,cached=True)
|
|
if row['status'].get('active') or row['status'].get('channels')!=0:
|
|
raise RuntimeError('Receiver already scanning')
|
|
elif info.get('prepared') or info.get('packet_count') or info.get('failed'):
|
|
raise RuntimeError('Transmitter is not idle')
|
|
print(json.dumps(row),flush=True)
|
|
finally:port.close()
|