Commit Graph
3408 Commits
Author SHA1 Message Date
michal fd9d09cf25 Add compatibility for legacy Laatzen APIs 2026-10-22 07:47:43 +02:00
michal ec38ad897d Do not require local Laatzen runtime source 2026-10-21 22:05:59 +02:00
michal 63839ed44d Fix direct calibration temperature contract 2026-10-21 21:56:52 +02:00
michal 402dd39f34 Fix Laatzen runtime reference preparation 2026-10-21 21:37:55 +02:00
michal 41e76c7128 Merge branch 'develop/SLM-PT50_genesisDirectDecode' into develop/SLM-PT50_genesisDirectDecode_ALLY
# Conflicts:
#	Results/DB.cs
#	Results/Entities/helpers/DatabaseMigrationHelper.cs
#	TBF/Build/CopyGci.targets.xml
#	TBF/Properties/AssemblyInfo.cs
#	TBF/Resources/Strings.cs.resx
#	TBF/Resources/Strings.de.resx
#	TBF/Resources/Strings.es.resx
#	TBF/Resources/Strings.fr.resx
#	TBF/Resources/Strings.it.resx
#	TBF/Resources/Strings.pl.resx
#	TBF/Resources/Strings.resx
#	TBF/Resources/Strings.ro.resx
#	TBF/Resources/Strings.ru.resx
#	TBF/Resources/Strings.sk.resx
#	TBF/Resources/Strings.zh-CN.resx
#	TBF/Rig/Sequences/MainSeq.cs
#	TBF/TBF.csproj
2026-10-21 18:50:27 +02:00
marekf 82043af6b7 Merge branches 2026-10-21 13:20:09 +02:00
marekf b551a5c594 Merge branch 'develop/SLM-PT50_genesisDirectDecode' into develop/SLM-PT50_genesisDirectDecode_mirror 2026-10-21 13:18:11 +02:00
marekf 57d4ced66e Merge branch 'feature/task/UnionTown-table-of-requirements1-10-2026' into 'develop/Local-master' 2026-10-21 13:17:12 +02:00
marekf bcd3488588 <Feat>: Add procedure-level PPU correction for FlyingStart Single, increase revision to 3.9.3147.120
Cause:

- FlyingStart Single lacked a procedure-level calculation of a corrected pulse constant from measured volume errors at different flow rates.
- Correction results needed to be available for configurable export without changing original measurements or the internal TBF results database.

Solution:

1. Added procedure-level PPU correction
   - Added the “Calculate PPU correction” Yes/No setting, disabled by default.
   - Execute PulseCorrectionOp after all regular procedure tests and repetitions are complete, before saving and exporting results.
   - Calculate a common corrected PPU for each active meter using the original measured PPU, volume errors and configured error limits.
   - Preserve the original KorrRechnen acceptance rules, including the strict 8% input-error limit.
   - Invalidate previous corrections when starting a new measurement and reject incomplete or invalid inputs.

2. Added correction results and configurable export
   - Expose corrected PPU, predicted volume error, per-test correction acceptance and overall correction status.
   - Export only selected variables through configured ResultsWriter and UniDataStorageWriter components.
   - Keep correction fields outside the internal TBF results database mapping; require no additional database columns.
   - Preserve original PPU, pulse counts, measured errors and test evaluation.
   - Retain correction values in temporary batch recovery data and support older recovery records.
   - Update FlyingStart simulation to support correction tests and repetitions.

3. Added regression coverage
   - Not filled in.

4. Increased revision
   - Updated TBF AssemblyVersion and AssemblyFileVersion from 3.9.3147.119 to 3.9.3147.120.
