main
John Lauer Verified thermal vias with ground continuity; device protocol and host interoperability tests; no thermal or fabricatio… 8082416
<!doctype html><html lang="en"><meta charset="utf-8"><meta name="viewport" content="width=device-width"><title>Adom Load · C protocol test</title>
<style>:root{color-scheme:dark;font:18px system-ui;background:#101723;color:#e9f2fa}body{max-width:1160px;margin:35px auto;padding:25px}.badge{display:inline-block;border:1px solid #ad803e;padding:8px 14px;color:#ffcf81;border-radius:6px}h1{font-size:38px;margin-bottom:10px}p,small{color:#aabed0}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:28px 0}.card,pre{background:#192639;border:1px solid #344760;border-radius:10px;padding:20px}.value{font-size:36px;font-weight:650;color:#74e6c9;margin-top:8px}.wire{display:grid;grid-template-columns:1fr 1fr;gap:20px}pre{font:16px ui-monospace,monospace;white-space:pre-wrap;min-height:230px;margin:12px 0}button{font:inherit;background:#74e6c9;border:0;border-radius:6px;padding:12px 25px;color:#11282c;cursor:pointer}#note{min-height:62px;font-size:23px}footer{font-size:14px;color:#aabed0;line-height:1.5;margin-top:20px}.bad{color:#ff9d8a}.controls{display:flex;gap:20px;align-items:center}</style>
<div class="badge">HOST SIMULATION · COMPILED C · NO HARDWARE CONNECTED</div><h1>Commands must earn permission to enable.</h1><p>Live requests to the portable device protocol. Synthetic telemetry; assembly qualification stays false.</p>
<div class="cards"><div class="card"><small>Controller state</small><div class="value" id="state">OFF</div></div><div class="card"><small>Enable output command</small><div class="value" id="enabled">LOW</div></div><div class="card"><small>DAC command</small><div class="value" id="dac">0</div></div></div>
<div id="note">Ready: identify, claim, setpoint, interlock refusal, replay refusal, explicit fault clear.</div>
<div class="wire"><div><small>Request to C firmware logic</small><pre id="request">Waiting for a request.</pre></div><div><small>Actual C response · selected fields</small><pre id="response">Waiting for a response.</pre></div></div>
<div class="controls"><button id="run">Run protocol test</button><span id="progress">0 / 8</span></div><footer>Runs the actual load_protocol.c and load_core.c in a local process. The interface displays their responses; it does not operate USB, GPIO, a DAC or a physical load. Hardware callbacks, MCU timing and USB enumeration remain unverified. Delays between requests are for presentation only.</footer>
<script>
const $=id=>document.getElementById(id),notes=['Identity received. No enable request.','Control session bound to this boot. Output stays OFF.','Explicit OFF confirmed: DAC zero and enable LOW.','0.4 A requested. A setpoint alone cannot enable the load.','ARM refused: this assembly is not qualified. Fault latched.','Repeated sequence rejected. No replay and no automatic restart.','Fresh heartbeat received. Fault still latched.','Explicit fault clear returns to OFF. It does not arm.'];
$('run').onclick=async()=>{const button=$('run');button.disabled=true;try{await fetch('/reset',{method:'POST'});for(let i=0;i<8;i++){const r=await fetch('/step',{method:'POST'});if(!r.ok)throw Error(await r.text());const d=await r.json(),s=d.response;$('request').textContent=JSON.stringify({...d.request,owner:d.request.owner?'[test owner token]':undefined},null,2);$('response').textContent=JSON.stringify({id:s.id,ok:s.ok,error:s.error||undefined,state:s.state,enabled:s.enabled,dac_code:s.dac_code,requested_a:s.requested_a},null,2);$('state').textContent=s.state;$('state').className='value '+(s.state==='FAULT'?'bad':'');$('enabled').textContent=s.enabled?'HIGH':'LOW';$('dac').textContent=s.dac_code;$('note').textContent=notes[i];$('progress').textContent=(i+1)+' / 8';await new Promise(resolve=>setTimeout(resolve,1400));}}catch(e){$('note').textContent='Test failed: '+e.message;}finally{button.disabled=false;button.textContent='Run again';}};
</script></html>