c95824a65d
Full read-only SDK (src/AVEVA.Historian.Client) implementing the CLAUDE.md required
surface against AVEVA Historian's binary WCF protocol — no native AVEVA runtime
dependency. All operations live-verified against a local Historian:
- ProbeAsync, ReadRawAsync, ReadAggregateAsync, ReadAtTimeAsync, ReadEventsAsync
- BrowseTagNamesAsync, GetTagMetadataAsync (17 native data-type codes mapped)
- GetConnectionStatusAsync, GetStoreForwardStatusAsync, GetSystemParameterAsync
- 108/108 unit + integration tests pass
Includes the reverse-engineering toolkit (tools/AVEVA.Historian.ReverseEngineering)
used to decode the protocol: WCF probes, IL inspection via dnlib, and IL-rewrite
instrumentation (instrument-wcf-{write,read}message etc.) plus the .NET Framework
trace harness (tools/AVEVA.Historian.NativeTraceHarness) for parity testing.
Sanitized handoff evidence under docs/reverse-engineering/. Native AVEVA binaries
(current/, aveva-install-x64/, aveva-install-x86/) are gitignored — fetch separately
from the AVEVA installer.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1.4 KiB
1.4 KiB
WCF OpenConnection Evidence
Command:
dotnet run --no-build --project tools\AVEVA.Historian.ReverseEngineering -- wcf-open localhost 32568
Confirmed:
Hist.OpenConnectionis reachable through fully managed WCF/MDAS.- Correcting WCF parameter names to match the decompiled contract changed the result from a server-side null-reference fault to normal AVEVA return codes.
- An empty password buffer returns
31, which maps toBufferTooSmall. - Non-empty and 513-wide-char-sized password buffers return
73, which maps toInvalidPacketVersion. - Varying client type
0..7and client versions0,1,2,4,11did not produce a successful session open. - Packet-version guesses using little-endian
ushortanduintvalues1..4at the start of a 1026-byte buffer also returnedInvalidPacketVersion. - The native string table contains
CClientInfo::SerializeOpenConnectionInParams3andCClientInfo::EncryptWithClientKey, so simple literal password buffers are not enough.
Interpretation:
- The managed WCF envelope and endpoint are correct enough to invoke server operation logic.
- Session open is blocked on the exact native password/session packet encoding, not on TCP, endpoint routing, or service-contract discovery.
- The native WCF client uses the byte-buffer
Open2path for normal WCF session setup. Seewcf-open2-localhost.mdfor confirmedOpen2framing evidence.