- Accept observed 0x03 nine-field telegrams with 0hX trailers.
- Add optical packet rejection diagnostics and Poseidon debug logging.
- Cap standing snapshot waits and fail when optical loop cannot start.
- Select Poseidon corrections once per reader family.
- Bump version to 3.9.3183.0.
- Filter preview updates to selected cameras and clear disabled streams.
- Skip start/end image grabs for disabled water meters.
- Retry incomplete JMS send acquisitions and extend first-packet timeout handling.
- Show selected camera in image overlay text.
- Introduced `CameraCaptureSelection` for configurable camera capture aligned with water meter selection from Data Entry.
- Added `ApplyLiveStreamSelection` to dynamically update live streams and operator preview based on camera selection.
- Implemented retry logic for JMS image acquisition (`GrabImagesOp`) with up to 3 attempts for robust handling of partial or failed send operations.
- Enhanced preview handling in `PicturesTabPageCtrl` to prevent unselected cameras from overwriting the preview during tests.
- Added `IWaterMeterSelection` interface and integrated it into `EntryForm` to streamline water meter-related decisions.
- Improved logging with detailed information for capture routing and selection logic.
- Added unit tests for `CameraCaptureSelection` to validate behavior in various selection scenarios.
- Simplified display text formatting in `TestStartEndForm` by removing unnecessary date and time information.
- Added an alias for `CalibrationTemperatureInput` in `GciBridge` for improved code clarity.
- Introduced `LiveStreamSupervisorAsync` to enable automatic recovery of camera live streams after disconnections or failures.
- Added timeout handling improvements to `CameraLineReader` to prevent indefinite blocking during TCP half-open states.
- Enhanced live stream cleanup logic with graceful shutdown and transport fault recovery.
- Introduced new integration tests for live stream recovery covering manual power cycles, transport failures, and communication resilience.
- Improved logging with additional diagnostic information to monitor recovery and live stream status.
- Updated data entry logic to keep selections auditable with detailed logging.
- Added support for simulating transport failures in hardware tests to verify recovery behavior.
- Added `AppDiagnostic` project reference with `ReferenceOutputAssembly` set to false in `TBF.csproj`.
- Updated `PostBuildEvent` to use the relative AppDiagnostic path for improved flexibility.
- Introduced `SendImagesParameters` class to encapsulate image count and delay logic for JMS `send` operations with validation.
- Updated `GrabImagesOp` to utilize `SendImagesParameters` for improved parameter consistency and readability.
- Added unit tests for `SendImagesParameters` to validate runtime values and ensure normalized behavior.
- Implemented `ReloadCamRoiForCurrentProcedure` in `Camera` to refresh ROI parameters dynamically between image operations, addressing outdated snapshot issues.
- Added debug logging for DataEntry sensor selection, auto-read configuration, and timeout handling.
- Refactored reader resolution logic to prevent stale paths and rebuild sparse slot mappings.
- Improved handling of Poseidon family readers with explicit opt-out and legacy position mask support.
- Updated tests to validate Poseidon reader selection, settings preservation, and multi-cycle behavior.
- Revised SmartCommunicationForm to dynamically rebuild layouts when switching reader families.
- Incremented assembly version to `3.9.3182.0`.
- Decode legacy 0x03/0x83 optical frames with a 24-bit accumulator
and 8192 Hz ASIC timestamp
- Buffer fragmented frames and support 7/8-field firmware variants
- Route OriginalIperlCommunication through SmartCommunicationForm
- Add opt-in USB head connectivity and read-only factory ID tests
- Document Poseidon configuration, optical capture and diagnostics
- Remove generated XML documentation from bin/Debug
- Introduced `NativeTouchRead` command access mode in `PoseidonCommandAccessMode`, tailored for new HAT devices.
- Implemented `PoseidonNativeTouchReadCommandAccess` for native parameter reading and TouchRead transmissions.
- Added new methods for probing native HAT head identity and factory ID requests for diagnostics.
- Enhanced `PoseidonNa2wSerialTransport` with execution and raw capture of native commands.
- Updated tests to validate `NativeTouchRead` behavior, including transport-level and payload-specific scenarios.
- Revised configuration defaults to accommodate native baud rates and added safeguards for legacy mode mismatch.
- Introduced `RefEnergy` column in `TestRslt` table for both MySQL and SQLite databases to ensure compatibility with NHibernate result persistence.
- Updated migration helpers to include `EnsureTestResultHeatColumnsMySql` and `EnsureTestResultHeatColumnsSQLite` methods.
- Added unit test validation to verify the default value of `RefEnergy` in `GenesisRecoveryTests`.
- Incremented assembly version to `3.9.3180.1`.
- Added logging for batch state during result persistence in `MainSeq` and `DB` operations.
- Enhanced error diagnostics in `SaveNewBatch` with detailed failure messages and rollback handling.
- Refactored `SaveNewBatch` logic into a core method (`SaveNewBatchCore`) to centralize error handling.
- Prevented loss of database context by preserving concrete error reasons and improving logging granularity.
- Added new localized string resources for bulk edit operations.
- Included additional strings related to optical data processing and diagnostics.
- Introduced strings for managing reader group configurations and their associated tooltips.
- Introduced `AsicReaderHeadCfgCtrl` as a new UserControl for head profile selection and baud rate configuration.
- Added UI components for direct radio, RFID service, and optical baud rate settings.
- Supported predefined and custom ASIC head profiles for flexible baud rate management.
- Updated project structure and embedded resources to include new files for the control.
- Incremented assembly version to 3.9.3179.0.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- Introduced `BulkComponentParametersDlg` to support simultaneous parameter updates for selected components.
- Added context menu in `ComponentsManagerDlg` with bulk edit and copy column options.
- Updated resource strings for localization of bulk editing actions and tooltips.
- Enhanced UI controls to handle mixed values, validation, and conditional updates efficiently.
- Included new providers (iPerl and WaterMeter) for bulk parameter management.
- 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.
- 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.
- 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.
- 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.
- 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
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.
- 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.
- 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.
- 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.
Implement error limit configuration for Q3 calibration factors.
- Add default and configurable error limits for Q3 calibration validation.
- Introduce `CalculateQ3CalibrationWithErrorLimits` for flexible validation handling.
- Overhaul Q3 workflow to respect configured limits, with fallback to defaults.
- Extend tests for calibration, including boundary and invalid inputs.
Implement error limit configuration for Q3 calibration factors.
- Add default and configurable error limits for Q3 calibration validation.
- Introduce `CalculateQ3CalibrationWithErrorLimits` for flexible validation handling.
- Overhaul Q3 workflow to respect configured limits, with fallback to defaults.
- Extend tests for calibration, including boundary and invalid inputs.
A – Registration and execution
- Register GenesisCommunication Factory in the component list.
- Separate the Genesis form and sequence from iPerl communication.
B – Communication activities
- Restore initialization, connection, PCB reading, password and login.
- Include grouped login, mode switching and disconnection.
- Support processing up to 10 slots.
C1 – Input calibration factors
- Read three factors from Water meters / Text1–Text3.
- Validate integer values in the range 1–65535.
- Preserve the default of 15625 when all three fields are empty.
D – Q3 calibration
- Connect the Prepare Q3 → measurement → Write Q3 workflow.
- Add channel processing to FlyingStart and FlyingStartMassCollection.
- Reset previous measurement data and validate calculated factors.
- Mark factors as stored only after StoreCalibration succeeds.
E – Results and database
- Store calibration factors separately for each meter and channel.
- Add result entities, mappings and Q3 data.
- Extend DB.cs / EnsureSchema to create and update the schema.
- Preserve compatibility with the existing binary format.
Validation:
- Debug build and 18 tests passed.
- Simulated communication runs follow the same activity sequence.
- The complete Q3 workflow has not yet been verified on hardware.
Known limitation:
- An inherited mismatch in simulated responses and error propagation
can produce an incorrect OK result; this change does not fix it.