diff --git a/.gitignore b/.gitignore index d5c72938..c2a2e564 100644 --- a/.gitignore +++ b/.gitignore @@ -28,12 +28,8 @@ !/robots.txt !/sitemap.xml !/.nojekyll -!/RUN_SAMPLE.bat -!/ANALYZE_LOG.bat -!/RUN_MASTER_SAMPLE.bat -!/RUN_DESKTOP.bat -!/RUN_DEMO_MASTER.bat -!/RUN_SLAVE_SIMULATOR.bat + +# Root .bat convenience launchers are retired; official releases and managed scripts remain. # Source code, scripts, and tests !/src/** diff --git a/ANALYZE_LOG.bat b/ANALYZE_LOG.bat deleted file mode 100644 index 77cd8362..00000000 --- a/ANALYZE_LOG.bat +++ /dev/null @@ -1,24 +0,0 @@ -REM Copyright 2026 Ari Sulistiono -REM SPDX-License-Identifier: Apache-2.0 -@echo off -setlocal -cd /d "%~dp0" - -if "%~1"=="" ( - echo Usage: - echo ANALYZE_LOG.bat "D:\path\to\program.log" - pause - exit /b 1 -) - -set INPUT=%~1 -set REPORT=%~n1.report.md -set JSON=%~n1.report.json - -dotnet run --project src\ARIEC60870.Cli -- "%INPUT%" --report "%REPORT%" --json "%JSON%" - -echo. -echo Report written: -echo %REPORT% -echo %JSON% -pause diff --git a/README.md b/README.md index e2daa51c..50212bc1 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,15 @@ ArSee is a **free, open-source Windows engineering tool** for **IEC 60870-5-101, **[Product website](https://masarray.github.io/arsee/)** · **[Download](https://masarray.github.io/arsee/download.html)** · **[Watch the demo](https://masarray.github.io/arsee/demo.html)** · **[Quick Start](https://masarray.github.io/arsee/quick-start.html)** · **[Field Wiki](https://masarray.github.io/arsee/wiki.html)** -
+## See ArSee in action + +
+
+
+
+
Open the original animated GIF · Watch the website demo
## Download for Windows x64 @@ -25,6 +33,26 @@ ArSee is a **free, open-source Windows engineering tool** for **IEC 60870-5-101, Official release packages may be unsigned. Use the [download guide](https://masarray.github.io/arsee/download.html) for setup, portable use and upgrade guidance. +## Interface screenshots + +See the actual Windows application directly in this README. Click a screenshot for its original resolution. + +| Signal monitoring | Event investigation | +| :---: | :---: | +|
|
|
+| **Values Viewer** — live decoded point values | **Event Journal** — observations and timestamps |
+|
|
|
+| **Frame Trace** — original TX/RX evidence | **Diagnostics** — link and protocol behavior |
+|
|
|
+| **Signal Map** — engineer-owned point mapping | **Smart Findings** — evidence-led explanations |
+|
|
|
+| **Report Workspace** — preview before export | **PDF Evidence** — document the session |
+|
|
|
+| **IEC-101 Setup** — RTU serial parameters | **IEC-103 Setup** — protection relay parameters |
+
+
+IEC-104 Setup — TCP/IP communication profile
+ ## From a connection symptom to engineering evidence When a serial or TCP session looks connected but SCADA values are missing, the next question is **what actually happened on the wire?** ArSee connects the original protocol frames with their interpretation so engineers can move from symptoms to supporting observations. @@ -48,15 +76,85 @@ The original communication remains inspectable even when decoding is incomplete **[Explore screenshots and the demo](https://masarray.github.io/arsee/demo.html)** · [Step-by-step Quick Start](https://masarray.github.io/arsee/quick-start.html) · [Full User Guide](docs/USER_GUIDE.md) -## Capabilities +## Detailed feature reference + +ArSee is designed around a practical path: **Configure → Connect / Capture → Observe → Investigate → Report**. The tables below describe supported engineering workflows; the exact protocol mode and published build determine which controls are available. + +### IEC 60870-5-101 · Serial RTU and gateway testing + +| Feature | Engineering use | +| --- | --- | +| **Active unbalanced master** | Configure COM port, baud rate, framing, link address, ASDU field lengths and device-specific startup settings. | +| **Link-layer interpretation** | Observe FT1.2 telegram structure, link functions, ACD/DFC, acknowledged responses and Class 1/Class 2 polling. | +| **General Interrogation (GI)** | Observe the request, confirmations, returned data and termination as separate protocol milestones. The configured on-connect GI policy is respected. | +| **Commands and feedback** | Inspect supported reads, time synchronization and direct/select-before-operate command transactions in authorized test sessions. | +| **Dual-link A/B** | Observe independent link health, active/standby ownership, switchover reasons and Redundancy timeline details. | +| **Passive RX-only monitor** | Receive-only serial observation, including supported multi-RX monitoring workflows; electrical isolation depends on hardware. | +| **Serial recovery diagnostics** | Distinguish link status, incomplete frames and reconnect behavior without fabricating values or command outcomes. | + +### IEC 60870-5-103 · Protection relay testing + +- Serial master communication with configurable port, serial profile and link address. +- Link exchange and reset visibility, supported relay Class 1/Class 2 polling and event diagnostics. +- Supported **FUN/INF** interpretation, relay indications, measured values and event timestamps where provided. +- Project-specific mapping for relay signal identities; unknown vendor information stays explicitly unclassified. + +### IEC 60870-5-104 · TCP/IP testing + +- TCP client/master connection to project-approved IEC-104 endpoints. +- I-format, S-format and U-format frame interpretation with sequence and session context. +- **STARTDT / STOPDT / TESTFR** control exchange and supported ASDU data inspection. +- General Interrogation, spontaneous event/value analysis and supported command-feedback evidence. +- Source-aware diagnostics for session continuity and transaction behavior. + +### Frame Trace, protocol decoder and diagnostics + +- **Original TX/RX evidence:** inspect observed telegrams alongside selected-frame interpretation; undecodable or malformed bytes remain visible as raw evidence. +- **Detailed protocol fields:** Type ID, Cause of Transmission, Common Address, IOA, flags, quality and timestamps; IEC-103 FUN/INF and IEC-104 APCI where applicable. +- **Operator investigation:** search, inspect, navigate history and use supported AUTO/HOLD viewport controls without conflating display following with traffic capture. +- **Communication diagnostics:** investigate missing data even when a serial link or TCP socket appears connected; inspect GI/command phase observations and protocol irregularities. +- **Evidence links:** where available, move from event/finding context to an original source frame rather than using a guessed interpretation. + +### Values, Event Journal and Signal Map + +| Workspace | What it provides | +| --- | --- | +| **Values Viewer** | Current decoded point states, analog measurements, counts and available quality flags. | +| **Event Journal / SOE** | Time-ordered decoded observations, digital/analog filters, search and source timestamps when supplied; missing device time is not invented. | +| **Signal List** | User-defined CA/IOA/Type ID identities, Bay/TYPE/Mnemonic names and state mappings; applicable IEC-103 FUN/INF mapping. | +| **Engineering scaling** | Factor and two-point **X0/X100/Y0/Y100** conversion for applicable normalized/scaled measurements without altering the original telegram. | +| **Mapping editor** | Search/filter, selection and spreadsheet-style editing, validated paste, Fill Down and Undo/Redo where supported. | +| **Profile preservation** | Existing user mappings remain user-owned. Reference profile ranges are examples, not universal RTU engineering units. | + +### General Interrogation, Controls and Redundancy + +- **GI status:** differentiate original request, ACTCON, GI data and ACTTERM. Completion of one phase is not proof that every configured signal arrived. +- **Command Panel:** supported Read IOA, clock sync, control qualifier and select/execute workflows with response and timeout evidence, where available in the selected mode. +- **Feedback truth:** distinguish a protocol confirmation, negative confirmation, missing feedback and actual physical operation; ArSee does not assume a breaker moved. +- **IEC-101 A/B:** inspect active/standby state, selected Reason/Result timeline and link-specific evidence without treating the two COM connections as one source. + +### Smart Findings and Operator Evidence + +- Contextual findings for supported issues such as **Common Address mismatch, GI gaps, missing ACTCON/ACTTERM, command timeout and IEC-104 session instability**. +- Findings emphasize **problem, protocol proof, possible cause and next action**, not unexplained scores. +- Events, trace and findings preserve source references where available; a missing original TX frame is shown as incomplete evidence rather than manufactured. +- Separates observed facts from inferred explanations and uncertain or unsupported protocol content. + +### Captures, exports and native reporting + +- Save and reopen supported capture evidence for offline investigation; archived completeness is distinct from an on-screen bounded trace. +- Supported **Trace TXT, Events CSV and capture** workflows alongside source-aware report content. +- Integrated **native PDF** preview/export with communications evidence, event details and findings where present. +- Review or redact confidential station names, IP addresses, signal details and customer identifiers before sharing. + +### User experience, learning and distribution -- **IEC-101:** unbalanced master sessions, Class 1/2 polling, GI, source-linked control feedback, dual-link A/B workflow and a separate receive-only serial monitor. -- **IEC-103:** protection-relay exchanges, supported FUN/INF fields, values and event interpretation. -- **IEC-104:** TCP connection, APCI/ASDU interpretation, STARTDT/TESTFR and supported transactions. -- **Signal List:** user-owned signal mapping and Factor or X0/X100/Y0/Y100 two-point scaling of applicable analog values. -- **Evidence workspace:** Frame Trace, Values, Events, Diagnostics, Smart Findings, selected-frame inspection and native PDF reporting. +- Compact Windows engineering desktop with **Setup, Trace, Values, Events, Diagnostics, Signal Mapping, Controls, GI, Redundancy and Report** workspaces as applicable. +- Bilingual **English and Indonesian Help Center / Field Wiki**, step-by-step guidance, trace-lab examples and troubleshooting documentation. +- Windows x64 **installer and portable ZIP**, with stable-channel update behavior for installed editions and explicit manual updates for portable ZIP. +- Published **Apache-2.0 source, CI, SHA-256 checksums, SBOM and build provenance** for release traceability. -See the [release notes](https://github.com/masarray/arsee/releases/tag/v3.6.20) for behavior delivered by the current stable build. Illustrative screenshots and demo media are not protocol conformance evidence. +For configuration details, see the [User Guide](docs/USER_GUIDE.md), [Quick Start](docs/QUICK_START.md), [Protocol Coverage](https://masarray.github.io/arsee/protocol-coverage.html) and [Field Wiki](https://masarray.github.io/arsee/wiki.html). Screenshots are interface illustrations, not claims of universal interoperability. ## Open source and traceable releases diff --git a/RUN_DEMO_MASTER.bat b/RUN_DEMO_MASTER.bat deleted file mode 100644 index 01aa8246..00000000 --- a/RUN_DEMO_MASTER.bat +++ /dev/null @@ -1,9 +0,0 @@ -REM Copyright 2026 Ari Sulistiono -REM SPDX-License-Identifier: Apache-2.0 -@echo off -setlocal -cd /d "%~dp0" -echo Running ARIEC60870 master against the built-in simulated relay with sample user mapping profile... -echo Duration is 45 seconds so pickup, trip, auto reset, and repeat cycle can be observed. -dotnet run --project src\ARIEC60870.Cli -- master --simulate --duration 45 --mapping samples\mapping-profiles\example-user-mapping.profile.json --report out\demo-master-evidence.md --json out\demo-master-evidence.json -pause diff --git a/RUN_DESKTOP.bat b/RUN_DESKTOP.bat deleted file mode 100644 index 6b90a5d3..00000000 --- a/RUN_DESKTOP.bat +++ /dev/null @@ -1,8 +0,0 @@ -REM Copyright 2026 Ari Sulistiono -REM SPDX-License-Identifier: Apache-2.0 -@echo off -setlocal -cd /d "%~dp0" -echo Starting ARIEC60870 WPF Master Tester... -dotnet run --project src\ARIEC60870.Desktop\ARIEC60870.Desktop.csproj -pause diff --git a/RUN_MASTER_SAMPLE.bat b/RUN_MASTER_SAMPLE.bat deleted file mode 100644 index 1f21f6b0..00000000 --- a/RUN_MASTER_SAMPLE.bat +++ /dev/null @@ -1,12 +0,0 @@ -REM Copyright 2026 Ari Sulistiono -REM SPDX-License-Identifier: Apache-2.0 -@echo off -setlocal -cd /d "%~dp0" - -REM Edit COM port, link address, common address, and mapping profile before connecting to a real relay. -REM v0.8 writes Markdown and JSON evidence reports with Value Viewer and Relay Event Log sections. - -dotnet run --project src\ARIEC60870.Cli -- master --port COM1 --baud 9600 --link 1 --ca 1 --duration 30 --mapping samples\mapping-profiles\example-user-mapping.profile.json --report out\master-evidence.md --json out\master-evidence.json - -endlocal diff --git a/RUN_SAMPLE.bat b/RUN_SAMPLE.bat deleted file mode 100644 index e0db8e76..00000000 --- a/RUN_SAMPLE.bat +++ /dev/null @@ -1,24 +0,0 @@ -REM Copyright 2026 Ari Sulistiono -REM SPDX-License-Identifier: Apache-2.0 -@echo off -setlocal -cd /d "%~dp0" - -echo Building ARIEC60870... -dotnet build ARIEC60870.sln -if errorlevel 1 ( - echo. - echo Build failed. Please check that .NET 8 SDK is installed. - pause - exit /b 1 -) - -echo. -echo Running sample analysis... -dotnet run --project src\ARIEC60870.Cli -- samples\sample_iec103_trace.log --report out\sample-report.md --json out\sample-report.json - -echo. -echo Output: -echo out\sample-report.md -echo out\sample-report.json -pause diff --git a/RUN_SLAVE_SIMULATOR.bat b/RUN_SLAVE_SIMULATOR.bat deleted file mode 100644 index a230971d..00000000 --- a/RUN_SLAVE_SIMULATOR.bat +++ /dev/null @@ -1,11 +0,0 @@ -REM Copyright 2026 Ari Sulistiono -REM SPDX-License-Identifier: Apache-2.0 -@echo off -setlocal -cd /d %~dp0 - -echo ARIEC60870 IEC-103 Slave Simulator - -echo Default behavior: protection pickup random phase, trip after 200 ms, auto reset after 20 s, repeat after 10 s. - -dotnet run --project src\ARIEC60870.Cli -- slave --port COM2 --baud 9600 --link 1 --ca 1 --duration 300 --initial-fault-delay 3 --trip-delay 200 --auto-reset 20 --fault-repeat-delay 10 diff --git a/tests/ARIEC60870.Repository.Tests/RepositoryHygieneTests.cs b/tests/ARIEC60870.Repository.Tests/RepositoryHygieneTests.cs index 0c3fe4a7..2884d54a 100644 --- a/tests/ARIEC60870.Repository.Tests/RepositoryHygieneTests.cs +++ b/tests/ARIEC60870.Repository.Tests/RepositoryHygieneTests.cs @@ -244,6 +244,47 @@ private static bool TryParseReleaseVersion(string? value, out Version baseVersio return true; } + [Fact] + public void ReadmeIncludesOriginalAnimatedDemoAndRealScreenshotGallery() + { + var root = FindRepositoryRoot(); + var readme = File.ReadAllText(root.File("README.md")); + const string gifPath = "docs/assets/screenshots/IEC-60870.gif"; + Assert.Contains($"src=\"{gifPath}\"", readme); + + var gif = File.ReadAllBytes(root.File(gifPath)); + Assert.True(gif.Length > 1_000_000, "The README demo GIF must be the real animation asset, not a stub."); + var header = System.Text.Encoding.ASCII.GetString(gif, 0, 6); + Assert.Contains(header, new[] { "GIF87a", "GIF89a" }); + + var images = Regex.Matches(readme, @"