mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-27 18:59:26 +08:00
调试预制舱通讯协议修改数据解析
This commit is contained in:
@@ -109,18 +109,17 @@ public:
|
||||
void setWorkMode(int modeId);
|
||||
void setPolicy(int policyId);
|
||||
|
||||
void writeRuntimeData(std::string dt, int npos);
|
||||
void writeStatistic(std::string dt);
|
||||
|
||||
void initMqtt();
|
||||
void polling();
|
||||
void setGarewayWorkMode();
|
||||
void checkDevice();
|
||||
|
||||
void setRuntimeData(int deviceNo, string addr, int val);
|
||||
void setRuntimeData(string addr, int val);
|
||||
void setTHData(int deviceNo, string addr, int val);
|
||||
void setFire40Data(int deviceNo, string addr, int val);
|
||||
void setCoolingData(int deviceNo, string addr, int val);
|
||||
void setWorkModeFromGateway(int mode);
|
||||
|
||||
void writeStatistic();
|
||||
|
||||
public:
|
||||
int stationId {};
|
||||
@@ -130,13 +129,14 @@ public:
|
||||
int status {0};
|
||||
std::string operationDate;
|
||||
SysPolicy policy;
|
||||
std::string launchDate {};
|
||||
|
||||
bool isConnected {false};
|
||||
|
||||
int workMode {}; // 运行模式
|
||||
int workModeId {}; // 运行模式
|
||||
int runPolicyId {}; // 运行策略
|
||||
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||
/// === 系统统计 ===
|
||||
// 累计发电量,单位:kWh
|
||||
@@ -185,12 +185,6 @@ public:
|
||||
double temperature {};
|
||||
// 湿度
|
||||
double humidity {};
|
||||
int aircStatus {0};
|
||||
int coolingStatus {0};
|
||||
double voltage {0};
|
||||
double current {0};
|
||||
double power {0};
|
||||
double powerFactor {0};
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||
/// === 设备信息 ===
|
||||
@@ -213,25 +207,25 @@ public:
|
||||
|
||||
|
||||
struct {
|
||||
int64_t ts {0};
|
||||
int64_t ts;
|
||||
|
||||
float totalElectIn {0.0}; //总充电电量 R uint32 1kWh 6659(0x112D) 0x112C
|
||||
float totalElectOut {0.0}; //总放电电量 R uint32 1kWh 4925(0x112F) 0x112E
|
||||
float totalIncomeIn {0.0}; //总充电费用 R uint32 1RMB 6605(0x1131) 0x1130
|
||||
float totalIncomeOut {0.0}; //总放电费用 R uint32 1RMB 4949(0x1133) 0x1132
|
||||
float totalIncome {0.0}; //总收益 R int32 1RMB -1 0x1134
|
||||
double totalElectIn; //总充电电量 R uint32 1kWh 6659(0x112D) 0x112C
|
||||
double totalElectOut; //总放电电量 R uint32 1kWh 4925(0x112F) 0x112E
|
||||
double totalIncomeIn; //总充电费用 R uint32 1RMB 6605(0x1131) 0x1130
|
||||
double totalIncomeOut; //总放电费用 R uint32 1RMB 4949(0x1133) 0x1132
|
||||
double totalIncome; //总收益 R int32 1RMB -1 0x1134
|
||||
//储能充放电时段hh R uint16 时 336 0x01 0x121C
|
||||
//储能充放电时段mm R uint16 分 0 0x01 0x121D
|
||||
//储能充放电时段ss R uint16 秒 0 0x01 0x121E
|
||||
|
||||
float totalDurationIn {0.0};
|
||||
float totalDurationOut {0.0};
|
||||
double totalDurationIn;
|
||||
double totalDurationOut;
|
||||
|
||||
float dayElectIn {0.0}; // 日充电电量 R uint32 1kWh 0 0x110E
|
||||
float dayElectOut {0.0}; // 日放电电量 R uint32 1kWh 0 0x1110
|
||||
float dayIncomeIn {0.0}; // 日充电费用 R uint32 1RMB 0 0x1112
|
||||
float dayIncomeOut {0.0}; // 日放电费用 R uint32 1RMB 0 0x1114
|
||||
float dayIncome {0.0}; // 日收益 R int32 1RMB 0 0x1116
|
||||
double dayElectIn; // 日充电电量 R uint32 1kWh 0 0x110E
|
||||
double dayElectOut; // 日放电电量 R uint32 1kWh 0 0x1110
|
||||
double dayIncomeIn; // 日充电费用 R uint32 1RMB 0 0x1112
|
||||
double dayIncomeOut; // 日放电费用 R uint32 1RMB 0 0x1114
|
||||
double dayIncome; // 日收益 R int32 1RMB 0 0x1116
|
||||
|
||||
} statData;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user