From 2ebccf831b56d30089924f2eefa2d790e2b8f3fc Mon Sep 17 00:00:00 2001 From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com> Date: 星期四, 07 八月 2025 09:20:21 +0800 Subject: [PATCH] 1.为CVariable增加值的设置和获取 2.当发生Port状态改变为InUse时,此时也刚好获取到CarrierID,上报S6F11_CarrierID_Readed --- SourceCode/Bond/Servo/HsmsPassive.h | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/SourceCode/Bond/Servo/HsmsPassive.h b/SourceCode/Bond/Servo/HsmsPassive.h index a08350e..f542cf7 100644 --- a/SourceCode/Bond/Servo/HsmsPassive.h +++ b/SourceCode/Bond/Servo/HsmsPassive.h @@ -136,6 +136,11 @@ // 取得指定Variable SERVO::CVariable* getVariable(int variableId); + SERVO::CVariable* getVariable(const char* pszName); + + // 设置变量值 + void setVariableValue(const char* pszName, __int64 value); + void setVariableValue(const char* pszName, const char* value); // 从文件中加载CReport列表 int loadReports(const char* pszFilepath); @@ -173,7 +178,9 @@ /* request开头的函数为主动发送数据的函数 */ int requestAreYouThere(); int requestAlarmReport(int ALCD, int ALID, const char* ALTX); - int requestEventReportSend(unsigned int DATAID, unsigned int CEID, const std::vector<std::string>& values); + int requestEventReportSend(unsigned int CEID); + int requestEventReportSend(const char* pszEventName); + int requestEventReportSend_CarrierID_Readed(); private: void replyAck(int s, int f, unsigned int systemBytes, BYTE ack, const char* pszAckName); -- Gitblit v1.9.3