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/Servo/HsmsPassive.h |   17 ++++++++++++++---
 1 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/SourceCode/Bond/Servo/HsmsPassive.h b/SourceCode/Bond/Servo/HsmsPassive.h
index 314b008..5ebd43e 100644
--- a/SourceCode/Bond/Servo/HsmsPassive.h
+++ b/SourceCode/Bond/Servo/HsmsPassive.h
@@ -138,7 +138,7 @@
 	int deleteReport(int rptid);
 	int addReport(int rptid, const std::vector<unsigned int>& vids);
 	int updateReport(int rptid, const std::vector<unsigned int>& vids);
-	void clearAllReport();
+	void clearAllReport(BOOL bSave = FALSE);
 
 	// 浠庢枃浠朵腑鍔犺浇CVariable鍒楄〃
 	int loadVarialbles(const char* pszFilepath);
@@ -150,6 +150,8 @@
 	// 鍙栧緱鎸囧畾Variable
 	SERVO::CVariable* getVariable(int variableId);
 	SERVO::CVariable* getVariable(const char* pszName);
+	int getCurrentControlState();
+	bool isHostCommandAllowed();
 	int deleteVariable(int variableId);
 	int addVariable(const char* pszName, const char* pszFormat, const char* pszRemark, int& outId);
 	int updateVariable(int variableId, const char* pszName, const char* pszFormat, const char* pszRemark);
@@ -220,6 +222,8 @@
 	int requestEventReportSend_OCR_PanelID_Read_OK();
 	int requestEventReportSend_LoadPortNotAssoc();
 	int requestEventReportSend_ProcessDataReport();
+	int requestEventReportSend_SubEqpStart();
+	int requestEventReportSend_SubEqpEnd();
 
 private:
 	void replyAck(int s, int f, unsigned int systemBytes, BYTE ack, const char* pszAckName);
@@ -298,6 +302,13 @@
 	// CollectionEvent vector
 	std::vector<SERVO::CCollectionEvent*> m_collectionEvents;
 
-	// Spooling Config
-	std::map<uint16_t, std::set<uint16_t>> m_spoolingConfig;
+	// Spooling blacklist: StreamId -> {FunctionId...}
+	// In this map means DO NOT spool/cache.
+	// Special case: stream 1 is not spooled regardless of config.
+	// If a stream key exists with empty set => blacklist ALL functions in that stream.
+	std::map<uint16_t, std::set<uint16_t>> m_spoolBlacklistByStream;
+	bool m_spoolingEnabled{ true };
+
+private:
+	bool shouldSpool(uint8_t streamId, uint8_t functionId) const;
 };

--
Gitblit v1.9.3