2026-10-21 13:14:28 +02:00
michal c25587257d fix(smart-reader): preserve manual optical stream ownership during delayed port identity initialization
- Added `HasOwnedManualOpticalStream` method to ensure manual stream state remains valid regardless of port identity delays.
- Refactored `EnterManual` calls to use the new ownership check.
- Updated tests to verify manual stream ownership handling during transient states.
- Incremented assembly version to 3.9.3178.1.
2026-10-21 12:25:11 +02:00
michal 0603052d03 feat(asic readers): add head profile and custom baud rate support
- Introduced `AsicHeadProfile` to support old, new, and custom ASIC head configurations.
- Added custom baud rate fields for direct radio, RFID service, and optical communication.
- Enhanced `AsicReaderCfg` with profile-based baud rate management via `ApplyHeadProfile`.
- Updated UI with head profile editor, dynamic baud rate configuration, and validation logic.
- Adjusted reader initialization and tests to incorporate profile-based baud rate settings.
2026-10-21 11:48:13 +02:00
michal 64235d0071 feat(poseidon reader): integrate optical test mode and improve standing snapshot handling
- Added `SetStandingOpticalMode` to manage optical test mode transitions for Poseidon readers.
- Enhanced `SmartReader` to toggle test mode before and after optical data capture, ensuring proper mode cleanup.
- Introduced helper method `IsSuccessfulStandingModeResult` to validate optical mode transition responses.
- Updated `TestStartEndForm` to use a new `CreateRegisterReadWatchdog` method for non-designer timer instantiation.
- Expanded unit tests to validate optical mode transitions and standing mode result behaviors.
- Bumped assembly version to 3.9.3177.4.
2026-10-20 16:28:04 +02:00
michal cde72172f2 feat(data-entry, poseidon): enhance modeless dialog handling and add non-finite value sanitization
- Introduced `BeginOpenDialog` for asynchronous WinForms dialog initialization, improving UI responsiveness in `EntryFormNoStartEnd`.
- Added `SanitizeNonFiniteMeterResults` in `DB` to replace NaN/Infinity values before batch persistence, ensuring database compatibility.
- Enhanced `SmartReader` with semaphore-based synchronization for data entry snapshots and direct serial number extraction logic.
- Applied refined error handling for Poseidon optical measurements in `StandingStartMassCollectionSeq`.
- Expanded test coverage with `ResultsDbNonFiniteValueTests` to validate non-finite value sanitization.
2026-10-20 14:07:06 +02:00
marekf 61b47f5416 <Fix>: Protect Q3 calibration details from invalid numeric values, increase revision to 3.9.3147.121
Cause:

- The previous fix protected the main Q3 result, but invalid numeric values could still reach calibration details and prevent the batch from being saved.
- Channel records could inherit an uninitialized nominal calibration factor when Prepare Q3 Calibration had not been executed.
- Missing Q3 deviations were stored as zero in calibration details, incorrectly suggesting a valid zero deviation.

Solution:

1. Protect calibration detail persistence
   - Store NaN and infinity as NULL in calibration error, timing, raw reading and volume fields.
   - Update MySQL and SQLite schemas to allow missing values while preserving existing records and valid numeric values.

2. Validate Q3 calibration factors and deviations
   - Use configured channel factors when the reader's nominal factors are unavailable.
   - Keep the default factor of 15625 when all three configuration fields are empty.
   - Preserve existing snapshots when configuration is invalid.
   - Reject invalid nominal and applied factors before updating meter records.
   - Preserve missing deviations instead of replacing them with zero, and mark invalid calibration details accordingly.

3. Increased revision
   - Updated AssemblyVersion and AssemblyFileVersion from 3.9.3147.119 to 3.9.3147.121.
