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>
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"Path": "C:\\Users\\dohertj2\\Desktop\\histsdk\\current\\aahClientManaged.dll",
|
||||
"Filter": "0x060055E4",
|
||||
"IsILOnly": false,
|
||||
"IsMixedMode": true,
|
||||
"Methods": [
|
||||
{
|
||||
"DeclaringType": "\u003CModule\u003E",
|
||||
"Name": {
|
||||
"String": "HistorianClient.StartDataQuery",
|
||||
"Data": "SGlzdG9yaWFuQ2xpZW50LlN0YXJ0RGF0YVF1ZXJ5",
|
||||
"Length": 30,
|
||||
"DataLength": 30
|
||||
},
|
||||
"Token": "0x060055E4",
|
||||
"Rva": "0x004160C4",
|
||||
"IsStatic": true,
|
||||
"IsPublic": false,
|
||||
"HasBody": true,
|
||||
"InstructionCount": 80,
|
||||
"Calls": [
|
||||
{
|
||||
"Offset": "0x0007",
|
||||
"OpCode": "call",
|
||||
"Operand": "std.shared_ptr\u003CQuery\u003E* modreq(System.Runtime.CompilerServices.IsUdtReturn) modopt(System.Runtime.CompilerServices.CallConvCdecl) \u003CModule\u003E::HistorianClient.StartQuery(HistorianClient* modopt(System.Runtime.CompilerServices.IsConst) modopt(System.Runtime.CompilerServices.IsConst),std.shared_ptr\u003CQuery\u003E*,System.UInt32 modopt(System.Runtime.CompilerServices.IsLong)*)",
|
||||
"Token": "0x060055C4"
|
||||
},
|
||||
{
|
||||
"Offset": "0x005C",
|
||||
"OpCode": "call",
|
||||
"Operand": "System.Boolean modopt(System.Runtime.CompilerServices.CallConvCdecl) \u003CModule\u003E::Query.StartDataQuery(Query* modopt(System.Runtime.CompilerServices.IsConst) modopt(System.Runtime.CompilerServices.IsConst),INSQL_QUERYTYPE,INSQL_QUERYFORMAT,HISTORIAN_SUMMARYTYPE,System.UInt32 modopt(System.Runtime.CompilerServices.IsLong),System.Char modopt(System.Runtime.CompilerServices.IsConst)**,System.UInt32 modopt(System.Runtime.CompilerServices.IsLong),System.Char modopt(System.Runtime.CompilerServices.IsConst)**,System.UInt64,System.UInt64,System.Double,System.Single,System.UInt32,System.Char modopt(System.Runtime.CompilerServices.IsConst)*,E_VERSIONTYPE,E_INTERPOLATIONTYPE,E_TIMESTAMPRULE,E_QUALITYRULE,System.Char modopt(System.Runtime.CompilerServices.IsConst)*,System.Char*,System.UInt16,System.Char*,System.UInt16,EValueSelector,E_AGGREGATIONTYPE,System.UInt32,System.Byte modopt(System.Runtime.CompilerServices.IsConst)*,System.Char modopt(System.Runtime.CompilerServices.IsConst)*,System.UInt16,CMetadataNamespace modopt(System.Runtime.CompilerServices.IsConst)* modopt(System.Runtime.CompilerServices.IsImplicitlyDereferenced),SRedundantEndpoint modopt(System.Runtime.CompilerServices.IsConst)* modopt(System.Runtime.CompilerServices.IsImplicitlyDereferenced),SRedundantEndpoint modopt(System.Runtime.CompilerServices.IsConst)* modopt(System.Runtime.CompilerServices.IsImplicitlyDereferenced),SError* modopt(System.Runtime.CompilerServices.IsImplicitlyDereferenced))",
|
||||
"Token": "0x0600574B"
|
||||
},
|
||||
{
|
||||
"Offset": "0x006A",
|
||||
"OpCode": "call",
|
||||
"Operand": "System.Void modopt(System.Runtime.CompilerServices.CallConvCdecl) \u003CModule\u003E::Query.EndQuery(Query* modopt(System.Runtime.CompilerServices.IsConst) modopt(System.Runtime.CompilerServices.IsConst))",
|
||||
"Token": "0x0600574D"
|
||||
},
|
||||
{
|
||||
"Offset": "0x007F",
|
||||
"OpCode": "call",
|
||||
"Operand": "System.Void \u003CModule\u003E::___CxxCallUnwindDtor(System.Void (System.Void*),System.Void*)",
|
||||
"Token": "0x06005C0F"
|
||||
},
|
||||
{
|
||||
"Offset": "0x0091",
|
||||
"OpCode": "call",
|
||||
"Operand": "System.Void modopt(System.Runtime.CompilerServices.CallConvCdecl) \u003CModule\u003E::std._Ref_count_base._Decref(std._Ref_count_base* modopt(System.Runtime.CompilerServices.IsConst) modopt(System.Runtime.CompilerServices.IsConst))",
|
||||
"Token": "0x06000137"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user