Files
HC_APTBS/Models/EepromPassword.cs
LucianoDev 827b811b39 feat: developer tools page, auto-test orchestrator, BIP display, tests redesign
Bundles several feature streams that have been iterating on the working tree:

- Developer Tools page (Debug-only via DEVELOPER_TOOLS symbol): hosts the
  identification card, manual KWP write + transaction log, ROM/EEPROM dump
  card with progress banner and completion message, persisted custom-commands
  library, persisted EEPROM passwords library. New service primitives:
  IKwpService.SendRawCustomAsync / ReadEepromAsync / ReadRomEepromAsync.
  Persistence mirrors the Clients XML pattern in two new files
  (custom_commands.xml, eeprom_passwords.xml).
- Auto-test orchestrator (IAutoTestOrchestrator + AutoTestState): linear
  K-Line read -> unlock -> bench-on -> test sequence with snackbar UI and
  progress dialog VM, gated on dashboard alarms.
- BIP-STATUS display: BipDisplayViewModel + BipDisplayView, RAM read at
  0x0106 via IKwpService.ReadBipStatusAsync; status definitions in
  BipStatusDefinition.
- Tests page redesign: TestSectionCard + PhaseTileView replacing the old
  TestPlanView/TestRunningView/TestDoneView/TestPreconditionsView/
  TestSectionView controls and their VMs.
- Pump command sliders: Fluent thick-track style with overhang thumb,
  click-anywhere-and-drag, mouse-wheel adjustment.
- Window startup: app.manifest declares PerMonitorV2 DPI awareness,
  MainWindow installs a WM_GETMINMAXINFO hook in OnSourceInitialized and
  maximizes there (after the hook is in place) so the app fits the work
  area exactly on any display configuration.
- Misc: PercentToPixelsConverter, seed_aliases.py one-shot pump-alias
  importer, tools/Import-BipStatus.ps1, kline_eeprom_spec.md and
  dump-functions reference docs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-07 13:59:50 +02:00

27 lines
1.1 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using CommunityToolkit.Mvvm.ComponentModel;
namespace HC_APTBS.Models
{
/// <summary>
/// A named EEPROM unlock password. Persisted in
/// <c>%UserProfile%\.HC_APTBS\config\eeprom_passwords.xml</c> and managed by
/// the Developer Tools page's password library.
///
/// <para>Applying a password sends the KWP unlock packet
/// <c>[0x18 0x00 Zone KeyHi KeyLo]</c> over the persistent K-Line session.
/// Keys vary across pump variants, so users typically include the variant
/// in <see cref="Name"/> to disambiguate.</para>
/// </summary>
public sealed partial class EepromPassword : ObservableObject
{
/// <summary>Display name shown in the password list (e.g. "Bosch v2 — Zone 0").</summary>
[ObservableProperty] private string _name = string.Empty;
/// <summary>EEPROM zone identifier (typically 03 plus 8 for the magic zone).</summary>
[ObservableProperty] private byte _zone;
/// <summary>16-bit unlock key. Big-endian on the wire (KeyHi then KeyLo).</summary>
[ObservableProperty] private ushort _key;
}
}