2026-10-20 09:13:34 +02:00
michal 6eeaa113f5 feat(poseidon communication): add V1 diagnostic frame support for C3/C4 data handling
- Introduced support for V1 optical diagnostic frames (C3/C4) with separate processing to prevent interference with metrology data.
- Added `DiagnosticTelegramReceived` callback in `OptoHeadService` for detailed logging of V1 frames.
- Enhanced `PoseidonOpticalLineParser` to parse and handle C3 calibration factors and C4 auxiliary ADC values.
- Implemented a new diagnostic logging method in `SmartReader` for V1 telegrams.
- Extended test coverage with new cases to validate C3/C4 frame parsing and diagnostic handling.
- Bumped assembly version to 3.9.3176.0.
2026-10-19 15:12:23 +02:00
michal 1b678a5b4a feat(poseidon communication): add C2 metrology support and improve optical data handling
- Introduced `WaterMetrologyData.FromC2` to support legacy C2 metrology payloads.
- Updated protocol profiles to handle C2 message types (`0xC1`) in optical communication.
- Refactored `OptoHeadService` and `SmartReader` to process both C2 and C7 datasets.
- Streamlined optical telegram buffering and applied enhanced metrology data selection logic.
- Improved flow rate and metrology time calculations for C2 compatibility.
- Bumped assembly version to 3.9.3175.0.
2026-10-19 13:19:42 +02:00
michal 6a62ca6c49 fix(poseidon corrections): strip diagnostic annotations from serial numbers
- Added `ExtractSerialNumber` helper to remove diagnostic information from serial numbers appended by the direct protocol formatter.
- Updated serial number handling to ensure persistent fields and exported results remain clean.
2026-10-19 11:02:53 +02:00
michal 246d6082d7 feat(poseidon communication): refactor SmartCommunication system with NA2W direct command enhancements
- Replaced legacy worker-thread structure with a single-threaded command scheduler for improved resource handling.
- Added support for retries and delays between direct NA2W commands with enhanced error logging.
- Enabled integration of shared SmartCommunicationForm for better operator visibility and control over direct communication tasks.
- Consolidated redundant logic for optical capture and data stream operations into reusable components.
- Published new Poseidon activities with public identifiers to streamline task configuration.
- Introduced new helper methods and synchronization mechanisms to simplify water meter data mapping and result updates.
- Optimized workflow by embedding inline progress updates for real-time feedback during execution.
- Version bumped to 3.9.3174.0.
2026-10-19 10:12:17 +02:00
michal 40a4546058 feat(poseidon communication): add direct command support with NA2W serial transport and configuration tests
- Introduced `PoseidonNa2wSerialTransport` for raw NA2W command handling without CLI or vendor dependencies.
- Added `PoseidonCommunicationCfg` for direct communication settings, including retries, timeouts, and serial parameters.
- Implemented unit tests to validate configuration and parameter exposure in `PoseidonCommunicationConfigTests`.
- Updated project files to include new Poseidon communication classes and tests.
- Bumped version to 3.9.3173.0.
2026-10-19 07:28:57 +02:00
michal d45cecdea8 feat(poseidon register-readers, ui): enhance PoseidonReader with direct communication support and expanded configuration options
- Replaced legacy `SerialPortData` and `NfcHeadServiceOld` with `PoseidonCommandAccessFactory` for improved direct communication.
- Added new configurable parameters for direct raw capture, baud rate, timeout, and retries in `PoseidonCfgCtrl`.
- Introduced measurement configuration support in the UI with a dedicated tab.
- Expanded localized resource strings for multiple languages to include direct communication labels and tooltips.
- Updated logging configuration to include a new appender for `PoseidonDirect` communication.
- Refactored code to remove obsolete elements and improve UI consistency.
2026-10-18 13:30:29 +02:00
michal 9cb0b5a388 feat(register-readers): improve CLI logging, add fallback support, and enhance test coverage
- Introduced configurable CLI logging path for better debugging (`PoseidonReader` and `CliRunner`).
- Implemented legacy CLI fallback mechanism in `SerialPortData` with compatibility validation.
- Enhanced logging granularity for CLI operations including outputs, errors, and task details.
- Added new test cases to validate default CLI configuration and fallback logic.
- Updated assembly version to 3.9.3170.0.
2026-10-13 12:42:56 +02:00
michal 16a1ed5173 feat(ui, asic): enhance logging configuration and streamline group management
- Added new localized resource strings for optical and group-related configurations.
- Refactored `AsicReaderLogsCfgCtrl` and `AsicReaderCfgCtrl` to utilize shared components for consistency.
- Simplified UI initialization with dock-based controls for better layout management.
- Removed legacy code and unused designer elements to improve maintainability.
2026-10-13 12:12:49 +02:00
michal d4ed5437d9 feat(register-readers, ui): implement group-based presets and concurrency controls for scheduling
- Added `GroupPresetConcurrency` to `AsicReaderCfg` for explicit group-based execution.
- Updated `RegisterReaderGroupScheduler` to support parallel and serial processing based on approved presets.
- Expanded resource strings with localization for group-related features and tooltips.
- Enhanced UI components in `AsicReader` for improved user configuration and diagnostics.
- Refactored designer code to improve readability and ensure compatibility with runtime setup.
2026-10-13 10:37:30 +02:00
marekf 6d007270e8 <Fix>: Update procedure tab caption for heat meters, increase revision to 3.9.3147.120
Cause:

