遥测上报调整

master
CZ 5 months ago
parent c036718c69
commit 9323e87dcb

@ -52,39 +52,38 @@ public class CloudClientMgr
if (data != null) if (data != null)
{ {
BinInfo? binInfo = binInfoRepository.QueryByClause(it => it.ChargerNo == data.ChargerNo); BinInfo? binInfo = binInfoRepository.QueryByClause(it => it.ChargerNo == data.ChargerNo);
ChargeDevDataInfo req = new ChargeDevDataInfo() ChargeDevDataInfo req = new ChargeDevDataInfo();
{ req.sn = StaticStationInfo.StationNo;
sn = StaticStationInfo.StationNo, req.en = data.ChargerNo;
en = data.ChargerNo, req.sd = "A"+int.Parse(binInfo.No);
sd = "A"+int.Parse(data.ChargerNo), req.mtp = StaticStationInfo.ChargePower;
mtp = StaticStationInfo.ChargePower, req.mcr = 1;
mcr = 1, req.hb = binInfo?.Exists??0;
hb = binInfo?.Exists??0, req.el = 0;
el = 0, req.cno = int.Parse(binInfo.No);
cno = int.Parse(data.ChargerNo), req.cs = binInfo.ChargeStatus??0;
cs = binInfo.ChargeStatus??0, req.fs = 0;
fs = 0, req.@as = 0;
@as = 0,
//fc = data., //fc = data.,
//st = data., //st = data.,
ct = data.ChargingTime, req.ct = data.ChargingTime;
//ssoc = data., //ssoc = data.,
csoc = data.CurrentSoc, req.csoc = data.CurrentSoc;
//ssoe = data., //ssoe = data.,
//csoe = data., //csoe = data.,
cvot = data.BmsChargingVoltage, req.cvot = data.BmsChargingVoltage;
ccur = data.BmsChargingCurrent, req.ccur = data.BmsChargingCurrent;
nvot = data.BmsNeedVoltage, req.nvot = data.BmsNeedVoltage;
ncur = data.BmsNeedCurrent, req.ncur = data.BmsNeedCurrent;
lsv = data.SingleBatteryMinVoltage, req.lsv = data.SingleBatteryMinVoltage;
hsv = data.SingleBatteryMaxVoltage, req.hsv = data.SingleBatteryMaxVoltage;
lst = data.MinBatteryTemp, req.lst = data.MinBatteryTemp;
hst = data.MaxBatteryTemp, req.hst = data.MaxBatteryTemp;
ws = 0xFF, req.ws = 0xFF;
it = 0xFF, req.it = 0xFF;
ot = 0xFF, req.ot = 0xFF;
bt = DateTime.Now req.bt = DateTime.Now;
};
if ((DateTime.Now - _dateTime).TotalSeconds <= 30) if ((DateTime.Now - _dateTime).TotalSeconds <= 30)
{ {

Loading…
Cancel
Save