From 5edb485d226790306097e40ea954efb2ed90dd21 Mon Sep 17 00:00:00 2001 From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com> Date: 星期一, 11 八月 2025 16:05:09 +0800 Subject: [PATCH] 1.EAP:查询CJSpace和PJSpace功能模拟,Master对EAP查询机器变量的回复; --- SourceCode/Bond/Servo/HsmsPassive.h | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/SourceCode/Bond/Servo/HsmsPassive.h b/SourceCode/Bond/Servo/HsmsPassive.h index a08350e..f50de9b 100644 --- a/SourceCode/Bond/Servo/HsmsPassive.h +++ b/SourceCode/Bond/Servo/HsmsPassive.h @@ -115,6 +115,9 @@ /* 设置软件版本号 最大长度 20 bytes */ void setSoftRev(const char* pszRev); + /* 添加变量值到ISECS2Item */ + void addVariableValueToItem(ISECS2Item* pParent, SERVO::CVariable* pVariable); + // 连接Report void linkEventReport(unsigned int CEID, unsigned int RPTID); @@ -136,6 +139,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 +181,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); @@ -181,6 +191,7 @@ /* reply开头的函数为回复函数 */ int replyAreYouThere(IMessage* pRecv); int replyEstablishCommunications(IMessage* pRecv); + int replySelectedEquipmentStatusData(IMessage* pRecv); int replyOnLine(IMessage* pRecv); int replyOffLine(IMessage* pRecv); int replyEquipmentConstantRequest(IMessage* pRecv); -- Gitblit v1.9.3