- The procedure editor always displayed the "Water meters" tab caption.
- Selecting "Heat meter" left a misleading caption.

Solution:

1. Display the caption according to the selected meter kind
   - Show "Heat meters" for heat meter procedures.
   - Update the caption immediately when the selection changes.

2. Add localized captions
   - Added translations for all supported UI languages.
   - Preserved "Water meters" for Single and Compound selections.
   - Measurement behavior remains unchanged.

3. Added regression coverage
   - Not filled in.

4. Revision increase — pending
   - Update AssemblyVersion and AssemblyFileVersion from 3.9.3147.119 to 3.9.3147.120 before committing.
2026-10-13 08:41:00 +02:00
michal 4936afbc52 feat(ally, asic): introduce group-based command scheduling with enhanced parallelism and locking
- Added group-based scheduling to RegisterReaderGroupScheduler to optimize calibration and batch processing.
- Introduced `Group1` and `Group2` configuration for logical lanes and batches in `AllyReaderCfg` and related classes.
- Enhanced `AllyReaderCfgCtrl` with UI changes for group settings and optical head presets.
- Updated `AllyMeterReader` and other components to utilize group settings and locking for shared resources.
- Revised test cases to cover group-based parallelism and new execution logic.
- Bumped version to 3.9.3169.0.
2026-10-09 18:26:48 +02:00
marekf 61d2a82091 <Fix>: Correct UnionTown persistence fix revision, increase revision to 3.9.3147.119
Cause:

- Commit 3a5950319 introduced the missing Q3 result persistence fix without incrementing the TBF revision.
- Both the XLSX export fix and the subsequent UnionTown persistence fix therefore reported 3.9.3147.118.

Solution:

1. Give the combined fixes a distinct revision
   - Assign 3.9.3147.119 to the current code containing both fixes.
   - Preserve the already published commit history.

2. Validation
   - Verified both assembly version attributes and checked the diff.
   - No application logic changed; existing build and test results are not a rebuild of revision 119.

3. Increased revision
   - Updated TBF AssemblyVersion and AssemblyFileVersion from 3.9.3147.118 to 3.9.3147.119.
2026-10-09 11:49:50 +02:00
marekf 0db2ba0c7d <Fix>: Correct UnionTown persistence fix revision, increase revision to 3.9.3147.119
Cause:

- Commit 3a5950319 introduced the missing Q3 result persistence fix without incrementing the TBF revision.
- Both the XLSX export fix and the subsequent UnionTown persistence fix therefore reported 3.9.3147.118.

Solution:

1. Give the combined fixes a distinct revision
   - Assign 3.9.3147.119 to the current code containing both fixes.
   - Preserve the already published commit history.

2. Validation
   - Verified both assembly version attributes and checked the diff.
   - No application logic changed; existing build and test results are not a rebuild of revision 119.

3. Increased revision
   - Updated TBF AssemblyVersion and AssemblyFileVersion from 3.9.3147.118 to 3.9.3147.119.
2026-10-09 11:49:26 +02:00
marekf 870af37ffa <Fix>: Correct UnionTown persistence fix revision, increase revision to 3.9.3147.119
Cause:

- Commit 3a5950319 introduced the missing Q3 result persistence fix without incrementing the TBF revision.
- Both the XLSX export fix and the subsequent UnionTown persistence fix therefore reported 3.9.3147.118.

Solution:

1. Give the combined fixes a distinct revision
   - Assign 3.9.3147.119 to the current code containing both fixes.
   - Preserve the already published commit history.

2. Validation
   - Verified both assembly version attributes and checked the diff.
   - No application logic changed; existing build and test results are not a rebuild of revision 119.

3. Increased revision
   - Updated TBF AssemblyVersion and AssemblyFileVersion from 3.9.3147.118 to 3.9.3147.119.
2026-10-09 11:48:55 +02:00
marekf 3a59503192 <Fix>: Preserve missing Q3 results and stop exports after batch save failures
Cause:

