From 559890c482f5973f06aafdfec9550fee5ba3c7f2 Mon Sep 17 00:00:00 2001
From: wenxiangchao <wenxiangchao@ihengxin.com.cn>
Date: 星期一, 09 十一月 2026 17:02:15 +0800
Subject: [PATCH] feat: CAN 模拟器 TCP 化 + 多设备并发调试 + 后台生命周期管理

---
 Aging.ResourceContracts/IpcEnvelope.cs |   33 +++++++++++++++++++++++++++++++++
 1 files changed, 33 insertions(+), 0 deletions(-)

diff --git a/Aging.ResourceContracts/IpcEnvelope.cs b/Aging.ResourceContracts/IpcEnvelope.cs
new file mode 100644
index 0000000..65bbef0
--- /dev/null
+++ b/Aging.ResourceContracts/IpcEnvelope.cs
@@ -0,0 +1,33 @@
+namespace Aging.ResourceContracts
+{
+    /// <summary>IPC 娑堟伅绫诲瀷甯搁噺锛圡VP 浠呭洓绉嶏級銆�</summary>
+    public static class IpcMessageTypes
+    {
+        public const string Hello = "Hello";                 // 鎻℃墜锛氬洖 epoch/configHash
+        public const string SubmitTask = "SubmitTask";       // body=DeviceOperation
+        public const string CancelTask = "CancelTask";
+        public const string ProbeReadback = "ProbeReadback"; // 鎭㈠鍥炴敹鍓嶇殑璇诲洖鎺㈡祴
+    }
+
+    /// <summary>璇锋眰/鍝嶅簲鍏卞悓灏佸銆傚崗璁増鏈笉鍖归厤鐩存帴鎷掔粷杩炴帴銆�</summary>
+    public sealed class IpcEnvelope
+    {
+        public int ProtocolVersion { get; set; } = 1;
+        public string MessageType { get; set; } = "";
+        public string RequestId { get; set; } = "";
+        public string CorrelationId { get; set; } = "";
+        public string ClientInstanceId { get; set; } = "";
+        public string AuthorityId { get; set; } = "";
+        public string ConfigHash { get; set; } = "";
+        public long DeadlineUtcMs { get; set; }
+        public string BodyJson { get; set; } = "{}";
+    }
+
+    public sealed class HelloResult
+    {
+        public long ServerEpoch { get; set; }
+        public string ConfigHash { get; set; } = "";
+        public int ProtocolVersion { get; set; } = 1;
+        public string BrokerId { get; set; } = "";
+    }
+}

--
Gitblit v1.9.1