Repository navigation
v1.0.2
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_statusbyte is now decoded instead of being printed as raw hex. A failed step readsfire=CHARGE_TIMEOUTorfire=emfi:HV_NOT_CHARGEDrather thanfire=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 usetriggerselector in the TUI Campaign modal, applied to the EMFI/Crowbar module right beforeconfiguredecode_fire_status()inprotocols/campaign.py, decoding a step's status byte across its three disjoint namespaces:0x00clean,0x80..0xBFengine*_err_t(rendered asengine:ERR_NAME),0xE0..0xEFexecutor-phase failures (CONFIGURE_ERR,ARM_ERR,CHARGE_TIMEOUT,FIRE_REJECTED,ENGINE_STUCK) via the newCampaignFireStatusenumCampaignStatus.err_hint()— an actionable, human-readable explanation for eachCampaignErr(BAD_CONFIG,NOT_CONFIGURED,BUS_BUSY,STEP_FAILED,INTERNAL)
Improvements
- The TUI Campaign panel turns red on
ERROR, highlights the offendingstate/errvalues, 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 statusandcampaign watchprint the error hint, andwatchnow closes with an error (not a success) line when the sweep ended in a faultcampaign drain/campaign watchtables 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
CampaignFormStatevalidates 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
--triggeroption
Bug Fixes
- Fixed a step's
fire_statusbeing reinterpreted as a bare*_err_t, which made an HV charge race report as the unrelatedTRIGGER_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.2acrossVERSION, CI workflows, Debian control, the macOS build script, and the Windows installer
Full Changelog: v1.0.1...v1.0.2