- Q3 results can contain NaN, which cannot be stored as a regular MySQL numeric value.
- MainSeq ignored SaveNewBatch failure and continued processing, potentially reporting a misleading RsltsSent update error.

Solution:

1. Persist unavailable result errors safely
   - Store non-finite MeterTestRslt.Error values as database NULL.
   - Restore NULL as NaN when loading, preserving finite values and test pass/fail status.
   - Allow NULL in older MySQL Error columns while retaining their numeric type and finite default.

2. Stop processing after database save failures
   - Return the underlying error from SaveNewBatch.
   - Stop before export, printing and RsltsSent updates when saving fails.
   - Dispose database resources and preserve the original exception if rollback also fails.

3. Added regression coverage
   - Verify NULL/NaN round trips through production NHibernate mappings using in-memory SQLite.
   - Verify finite values, non-finite parameter conversion and save-failure reporting.
   - All 4 targeted tests passed; Results and TBF Release builds passed.

4. Revision
   - AssemblyVersion and AssemblyFileVersion remain at 3.9.3147.118.
2026-10-09 11:27:56 +02:00
michal e58fc73d5d fix(writer): backport XLSX batch export optimization from 3e1240c0e
- Load the workbook once and save once per batch
- Publish through a temporary file to protect existing output
- Discard buffered changes on failure or cancellation
- Preserve standalone writes, CSV exports and result row views
- Add regression tests for batch exports and failure scenarios
- Keep the current application version and ALLY/ASIC behavior unchanged

Source: 3e1240c0ea
2026-10-09 11:23:09 +02:00
michal 0e98cf23e5 chore(version): bump version to 3.9.3167.0 in AssemblyInfo.cs 2026-10-09 10:30:22 +02:00
michal 1a5a4d6faf fix(ally): fix lock to continue on work if not COM port exist
add recoverable optical start handling with lifecycle logging and test coverage

- Introduced `RecoverableAllyStartOp` adapter to handle recoverable errors during optical measurement start.
- Enhanced `FlyingStartMassCollectionSeq` with improved error recovery and control transfer logic.
- Updated `AllyMeterReader` to expose `MeasurementStartFailed` for error evaluation.
- Added comprehensive test cases for recoverable and successful optical starts.
2026-10-09 10:26:57 +02:00
marekf 3e1240c0ea <Fix>: Batch XLSX result - long exports, increase revision to 3.9.3147.118
Cause:

- ResultsWriter exported each meter/test result as a separate write operation, repeatedly loading and saving the entire XLSX workbook.
- Exporting 20 meters with 12 tests took approximately 9 minutes in the supplied production log.

Solution:

1. Added an explicit batch write scope
   - Load the XLSX workbook once, buffer rows and save once after successful completion.
   - Preserve standalone SetData behavior, existing CSV exports and both result row views.

2. Handle unsuccessful exports safely
   - Discard buffered XLSX changes on failure or cancellation.
   - Publish through a temporary file to protect the existing workbook.
   - Report export success only after saving completes; preserve the existing RsltsSent behavior.

3. Added regression coverage
   - Verify 240-row export, subsequent appends, standalone writes, cancellation, invalid rows, locked destinations and empty exports.
   - All 16 targeted tests passed. A small test workbook export of 20 meters x 12 tests took 446 ms.

4. Increased revision
   - Updated TBF AssemblyVersion and AssemblyFileVersion from 3.9.3147.117 to 3.9.3147.118.
2026-10-09 10:09:42 +02:00
michal ae7b46baed feat(core): add ResultOutputJob and improved output processing logic in MainSeq
- Introduced `ResultOutputJob` class to handle result delivery with enhanced thread safety and logging.
- Updated `MainSeq` to manage output jobs independently and ensure fault tolerance for multiple outputs.
- Added cancellation and timeout handling for result outputs with detailed status reporting.
- Improved user interaction for stopping output processing during runtime.
2026-10-09 08:24:49 +02:00
michal 503a84bb93 fix<backup logging>: log can wotk if test working, but take only snapshot 2026-10-08 16:01:20 +02:00
michal 99fda000d2 feat(ui): enhance DataBackupForm with path copy features and improved file handling
- Added tooltip and double-click functionality to copy file paths to the clipboard.
- Implemented "Copy backup file" button with custom drawing and clipboard integration.
- Improved status updates and error handling for clipboard operations.
2026-10-08 15:50:09 +02:00
marekf 3202da1c86 <Fix>: Synchronize Laatzen runtime through GCI builds, increase revision to 3.9.3147.117
Cause:

