Files
histsdk/docs/reverse-engineering/native-trace-harness-tag-latest.json
dohertj2 c95824a65d Initial commit: managed .NET 10 AVEVA Historian SDK + reverse-engineering toolkit
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>
2026-05-04 06:31:48 -04:00

2 lines
3.6 KiB
JSON

{"Operation":"NativeTraceHarness.IntegratedRead","Scenario":"tag","ServerName":"localhost","DirectConnection":false,"ProxyServer":null,"TagName":"OtOpcUaParityTest_001.Counter","LookbackMinutes":1440,"RetrievalMode":"Full","ResolutionTicks":0,"StartUtc":"2026-05-01T15:16:25.1339097Z","EndUtc":"2026-05-02T15:16:25.1339097Z","OpenSuccess":true,"OpenErrorType":"NoError","OpenErrorCode":"Success","OpenErrorDescription":"No error type set","ConnectedToServer":true,"Pending":false,"ErrorOccurred":false,"StartQuerySuccess":false,"StartQueryErrorType":"CustomError","StartQueryErrorCode":"Failure","StartQueryErrorDescription":"error = 1 (Failure) \\\\.\\pipe\\aahMetadataServer\\console, component = aahClientAccessPoint::CMdServer::StartTagQuery::StartActiveTagnamesQuery, caused by = {error = 1 (Failure)}","StartQueryException":null,"MoveTerminalDescription":null,"RowCount":0,"Rows":[],"Snapshots":{"ConnectionArgs":{"field:tcpPort":32568,"field:serverName":"localhost","field:readOnly":true,"field:bandwidthLimit":0,"field:compression":false,"field:packetTimeout":1000,"field:storeForwardPath":"","field:storeForwardFreeDiskSpace":125,"field:minStoreForwardDuration":30,"field:bufferMemory":8,"field:connectionType":"Process","field:details":"","field:consoleAccess":false,"field:metadataNamespace":null,"field:directConnection":false,"field:proxyServer":"","field:futureTimeThreshold":0,"field:futureTimeThresholdSpecified":false,"property:ProxyServer":"","property:BufferMemory":8,"property:MinStoreForwardDuration":30,"property:StoreForwardFreeDiskSpace":125,"property:StoreForwardPath":"","property:PacketTimeout":1000,"property:Compression":false,"property:BandwidthLimit":0,"property:ConsoleAccess":false,"property:ReadOnly":true,"property:Details":"","property:ServerName":"localhost","property:TcpPort":32568,"property:ConnectionType":"Process","property:FutureTimeThreshold":0,"property:DirectConnection":false,"property:MetaDataNamespace":null},"AccessAfterOpen":{"field:clientHandlerArray":[1,0],"field:ptrClientArray":"\u003cunreadable:NotSupportedException\u003e","field:connectionType":"Process","field:eventTagHandle":0},"TagQueryAfterCreate":{"field:_historianClient":"\u003cSystem.Reflection.Pointer\u003e","field:_tagQueryArgs":"\u003cArchestrA.TagQueryArgs\u003e","field:_queryHandle":0,"field:_tagCount":0,"field:queryHandle":0,"field:retrievalMode":"Cyclic","field:dataVersion":"Original","field:resolution":0,"property:TagCount":0,"property:QueryHandle":0,"property:QueryArgs":"\u003cArchestrA.TagQueryArgs\u003e"},"TagQueryArgsBeforeStart":{"field:filter":"OtOpcUaParityTest_001.Counter","field:cacheTagInfo":true,"field:retrieveTagExtendedPropertyInfo":false,"property:RetrieveTagExtendedPropertyInfo":false,"property:CacheTagInfo":true,"property:TagFilter":"OtOpcUaParityTest_001.Counter"},"TagQueryAfterStart":{"field:_historianClient":"\u003cSystem.Reflection.Pointer\u003e","field:_tagQueryArgs":"\u003cArchestrA.TagQueryArgs\u003e","field:_queryHandle":0,"field:_tagCount":0,"field:queryHandle":0,"field:retrievalMode":"Cyclic","field:dataVersion":"Original","field:resolution":0,"property:TagCount":0,"property:QueryHandle":0,"property:QueryArgs":"\u003cArchestrA.TagQueryArgs\u003e"},"TagQueryArgsAfterStart":{"field:filter":"OtOpcUaParityTest_001.Counter","field:cacheTagInfo":true,"field:retrieveTagExtendedPropertyInfo":false,"property:TagFilter":"OtOpcUaParityTest_001.Counter","property:CacheTagInfo":true,"property:RetrieveTagExtendedPropertyInfo":false}},"TracePath":"C:\\Users\\dohertj2\\Desktop\\histsdk\\docs\\reverse-engineering\\native-wcf-message-log.svclog","TraceExists":false,"TraceBytes":0}