Skip to content

v1.0.2

Choose a tag to compare

@Darcko123 Darcko123 released this 28 Jul 20:30
· 20 commits to main since this release
bf415fa

FaultyCat TUI v1.0.2

Highlights

  • Per-shot trigger for campaigns: the sweep no longer inherits whatever trigger the engine happened to be left with. Both the CLI (campaign configure --trigger) and the TUI Campaign modal now expose a trigger selector and pin it on the engine module right before the sweep config, so you no longer have to open the separate EMFI/Crowbar modal first.
  • Readable failure causes: a step's fire_status / verify_status byte is now decoded instead of being printed as raw hex. A failed step reads fire=CHARGE_TIMEOUT or fire=emfi:HV_NOT_CHARGED rather than fire=0x03, and campaign errors come with an actionable hint.
  • Engine-aware width axis: the width sweep is now validated against the selected engine's real driver bounds (crowbar 8..50000 ns, EMFI 1..50 µs), turning a silently-never-arming sweep into an inline form error.

New Features

  • campaign configure --trigger T (immediate, ext_rising, ext_falling, ext_pulse_pos, ext_pulse_neg) — applied to the engine module before the sweep runs; the confirmation line now echoes the trigger in use
  • trigger selector in the TUI Campaign modal, applied to the EMFI/Crowbar module right before configure
  • decode_fire_status() in protocols/campaign.py, decoding a step's status byte across its three disjoint namespaces: 0x00 clean, 0x80..0xBF engine *_err_t (rendered as engine:ERR_NAME), 0xE0..0xEF executor-phase failures (CONFIGURE_ERR, ARM_ERR, CHARGE_TIMEOUT, FIRE_REJECTED, ENGINE_STUCK) via the new CampaignFireStatus enum
  • CampaignStatus.err_hint() — an actionable, human-readable explanation for each CampaignErr (BAD_CONFIG, NOT_CONFIGURED, BUS_BUSY, STEP_FAILED, INTERNAL)

Improvements

  • The TUI Campaign panel turns red on ERROR, highlights the offending state / err values, and prints the hint below the summary
  • Failed result lines in the TUI are tagged with a highlighted decoded suffix (fire=…, verify=…); clean steps render unchanged
  • campaign status and campaign watch print the error hint, and watch now closes with an error (not a success) line when the sweep ended in a fault
  • campaign drain / campaign watch tables show decoded fire/verify causes, falling back to raw hex only for unknown codes
  • The Campaign modal keeps a per-engine width memory: switching the engine Select swaps the width field to that engine's units (and default), preserving whatever you had typed for the other engine
  • CampaignFormState validates the trigger against the supported set and range-checks the width axis with the same limits the manual EMFI/Crowbar modals enforce
  • Quick Reference updated with the new --trigger option

Bug Fixes

  • Fixed a step's fire_status being reinterpreted as a bare *_err_t, which made an HV charge race report as the unrelated TRIGGER_TIMEOUT
  • Fixed a crowbar-style width triplet (ns) being silently reused for an EMFI sweep, where it was read as µs: every per-shot configure was rejected with BAD_CONFIG, the HV cap never charged, and the sweep looked identical to a dead start

Tests

  • New unit tests covering fire-status decoding across all three namespaces (tests/test_protocols_campaign.py) and engine-specific width/trigger validation in the Campaign modal (tests/test_tui_modals.py)

Packaging

  • Bumped version to 1.0.2 across VERSION, CI workflows, Debian control, the macOS build script, and the Windows installer

Full Changelog: v1.0.1...v1.0.2