- Incomplete runtime copying mixed outdated and current Laatzen assemblies, causing missing-library and assembly-version errors.
- An explicitly configured local output path was incorrectly treated as an external binary package, skipping local dependency preparation.

Solution:

1. Make GCI build update the Laatzen runtime
   - Prepare local GenesisToolBox dependencies before resolving GCI references.
   - Validate and synchronize the runtime into packages/Common, GCI output and the runtime package.
   - Reject missing or incompatible assemblies before copying.

2. Preserve external binary package support
   - Normalize source paths to correctly recognize local output.
   - Consume packages from other directories without building external projects and preserve the BuildLocalLaatzenRuntime override.
   - Copy runtime subdirectories into TBF output, remove obsolete binding redirects and track synchronized files while preserving unrelated destination files.
   - Include the refreshed Common runtime distribution, documentation and the patch required for the ignored external GenesisToolBox project.

3. Added regression coverage
   - Added checks for missing assemblies, incompatible versions, recursive copying, stale-file cleanup and manifest path containment; synchronization checks passed.
   - GCI rebuild passed with the explicit local source path from the failing Visual Studio log; external-package mode and explicit preparation disablement also passed.
   - Verified identical copies of three affected DLLs across all five pipeline locations.
   - TBF copying passed; full TBF compilation remained unverified because other project outputs were missing. The subsequent revision-only change was verified in source.

4. Increased revision
   - Updated TBF AssemblyVersion and AssemblyFileVersion from 3.9.3147.116 to 3.9.3147.117.
2026-10-08 14:59:38 +02:00
michal 43a5e1bd0e feat(ui, asic): add Data Backup UI, new optical volume tests, and enhanced batch handling for ASIC readers
- Introduced `DataBackupForm` UI for streamlined data backup functionality with language localization and preferences support.
- Added detailed tests for optical volume handling: FlyingVolume with signed modulo handling, reverse boundaries, and unwrapping.
- Enhanced batch processing with robust error handling for ASIC optical measurements.
- Updated `MainWnd` with menu integration for data backup access.
2026-10-08 11:26:50 +02:00
michal 1932e6f4fc feat(asic, ally): add detailed optical measurement logging with configuration diagnostics for improved debugging 2026-10-08 09:20:06 +02:00
michal ffd7602a6f feat, fix (asic, ally): CalibFactor, SerialNr, delayed optical start - for flying
functionality with configuration options, UI enhancements, logging updates, and comprehensive test coverage
2026-10-07 19:17:08 +02:00
michal e2e71dfd26 feat(ally): implement FlyingEarlyCapture and batch optical processing for Ally readers with new configuration options, enhanced logging, and comprehensive test coverage 2026-10-07 16:19:32 +02:00
marekf 1f4d9dddd2 <Fix>: Correct Cordonel calibration percentage base, increase revision to 3.9.3147.116
Cause:

- Cordonel calibration percentages could use the legacy iPerl nominal factor of 4096.
- This produced misleading corrections such as 265.5762 %.

Solution:

1. Use channel-specific nominal factors
   - Calculate percentages against the initial factor configured for each Cordonel channel.
   - Preserve the existing parent-meter mapping to CH3.
   - Populate channel meters with their own applied and nominal factors.

2. Keep factor values synchronized
   - Update results after successful factor register writes and during calibration preparation.
   - Apply the same mapping when creating channel meters and in simulation.
   - Preserve existing variable names and iPerl percentage behavior.

3. Added regression coverage
   - Added tests for channel-specific bases, parent CH3 mapping, newly created channels, preparation reset and meter isolation.
   - Added coverage for the unchanged iPerl default of 4096.
   - Isolated checks using production helper code and percentage getters passed.

4. Increased revision
   - Updated AssemblyVersion and AssemblyFileVersion from 3.9.3147.115 to 3.9.3147.116.
