更改字段名称

master
lch 6 months ago
parent 2731fc99b7
commit cd66481c45

@ -36,35 +36,35 @@ public class ChargerClient : TcpClient<IBaseHandler, Decoder, Encoder>
/// <summary> /// <summary>
///充电机遥信数据 ///充电机遥信数据
/// </summary> /// </summary>
public UploadRemoteSignalData uploadRemoteSignalData = new UploadRemoteSignalData(); public UploadRemoteSignalData UploadRemoteSignalData = new UploadRemoteSignalData();
/// <summary> /// <summary>
/// 充电机工作状态-从遥信数据包中得到。00H待机 01H工作 02H工作完成 03H充/放电暂停 /// 充电机工作状态-从遥信数据包中得到。00H待机 01H工作 02H工作完成 03H充/放电暂停
/// </summary> /// </summary>
public byte workstate { get; set; } public byte Workstate { get; set; }
/// <summary> /// <summary>
/// 充电机故障-遥信数据包总故障 00H正常、01H故障 /// 充电机故障-遥信数据包总故障 00H正常、01H故障
/// </summary> /// </summary>
public bool totalError { get; set; } public bool TotalError { get; set; }
/// <summary> /// <summary>
/// 充电机告警-遥信数据包总告警 00H正常、01H告警 /// 充电机告警-遥信数据包总告警 00H正常、01H告警
/// </summary> /// </summary>
public bool totalWarning { get; set; } public bool TotalWarning { get; set; }
/// <summary> /// <summary>
/// 充电机遥测数据 /// 充电机遥测数据
/// </summary> /// </summary>
public UploadTelemetryData uploadTelemetryData = new UploadTelemetryData(); public UploadTelemetryData UploadTelemetryData = new UploadTelemetryData();
/// <summary> /// <summary>
///充电机实时充电功率 ///充电机实时充电功率
/// </summary> /// </summary>
public float realTimeChargePower { get; set; } = 0; public float RealTimeChargePower { get; set; } = 0;
/// <summary> /// <summary>
/// 心跳-桩状态 /// 心跳-桩状态
/// </summary> /// </summary>
public byte pileState { get; set; } public byte PileState { get; set; }

@ -21,7 +21,7 @@ namespace Service.Charger.Handler
//心跳存储日志 //心跳存储日志
Log.Info($"receive {msg} from {sn}"); Log.Info($"receive {msg} from {sn}");
//心跳桩状态 //心跳桩状态
client.pileState = msg.Status; client.PileState = msg.Status;
//监控平台心跳应答0-正常、1-未注册 //监控平台心跳应答0-正常、1-未注册
HeartBeatRes heartBeatRes = new HeartBeatRes(0); HeartBeatRes heartBeatRes = new HeartBeatRes(0);

@ -29,11 +29,11 @@ namespace Service.Charger.Handler
//存储日志 //存储日志
Log.Info($"receive {msg} from {sn}"); Log.Info($"receive {msg} from {sn}");
client.workstate = msg.WorkStatus; client.Workstate = msg.WorkStatus;
client.IsCharged = msg.WorkStatus == 1 ? true : false; client.IsCharged = msg.WorkStatus == 1 ? true : false;
client.totalError = msg.TotalError; client.TotalError = msg.TotalError;
client.totalWarning = msg.TotalWarning; client.TotalWarning = msg.TotalWarning;
client.uploadRemoteSignalData = msg; client.UploadRemoteSignalData = msg;
} }
else else
{ {

@ -28,9 +28,9 @@ namespace Service.Charger.Handler
//存储日志 //存储日志
Log.Info($"receive {msg} from {sn}"); Log.Info($"receive {msg} from {sn}");
client.uploadTelemetryData = msg; client.UploadTelemetryData = msg;
//充电机实时充电功率 //充电机实时充电功率
client.realTimeChargePower = msg.HighVoltageAcquisitionCurrent * msg.HighVoltageAcquisitionVoltage; client.RealTimeChargePower = msg.HighVoltageAcquisitionCurrent * msg.HighVoltageAcquisitionVoltage;
} }
else else
{ {

Loading…
Cancel
Save