From 3e91a18f75a75fbe8f646d73e4e68ba107b6750b Mon Sep 17 00:00:00 2001
From: chenluhua1980 <Chenluhua@qq.com>
Date: 星期四, 08 一月 2026 21:04:26 +0800
Subject: [PATCH] 1.增加状态是否远程禁等逻辑;

---
 SourceCode/Bond/EAPSimulator/CHsmsActive.h |   25 +++++++++++++++++--------
 1 files changed, 17 insertions(+), 8 deletions(-)

diff --git a/SourceCode/Bond/EAPSimulator/CHsmsActive.h b/SourceCode/Bond/EAPSimulator/CHsmsActive.h
index 04bb2c1..00efb31 100644
--- a/SourceCode/Bond/EAPSimulator/CHsmsActive.h
+++ b/SourceCode/Bond/EAPSimulator/CHsmsActive.h
@@ -1,4 +1,4 @@
-锘�#pragma once
+#pragma once
 #include <string>
 #include <vector>
 #include <map>
@@ -7,7 +7,8 @@
 #include "ProcessJob.h"
 
 
-#define SVID_CJobSpace				5001
+#define SVID_ControlState           600
+#define SVID_CJobSpace            5001
 #define SVID_PJobSpace				5002
 #define SVID_PJobQueued				5003
 
@@ -36,11 +37,19 @@
 	// Deselect Request
 	int hsmsDeselectRequest();
 
-	// 寤虹珛閫氳(S1F13)
+	// 建立通讯(S1F13)
 	int hsmsEstablishCommunications();
 
 	// Are You There
 	int hsmsAreYouThere();
+
+	// ControlState: Request Online/Offline (S1F17 / S1F15)
+	int hsmsRequestOnline();
+	int hsmsRequestOffline();
+
+	// ControlState: GoLocal/GoRemote (S2F41)
+	int hsmsGoLocal();
+	int hsmsGoRemote();
 
 	// Date time sync
 	int hsmsDatetimeSync();
@@ -63,18 +72,18 @@
 	// Configure Spooling
 	int hsmsConfigureSpooling(std::map<unsigned int, std::set<unsigned int>>& spoolingConfig);
 
-	// 鍙戦�佹垨娓呯┖缂撳瓨鐨勬秷鎭�
+	// 发送或清空缓存的消息
 	int hsmsTransmitSpooledData();
 	int hsmsPurgeSpooledData();
 
-	// 鏌ヨ鍙橀噺
+	// 查询变量
 	int hsmsSelectedEquipmentStatusRequest(unsigned int SVID);
 
-	// 鏌ヨPPID List
+	// 查询PPID List
 	int hsmsQueryPPIDList();
 
 	// S3F17
-	// 鍗″專鍔ㄤ綔璇锋眰
+	// 卡匣动作请求
 	int hsmsCarrierActionRequest(unsigned int DATAID, 
 		const char* pszCarrierAction,
 		const char* pszCarrierId,
@@ -98,7 +107,7 @@
 	// S14F9
 	int hsmsCreateControlJob(const char* pszControlJobId, std::vector<std::string>& processJobIds);
 
-	// 閫氳繃鐨剅eply鍑芥暟
+	// 通过的reply函数
 	void replyAck(int s, int f, unsigned int systemBytes, BYTE ack, const char* pszAckName);
 
 	// reply ack0

--
Gitblit v1.9.3