2026-10-07 14:10:32 +02:00
michal e113a29a16 feat(asic): add standing optical read functionality with diagnostic logging, improved rollover handling, and updated test coverage ver 3.9.3161.0 2026-10-07 13:38:56 +02:00
marekf fd0649bc44 <Fix>: Add Write Q3 Calibration results to channel tables, increase revision to 3.9.3147.115
Cause:

- Write Q3 Calibration results were only recorded for the parent meter.
- Channel tables did not show individual factor deviations or the calibration write outcome.

Solution:

1. Add channel result rows
   - Add Write Q3 Calibration to CH1, CH2 and CH3.
   - Display each channel's signed factor deviation in E rel.
   - Preserve the maximum deviation displayed for the parent meter.

2. Record the calibration write outcome
   - Populate Test passed() from the actual write operation outcome.
   - Mark all three channel rows as failed when the write is rejected.
   - Update existing rows on repeated execution without creating duplicates.
   - Keep other auxiliary Q3 communication steps out of channel tables.

3. Added regression coverage
   - Added coverage for signed deviations, rejected writes, successful retries, missing data, duplicate prevention and meter isolation.
   - Isolated checks of the row-update helper passed using minimal model stubs.

4. Increased revision
   - Updated AssemblyVersion and AssemblyFileVersion from 3.9.3147.114 to 3.9.3147.115.
2026-10-07 13:23:36 +02:00
marekf c465dd96e9 <Fix>: Display maximum Q3 calibration factor deviation, increase revision to 3.9.3147.114
Cause:

- E rel. in the Write Q3 Calibration row did not display the calculated factor deviation.
- Users could not see the largest factor change when calibration passed or was rejected.

Solution:

1. Display the maximum signed deviation
   - Select the channel with the largest absolute percentage change from its original calibration factor.
   - Preserve the sign and store the value in E rel. for the Write Q3 Calibration activity.

2. Record deviations regardless of validation outcome
   - Store the deviation before rejecting factors outside the configured limits.
   - Display the value when all channels are within limits.
   - Preserve existing factor validation and write behavior.
   - Clear the previous value before each attempt and use NaN for unavailable data.

3. Added regression coverage
   - Added tests for positive and negative deviations within and outside limits, and missing channel data.
   - Standalone calculation checks passed for five signed-deviation cases and three invalid-data cases.

4. Increased revision
   - Updated AssemblyVersion and AssemblyFileVersion from 3.9.3147.113 to 3.9.3147.114.
2026-10-07 13:07:26 +02:00
marekf 712ac6c9b6 <Fix>: Correct Cordonel Login result evaluation, increase revision to 3.9.3147.113
Cause:

- Login results were evaluated using shared communication-head flags instead of the outcome of the individual login operation.
- Failed login attempts could appear as passed in Test passed().

Solution:

1. Store individual login outcomes
   - Capture Login and Login (Combined workflow) results separately for each test and meter.
   - Populate Test passed() from the captured outcome.

2. Preserve results across subsequent activities
   - Prevent later communication-head state changes from overwriting the login outcome.
   - Treat missing login outcomes as not passed.
   - Preserve result evaluation for other communication activities.

3. Verification
   - git diff --check passed.
   - No automated regression tests added.

4. Increased revision
   - Updated AssemblyVersion and AssemblyFileVersion from 3.9.3147.112 to 3.9.3147.113.
2026-10-07 12:12:08 +02:00
michal d5c4152060 fix(ally): Now Dialog.Closing() will not stop optical stream!
enhance optical lifecycle logging and safeguard manual testing operations
2026-10-07 10:16:37 +02:00
michal 23235626ba chore(build): bump AssemblyVersion and AssemblyFileVersion to 3.9.3159.0 2026-10-06 21:28:33 +02:00
michal 9444959efe feat(asic): add experimental optical processing for ASIC readers with configurable batch handling, UI enhancements, and extensive test coverage 2026-10-06 17:52:33 +02:00
michal 7a10b9f4b6 feat(asic): implement FlyingEarlyCapture for ASIC readers, adding forward optical measurement with configuration options, updates to UI, and full test coverage 2026-10-06 13:18:15 +02:00