diff --git a/RIOv4_2-ANALYSIS.md b/RIOv4_2-ANALYSIS.md index bfca1365..ae6d5b2a 100644 --- a/RIOv4_2-ANALYSIS.md +++ b/RIOv4_2-ANALYSIS.md @@ -318,3 +318,26 @@ failed. Direction asymmetry nails the cause: board->PC was near-perfect estimate predicted. Verdict: 125000 NOT viable. Sweet-spot candidate: `RIOv4_2_patched_62500.bin` (320 cycles/byte, MAX232 in-spec, ACK-wait 80 ticks = 12.8ms), sha256 below, awaiting bench. + +### 62500 bench results (2026-07-18) — the ladder is complete + +`testlogs/riomash-patched-62500-20260718-130333.log` (132s): analog +pristine (88.1% delivery = the structural drop-gate ratio; worst mid-run +gap 0.14s; counters flat; zero wedges; status exchanges fine) but +**NAK=69 of ~1060 lamp commands (~6.5%)** — 4-byte bursts still outrun +the RX ISR occasionally, and fire-and-forget lamp writes turn each loss +into a visible stuck-bright / missed-bright lamp. The ISR's worst-case +path therefore sits right at ~320 E-cycles. + +**The RIO speed ladder (2 MHz E-clock, all with wedge fix):** +| rate | bytes OK inbound | verdict | +|---|---|---| +| 9600 | all | production (native-game compatible) | +| 31250 v2 | all (NAK 0.3%) | CLEAN — FastRIO recommended | +| 62500 | 2-byte yes, 4-byte ~6.5% loss | usable ONLY with host NAK-retransmit | +| 125000 | ~40-65% loss | not viable — CPU wall | + +Host-side NAK-driven retransmit (the protocol's intended use of ACK/NAK; +RioSerialLink currently fire-and-forgets outbound) would make 62500 +lamp-solid (1 retry -> ~0.4% residual, 2 -> ~0.03%) and is good +robustness at any rate. Until then, 31250 v2 is the honest FastRIO. diff --git a/testlogs/riomash-patched-62500-20260718-130333.log b/testlogs/riomash-patched-62500-20260718-130333.log new file mode 100644 index 00000000..34d14cc1 --- /dev/null +++ b/testlogs/riomash-patched-62500-20260718-130333.log @@ -0,0 +1,30 @@ +== RIO mash test :: COM1 @ 62500 8N1, 300s, chip label 'patched-62500' == + lamp echo ON (drives reply/lamp collisions), wedge threshold 2.0s, app auto-recovery DISABLED + log: C:\VWE\riojoy\riomash-patched-62500-20260718-130333.log + firmware: 4.2 + counters before: RestartCount=0 AbandonCount=0 FullBufferCount=0 [board/lamp faults reported!] + +>>> MASH NOW: two hands, 8 lamp buttons, as fast as you can. <<< +>>> Test runs 300s. A wedge alarm will beep + banner. <<< +>>> Ctrl+C ends the run early and still prints the summary. <<< + +[ 33.04s] progress: presses=156 (156/min) analog=521 maxGap=0.22s wedges=0 +[ 63.12s] progress: presses=299 (284/min) analog=998 maxGap=0.22s wedges=0 +[ 93.15s] progress: presses=396 (255/min) analog=1478 maxGap=0.22s wedges=0 +[ 123.17s] progress: presses=505 (246/min) analog=1954 maxGap=0.22s wedges=0 +[ 132.35s] operator stop (Ctrl+C) — ending run, snapshotting counters... + +== MASH SUMMARY [patched-62500] == +run : 132s on COM1, lamps on, wedge threshold 2.0s +firmware : 4.2 +presses/releases : 530 / 530 (238 presses/min) +analog replies : 2115 (~2400 poll slots; 88.1%), sentinels 0 +framing / NAK : 24 / 69 +gap histogram : <100ms:2103 100-250ms:11 250-500ms:0 0.5-1s:0 1-2s:0 2-5s:0 >5s:0 +longest gaps : 0.25s@132.3s, 0.22s@1.8s, 0.14s@54.9s, 0.14s@117.2s, 0.13s@43.6s, 0.13s@14.8s, 0.13s@43.1s, 0.13s@115.0s, 0.12s@124.0s, 0.12s@94.9s +wedge events : 0 +counters before : RestartCount=0 AbandonCount=0 FullBufferCount=0 [board/lamp faults reported!] +counters after : RestartCount=0 AbandonCount=0 FullBufferCount=0 [board/lamp faults reported!] +counter delta : RestartCount=+0 AbandonCount=+0 FullBufferCount=+0 +verdict : PASS — no wedge; compare gap histogram + counter delta to baseline +log file : C:\VWE\riojoy\riomash-patched-62500-20260718-130333.log